@cloudbase/weda-ui 3.7.10 → 3.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/components/wd-form-arr.d.ts +9 -1
- package/dist/configs/components/wd-form-arr.js +79 -3
- package/dist/configs/index.d.ts +14 -2
- package/dist/configs/type-utils/type-form.d.ts +4 -0
- package/dist/configs/type-utils/type-form.js +20 -0
- package/dist/style/index.scss +1 -1
- package/dist/web/components/form/select/dropdown-select/index.js +3 -3
- package/dist/web/components/richTextView/index.js +6 -1
- package/dist/web/components/wd-cascader/cascader.h5.js +9 -6
- package/dist/web/components/wd-cascader/cascader.js +7 -4
- package/dist/web/components/wd-cascader/utils.js +12 -8
- package/dist/web/components/wd-form-obj/base-form-obj.js +2 -1
- package/dist/web/components/wd-input-number/wd-input-number.js +3 -1
- package/package.json +1 -1
|
@@ -17,6 +17,8 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
17
17
|
pattern: string;
|
|
18
18
|
}[];
|
|
19
19
|
}>;
|
|
20
|
+
mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
21
|
+
addDefaultValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
20
22
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
21
23
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
22
24
|
}>;
|
|
@@ -40,6 +42,8 @@ declare const config: {
|
|
|
40
42
|
pattern: string;
|
|
41
43
|
}[];
|
|
42
44
|
}>;
|
|
45
|
+
mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
46
|
+
addDefaultValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
43
47
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
44
48
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
45
49
|
}>;
|
|
@@ -174,7 +178,11 @@ declare const config: {
|
|
|
174
178
|
readonly __k: "init-name-with-id";
|
|
175
179
|
}, {
|
|
176
180
|
readonly when: "$attached";
|
|
177
|
-
readonly body: "\n
|
|
181
|
+
readonly body: "\n[attributes]\nvalue = [{}]\n\":addDefaultValue\"=\"{}\"\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n width: 100%;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nisRoot = false\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: var(--wd-card-heder-pd-bordered);\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\nsize = \"sm\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n";
|
|
182
|
+
}, {
|
|
183
|
+
readonly when: "mode";
|
|
184
|
+
readonly to: "$children";
|
|
185
|
+
readonly body: string;
|
|
178
186
|
}];
|
|
179
187
|
};
|
|
180
188
|
};
|
|
@@ -3,10 +3,9 @@ import { FORM_ITEM_DATA, FORM_ITEM_META, ItemData, FORM_ITEM_DATA_TITLE, } from
|
|
|
3
3
|
import { getClasses } from '../type-utils/classes';
|
|
4
4
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
5
5
|
const $attached_template = `
|
|
6
|
-
{{#with $self as |$self|}}
|
|
7
6
|
[attributes]
|
|
8
7
|
value = [{}]
|
|
9
|
-
|
|
8
|
+
":addDefaultValue"="{}"
|
|
10
9
|
[[template]]
|
|
11
10
|
component = "Repeater"
|
|
12
11
|
[template.attributes]
|
|
@@ -16,7 +15,7 @@ forItem = 'item_{{$self.id}}'
|
|
|
16
15
|
forIndex = 'index_{{$self.id}}'
|
|
17
16
|
[[template.items]]
|
|
18
17
|
component = "Container"
|
|
19
|
-
scopedStyle = ":scope {\n position: relative;\n}"
|
|
18
|
+
scopedStyle = ":scope {\n position: relative;\n width: 100%;\n}"
|
|
20
19
|
[[template.items.items]]
|
|
21
20
|
component = 'WdFormObj'
|
|
22
21
|
[template.items.items.attributes]
|
|
@@ -81,6 +80,76 @@ component = 'WdText'
|
|
|
81
80
|
scopedStyle = ":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}"
|
|
82
81
|
[template.items.items.items.attributes]
|
|
83
82
|
text = "新增"
|
|
83
|
+
`;
|
|
84
|
+
const $field_template = `
|
|
85
|
+
[attributes]
|
|
86
|
+
value = ['']
|
|
87
|
+
":addDefaultValue"="undefined"
|
|
88
|
+
[[template]]
|
|
89
|
+
component = "Repeater"
|
|
90
|
+
[template.attributes]
|
|
91
|
+
":data" = "($w.{{$self.id}}.value || [])"
|
|
92
|
+
suffix = '{{$self.id}}'
|
|
93
|
+
forItem = 'item_{{$self.id}}'
|
|
94
|
+
forIndex = 'index_{{$self.id}}'
|
|
95
|
+
[[template.items]]
|
|
96
|
+
component = "Container"
|
|
97
|
+
scopedStyle = ":scope {\n display: flex;\n align-items: center;\n width: 100%;\n}"
|
|
98
|
+
[[template.items.items]]
|
|
99
|
+
component = 'WdInput'
|
|
100
|
+
[template.items.items.attributes]
|
|
101
|
+
":name" = "$w.index_{{$self.id}}"
|
|
102
|
+
labelVisible = false
|
|
103
|
+
value = {}
|
|
104
|
+
[[template.items.items]]
|
|
105
|
+
component = 'WdIcon'
|
|
106
|
+
scopedStyle = ":scope {\n color: var(--wd-color-brand);\n margin-left: 10px;\n}"
|
|
107
|
+
[template.items.items.attributes]
|
|
108
|
+
name = "td:delete"
|
|
109
|
+
size = "sm"
|
|
110
|
+
[[template.items.items.listeners]]
|
|
111
|
+
eventName = "tap"
|
|
112
|
+
type = "platform"
|
|
113
|
+
[template.items.items.listeners.handler]
|
|
114
|
+
module = "platform"
|
|
115
|
+
name = "invoke"
|
|
116
|
+
[template.items.items.listeners.handler.params]
|
|
117
|
+
component = "{{$self.id}}"
|
|
118
|
+
method = "remove"
|
|
119
|
+
[template.items.items.listeners.handler.params.params]
|
|
120
|
+
":index" = "$w.index_{{$self.id}}"
|
|
121
|
+
|
|
122
|
+
[[template]]
|
|
123
|
+
component = 'Container'
|
|
124
|
+
scopedStyle = ":scope {\n display: flex;\n align-items: center;\n width: 100%;\n color: var(--wd-color-brand);\n margin-top: 5px;\n}"
|
|
125
|
+
[[template.listeners]]
|
|
126
|
+
eventName = "tap"
|
|
127
|
+
type = "platform"
|
|
128
|
+
[template.listeners.handler]
|
|
129
|
+
module = "platform"
|
|
130
|
+
name = "invoke"
|
|
131
|
+
[template.listeners.handler.params]
|
|
132
|
+
component = "{{$self.id}}"
|
|
133
|
+
method = "add"
|
|
134
|
+
[[template.items]]
|
|
135
|
+
component = 'WdIcon'
|
|
136
|
+
scopedStyle = ":scope{\n margin-right: 5px;\n}"
|
|
137
|
+
[template.items.attributes]
|
|
138
|
+
name = "td:add-circle"
|
|
139
|
+
[[template.items]]
|
|
140
|
+
component = 'WdText'
|
|
141
|
+
scopedStyle = ":scope{\n color: var(--wd-color-brand);\n}"
|
|
142
|
+
[template.items.attributes]
|
|
143
|
+
text = "新增"
|
|
144
|
+
`;
|
|
145
|
+
const $mode_template = `
|
|
146
|
+
{{#with $self as |$self|}}
|
|
147
|
+
{{#if (helper_utils '===' $self.attributes.mode 'obj')}}
|
|
148
|
+
${$attached_template}
|
|
149
|
+
{{else if (helper_utils '===' $self.attributes.mode 'field')}}
|
|
150
|
+
|
|
151
|
+
${$field_template}
|
|
152
|
+
{{/if}}
|
|
84
153
|
{{/with}}
|
|
85
154
|
`;
|
|
86
155
|
// 属性类型定义
|
|
@@ -94,6 +163,8 @@ const data = Type.Partial(Type.Object({
|
|
|
94
163
|
},
|
|
95
164
|
],
|
|
96
165
|
}),
|
|
166
|
+
mode: FORM_ITEM_DATA._modeInFormArr,
|
|
167
|
+
addDefaultValue: FORM_ITEM_DATA._addDefaultValue,
|
|
97
168
|
value: FORM_ITEM_DATA._valueInFormArr,
|
|
98
169
|
size: FORM_ITEM_DATA.size,
|
|
99
170
|
// // 标题
|
|
@@ -189,6 +260,11 @@ const config = defineConfig({
|
|
|
189
260
|
when: '$attached',
|
|
190
261
|
body: $attached_template,
|
|
191
262
|
},
|
|
263
|
+
{
|
|
264
|
+
when: 'mode',
|
|
265
|
+
to: '$children',
|
|
266
|
+
body: $mode_template,
|
|
267
|
+
},
|
|
192
268
|
],
|
|
193
269
|
},
|
|
194
270
|
});
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -1210,6 +1210,8 @@ export declare const components: {
|
|
|
1210
1210
|
pattern: string;
|
|
1211
1211
|
}[];
|
|
1212
1212
|
}>;
|
|
1213
|
+
mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
1214
|
+
addDefaultValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
1213
1215
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
1214
1216
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
1215
1217
|
}>;
|
|
@@ -1344,7 +1346,11 @@ export declare const components: {
|
|
|
1344
1346
|
readonly __k: "init-name-with-id";
|
|
1345
1347
|
}, {
|
|
1346
1348
|
readonly when: "$attached";
|
|
1347
|
-
readonly body: "\n
|
|
1349
|
+
readonly body: "\n[attributes]\nvalue = [{}]\n\":addDefaultValue\"=\"{}\"\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n width: 100%;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nisRoot = false\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: var(--wd-card-heder-pd-bordered);\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\nsize = \"sm\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n";
|
|
1350
|
+
}, {
|
|
1351
|
+
readonly when: "mode";
|
|
1352
|
+
readonly to: "$children";
|
|
1353
|
+
readonly body: string;
|
|
1348
1354
|
}];
|
|
1349
1355
|
};
|
|
1350
1356
|
};
|
|
@@ -21263,6 +21269,8 @@ declare const _default: {
|
|
|
21263
21269
|
pattern: string;
|
|
21264
21270
|
}[];
|
|
21265
21271
|
}>;
|
|
21272
|
+
mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
21273
|
+
addDefaultValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
21266
21274
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
21267
21275
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
21268
21276
|
}>;
|
|
@@ -21397,7 +21405,11 @@ declare const _default: {
|
|
|
21397
21405
|
readonly __k: "init-name-with-id";
|
|
21398
21406
|
}, {
|
|
21399
21407
|
readonly when: "$attached";
|
|
21400
|
-
readonly body: "\n
|
|
21408
|
+
readonly body: "\n[attributes]\nvalue = [{}]\n\":addDefaultValue\"=\"{}\"\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n width: 100%;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nisRoot = false\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: var(--wd-card-heder-pd-bordered);\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\nsize = \"sm\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n";
|
|
21409
|
+
}, {
|
|
21410
|
+
readonly when: "mode";
|
|
21411
|
+
readonly to: "$children";
|
|
21412
|
+
readonly body: string;
|
|
21401
21413
|
}];
|
|
21402
21414
|
};
|
|
21403
21415
|
};
|
|
@@ -69,6 +69,8 @@ export declare const FORM_ITEM_DATA: {
|
|
|
69
69
|
_valueInFormDetail: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
|
|
70
70
|
_valueInFormObj: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>;
|
|
71
71
|
_valueInFormArr: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
|
|
72
|
+
_modeInFormArr: import("@sinclair/typebox").TUnsafe<string>;
|
|
73
|
+
_addDefaultValue: import("@sinclair/typebox").TUnknown;
|
|
72
74
|
_valueInUpload: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
73
75
|
_valueInRegion: import("@sinclair/typebox").TString;
|
|
74
76
|
_valueInDate: import("@sinclair/typebox").TAny;
|
|
@@ -469,6 +471,8 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
|
469
471
|
_valueInFormDetail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
470
472
|
_valueInFormObj: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
|
|
471
473
|
_valueInFormArr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
474
|
+
_modeInFormArr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
475
|
+
_addDefaultValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
472
476
|
_valueInUpload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
473
477
|
_valueInRegion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
474
478
|
_valueInDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
@@ -593,6 +593,26 @@ export const FORM_ITEM_DATA = {
|
|
|
593
593
|
'x-component': 'jsontext',
|
|
594
594
|
'x-category': X_CATEGORY.COMMON,
|
|
595
595
|
}),
|
|
596
|
+
_modeInFormArr: Type.StringEnum({
|
|
597
|
+
title: '嵌套表单项类型',
|
|
598
|
+
type: 'string',
|
|
599
|
+
'x-runtime-default': 'obj',
|
|
600
|
+
enum: [
|
|
601
|
+
{ label: '对象', value: 'obj' },
|
|
602
|
+
{ label: '字段', value: 'field' },
|
|
603
|
+
],
|
|
604
|
+
'x-category': X_CATEGORY.COMMON,
|
|
605
|
+
'x-component': 'string',
|
|
606
|
+
'x-index': 21,
|
|
607
|
+
}),
|
|
608
|
+
_addDefaultValue: Type.Unknown({
|
|
609
|
+
title: '新增表单项初始值',
|
|
610
|
+
type: 'string',
|
|
611
|
+
'x-runtime-default': '',
|
|
612
|
+
'x-category': X_CATEGORY.COMMON,
|
|
613
|
+
'x-component': 'string',
|
|
614
|
+
'x-index': 22,
|
|
615
|
+
}),
|
|
596
616
|
_valueInUpload: Type.Array(Type.String(), {
|
|
597
617
|
type: 'array',
|
|
598
618
|
title: '图片值',
|