form-tdesigner
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
41 lines (37 loc) • 674 B
JavaScript
import { localeOptions, localeProps } from "../../utils";
const label = "卡片";
const name = "tCard";
export default {
menu: "layout",
icon: "icon-card",
label,
name,
drag: true,
inside: false,
mask: false,
rule({ t }) {
return {
type: name,
props: {
title:'标题'
},
style: {
width: "100%",
},
children: [],
};
},
props(_, { t }) {
return localeProps(t, name + ".props", [
{
type: "input",
field: "title",
},
{
type: "switch",
field: "shadow",
value: "false",
},
]);
},
};