UNPKG

mr-component

Version:
388 lines (384 loc) 8.73 kB
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const VantImageMeta: IPublicTypeComponentMetadata = { "componentName": "VantImage", "title": "VantImage", "docUrl": "", "screenshot": "", "devMode": "proCode", "npm": { "package": "mr-component", "version": "0.0.4", "exportName": "VantImage", "main": "src/index.tsx", "destructuring": true, "subName": "" }, "configure": { "props": [ { "title": { "label": { "type": "i18n", "en-US": "src", "zh-CN": "src" } }, "name": "src", "setter": { "componentName": "StringSetter", "isRequired": false, "initialValue": "" } }, { "title": { "label": { "type": "i18n", "en-US": "alt", "zh-CN": "alt" } }, "name": "alt", "setter": { "componentName": "StringSetter", "isRequired": false, "initialValue": "" } }, { "title": { "label": { "type": "i18n", "en-US": "width", "zh-CN": "width" } }, "name": "width", "setter": { "componentName": "MixedSetter", "props": { "setters": [ { "componentName": "StringSetter", "isRequired": false, "initialValue": "" }, { "componentName": "NumberSetter", "isRequired": false, "initialValue": 0 } ] } } }, { "title": { "label": { "type": "i18n", "en-US": "height", "zh-CN": "height" } }, "name": "height", "setter": { "componentName": "MixedSetter", "props": { "setters": [ { "componentName": "StringSetter", "isRequired": false, "initialValue": "" }, { "componentName": "NumberSetter", "isRequired": false, "initialValue": 0 } ] } } }, { "title": { "label": { "type": "i18n", "en-US": "fit", "zh-CN": "fit" } }, "name": "fit", "setter": { "componentName": "SelectSetter", "props": { "dataSource": [ { "label": "contain", "value": "contain" }, { "label": "cover", "value": "cover" }, { "label": "fill", "value": "fill" }, { "label": "none", "value": "none" }, { "label": "scale-down", "value": "scale-down" } ], "options": [ { "label": "contain", "value": "contain" }, { "label": "cover", "value": "cover" }, { "label": "fill", "value": "fill" }, { "label": "none", "value": "none" }, { "label": "scale-down", "value": "scale-down" } ] }, "initialValue": "contain" } }, { "title": { "label": { "type": "i18n", "en-US": "round", "zh-CN": "round" } }, "name": "round", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, { "title": { "label": { "type": "i18n", "en-US": "radius", "zh-CN": "radius" } }, "name": "radius", "setter": { "componentName": "MixedSetter", "props": { "setters": [ { "componentName": "StringSetter", "isRequired": false, "initialValue": "" }, { "componentName": "NumberSetter", "isRequired": false, "initialValue": 0 } ] } } }, { "title": { "label": { "type": "i18n", "en-US": "lazyLoad", "zh-CN": "lazyLoad" } }, "name": "lazyLoad", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, { "title": { "label": { "type": "i18n", "en-US": "showError", "zh-CN": "showError" } }, "name": "showError", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, { "title": { "label": { "type": "i18n", "en-US": "showLoading", "zh-CN": "showLoading" } }, "name": "showLoading", "setter": { "componentName": "BoolSetter", "isRequired": false, "initialValue": false } }, { "title": { "label": { "type": "i18n", "en-US": "errorIcon", "zh-CN": "errorIcon" } }, "name": "errorIcon", "setter": { "componentName": "SlotSetter", "props": { "mode": "node" }, "isRequired": false, "initialValue": { "type": "JSSlot", "value": [] } } }, { "title": { "label": { "type": "i18n", "en-US": "loadingIcon", "zh-CN": "loadingIcon" } }, "name": "loadingIcon", "setter": { "componentName": "SlotSetter", "props": { "mode": "node" }, "isRequired": false, "initialValue": { "type": "JSSlot", "value": [] } } }, { "title": { "label": { "type": "i18n", "en-US": "ref", "zh-CN": "ref" } }, "name": "ref", "setter": { "componentName": "MixedSetter", "props": { "setters": [ { "componentName": "FunctionSetter" }, { "componentName": "ObjectSetter", "props": { "config": { "extraSetter": { "componentName": "MixedSetter", "isRequired": false, "props": {} } } }, "isRequired": false, "initialValue": {} } ] } } }, { "title": { "label": { "type": "i18n", "en-US": "key", "zh-CN": "key" } }, "name": "key", "setter": { "componentName": "MixedSetter", "props": { "setters": [ { "componentName": "StringSetter", "isRequired": false, "initialValue": "" }, { "componentName": "NumberSetter", "isRequired": false, "initialValue": 0 } ] } } } ], "supports": { "events": [ { "name": "onClick" }, { "name": "onLoad" }, { "name": "onError" } ], "style": true, "className": true }, "component": {} } }; const snippets: IPublicTypeSnippet[] = [ { "title": "VantImage", "screenshot": "", "schema": { "componentName": "VantImage", "props": {} } } ]; export default { ...VantImageMeta, snippets };