@fecp/designer 5.5.69 → 5.5.71
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/es/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +131 -129
- package/es/designer/src/packages/form/property/widgets.vue.mjs +1 -5
- package/es/designer.css +128 -134
- package/es/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.mjs +32 -11
- package/es/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.mjs +1 -1
- package/es/packages/mobile/src/index.vue.mjs +29 -34
- package/es/packages/mobile/src/page.vue.mjs +39 -25
- package/es/packages/mobile/src/utils/pageHistory.mjs +17 -10
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +2 -2
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +2 -2
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +130 -128
- package/lib/designer/src/packages/form/property/widgets.vue.js +1 -5
- package/lib/designer.css +128 -134
- package/lib/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.js +32 -11
- package/lib/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.js +1 -1
- package/lib/packages/mobile/src/index.vue.js +29 -34
- package/lib/packages/mobile/src/page.vue.js +38 -24
- package/lib/packages/mobile/src/utils/pageHistory.js +17 -10
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +2 -2
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +2 -2
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
19
19
|
/* empty css */
|
|
20
20
|
import "../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
21
21
|
import "../../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
|
|
22
|
-
import { getCurrentInstance, computed, createElementBlock, openBlock, createBlock, createCommentVNode, createSlots, withCtx, normalizeProps, mergeProps, createElementVNode, toDisplayString, createVNode, createTextVNode,
|
|
22
|
+
import { getCurrentInstance, computed, createElementBlock, openBlock, createBlock, createCommentVNode, createSlots, withCtx, Fragment, normalizeProps, mergeProps, createElementVNode, toDisplayString, createVNode, createTextVNode, renderList, unref } from "vue";
|
|
23
23
|
import { useOptions } from "../../../utils/optionLoader.mjs";
|
|
24
24
|
/* empty css */
|
|
25
25
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -153,136 +153,138 @@ const _sfc_main = {
|
|
|
153
153
|
class: "preview-form-item"
|
|
154
154
|
}, createSlots({
|
|
155
155
|
default: withCtx(() => [
|
|
156
|
-
__props.componentData.
|
|
157
|
-
__props.componentData.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
__props.componentData.labelMode != "label" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
157
|
+
__props.componentData.fieldType == "text" ? (openBlock(), createBlock(_component_el_input, normalizeProps(mergeProps({ key: 0 }, commProps.value)), createSlots({ _: 2 }, [
|
|
158
|
+
__props.componentData.prefix ? {
|
|
159
|
+
name: "prefix",
|
|
160
|
+
fn: withCtx(() => [
|
|
161
|
+
createElementVNode("span", _hoisted_4, toDisplayString(__props.componentData.prefix), 1)
|
|
162
|
+
]),
|
|
163
|
+
key: "0"
|
|
164
|
+
} : void 0,
|
|
165
|
+
__props.componentData.suffix ? {
|
|
166
|
+
name: "suffix",
|
|
167
|
+
fn: withCtx(() => [
|
|
168
|
+
createElementVNode("span", _hoisted_5, toDisplayString(__props.componentData.suffix), 1)
|
|
169
|
+
]),
|
|
170
|
+
key: "1"
|
|
171
|
+
} : void 0,
|
|
172
|
+
!__props.componentData.disabled && __props.componentData.suffixButton && __props.componentData.suffixButton != "none" ? {
|
|
173
|
+
name: "append",
|
|
174
|
+
fn: withCtx(() => [
|
|
175
|
+
createVNode(_component_el_button, { class: "suffixButton" }, {
|
|
176
|
+
default: withCtx(() => [
|
|
177
|
+
createTextVNode(toDisplayString(__props.componentData.suffixButton == "dialog" ? __props.componentData.suffixDialogName ? __props.componentData.suffixDialogName : "选择" : __props.componentData.suffixButtonName), 1)
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})
|
|
181
|
+
]),
|
|
182
|
+
key: "2"
|
|
183
|
+
} : void 0
|
|
184
|
+
]), 1040)) : __props.componentData.fieldType == "userSelect" || __props.componentData.fieldType == "roleSelect" || __props.componentData.fieldType == "orgSelect" ? (openBlock(), createBlock(_component_el_input, normalizeProps(mergeProps({ key: 1 }, commProps.value)), createSlots({ _: 2 }, [
|
|
185
|
+
!__props.componentData.readOnly && !__props.componentData.disabled ? {
|
|
186
|
+
name: "append",
|
|
187
|
+
fn: withCtx(() => [
|
|
188
|
+
createVNode(_component_el_button, { class: "suffixButton" }, {
|
|
189
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
190
|
+
createTextVNode("选择")
|
|
191
|
+
])),
|
|
192
|
+
_: 1
|
|
193
|
+
})
|
|
194
|
+
]),
|
|
195
|
+
key: "0"
|
|
196
|
+
} : void 0
|
|
197
|
+
]), 1040)) : __props.componentData.fieldType == "textarea" ? (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
198
|
+
key: 2,
|
|
199
|
+
rows: 4,
|
|
200
|
+
type: "textarea"
|
|
201
|
+
}, commProps.value, {
|
|
202
|
+
resize: "none",
|
|
203
|
+
style: { "height": "100%" }
|
|
204
|
+
}), null, 16)) : createCommentVNode("", true),
|
|
205
|
+
__props.componentData.fieldType == "number" ? (openBlock(), createBlock(_component_el_input, mergeProps({ key: 3 }, commProps.value, { controls: false }), createSlots({ _: 2 }, [
|
|
206
|
+
__props.componentData.prefix ? {
|
|
207
|
+
name: "prefix",
|
|
208
|
+
fn: withCtx(() => [
|
|
209
|
+
createElementVNode("span", _hoisted_6, toDisplayString(__props.componentData.prefix), 1)
|
|
210
|
+
]),
|
|
211
|
+
key: "0"
|
|
212
|
+
} : void 0,
|
|
213
|
+
__props.componentData.suffix ? {
|
|
214
|
+
name: "suffix",
|
|
215
|
+
fn: withCtx(() => [
|
|
216
|
+
createElementVNode("span", _hoisted_7, toDisplayString(__props.componentData.suffix), 1)
|
|
217
|
+
]),
|
|
218
|
+
key: "1"
|
|
219
|
+
} : void 0,
|
|
220
|
+
!__props.componentData.disabled && __props.componentData.suffixButton && __props.componentData.suffixButton != "none" ? {
|
|
221
|
+
name: "append",
|
|
222
|
+
fn: withCtx(() => [
|
|
223
|
+
createVNode(_component_el_button, { class: "suffixButton" }, {
|
|
224
|
+
default: withCtx(() => [
|
|
225
|
+
createTextVNode(toDisplayString(__props.componentData.suffixButton == "dialog" ? __props.componentData.suffixDialogName ? __props.componentData.suffixDialogName : "选择" : __props.componentData.suffixButtonName), 1)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
key: "2"
|
|
231
|
+
} : void 0
|
|
232
|
+
]), 1040)) : __props.componentData.fieldType == "date" ? (openBlock(), createBlock(_component_el_date_picker, mergeProps({ key: 4 }, commProps.value, {
|
|
233
|
+
type: __props.componentData.dateType || "date",
|
|
234
|
+
format: computedFormat.value,
|
|
235
|
+
style: { "width": "100%" }
|
|
236
|
+
}), null, 16, ["type", "format"])) : __props.componentData.fieldType == "cascader" || __props.componentData.fieldType == "area" || __props.componentData.fieldType == "industry" ? (openBlock(), createBlock(_component_el_cascader, mergeProps({ key: 5 }, commProps.value, {
|
|
237
|
+
options: cascaderOptions.value,
|
|
238
|
+
props: cascaderPropsDataValue.value,
|
|
239
|
+
"show-all-levels": __props.componentData.showFullPath,
|
|
240
|
+
style: { "width": "100%" }
|
|
241
|
+
}), null, 16, ["options", "props", "show-all-levels"])) : __props.componentData.fieldType == "select" || __props.componentData.fieldType == "multipleSelection" ? (openBlock(), createBlock(_component_el_select, mergeProps({ key: 6 }, commProps.value, {
|
|
242
|
+
multiple: __props.componentData.fieldType == "multipleSelection"
|
|
243
|
+
}), {
|
|
244
|
+
default: withCtx(() => [
|
|
245
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (option) => {
|
|
246
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
247
|
+
key: option.value,
|
|
248
|
+
label: option.label,
|
|
249
|
+
value: option.value
|
|
250
|
+
}, null, 8, ["label", "value"]);
|
|
251
|
+
}), 128))
|
|
161
252
|
]),
|
|
162
|
-
|
|
163
|
-
} :
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
253
|
+
_: 1
|
|
254
|
+
}, 16, ["multiple"])) : __props.componentData.fieldType == "radio" ? (openBlock(), createBlock(_component_el_radio_group, normalizeProps(mergeProps({ key: 7 }, commProps.value)), {
|
|
255
|
+
default: withCtx(() => [
|
|
256
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (option) => {
|
|
257
|
+
return openBlock(), createBlock(_component_el_radio, {
|
|
258
|
+
key: option.value,
|
|
259
|
+
value: option.value
|
|
260
|
+
}, {
|
|
261
|
+
default: withCtx(() => [
|
|
262
|
+
createTextVNode(toDisplayString(option.label), 1)
|
|
263
|
+
]),
|
|
264
|
+
_: 2
|
|
265
|
+
}, 1032, ["value"]);
|
|
266
|
+
}), 128))
|
|
168
267
|
]),
|
|
169
|
-
|
|
170
|
-
} :
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
268
|
+
_: 1
|
|
269
|
+
}, 16)) : __props.componentData.fieldType == "checkbox" ? (openBlock(), createBlock(_component_el_checkbox_group, normalizeProps(mergeProps({ key: 8 }, commProps.value)), {
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (option) => {
|
|
272
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
273
|
+
key: option.value,
|
|
274
|
+
value: option.value
|
|
275
|
+
}, {
|
|
276
|
+
default: withCtx(() => [
|
|
277
|
+
createTextVNode(toDisplayString(option.label), 1)
|
|
278
|
+
]),
|
|
279
|
+
_: 2
|
|
280
|
+
}, 1032, ["value"]);
|
|
281
|
+
}), 128))
|
|
180
282
|
]),
|
|
181
|
-
|
|
182
|
-
} :
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
fn: withCtx(() => [
|
|
187
|
-
createVNode(_component_el_button, { class: "suffixButton" }, {
|
|
188
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
189
|
-
createTextVNode("选择")
|
|
190
|
-
])),
|
|
191
|
-
_: 1
|
|
192
|
-
})
|
|
193
|
-
]),
|
|
194
|
-
key: "0"
|
|
195
|
-
} : void 0
|
|
196
|
-
]), 1040)) : __props.componentData.fieldType == "textarea" ? (openBlock(), createBlock(_component_el_input, mergeProps({
|
|
197
|
-
key: 2,
|
|
198
|
-
rows: 4,
|
|
199
|
-
type: "textarea"
|
|
200
|
-
}, commProps.value, {
|
|
201
|
-
resize: "none",
|
|
202
|
-
style: { "height": "100%" }
|
|
203
|
-
}), null, 16)) : createCommentVNode("", true),
|
|
204
|
-
__props.componentData.fieldType == "number" ? (openBlock(), createBlock(_component_el_input, mergeProps({ key: 3 }, commProps.value, { controls: false }), createSlots({ _: 2 }, [
|
|
205
|
-
__props.componentData.prefix ? {
|
|
206
|
-
name: "prefix",
|
|
207
|
-
fn: withCtx(() => [
|
|
208
|
-
createElementVNode("span", _hoisted_6, toDisplayString(__props.componentData.prefix), 1)
|
|
209
|
-
]),
|
|
210
|
-
key: "0"
|
|
211
|
-
} : void 0,
|
|
212
|
-
__props.componentData.suffix ? {
|
|
213
|
-
name: "suffix",
|
|
214
|
-
fn: withCtx(() => [
|
|
215
|
-
createElementVNode("span", _hoisted_7, toDisplayString(__props.componentData.suffix), 1)
|
|
216
|
-
]),
|
|
217
|
-
key: "1"
|
|
218
|
-
} : void 0,
|
|
219
|
-
!__props.componentData.disabled && __props.componentData.suffixButton && __props.componentData.suffixButton != "none" ? {
|
|
220
|
-
name: "append",
|
|
221
|
-
fn: withCtx(() => [
|
|
222
|
-
createVNode(_component_el_button, { class: "suffixButton" }, {
|
|
223
|
-
default: withCtx(() => [
|
|
224
|
-
createTextVNode(toDisplayString(__props.componentData.suffixButton == "dialog" ? __props.componentData.suffixDialogName ? __props.componentData.suffixDialogName : "选择" : __props.componentData.suffixButtonName), 1)
|
|
225
|
-
]),
|
|
226
|
-
_: 1
|
|
227
|
-
})
|
|
228
|
-
]),
|
|
229
|
-
key: "2"
|
|
230
|
-
} : void 0
|
|
231
|
-
]), 1040)) : __props.componentData.fieldType == "date" ? (openBlock(), createBlock(_component_el_date_picker, mergeProps({ key: 4 }, commProps.value, {
|
|
232
|
-
type: __props.componentData.dateType || "date",
|
|
233
|
-
format: computedFormat.value,
|
|
234
|
-
style: { "width": "100%" }
|
|
235
|
-
}), null, 16, ["type", "format"])) : __props.componentData.fieldType == "cascader" || __props.componentData.fieldType == "area" || __props.componentData.fieldType == "industry" ? (openBlock(), createBlock(_component_el_cascader, mergeProps({ key: 5 }, commProps.value, {
|
|
236
|
-
options: cascaderOptions.value,
|
|
237
|
-
props: cascaderPropsDataValue.value,
|
|
238
|
-
"show-all-levels": __props.componentData.showFullPath,
|
|
239
|
-
style: { "width": "100%" }
|
|
240
|
-
}), null, 16, ["options", "props", "show-all-levels"])) : __props.componentData.fieldType == "select" || __props.componentData.fieldType == "multipleSelection" ? (openBlock(), createBlock(_component_el_select, mergeProps({ key: 6 }, commProps.value, {
|
|
241
|
-
multiple: __props.componentData.fieldType == "multipleSelection"
|
|
242
|
-
}), {
|
|
243
|
-
default: withCtx(() => [
|
|
244
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (option) => {
|
|
245
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
246
|
-
key: option.value,
|
|
247
|
-
label: option.label,
|
|
248
|
-
value: option.value
|
|
249
|
-
}, null, 8, ["label", "value"]);
|
|
250
|
-
}), 128))
|
|
251
|
-
]),
|
|
252
|
-
_: 1
|
|
253
|
-
}, 16, ["multiple"])) : __props.componentData.fieldType == "radio" ? (openBlock(), createBlock(_component_el_radio_group, normalizeProps(mergeProps({ key: 7 }, commProps.value)), {
|
|
254
|
-
default: withCtx(() => [
|
|
255
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (option) => {
|
|
256
|
-
return openBlock(), createBlock(_component_el_radio, {
|
|
257
|
-
key: option.value,
|
|
258
|
-
value: option.value
|
|
259
|
-
}, {
|
|
260
|
-
default: withCtx(() => [
|
|
261
|
-
createTextVNode(toDisplayString(option.label), 1)
|
|
262
|
-
]),
|
|
263
|
-
_: 2
|
|
264
|
-
}, 1032, ["value"]);
|
|
265
|
-
}), 128))
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}, 16)) : __props.componentData.fieldType == "checkbox" ? (openBlock(), createBlock(_component_el_checkbox_group, normalizeProps(mergeProps({ key: 8 }, commProps.value)), {
|
|
269
|
-
default: withCtx(() => [
|
|
270
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (option) => {
|
|
271
|
-
return openBlock(), createBlock(_component_el_checkbox, {
|
|
272
|
-
key: option.value,
|
|
273
|
-
value: option.value
|
|
274
|
-
}, {
|
|
275
|
-
default: withCtx(() => [
|
|
276
|
-
createTextVNode(toDisplayString(option.label), 1)
|
|
277
|
-
]),
|
|
278
|
-
_: 2
|
|
279
|
-
}, 1032, ["value"]);
|
|
280
|
-
}), 128))
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
}, 16)) : createCommentVNode("", true),
|
|
284
|
-
__props.componentData.fieldType == "switch" ? (openBlock(), createBlock(_component_el_switch, normalizeProps(mergeProps({ key: 9 }, commProps.value)), null, 16)) : createCommentVNode("", true),
|
|
285
|
-
__props.componentData.fieldType == "upload" ? (openBlock(), createBlock(_component_el_input, normalizeProps(mergeProps({ key: 10 }, commProps.value)), null, 16)) : createCommentVNode("", true)
|
|
283
|
+
_: 1
|
|
284
|
+
}, 16)) : createCommentVNode("", true),
|
|
285
|
+
__props.componentData.fieldType == "switch" ? (openBlock(), createBlock(_component_el_switch, normalizeProps(mergeProps({ key: 9 }, commProps.value)), null, 16)) : createCommentVNode("", true),
|
|
286
|
+
__props.componentData.fieldType == "upload" ? (openBlock(), createBlock(_component_el_input, normalizeProps(mergeProps({ key: 10 }, commProps.value)), null, 16)) : createCommentVNode("", true)
|
|
287
|
+
], 64)) : createCommentVNode("", true)
|
|
286
288
|
]),
|
|
287
289
|
_: 2
|
|
288
290
|
}, [
|
|
@@ -313,7 +315,7 @@ const _sfc_main = {
|
|
|
313
315
|
};
|
|
314
316
|
}
|
|
315
317
|
};
|
|
316
|
-
const ComponentPreviewWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
318
|
+
const ComponentPreviewWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-820bce57"]]);
|
|
317
319
|
export {
|
|
318
320
|
ComponentPreviewWrapper as default
|
|
319
321
|
};
|
|
@@ -793,8 +793,6 @@ const _sfc_main = {
|
|
|
793
793
|
style: { "width": "100%" },
|
|
794
794
|
modelValue: unref(currentItem).minValue,
|
|
795
795
|
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => unref(currentItem).minValue = $event),
|
|
796
|
-
min: 0,
|
|
797
|
-
max: 999999,
|
|
798
796
|
"controls-position": "right",
|
|
799
797
|
placeholder: "最小值"
|
|
800
798
|
}, null, 8, ["modelValue"]),
|
|
@@ -803,8 +801,6 @@ const _sfc_main = {
|
|
|
803
801
|
style: { "width": "100%" },
|
|
804
802
|
modelValue: unref(currentItem).maxValue,
|
|
805
803
|
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => unref(currentItem).maxValue = $event),
|
|
806
|
-
min: 0,
|
|
807
|
-
max: 999999,
|
|
808
804
|
"controls-position": "right",
|
|
809
805
|
placeholder: "最大值"
|
|
810
806
|
}, null, 8, ["modelValue"])
|
|
@@ -1206,7 +1202,7 @@ const _sfc_main = {
|
|
|
1206
1202
|
};
|
|
1207
1203
|
}
|
|
1208
1204
|
};
|
|
1209
|
-
const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1205
|
+
const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-892218ae"]]);
|
|
1210
1206
|
export {
|
|
1211
1207
|
widgets as default
|
|
1212
1208
|
};
|