Card
容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | Root div 的 className | |
| style | object | Root div 的 style | ||
| variant | 'pc' | 'mobile' | 'pc' | 桌面端样式 pc, 移动端样式 mobile | |
| size | 'small' | 'default' | 'default' | Card 的尺寸 | |
| title | string | Card 的标题 | ||
| titleDesc | string | Card 的描述 | ||
| style | string | Card 的描述 | ||
| titleStyle | object | Card 标题 div 的 style | ||
| contentStyle | object | Card 内容 div 的 style | ||
| suppressMargin | bool | false | 是否禁止 Card 的外边距 |
所有其余 componentsProps 将会被传给组件根元素(div)。
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | 组件的根 DOM 元素 |