|
5 months ago | |
---|---|---|
.. | ||
README.en-US.md | 5 months ago | |
README.md | 5 months ago | |
grid.d.ts | 5 months ago | |
grid.js | 5 months ago | |
grid.json | 5 months ago | |
grid.wxml | 5 months ago | |
grid.wxss | 5 months ago | |
props.d.ts | 5 months ago | |
props.js | 5 months ago | |
type.d.ts | 5 months ago | |
type.js | 5 months ago |
:: BASE_DOC ::
name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
align | String | center | options: left/center | N
border | Boolean / Object | false | Typescript:boolean \| { color?: string; width?: string; style?: 'solid' \| 'dashed' \| 'dotted' \| 'double' \| 'groove' \| 'inset' \| 'outset' }
| N
column | Number | 4 | - | N
gutter | Number | - | - | N
hover | Boolean | false | - | N
theme | String | default | options: default/card | N
className | Description -- | -- t-class | -
name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
badge-props | Object | null | Typescript:BadgeProps
,Badge API Documents。see more ts definition | N
description | String / Slot | - | see more ts definition | N
icon | String / Object | - | - | N
image | String / Slot | - | see more ts definition | N
image-props | Object | - | Typescript:ImageProps
,Image API Documents。see more ts definition | N
jump-type | String | navigate-to | options: redirect-to/switch-tab/relaunch/navigate-to | N
layout | String | vertical | options: vertical/horizontal | N
text | String / Slot | - | see more ts definition | N
url | String | - | - | N
name | params | description -- | -- | -- click | - | see more ts definition
className | Description -- | -- t-class | - t-class-content | - t-class-description | - t-class-image | - t-class-text | -
The component provides the following CSS variables, which can be used to customize styles. Name | Default Value | Description -- | -- | -- --td-grid-bg-color | @bg-color-container | - --td-grid-card-radius | @radius-large | - --td-grid-item-bg-color | @bg-color-container | - --td-grid-item-description-color | @font-gray-3 | - --td-grid-item-description-font-size | 24rpx | - --td-grid-item-description-line-height | 40rpx | - --td-grid-item-description-padding-top | 8rpx | - --td-grid-item-horizontal-text-description-top | 4rpx | - --td-grid-item-horizontal-text-padding-left | 24rpx | - --td-grid-item-hover-bg-color | @bg-color-secondarycontainer | - --td-grid-item-image-middle-width | 80rpx | - --td-grid-item-image-small-width | 64rpx | - --td-grid-item-image-width | 96rpx | - --td-grid-item-padding | 32rpx | - --td-grid-item-text-color | @font-gray-1 | - --td-grid-item-text-font-size | 28rpx | - --td-grid-item-text-line-height | 44rpx | - --td-grid-item-text-middle-font-size | 24rpx | - --td-grid-item-text-padding-top | 16rpx | - --td-grid-item-text-small-font-size | 24rpx | -