syber-lowcode-business-materials
Version:
syber-lowcode-business-materials
65 lines (61 loc) • 1.32 kB
text/typescript
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
const MonitoringCardMeta: IPublicTypeComponentMetadata = {
priority: 9,
componentName: "MonitoringCard",
title: "数字人监控卡片",
group: '高级组件',
category: '通用',
docUrl: "",
screenshot: "",
configure: {
props: [
{
title: {
label: "数字人身份证号"
},
name: "deviceId",
supportVariable: true,
setter: {
componentName: "StringSetter",
props: {
placeholder: "填写数字人身份证号",
},
}
},
{
title: {
label: "容器宽度"
},
name: "width",
supportVariable: true,
setter: {
componentName: "NumberSetter",
props: {
min: 50,
max: 500,
step: 1,
},
initialValue: 172,
}
}
],
supports: {
style: false
},
component: {}
}
};
const snippets: IPublicTypeSnippet[] = [
{
title: "数字人监控卡片",
screenshot: require('./__screenshots__/monitoring-card.png'),
schema: {
componentName: "MonitoringCard",
props: {}
}
}
];
export default {
...MonitoringCardMeta,
snippets
};