@ywfe/materials-design
Version:
YwDesign for lowcode
71 lines (67 loc) • 1.6 kB
text/typescript
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
import { IPublicTypeSnippetMore } from '../_base';
const YwPlatformIconMeta: IPublicTypeComponentMetadata = {
componentName: 'YwPlatformWithIcon',
title: 'YwPlatformWithIcon',
group: '基础组件',
category: '展示',
docUrl: '',
screenshot: '',
devMode: 'proCode',
npm: {
package: '@ywfe/materials-design',
version: '0.1.0',
exportName: 'YwPlatformWithIcon',
main: 'src/index.tsx',
destructuring: true,
subName: '',
},
configure: {
props: [
{
title: {
label: 'platform',
tip: 'platform | 平台',
},
name: 'platform',
setter: {
componentName: 'NumberSetter',
isRequired: true,
initialValue: 2,
},
},
{
title: {
label: 'accountName',
tip: 'accountName | 账号名称',
},
name: 'accountName',
setter: {
componentName: 'StringSetter',
isRequired: true,
initialValue: '遥望X27超市',
},
},
],
supports: {
className: true,
style: true,
},
component: {},
},
};
const snippets: IPublicTypeSnippetMore[] = [
{
title: '平台-主播账号',
svgId: 'icon-pingtaizhubozhanghao',
screenshot: 'https://yw-fed-static.oss-cn-hangzhou.aliyuncs.com/诗橙/platformwithicon',
schema: {
componentName: 'YwPlatformWithIcon',
props: {},
},
},
];
export default {
...YwPlatformIconMeta,
snippets,
};