You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

1 year ago
:: BASE_DOC ::
## API
### Grid Props
name | type | default | description | required
-- | -- | -- | -- | --
align | String | center | optionsleft/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
external-classes | Array | - | `['t-class']` | N
gutter | Number | - | \- | N
hover | Boolean | false | \- | N
theme | String | default | optionsdefault/card | N
### GridItem Props
name | type | default | description | required
-- | -- | -- | -- | --
badge-props | Object | null | Typescript`BadgeProps`[Badge API Documents](./badge?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/grid-item/type.ts) | N
description | String / Slot | - | \- | N
external-classes | Array | - | `['t-class', 't-class-image', 't-class-text', 't-class-description']` | N
icon | String / Object | - | \- | N
image | String / Slot | - | \- | N
image-props | Object | - | \- | N
jump-type | String | navigate-to | optionsredirect-to/switch-tab/relaunch/navigate-to | N
layout | String | vertical | optionsvertical/horizontal | N
text | String / Slot | - | \- | N
url | String | - | \- | N