|
@@ -21,14 +21,15 @@ import Cmp from "./components/CustomComponent/index.vue";
|
|
|
|
|
|
|
|
|
KFormDesign.setFormDesignConfig({
|
|
|
- title: "测试自定义字段",
|
|
|
+ title: "数据字段",
|
|
|
list: [
|
|
|
{
|
|
|
- type: "demo",
|
|
|
+ type: "input",
|
|
|
label: "自定义组件",
|
|
|
icon: "icon-gallery",
|
|
|
component: Cmp,
|
|
|
options: {
|
|
|
+ type:'CustomComponents',
|
|
|
defaultValue: undefined,
|
|
|
multiple: false,
|
|
|
disabled: false,
|
|
@@ -45,7 +46,61 @@ KFormDesign.setFormDesignConfig({
|
|
|
message: "必填项"
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "当前用户",
|
|
|
+ icon: "icon-write",
|
|
|
+ options: {
|
|
|
+ type: "CurrentUser",
|
|
|
+ width: "100%",
|
|
|
+ defaultValue: "",
|
|
|
+ placeholder: "请输入",
|
|
|
+ clearable: false,
|
|
|
+ maxLength: null,
|
|
|
+ addonBefore: "",
|
|
|
+ addonAfter: "",
|
|
|
+ hidden: false,
|
|
|
+ disabled: true
|
|
|
+ },
|
|
|
+ model: "",
|
|
|
+ key: "",
|
|
|
+ help: "",
|
|
|
+ rules: [
|
|
|
+
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "必填项"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "当前部门",
|
|
|
+ icon: "icon-write",
|
|
|
+ options: {
|
|
|
+ type: "CurrentDepartment",
|
|
|
+ width: "100%",
|
|
|
+ defaultValue: "",
|
|
|
+ placeholder: "请输入",
|
|
|
+ clearable: false,
|
|
|
+ maxLength: null,
|
|
|
+ addonBefore: "",
|
|
|
+ addonAfter: "",
|
|
|
+ hidden: false,
|
|
|
+ disabled: true
|
|
|
+ },
|
|
|
+ model: "",
|
|
|
+ key: "",
|
|
|
+ help: "",
|
|
|
+ rules: [
|
|
|
+
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "必填项"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
],
|
|
|
uploadFile: "",
|
|
|
uploadImage: "",
|