UNPKG

oadp-material

Version:
239 lines (231 loc) 6.42 kB
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const OadpCardMeta: IPublicTypeComponentMetadata = { "componentName": "OadpCard", "title": "卡片", "docUrl": "", "category": "高级组件", "group": "低代码组件", "screenshot": "https://img.alicdn.com/imgextra/i4/O1CN01E2PcPW1bKJV5QUVMg_!!6000000003446-55-tps-50-50.svg", "devMode": "proCode", "npm": { "package": "oadp-material", "version": "{{version}}", "exportName": "OadpCard", "main": "src/index.tsx", "destructuring": true, "subName": "" }, "configure": { "props": [ { "name": "media", "title": { "label": { "type": "i18n", "zh_CN": "媒体资源", "en_US": "media", }, "tip": { "type": "i18n", "zh_CN": "属性: media | 说明: 媒体资源", "en_US": "prop: media | description: media content", }, }, "setter": "StringSetter", "description": "媒体资源", }, { "name": "title", "title": { "label": { "type": "i18n", "zh_CN": "标题", "en_US": "title", }, "tip": { "type": "i18n", "zh_CN": "属性: title | 说明: 标题", "en_US": "prop: title | description: title content", }, }, "setter": "StringSetter", "description": "标题", }, { "name": "subTitle", "title": { "label": { "type": "i18n", "zh_CN": "提示", "en_US": "subTitle", }, "tip": { "type": "i18n", "zh_CN": "属性: subTitle | 说明: 提示", "en_US": "prop: subTitle | description: subTitle", }, }, "setter": "StringSetter" }, { "name": "actions", "title": { "label": { "type": "i18n", "zh_CN": "操作", "en_US": "actions", }, "tip": { "type": "i18n", "zh_CN": "属性: actions | 说明: 操作", "en_US": "prop: actions | description: actions", }, }, "setter": "StringSetter" }, { "name": "showTitleBullet", "title": { "label": { "type": "i18n", "zh_CN": "标题符号", "en_US": "showTitleBullet", }, "tip": { "type": "i18n", "zh_CN": "属性: showTitleBullet | 说明: 标题符号", "en_US": "prop: showTitleBullet | description: showTitleBullet", }, }, "description": "标题符号", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, { "name": "showHeadDivider", "title": { "label": { "type": "i18n", "zh_CN": "标题分割线", "en_US": "showHeadDivider", }, "tip": { "type": "i18n", "zh_CN": "属性: showHeadDivider | 说明: 标题分割线", "en_US": "prop: showHeadDivider | description: showHeadDivider", }, }, "description": "标题分割线", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, { "name": "contentHeight", "title": { "label": { "type": "i18n", "zh_CN": "内容高度", "en_US": "contentHeight", }, "tip": { "type": "i18n", "zh_CN": "属性: contentHeight | 说明: 内容高度", "en_US": "prop: contentHeight | description: contentHeight Value", }, }, "description": "内容高度", "setter": "NumberSetter", }, { "name": "extra", "title": { "label": { "type": "i18n", "zh_CN": "默认值", "en_US": "extra", }, "tip": { "type": "i18n", "zh_CN": "属性: extra | 说明: 默认值", "en_US": "prop: extra | description: extra Value", }, }, "setter": "StringSetter", "supportVariable": true, "description": "默认值", }, { "name": "free", "title": { "label": { "type": "i18n", "zh_CN": "自由模式", "en_US": "free", }, "tip": { "type": "i18n", "zh_CN": "属性: free | 说明: 自由模式,开启后card 将使用子组件配合使用, 设置此项后 title, subtitle, 等等属性都将失效", "en_US": "prop: free | description: free", }, }, "description": "自由模式", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, { "name": "hasBorder", "title": { "label": { "type": "i18n", "zh_CN": "显示边框", "en_US": "hasBorder", }, "tip": { "type": "i18n", "zh_CN": "属性: hasBorder | 说明: 显示边框,开启后card 将使用子组件配合使用, 设置此项后 title, subtitle, 等等属性都将失效", "en_US": "prop: hasBorder | description: hasBorder", }, }, "description": "显示边框", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, ], "supports": { "style": true }, "component": { "isContainer": true } } }; const snippets: IPublicTypeSnippet[] = [ { "title": "卡片", "screenshot": "https://img.alicdn.com/imgextra/i4/O1CN01E2PcPW1bKJV5QUVMg_!!6000000003446-55-tps-50-50.svg", "schema": { "componentName": "OadpCard", "props": { "title": "卡片标题", "subTitle": "", "extra": "", }, } } ]; export default { ...OadpCardMeta, snippets };