UNPKG

snowy-designer

Version:

基于Epic-Designer-Pro版本的设计器,可视化开发页面表单

147 lines (146 loc) 3.12 kB
const e = { bindModel: "value", component: async () => (await import("naive-ui")).NInputNumber, config: { attribute: [ { field: "field", label: "字段名", type: "EpField" }, { field: "label", label: "标题", type: "input" }, { field: "componentProps.defaultValue", label: "默认值", type: "number" }, { field: "componentProps.placeholder", label: "占位内容", type: "input" }, { componentProps: { clearable: !0, options: [ { label: "极小", value: "tiny" }, { label: "小型", value: "small" }, { label: "中等", value: "medium" }, { label: "大号", value: "large" } ], placeholder: "请选择" }, field: "componentProps.size", label: "尺寸", type: "select" }, { componentProps: { clearable: !0, options: [ { label: "both", value: "both" }, { label: "right", value: "right" } ], placeholder: "请选择" }, field: "componentProps.buttonPlacement", label: "控制按钮位置", type: "select" }, { componentProps: { placeholder: "请输入" }, field: "componentProps.max", label: "最大值", type: "number" }, { componentProps: { placeholder: "请输入" }, field: "componentProps.min", label: "最小值", type: "number" }, { componentProps: { placeholder: "请输入" }, field: "componentProps.step", label: "步长", type: "number" }, { componentProps: { placeholder: "请输入" }, field: "componentProps.precision", label: "精度", type: "number" }, { field: "componentProps.clearable", label: "可清空", type: "switch" }, { field: "componentProps.disabled", label: "禁用", type: "switch" }, { field: "componentProps.hidden", label: "隐藏", type: "switch" }, { componentProps: { ruleType: "number" }, description: "校验规则需要配合表单使用", field: "rules", label: "表单校验", layout: "vertical", type: "ERuleEditor" } ] }, defaultSchema: { componentProps: { placeholder: "请输入" }, field: "number", input: !0, label: "数字输入框", type: "number" }, groupName: "表单", icon: "icon--epic--123-rounded", sort: 710 }; export { e as default };