form-custom-test 3.0.217 → 3.0.219
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/designer.es.js +2211 -1176
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +116 -116
- package/dist/render.es.js +1608 -602
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +91 -91
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source2, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { openBlock, createElementBlock, normalizeClass, renderSlot, reactive, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, normalizeStyle, withModifiers, Fragment, createVNode, createBlock, withCtx, createTextVNode, withDirectives, vShow, renderList, defineComponent, createSlots, watch, ref, onBeforeUnmount, onMounted, onUnmounted, mergeProps, resolveDynamicComponent, isVNode } from "vue";
|
|
32
|
+
import { openBlock, createElementBlock, normalizeClass, renderSlot, reactive, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, normalizeStyle, withModifiers, Fragment, createVNode, createBlock, withCtx, createTextVNode, withDirectives, vShow, renderList, defineComponent, createSlots, watch, ref, onBeforeUnmount, onMounted, onUnmounted, mergeProps, resolveDynamicComponent, isVNode, withKeys } from "vue";
|
|
33
33
|
import { ElMessage } from "element-plus";
|
|
34
34
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
35
35
|
function getDefaultExportFromCjs(x) {
|
|
@@ -1160,7 +1160,7 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
return target;
|
|
1162
1162
|
};
|
|
1163
|
-
const _sfc_main$
|
|
1163
|
+
const _sfc_main$1l = {
|
|
1164
1164
|
name: "container-item-wrapper",
|
|
1165
1165
|
props: {
|
|
1166
1166
|
widget: Object
|
|
@@ -1174,14 +1174,14 @@ const _sfc_main$1i = {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
};
|
|
1177
|
-
function _sfc_render$
|
|
1177
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1178
1178
|
return openBlock(), createElementBlock("div", {
|
|
1179
1179
|
class: normalizeClass(["container-wrapper", [$options.customClass]])
|
|
1180
1180
|
}, [
|
|
1181
1181
|
renderSlot(_ctx.$slots, "default")
|
|
1182
1182
|
], 2);
|
|
1183
1183
|
}
|
|
1184
|
-
var ContainerItemWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1184
|
+
var ContainerItemWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["render", _sfc_render$1l]]);
|
|
1185
1185
|
var __glob_0_0$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1186
1186
|
__proto__: null,
|
|
1187
1187
|
"default": ContainerItemWrapper
|
|
@@ -1965,6 +1965,7 @@ var enLocale_extension = {
|
|
|
1965
1965
|
alert: "Alert",
|
|
1966
1966
|
"person-tree": "Person Tree",
|
|
1967
1967
|
"asset-select": "Asset Select",
|
|
1968
|
+
"document-select": "Document Select",
|
|
1968
1969
|
"dict-select": "Dict Select",
|
|
1969
1970
|
"radio-other": "Radio (Other)",
|
|
1970
1971
|
"select-other": "Select (Other)",
|
|
@@ -2015,6 +2016,10 @@ var enLocale_extension = {
|
|
|
2015
2016
|
assetSelectAssetTypeValue: "Asset Type Value",
|
|
2016
2017
|
assetTypeAssetTypeValue: "Asset Type",
|
|
2017
2018
|
assetLimit: "Asset Limit",
|
|
2019
|
+
documentSelectButtonText: "Button Text",
|
|
2020
|
+
documentSelectDocumentTypeValue: "Document Type Value",
|
|
2021
|
+
documentSelectDocumentLimit: "Document Limit",
|
|
2022
|
+
documentSelectDocumentListUrl: "Document List URL",
|
|
2018
2023
|
dictSelectDictCode: "Dict Type",
|
|
2019
2024
|
dictSelectDictCodePlaceholder: "Select dict type",
|
|
2020
2025
|
dictSelectDictCodeHint: "Select a categorized dict from cache; options load automatically",
|
|
@@ -2034,6 +2039,7 @@ var zhLocale_extension = {
|
|
|
2034
2039
|
"current-user": "\u5F53\u524D\u7528\u6237",
|
|
2035
2040
|
"current-user-second-company": "\u5F53\u524D\u7528\u6237\u4E8C\u7EA7\u516C\u53F8",
|
|
2036
2041
|
"asset-select": "\u8D44\u4EA7\u9009\u62E9",
|
|
2042
|
+
"document-select": "\u6536\u6587\u9009\u62E9",
|
|
2037
2043
|
"dict-select": "\u5B57\u5178\u9009\u62E9",
|
|
2038
2044
|
"asset-table": "\u8D44\u4EA7\u8868\u683C",
|
|
2039
2045
|
"radio-other": "\u5355\u9009\u9879\uFF08\u5176\u4ED6\uFF09",
|
|
@@ -2083,6 +2089,10 @@ var zhLocale_extension = {
|
|
|
2083
2089
|
assetSelectAssetTypeValue: "\u8D44\u4EA7\u7C7B\u578B\u503C",
|
|
2084
2090
|
assetTypeAssetTypeValue: "\u9ED8\u8BA4\u8D44\u4EA7\u7C7B\u578B\u503C",
|
|
2085
2091
|
assetSelectAssetLimit: "\u8D44\u4EA7\u9009\u62E9\u9650\u5236",
|
|
2092
|
+
documentSelectButtonText: "\u6309\u94AE\u6587\u5B57",
|
|
2093
|
+
documentSelectDocumentTypeValue: "\u6536\u6587\u7C7B\u578B\u503C",
|
|
2094
|
+
documentSelectDocumentLimit: "\u6536\u6587\u9009\u62E9\u9650\u5236",
|
|
2095
|
+
documentSelectDocumentListUrl: "\u6536\u6587\u5217\u8868\u63A5\u53E3",
|
|
2086
2096
|
dictSelectDictCode: "\u5B57\u5178\u7C7B\u578B",
|
|
2087
2097
|
dictSelectDictCodePlaceholder: "\u8BF7\u9009\u62E9\u5B57\u5178\u7C7B\u578B",
|
|
2088
2098
|
dictSelectDictCodeHint: "\u4ECE\u5B57\u5178\u7F13\u5B58\u4E2D\u9009\u62E9\u5DF2\u5206\u7C7B\u7684\u5B57\u5178\uFF0C\u9009\u9879\u5C06\u81EA\u52A8\u52A0\u8F7D\u5230\u4E0B\u62C9\u6846",
|
|
@@ -2147,7 +2157,7 @@ var refMixin = {
|
|
|
2147
2157
|
}
|
|
2148
2158
|
};
|
|
2149
2159
|
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
2150
|
-
const _sfc_main$
|
|
2160
|
+
const _sfc_main$1k = {
|
|
2151
2161
|
name: "SvgIcon",
|
|
2152
2162
|
props: {
|
|
2153
2163
|
iconClass: {
|
|
@@ -2175,20 +2185,20 @@ const _sfc_main$1h = {
|
|
|
2175
2185
|
}
|
|
2176
2186
|
}
|
|
2177
2187
|
};
|
|
2178
|
-
const _hoisted_1$
|
|
2179
|
-
const _hoisted_2$
|
|
2180
|
-
function _sfc_render$
|
|
2188
|
+
const _hoisted_1$T = ["xlink:href"];
|
|
2189
|
+
const _hoisted_2$F = { key: 0 };
|
|
2190
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2181
2191
|
return openBlock(), createElementBlock("svg", {
|
|
2182
2192
|
class: normalizeClass($options.svgClass),
|
|
2183
2193
|
"aria-hidden": "true"
|
|
2184
2194
|
}, [
|
|
2185
|
-
createElementVNode("use", { "xlink:href": $options.iconName }, null, 8, _hoisted_1$
|
|
2186
|
-
!!$props.title ? (openBlock(), createElementBlock("title", _hoisted_2$
|
|
2195
|
+
createElementVNode("use", { "xlink:href": $options.iconName }, null, 8, _hoisted_1$T),
|
|
2196
|
+
!!$props.title ? (openBlock(), createElementBlock("title", _hoisted_2$F, toDisplayString($props.title), 1)) : createCommentVNode("", true)
|
|
2187
2197
|
], 2);
|
|
2188
2198
|
}
|
|
2189
|
-
var SvgIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2199
|
+
var SvgIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["render", _sfc_render$1k], ["__scopeId", "data-v-8002b89a"]]);
|
|
2190
2200
|
var staticContentWrapper_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2191
|
-
const _sfc_main$
|
|
2201
|
+
const _sfc_main$1j = {
|
|
2192
2202
|
name: "static-content-wrapper",
|
|
2193
2203
|
mixins: [i18n$1],
|
|
2194
2204
|
components: {
|
|
@@ -2274,21 +2284,21 @@ const _sfc_main$1g = {
|
|
|
2274
2284
|
}
|
|
2275
2285
|
}
|
|
2276
2286
|
};
|
|
2277
|
-
const _hoisted_1$
|
|
2287
|
+
const _hoisted_1$S = {
|
|
2278
2288
|
key: 0,
|
|
2279
2289
|
class: "field-action"
|
|
2280
2290
|
};
|
|
2281
|
-
const _hoisted_2$
|
|
2282
|
-
const _hoisted_3$
|
|
2283
|
-
const _hoisted_4$
|
|
2284
|
-
const _hoisted_5$
|
|
2285
|
-
const _hoisted_6$
|
|
2291
|
+
const _hoisted_2$E = ["title"];
|
|
2292
|
+
const _hoisted_3$z = ["title"];
|
|
2293
|
+
const _hoisted_4$n = ["title"];
|
|
2294
|
+
const _hoisted_5$i = ["title"];
|
|
2295
|
+
const _hoisted_6$h = {
|
|
2286
2296
|
key: 1,
|
|
2287
2297
|
class: "drag-handler background-opacity"
|
|
2288
2298
|
};
|
|
2289
|
-
const _hoisted_7$
|
|
2290
|
-
const _hoisted_8$
|
|
2291
|
-
function _sfc_render$
|
|
2299
|
+
const _hoisted_7$f = ["title"];
|
|
2300
|
+
const _hoisted_8$a = { key: 0 };
|
|
2301
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2292
2302
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
2293
2303
|
return openBlock(), createElementBlock("div", {
|
|
2294
2304
|
class: normalizeClass(["field-wrapper", { "design-time-bottom-margin": !!this.designer }]),
|
|
@@ -2303,49 +2313,49 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2303
2313
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2304
2314
|
], 6)) : createCommentVNode("", true),
|
|
2305
2315
|
!!this.designer ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2306
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2316
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
2307
2317
|
createElementVNode("i", {
|
|
2308
2318
|
title: _ctx.i18nt("designer.hint.selectParentWidget"),
|
|
2309
2319
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
|
|
2310
2320
|
}, [
|
|
2311
2321
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
2312
|
-
], 8, _hoisted_2$
|
|
2322
|
+
], 8, _hoisted_2$E),
|
|
2313
2323
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
2314
2324
|
key: 0,
|
|
2315
2325
|
title: _ctx.i18nt("designer.hint.moveUpWidget"),
|
|
2316
2326
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
|
|
2317
2327
|
}, [
|
|
2318
2328
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
2319
|
-
], 8, _hoisted_3$
|
|
2329
|
+
], 8, _hoisted_3$z)) : createCommentVNode("", true),
|
|
2320
2330
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
2321
2331
|
key: 1,
|
|
2322
2332
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
2323
2333
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => $options.moveDownWidget($props.field), ["stop"]))
|
|
2324
2334
|
}, [
|
|
2325
2335
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
2326
|
-
], 8, _hoisted_4$
|
|
2336
|
+
], 8, _hoisted_4$n)) : createCommentVNode("", true),
|
|
2327
2337
|
createElementVNode("i", {
|
|
2328
2338
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
2329
2339
|
onClick: _cache[4] || (_cache[4] = withModifiers((...args) => $options.removeFieldWidget && $options.removeFieldWidget(...args), ["stop"]))
|
|
2330
2340
|
}, [
|
|
2331
2341
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
2332
|
-
], 8, _hoisted_5$
|
|
2342
|
+
], 8, _hoisted_5$i)
|
|
2333
2343
|
])) : createCommentVNode("", true),
|
|
2334
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2344
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_6$h, [
|
|
2335
2345
|
createElementVNode("i", {
|
|
2336
2346
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
2337
2347
|
}, [
|
|
2338
2348
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
2339
|
-
], 8, _hoisted_7$
|
|
2349
|
+
], 8, _hoisted_7$f),
|
|
2340
2350
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
2341
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_8$
|
|
2351
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_8$a, [
|
|
2342
2352
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
2343
2353
|
])) : createCommentVNode("", true)
|
|
2344
2354
|
])) : createCommentVNode("", true)
|
|
2345
2355
|
], 64)) : createCommentVNode("", true)
|
|
2346
2356
|
], 6);
|
|
2347
2357
|
}
|
|
2348
|
-
var StaticContentWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2358
|
+
var StaticContentWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["render", _sfc_render$1j], ["__scopeId", "data-v-41799baa"]]);
|
|
2349
2359
|
var __glob_0_20 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2350
2360
|
__proto__: null,
|
|
2351
2361
|
"default": StaticContentWrapper
|
|
@@ -9257,7 +9267,7 @@ var fieldMixin = {
|
|
|
9257
9267
|
}
|
|
9258
9268
|
};
|
|
9259
9269
|
var buttonWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9260
|
-
const _sfc_main$
|
|
9270
|
+
const _sfc_main$1i = {
|
|
9261
9271
|
name: "button-widget",
|
|
9262
9272
|
componentName: "FieldWidget",
|
|
9263
9273
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -9303,7 +9313,7 @@ const _sfc_main$1f = {
|
|
|
9303
9313
|
},
|
|
9304
9314
|
methods: {}
|
|
9305
9315
|
};
|
|
9306
|
-
function _sfc_render$
|
|
9316
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9307
9317
|
const _component_el_button = resolveComponent("el-button");
|
|
9308
9318
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
9309
9319
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
@@ -9339,13 +9349,13 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9339
9349
|
_: 1
|
|
9340
9350
|
}, 8, ["designer", "field", "design-state", "display-style", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
9341
9351
|
}
|
|
9342
|
-
var buttonWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9352
|
+
var buttonWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_render$1i], ["__scopeId", "data-v-78bf6014"]]);
|
|
9343
9353
|
var __glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9344
9354
|
__proto__: null,
|
|
9345
9355
|
"default": buttonWidget
|
|
9346
9356
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9347
9357
|
var formItemWrapper_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9348
|
-
const _sfc_main$
|
|
9358
|
+
const _sfc_main$1h = {
|
|
9349
9359
|
name: "form-item-wrapper",
|
|
9350
9360
|
mixins: [i18n$1],
|
|
9351
9361
|
components: {
|
|
@@ -9485,25 +9495,25 @@ const _sfc_main$1e = {
|
|
|
9485
9495
|
}
|
|
9486
9496
|
}
|
|
9487
9497
|
};
|
|
9488
|
-
const _hoisted_1$
|
|
9498
|
+
const _hoisted_1$R = {
|
|
9489
9499
|
key: 0,
|
|
9490
9500
|
class: "custom-label"
|
|
9491
9501
|
};
|
|
9492
|
-
const _hoisted_2$
|
|
9502
|
+
const _hoisted_2$D = {
|
|
9493
9503
|
key: 0,
|
|
9494
9504
|
class: "field-action"
|
|
9495
9505
|
};
|
|
9496
|
-
const _hoisted_3$
|
|
9497
|
-
const _hoisted_4$
|
|
9498
|
-
const _hoisted_5$
|
|
9499
|
-
const _hoisted_6$
|
|
9500
|
-
const _hoisted_7$
|
|
9506
|
+
const _hoisted_3$y = ["title"];
|
|
9507
|
+
const _hoisted_4$m = ["title"];
|
|
9508
|
+
const _hoisted_5$h = ["title"];
|
|
9509
|
+
const _hoisted_6$g = ["title"];
|
|
9510
|
+
const _hoisted_7$e = {
|
|
9501
9511
|
key: 1,
|
|
9502
9512
|
class: "drag-handler background-opacity"
|
|
9503
9513
|
};
|
|
9504
|
-
const _hoisted_8$
|
|
9505
|
-
const _hoisted_9$
|
|
9506
|
-
function _sfc_render$
|
|
9514
|
+
const _hoisted_8$9 = ["title"];
|
|
9515
|
+
const _hoisted_9$8 = { key: 0 };
|
|
9516
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9507
9517
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
9508
9518
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
9509
9519
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -9526,7 +9536,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9526
9536
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $options.selectField($props.field), ["stop"]))
|
|
9527
9537
|
}, {
|
|
9528
9538
|
label: withCtx(() => [
|
|
9529
|
-
!!$props.field.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
9539
|
+
!!$props.field.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_1$R, [
|
|
9530
9540
|
$props.field.options.labelIconPosition === "front" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
9531
9541
|
!!$props.field.options.labelTooltip ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
9532
9542
|
createVNode(_component_el_tooltip, {
|
|
@@ -9578,55 +9588,55 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9578
9588
|
[vShow, $props.designState === true || !$props.field.options.hidden]
|
|
9579
9589
|
]) : createCommentVNode("", true),
|
|
9580
9590
|
!!this.designer ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
9581
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9591
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
|
|
9582
9592
|
createElementVNode("i", {
|
|
9583
9593
|
title: _ctx.i18nt("designer.hint.selectParentWidget"),
|
|
9584
9594
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
|
|
9585
9595
|
}, [
|
|
9586
9596
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
9587
|
-
], 8, _hoisted_3$
|
|
9597
|
+
], 8, _hoisted_3$y),
|
|
9588
9598
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
9589
9599
|
key: 0,
|
|
9590
9600
|
title: _ctx.i18nt("designer.hint.moveUpWidget"),
|
|
9591
9601
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
|
|
9592
9602
|
}, [
|
|
9593
9603
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
9594
|
-
], 8, _hoisted_4$
|
|
9604
|
+
], 8, _hoisted_4$m)) : createCommentVNode("", true),
|
|
9595
9605
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
9596
9606
|
key: 1,
|
|
9597
9607
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
9598
9608
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => $options.moveDownWidget($props.field), ["stop"]))
|
|
9599
9609
|
}, [
|
|
9600
9610
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
9601
|
-
], 8, _hoisted_5$
|
|
9611
|
+
], 8, _hoisted_5$h)) : createCommentVNode("", true),
|
|
9602
9612
|
createElementVNode("i", {
|
|
9603
9613
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
9604
9614
|
onClick: _cache[4] || (_cache[4] = withModifiers((...args) => $options.removeFieldWidget && $options.removeFieldWidget(...args), ["stop"]))
|
|
9605
9615
|
}, [
|
|
9606
9616
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
9607
|
-
], 8, _hoisted_6$
|
|
9617
|
+
], 8, _hoisted_6$g)
|
|
9608
9618
|
])) : createCommentVNode("", true),
|
|
9609
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
9619
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_7$e, [
|
|
9610
9620
|
createElementVNode("i", {
|
|
9611
9621
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
9612
9622
|
}, [
|
|
9613
9623
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
9614
|
-
], 8, _hoisted_8$
|
|
9624
|
+
], 8, _hoisted_8$9),
|
|
9615
9625
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
9616
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$
|
|
9626
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$8, [
|
|
9617
9627
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
9618
9628
|
])) : createCommentVNode("", true)
|
|
9619
9629
|
])) : createCommentVNode("", true)
|
|
9620
9630
|
], 64)) : createCommentVNode("", true)
|
|
9621
9631
|
], 2);
|
|
9622
9632
|
}
|
|
9623
|
-
var FormItemWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9633
|
+
var FormItemWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$1h], ["__scopeId", "data-v-3cbbbdb2"]]);
|
|
9624
9634
|
var __glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9625
9635
|
__proto__: null,
|
|
9626
9636
|
"default": FormItemWrapper
|
|
9627
9637
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9628
9638
|
var cascaderWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9629
|
-
const _sfc_main$
|
|
9639
|
+
const _sfc_main$1g = {
|
|
9630
9640
|
name: "cascader-widget",
|
|
9631
9641
|
componentName: "FieldWidget",
|
|
9632
9642
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -9698,8 +9708,8 @@ const _sfc_main$1d = {
|
|
|
9698
9708
|
},
|
|
9699
9709
|
methods: {}
|
|
9700
9710
|
};
|
|
9701
|
-
const _hoisted_1$
|
|
9702
|
-
function _sfc_render$
|
|
9711
|
+
const _hoisted_1$Q = { class: "full-width-input" };
|
|
9712
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9703
9713
|
const _component_el_cascader = resolveComponent("el-cascader");
|
|
9704
9714
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
9705
9715
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -9715,7 +9725,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9715
9725
|
"sub-form-row-id": $props.subFormRowId
|
|
9716
9726
|
}, {
|
|
9717
9727
|
default: withCtx(() => [
|
|
9718
|
-
createElementVNode("div", _hoisted_1$
|
|
9728
|
+
createElementVNode("div", _hoisted_1$Q, [
|
|
9719
9729
|
createVNode(_component_el_cascader, {
|
|
9720
9730
|
ref: "fieldEditor",
|
|
9721
9731
|
options: $data.selectList || $props.field.options.optionItems,
|
|
@@ -9737,13 +9747,13 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9737
9747
|
_: 1
|
|
9738
9748
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
9739
9749
|
}
|
|
9740
|
-
var cascaderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9750
|
+
var cascaderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$1g], ["__scopeId", "data-v-2002ac31"]]);
|
|
9741
9751
|
var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9742
9752
|
__proto__: null,
|
|
9743
9753
|
"default": cascaderWidget
|
|
9744
9754
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9745
9755
|
var checkboxWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9746
|
-
const _sfc_main$
|
|
9756
|
+
const _sfc_main$1f = {
|
|
9747
9757
|
name: "checkbox-widget",
|
|
9748
9758
|
componentName: "FieldWidget",
|
|
9749
9759
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -9799,7 +9809,7 @@ const _sfc_main$1c = {
|
|
|
9799
9809
|
},
|
|
9800
9810
|
methods: {}
|
|
9801
9811
|
};
|
|
9802
|
-
function _sfc_render$
|
|
9812
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9803
9813
|
const _component_el_checkbox_button = resolveComponent("el-checkbox-button");
|
|
9804
9814
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
9805
9815
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
@@ -9860,13 +9870,13 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9860
9870
|
_: 1
|
|
9861
9871
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
9862
9872
|
}
|
|
9863
|
-
var checkboxWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9873
|
+
var checkboxWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$1f, [["render", _sfc_render$1f], ["__scopeId", "data-v-8c1ca3c8"]]);
|
|
9864
9874
|
var __glob_0_2$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9865
9875
|
__proto__: null,
|
|
9866
9876
|
"default": checkboxWidget
|
|
9867
9877
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9868
9878
|
var colorWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9869
|
-
const _sfc_main$
|
|
9879
|
+
const _sfc_main$1e = {
|
|
9870
9880
|
name: "color-widget",
|
|
9871
9881
|
componentName: "FieldWidget",
|
|
9872
9882
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -9921,7 +9931,7 @@ const _sfc_main$1b = {
|
|
|
9921
9931
|
},
|
|
9922
9932
|
methods: {}
|
|
9923
9933
|
};
|
|
9924
|
-
function _sfc_render$
|
|
9934
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9925
9935
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
9926
9936
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
9927
9937
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -9949,13 +9959,13 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9949
9959
|
_: 1
|
|
9950
9960
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
9951
9961
|
}
|
|
9952
|
-
var colorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9962
|
+
var colorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$1e, [["render", _sfc_render$1e], ["__scopeId", "data-v-52b66ef1"]]);
|
|
9953
9963
|
var __glob_0_3$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9954
9964
|
__proto__: null,
|
|
9955
9965
|
"default": colorWidget
|
|
9956
9966
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9957
9967
|
var dateRangeWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9958
|
-
const _sfc_main$
|
|
9968
|
+
const _sfc_main$1d = {
|
|
9959
9969
|
name: "date-range-widget",
|
|
9960
9970
|
componentName: "FieldWidget",
|
|
9961
9971
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -10010,7 +10020,7 @@ const _sfc_main$1a = {
|
|
|
10010
10020
|
},
|
|
10011
10021
|
methods: {}
|
|
10012
10022
|
};
|
|
10013
|
-
function _sfc_render$
|
|
10023
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10014
10024
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
10015
10025
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
10016
10026
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -10048,13 +10058,13 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10048
10058
|
_: 1
|
|
10049
10059
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
10050
10060
|
}
|
|
10051
|
-
var dateRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10061
|
+
var dateRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$1d, [["render", _sfc_render$1d], ["__scopeId", "data-v-e50300fe"]]);
|
|
10052
10062
|
var __glob_0_4$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10053
10063
|
__proto__: null,
|
|
10054
10064
|
"default": dateRangeWidget
|
|
10055
10065
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10056
10066
|
var dateWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10057
|
-
const _sfc_main$
|
|
10067
|
+
const _sfc_main$1c = {
|
|
10058
10068
|
name: "date-widget",
|
|
10059
10069
|
componentName: "FieldWidget",
|
|
10060
10070
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -10109,7 +10119,7 @@ const _sfc_main$19 = {
|
|
|
10109
10119
|
},
|
|
10110
10120
|
methods: {}
|
|
10111
10121
|
};
|
|
10112
|
-
function _sfc_render$
|
|
10122
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10113
10123
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
10114
10124
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
10115
10125
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -10147,13 +10157,13 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10147
10157
|
_: 1
|
|
10148
10158
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
10149
10159
|
}
|
|
10150
|
-
var dateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10160
|
+
var dateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$1c, [["render", _sfc_render$1c], ["__scopeId", "data-v-89ff4bae"]]);
|
|
10151
10161
|
var __glob_0_5$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10152
10162
|
__proto__: null,
|
|
10153
10163
|
"default": dateWidget
|
|
10154
10164
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10155
10165
|
var dividerWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10156
|
-
const _sfc_main$
|
|
10166
|
+
const _sfc_main$1b = {
|
|
10157
10167
|
name: "divider-widget",
|
|
10158
10168
|
componentName: "FieldWidget",
|
|
10159
10169
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -10199,7 +10209,7 @@ const _sfc_main$18 = {
|
|
|
10199
10209
|
},
|
|
10200
10210
|
methods: {}
|
|
10201
10211
|
};
|
|
10202
|
-
function _sfc_render$
|
|
10212
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10203
10213
|
const _component_el_divider = resolveComponent("el-divider");
|
|
10204
10214
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
10205
10215
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
@@ -10228,7 +10238,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10228
10238
|
_: 1
|
|
10229
10239
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
10230
10240
|
}
|
|
10231
|
-
var dividerWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10241
|
+
var dividerWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["render", _sfc_render$1b], ["__scopeId", "data-v-09a1b973"]]);
|
|
10232
10242
|
var __glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10233
10243
|
__proto__: null,
|
|
10234
10244
|
"default": dividerWidget
|
|
@@ -10267,252 +10277,252 @@ var _export_sfc = (sfc, props) => {
|
|
|
10267
10277
|
}
|
|
10268
10278
|
return target;
|
|
10269
10279
|
};
|
|
10270
|
-
const _sfc_main$
|
|
10280
|
+
const _sfc_main$1a = defineComponent({
|
|
10271
10281
|
name: "ArrowDownBold"
|
|
10272
10282
|
});
|
|
10273
|
-
const _hoisted_1$
|
|
10283
|
+
const _hoisted_1$P = {
|
|
10274
10284
|
class: "icon",
|
|
10275
10285
|
width: "200",
|
|
10276
10286
|
height: "200",
|
|
10277
10287
|
viewBox: "0 0 1024 1024",
|
|
10278
10288
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10279
10289
|
};
|
|
10280
|
-
const _hoisted_2$
|
|
10290
|
+
const _hoisted_2$C = /* @__PURE__ */ createElementVNode("path", {
|
|
10281
10291
|
fill: "currentColor",
|
|
10282
10292
|
d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
|
|
10283
10293
|
}, null, -1);
|
|
10284
|
-
const _hoisted_3$
|
|
10285
|
-
_hoisted_2$
|
|
10294
|
+
const _hoisted_3$x = [
|
|
10295
|
+
_hoisted_2$C
|
|
10286
10296
|
];
|
|
10287
|
-
function _sfc_render$
|
|
10288
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10297
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10298
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$P, _hoisted_3$x);
|
|
10289
10299
|
}
|
|
10290
|
-
var arrowDownBold = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10291
|
-
const _sfc_main$
|
|
10300
|
+
var arrowDownBold = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$1a]]);
|
|
10301
|
+
const _sfc_main$19 = defineComponent({
|
|
10292
10302
|
name: "ArrowDown"
|
|
10293
10303
|
});
|
|
10294
|
-
const _hoisted_1$
|
|
10304
|
+
const _hoisted_1$O = {
|
|
10295
10305
|
class: "icon",
|
|
10296
10306
|
width: "200",
|
|
10297
10307
|
height: "200",
|
|
10298
10308
|
viewBox: "0 0 1024 1024",
|
|
10299
10309
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10300
10310
|
};
|
|
10301
|
-
const _hoisted_2$
|
|
10311
|
+
const _hoisted_2$B = /* @__PURE__ */ createElementVNode("path", {
|
|
10302
10312
|
fill: "currentColor",
|
|
10303
10313
|
d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
|
|
10304
10314
|
}, null, -1);
|
|
10305
|
-
const _hoisted_3$
|
|
10306
|
-
_hoisted_2$
|
|
10315
|
+
const _hoisted_3$w = [
|
|
10316
|
+
_hoisted_2$B
|
|
10307
10317
|
];
|
|
10308
|
-
function _sfc_render$
|
|
10309
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10318
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10319
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$O, _hoisted_3$w);
|
|
10310
10320
|
}
|
|
10311
|
-
var arrowDown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10312
|
-
const _sfc_main$
|
|
10321
|
+
var arrowDown = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19]]);
|
|
10322
|
+
const _sfc_main$18 = defineComponent({
|
|
10313
10323
|
name: "ArrowUp"
|
|
10314
10324
|
});
|
|
10315
|
-
const _hoisted_1$
|
|
10325
|
+
const _hoisted_1$N = {
|
|
10316
10326
|
class: "icon",
|
|
10317
10327
|
width: "200",
|
|
10318
10328
|
height: "200",
|
|
10319
10329
|
viewBox: "0 0 1024 1024",
|
|
10320
10330
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10321
10331
|
};
|
|
10322
|
-
const _hoisted_2$
|
|
10332
|
+
const _hoisted_2$A = /* @__PURE__ */ createElementVNode("path", {
|
|
10323
10333
|
fill: "currentColor",
|
|
10324
10334
|
d: "M488.832 344.32l-339.84 356.672a32 32 0 000 44.16l.384.384a29.44 29.44 0 0042.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0042.688 0l.384-.384a32 32 0 000-44.16L535.168 344.32a32 32 0 00-46.336 0z"
|
|
10325
10335
|
}, null, -1);
|
|
10326
|
-
const _hoisted_3$
|
|
10327
|
-
_hoisted_2$
|
|
10336
|
+
const _hoisted_3$v = [
|
|
10337
|
+
_hoisted_2$A
|
|
10328
10338
|
];
|
|
10329
|
-
function _sfc_render$
|
|
10330
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10339
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10340
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$N, _hoisted_3$v);
|
|
10331
10341
|
}
|
|
10332
|
-
var arrowUp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10333
|
-
const _sfc_main$
|
|
10342
|
+
var arrowUp = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$18]]);
|
|
10343
|
+
const _sfc_main$17 = defineComponent({
|
|
10334
10344
|
name: "CirclePlus"
|
|
10335
10345
|
});
|
|
10336
|
-
const _hoisted_1$
|
|
10346
|
+
const _hoisted_1$M = {
|
|
10337
10347
|
class: "icon",
|
|
10338
10348
|
width: "200",
|
|
10339
10349
|
height: "200",
|
|
10340
10350
|
viewBox: "0 0 1024 1024",
|
|
10341
10351
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10342
10352
|
};
|
|
10343
|
-
const _hoisted_2$
|
|
10353
|
+
const _hoisted_2$z = /* @__PURE__ */ createElementVNode("path", {
|
|
10344
10354
|
fill: "currentColor",
|
|
10345
10355
|
d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
|
|
10346
10356
|
}, null, -1);
|
|
10347
|
-
const _hoisted_3$
|
|
10357
|
+
const _hoisted_3$u = /* @__PURE__ */ createElementVNode("path", {
|
|
10348
10358
|
fill: "currentColor",
|
|
10349
10359
|
d: "M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"
|
|
10350
10360
|
}, null, -1);
|
|
10351
|
-
const _hoisted_4$
|
|
10361
|
+
const _hoisted_4$l = /* @__PURE__ */ createElementVNode("path", {
|
|
10352
10362
|
fill: "currentColor",
|
|
10353
10363
|
d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
|
|
10354
10364
|
}, null, -1);
|
|
10355
|
-
const _hoisted_5$
|
|
10356
|
-
_hoisted_2$
|
|
10357
|
-
_hoisted_3$
|
|
10358
|
-
_hoisted_4$
|
|
10365
|
+
const _hoisted_5$g = [
|
|
10366
|
+
_hoisted_2$z,
|
|
10367
|
+
_hoisted_3$u,
|
|
10368
|
+
_hoisted_4$l
|
|
10359
10369
|
];
|
|
10360
|
-
function _sfc_render$
|
|
10361
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10370
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10371
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$M, _hoisted_5$g);
|
|
10362
10372
|
}
|
|
10363
|
-
var circlePlus = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10364
|
-
const _sfc_main$
|
|
10373
|
+
var circlePlus = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$17]]);
|
|
10374
|
+
const _sfc_main$16 = defineComponent({
|
|
10365
10375
|
name: "Delete"
|
|
10366
10376
|
});
|
|
10367
|
-
const _hoisted_1$
|
|
10377
|
+
const _hoisted_1$L = {
|
|
10368
10378
|
class: "icon",
|
|
10369
10379
|
width: "200",
|
|
10370
10380
|
height: "200",
|
|
10371
10381
|
viewBox: "0 0 1024 1024",
|
|
10372
10382
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10373
10383
|
};
|
|
10374
|
-
const _hoisted_2$
|
|
10384
|
+
const _hoisted_2$y = /* @__PURE__ */ createElementVNode("path", {
|
|
10375
10385
|
fill: "currentColor",
|
|
10376
10386
|
d: "M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"
|
|
10377
10387
|
}, null, -1);
|
|
10378
|
-
const _hoisted_3$
|
|
10379
|
-
_hoisted_2$
|
|
10388
|
+
const _hoisted_3$t = [
|
|
10389
|
+
_hoisted_2$y
|
|
10380
10390
|
];
|
|
10381
|
-
function _sfc_render$
|
|
10382
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10391
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10392
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$L, _hoisted_3$t);
|
|
10383
10393
|
}
|
|
10384
|
-
var _delete = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10385
|
-
const _sfc_main$
|
|
10394
|
+
var _delete = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$16]]);
|
|
10395
|
+
const _sfc_main$15 = defineComponent({
|
|
10386
10396
|
name: "Edit"
|
|
10387
10397
|
});
|
|
10388
|
-
const _hoisted_1$
|
|
10398
|
+
const _hoisted_1$K = {
|
|
10389
10399
|
class: "icon",
|
|
10390
10400
|
width: "200",
|
|
10391
10401
|
height: "200",
|
|
10392
10402
|
viewBox: "0 0 1024 1024",
|
|
10393
10403
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10394
10404
|
};
|
|
10395
|
-
const _hoisted_2$
|
|
10405
|
+
const _hoisted_2$x = /* @__PURE__ */ createElementVNode("path", {
|
|
10396
10406
|
fill: "currentColor",
|
|
10397
10407
|
d: "M832 512a32 32 0 1164 0v352a32 32 0 01-32 32H160a32 32 0 01-32-32V160a32 32 0 0132-32h352a32 32 0 010 64H192v640h640V512z"
|
|
10398
10408
|
}, null, -1);
|
|
10399
|
-
const _hoisted_3$
|
|
10409
|
+
const _hoisted_3$s = /* @__PURE__ */ createElementVNode("path", {
|
|
10400
10410
|
fill: "currentColor",
|
|
10401
10411
|
d: "M469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 10-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 010 135.808l-331.84 331.84a32 32 0 01-18.112 9.088L436.8 623.68a32 32 0 01-36.224-36.224l15.104-105.6a32 32 0 019.024-18.112l331.904-331.84a96 96 0 01135.744 0z"
|
|
10402
10412
|
}, null, -1);
|
|
10403
|
-
const _hoisted_4$
|
|
10404
|
-
_hoisted_2$
|
|
10405
|
-
_hoisted_3$
|
|
10413
|
+
const _hoisted_4$k = [
|
|
10414
|
+
_hoisted_2$x,
|
|
10415
|
+
_hoisted_3$s
|
|
10406
10416
|
];
|
|
10407
|
-
function _sfc_render$
|
|
10408
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10417
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10418
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$K, _hoisted_4$k);
|
|
10409
10419
|
}
|
|
10410
|
-
var edit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10411
|
-
const _sfc_main$
|
|
10420
|
+
var edit = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$15]]);
|
|
10421
|
+
const _sfc_main$14 = defineComponent({
|
|
10412
10422
|
name: "InfoFilled"
|
|
10413
10423
|
});
|
|
10414
|
-
const _hoisted_1$
|
|
10424
|
+
const _hoisted_1$J = {
|
|
10415
10425
|
class: "icon",
|
|
10416
10426
|
width: "200",
|
|
10417
10427
|
height: "200",
|
|
10418
10428
|
viewBox: "0 0 1024 1024",
|
|
10419
10429
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10420
10430
|
};
|
|
10421
|
-
const _hoisted_2$
|
|
10431
|
+
const _hoisted_2$w = /* @__PURE__ */ createElementVNode("path", {
|
|
10422
10432
|
fill: "currentColor",
|
|
10423
10433
|
d: "M512 64a448 448 0 110 896.064A448 448 0 01512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 01-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 017.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
10424
10434
|
}, null, -1);
|
|
10425
|
-
const _hoisted_3$
|
|
10426
|
-
_hoisted_2$
|
|
10435
|
+
const _hoisted_3$r = [
|
|
10436
|
+
_hoisted_2$w
|
|
10427
10437
|
];
|
|
10428
|
-
function _sfc_render$
|
|
10429
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10438
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10439
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$J, _hoisted_3$r);
|
|
10430
10440
|
}
|
|
10431
|
-
var infoFilled = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10432
|
-
const _sfc_main$
|
|
10441
|
+
var infoFilled = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$14]]);
|
|
10442
|
+
const _sfc_main$13 = defineComponent({
|
|
10433
10443
|
name: "Loading"
|
|
10434
10444
|
});
|
|
10435
|
-
const _hoisted_1$
|
|
10445
|
+
const _hoisted_1$I = {
|
|
10436
10446
|
class: "icon",
|
|
10437
10447
|
width: "200",
|
|
10438
10448
|
height: "200",
|
|
10439
10449
|
viewBox: "0 0 1024 1024",
|
|
10440
10450
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10441
10451
|
};
|
|
10442
|
-
const _hoisted_2$
|
|
10452
|
+
const _hoisted_2$v = /* @__PURE__ */ createElementVNode("path", {
|
|
10443
10453
|
fill: "currentColor",
|
|
10444
10454
|
d: "M512 64a32 32 0 0132 32v192a32 32 0 01-64 0V96a32 32 0 0132-32zm0 640a32 32 0 0132 32v192a32 32 0 11-64 0V736a32 32 0 0132-32zm448-192a32 32 0 01-32 32H736a32 32 0 110-64h192a32 32 0 0132 32zm-640 0a32 32 0 01-32 32H96a32 32 0 010-64h192a32 32 0 0132 32zM195.2 195.2a32 32 0 0145.248 0L376.32 331.008a32 32 0 01-45.248 45.248L195.2 240.448a32 32 0 010-45.248zm452.544 452.544a32 32 0 0145.248 0L828.8 783.552a32 32 0 01-45.248 45.248L647.744 692.992a32 32 0 010-45.248zM828.8 195.264a32 32 0 010 45.184L692.992 376.32a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0zm-452.544 452.48a32 32 0 010 45.248L240.448 828.8a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0z"
|
|
10445
10455
|
}, null, -1);
|
|
10446
|
-
const _hoisted_3$
|
|
10447
|
-
_hoisted_2$
|
|
10456
|
+
const _hoisted_3$q = [
|
|
10457
|
+
_hoisted_2$v
|
|
10448
10458
|
];
|
|
10449
|
-
function _sfc_render$
|
|
10450
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10459
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10460
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$I, _hoisted_3$q);
|
|
10451
10461
|
}
|
|
10452
|
-
var loading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10453
|
-
const _sfc_main
|
|
10462
|
+
var loading = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$13]]);
|
|
10463
|
+
const _sfc_main$12 = defineComponent({
|
|
10454
10464
|
name: "Minus"
|
|
10455
10465
|
});
|
|
10456
|
-
const _hoisted_1$
|
|
10466
|
+
const _hoisted_1$H = {
|
|
10457
10467
|
class: "icon",
|
|
10458
10468
|
width: "200",
|
|
10459
10469
|
height: "200",
|
|
10460
10470
|
viewBox: "0 0 1024 1024",
|
|
10461
10471
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10462
10472
|
};
|
|
10463
|
-
const _hoisted_2$
|
|
10473
|
+
const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
|
|
10464
10474
|
fill: "currentColor",
|
|
10465
10475
|
d: "M128 544h768a32 32 0 100-64H128a32 32 0 000 64z"
|
|
10466
10476
|
}, null, -1);
|
|
10467
|
-
const _hoisted_3$
|
|
10468
|
-
_hoisted_2$
|
|
10477
|
+
const _hoisted_3$p = [
|
|
10478
|
+
_hoisted_2$u
|
|
10469
10479
|
];
|
|
10470
|
-
function _sfc_render
|
|
10471
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10480
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10481
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$H, _hoisted_3$p);
|
|
10472
10482
|
}
|
|
10473
|
-
var minus = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
10474
|
-
const _sfc_main$
|
|
10483
|
+
var minus = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12]]);
|
|
10484
|
+
const _sfc_main$11 = defineComponent({
|
|
10475
10485
|
name: "Plus"
|
|
10476
10486
|
});
|
|
10477
|
-
const _hoisted_1$
|
|
10487
|
+
const _hoisted_1$G = {
|
|
10478
10488
|
class: "icon",
|
|
10479
10489
|
width: "200",
|
|
10480
10490
|
height: "200",
|
|
10481
10491
|
viewBox: "0 0 1024 1024",
|
|
10482
10492
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10483
10493
|
};
|
|
10484
|
-
const _hoisted_2$
|
|
10494
|
+
const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
|
|
10485
10495
|
fill: "currentColor",
|
|
10486
10496
|
d: "M480 480V128a32 32 0 0164 0v352h352a32 32 0 110 64H544v352a32 32 0 11-64 0V544H128a32 32 0 010-64h352z"
|
|
10487
10497
|
}, null, -1);
|
|
10488
|
-
const _hoisted_3$
|
|
10489
|
-
_hoisted_2$
|
|
10498
|
+
const _hoisted_3$o = [
|
|
10499
|
+
_hoisted_2$t
|
|
10490
10500
|
];
|
|
10491
|
-
function _sfc_render$
|
|
10492
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10501
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10502
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$G, _hoisted_3$o);
|
|
10493
10503
|
}
|
|
10494
|
-
var plus = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10495
|
-
const _sfc_main$
|
|
10504
|
+
var plus = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11]]);
|
|
10505
|
+
const _sfc_main$10 = defineComponent({
|
|
10496
10506
|
name: "Search"
|
|
10497
10507
|
});
|
|
10498
|
-
const _hoisted_1$
|
|
10508
|
+
const _hoisted_1$F = {
|
|
10499
10509
|
class: "icon",
|
|
10500
10510
|
width: "200",
|
|
10501
10511
|
height: "200",
|
|
10502
10512
|
viewBox: "0 0 1024 1024",
|
|
10503
10513
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10504
10514
|
};
|
|
10505
|
-
const _hoisted_2$
|
|
10515
|
+
const _hoisted_2$s = /* @__PURE__ */ createElementVNode("path", {
|
|
10506
10516
|
fill: "currentColor",
|
|
10507
10517
|
d: "M795.904 750.72l124.992 124.928a32 32 0 01-45.248 45.248L750.656 795.904a416 416 0 1145.248-45.248zM480 832a352 352 0 100-704 352 352 0 000 704z"
|
|
10508
10518
|
}, null, -1);
|
|
10509
|
-
const _hoisted_3$
|
|
10510
|
-
_hoisted_2$
|
|
10519
|
+
const _hoisted_3$n = [
|
|
10520
|
+
_hoisted_2$s
|
|
10511
10521
|
];
|
|
10512
|
-
function _sfc_render$
|
|
10513
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
10522
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10523
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$F, _hoisted_3$n);
|
|
10514
10524
|
}
|
|
10515
|
-
var search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10525
|
+
var search = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10]]);
|
|
10516
10526
|
var defaultConfig = {
|
|
10517
10527
|
expireTimes: "1d",
|
|
10518
10528
|
path: "; path=/",
|
|
@@ -10641,7 +10651,7 @@ var _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf
|
|
|
10641
10651
|
var fileUploadWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10642
10652
|
useCookies();
|
|
10643
10653
|
let selectFileText = "'" + translate("render.hint.selectFile") + "'";
|
|
10644
|
-
const _sfc_main
|
|
10654
|
+
const _sfc_main$$ = {
|
|
10645
10655
|
name: "file-upload-widget",
|
|
10646
10656
|
componentName: "FieldWidget",
|
|
10647
10657
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -10722,21 +10732,52 @@ const _sfc_main$Y = {
|
|
|
10722
10732
|
this.unregisterFromRefList();
|
|
10723
10733
|
},
|
|
10724
10734
|
methods: {
|
|
10735
|
+
parseFileFieldModel(value2) {
|
|
10736
|
+
if (value2 == null || value2 === "") {
|
|
10737
|
+
return [];
|
|
10738
|
+
}
|
|
10739
|
+
let parsed = value2;
|
|
10740
|
+
if (typeof parsed === "string") {
|
|
10741
|
+
const trimmed = parsed.trim();
|
|
10742
|
+
if (!trimmed) {
|
|
10743
|
+
return [];
|
|
10744
|
+
}
|
|
10745
|
+
try {
|
|
10746
|
+
parsed = JSON.parse(trimmed);
|
|
10747
|
+
if (typeof parsed === "string") {
|
|
10748
|
+
const inner = parsed.trim();
|
|
10749
|
+
if (inner.startsWith("[") || inner.startsWith("{")) {
|
|
10750
|
+
parsed = JSON.parse(inner);
|
|
10751
|
+
}
|
|
10752
|
+
}
|
|
10753
|
+
} catch (e) {
|
|
10754
|
+
console.warn("[file-upload] fieldModel JSON parse failed:", e);
|
|
10755
|
+
return [];
|
|
10756
|
+
}
|
|
10757
|
+
}
|
|
10758
|
+
if (Array.isArray(parsed)) {
|
|
10759
|
+
return parsed;
|
|
10760
|
+
}
|
|
10761
|
+
if (parsed && typeof parsed === "object") {
|
|
10762
|
+
return [parsed];
|
|
10763
|
+
}
|
|
10764
|
+
return [];
|
|
10765
|
+
},
|
|
10725
10766
|
initFileList() {
|
|
10726
10767
|
if (this.designState === true) {
|
|
10727
10768
|
return;
|
|
10728
10769
|
}
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
10770
|
+
const parsedList = this.parseFileFieldModel(this.fieldModel);
|
|
10771
|
+
const shouldNormalizeFieldModel = typeof this.fieldModel === "string" || this.fieldModel != null && !Array.isArray(this.fieldModel) && typeof this.fieldModel === "object";
|
|
10772
|
+
if (shouldNormalizeFieldModel) {
|
|
10773
|
+
this.fieldModel = parsedList;
|
|
10733
10774
|
}
|
|
10734
|
-
|
|
10735
|
-
if (raw.length === 0) {
|
|
10775
|
+
if (parsedList.length === 0) {
|
|
10736
10776
|
this.fileList = [];
|
|
10737
10777
|
this.uploadBtnHidden = false;
|
|
10738
10778
|
return;
|
|
10739
10779
|
}
|
|
10780
|
+
const raw = deepClone(parsedList);
|
|
10740
10781
|
this.fileList = raw.map((item, i) => {
|
|
10741
10782
|
var _a, _b, _c, _d;
|
|
10742
10783
|
const name = (_b = (_a = item.name) != null ? _a : item.fileName) != null ? _b : "";
|
|
@@ -11014,26 +11055,26 @@ const _sfc_main$Y = {
|
|
|
11014
11055
|
}
|
|
11015
11056
|
}
|
|
11016
11057
|
};
|
|
11017
|
-
const _hoisted_1$
|
|
11018
|
-
const _hoisted_2$
|
|
11058
|
+
const _hoisted_1$E = { class: "file-upload-widget-container" };
|
|
11059
|
+
const _hoisted_2$r = {
|
|
11019
11060
|
key: 0,
|
|
11020
11061
|
class: "no-data-wrap"
|
|
11021
11062
|
};
|
|
11022
|
-
const _hoisted_3$
|
|
11063
|
+
const _hoisted_3$m = {
|
|
11023
11064
|
key: 0,
|
|
11024
11065
|
class: "el-upload__tip"
|
|
11025
11066
|
};
|
|
11026
|
-
const _hoisted_4$
|
|
11027
|
-
const _hoisted_5$
|
|
11028
|
-
const _hoisted_6$
|
|
11029
|
-
const _hoisted_7$
|
|
11030
|
-
const _hoisted_8$
|
|
11031
|
-
const _hoisted_9$
|
|
11032
|
-
const _hoisted_10$
|
|
11033
|
-
const _hoisted_11$
|
|
11034
|
-
const _hoisted_12$
|
|
11035
|
-
const _hoisted_13$
|
|
11036
|
-
function _sfc_render
|
|
11067
|
+
const _hoisted_4$j = { class: "main-tip" };
|
|
11068
|
+
const _hoisted_5$f = { class: "sub-tip" };
|
|
11069
|
+
const _hoisted_6$f = { class: "upload-file-list" };
|
|
11070
|
+
const _hoisted_7$d = { class: "left-wrap" };
|
|
11071
|
+
const _hoisted_8$8 = ["src"];
|
|
11072
|
+
const _hoisted_9$7 = ["title"];
|
|
11073
|
+
const _hoisted_10$5 = { class: "right-wrap" };
|
|
11074
|
+
const _hoisted_11$3 = ["title", "onClick"];
|
|
11075
|
+
const _hoisted_12$2 = ["onClick"];
|
|
11076
|
+
const _hoisted_13$2 = ["onClick"];
|
|
11077
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11037
11078
|
const _component_el_button = resolveComponent("el-button");
|
|
11038
11079
|
const _component_el_upload = resolveComponent("el-upload");
|
|
11039
11080
|
const _component_el_progress = resolveComponent("el-progress");
|
|
@@ -11051,8 +11092,8 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11051
11092
|
"sub-form-row-id": $props.subFormRowId
|
|
11052
11093
|
}, {
|
|
11053
11094
|
default: withCtx(() => [
|
|
11054
|
-
createElementVNode("div", _hoisted_1$
|
|
11055
|
-
_ctx.getDisabled() && $data.fileList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11095
|
+
createElementVNode("div", _hoisted_1$E, [
|
|
11096
|
+
_ctx.getDisabled() && $data.fileList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$r, " \u6682\u65E0\u6570\u636E ")) : createCommentVNode("", true),
|
|
11056
11097
|
createVNode(_component_el_upload, {
|
|
11057
11098
|
ref: "fieldEditor",
|
|
11058
11099
|
disabled: _ctx.getDisabled(),
|
|
@@ -11074,22 +11115,22 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11074
11115
|
"on-progress": $options.handleProgress
|
|
11075
11116
|
}, createSlots({
|
|
11076
11117
|
tip: withCtx(() => [
|
|
11077
|
-
!!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
11118
|
+
!!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_3$m, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
|
|
11078
11119
|
]),
|
|
11079
11120
|
file: withCtx(({ file }) => [
|
|
11080
|
-
createElementVNode("div", _hoisted_6$
|
|
11081
|
-
createElementVNode("div", _hoisted_7$
|
|
11121
|
+
createElementVNode("div", _hoisted_6$f, [
|
|
11122
|
+
createElementVNode("div", _hoisted_7$d, [
|
|
11082
11123
|
createElementVNode("img", {
|
|
11083
11124
|
src: $options.getFileIcon(file.name || file.fileName),
|
|
11084
11125
|
alt: "",
|
|
11085
11126
|
style: { "width": "18px", "height": "18px", "margin-right": "8px" }
|
|
11086
|
-
}, null, 8, _hoisted_8$
|
|
11127
|
+
}, null, 8, _hoisted_8$8),
|
|
11087
11128
|
createElementVNode("div", {
|
|
11088
11129
|
class: "upload-file-name",
|
|
11089
11130
|
title: file.name || file.fileName
|
|
11090
|
-
}, toDisplayString(file.name || file.fileName), 9, _hoisted_9$
|
|
11131
|
+
}, toDisplayString(file.name || file.fileName), 9, _hoisted_9$7)
|
|
11091
11132
|
]),
|
|
11092
|
-
createElementVNode("div", _hoisted_10$
|
|
11133
|
+
createElementVNode("div", _hoisted_10$5, [
|
|
11093
11134
|
!_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
11094
11135
|
key: 0,
|
|
11095
11136
|
class: "file-action",
|
|
@@ -11100,17 +11141,17 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11100
11141
|
src: _imports_1,
|
|
11101
11142
|
alt: ""
|
|
11102
11143
|
}, null, -1)
|
|
11103
|
-
])], 8, _hoisted_11$
|
|
11144
|
+
])], 8, _hoisted_11$3)) : createCommentVNode("", true),
|
|
11104
11145
|
_ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
|
|
11105
11146
|
key: 1,
|
|
11106
11147
|
onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
|
|
11107
11148
|
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
11108
|
-
}, " \u9884\u89C8 ", 8, _hoisted_12$
|
|
11149
|
+
}, " \u9884\u89C8 ", 8, _hoisted_12$2)) : createCommentVNode("", true),
|
|
11109
11150
|
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
11110
11151
|
key: 2,
|
|
11111
11152
|
onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
|
|
11112
11153
|
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
11113
|
-
}, " \u4E0B\u8F7D ", 8, _hoisted_13$
|
|
11154
|
+
}, " \u4E0B\u8F7D ", 8, _hoisted_13$2)) : createCommentVNode("", true)
|
|
11114
11155
|
])
|
|
11115
11156
|
])
|
|
11116
11157
|
]),
|
|
@@ -11124,8 +11165,8 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11124
11165
|
src: _imports_0,
|
|
11125
11166
|
alt: ""
|
|
11126
11167
|
}, null, -1)),
|
|
11127
|
-
createElementVNode("div", _hoisted_4$
|
|
11128
|
-
createElementVNode("div", _hoisted_5$
|
|
11168
|
+
createElementVNode("div", _hoisted_4$j, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
|
|
11169
|
+
createElementVNode("div", _hoisted_5$f, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
|
|
11129
11170
|
], 64)) : (openBlock(), createBlock(_component_el_button, {
|
|
11130
11171
|
key: 1,
|
|
11131
11172
|
type: "primary"
|
|
@@ -11151,13 +11192,13 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11151
11192
|
_: 1
|
|
11152
11193
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11153
11194
|
}
|
|
11154
|
-
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
11195
|
+
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["render", _sfc_render$$], ["__scopeId", "data-v-3a72c058"]]);
|
|
11155
11196
|
var __glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11156
11197
|
__proto__: null,
|
|
11157
11198
|
"default": fileUploadWidget
|
|
11158
11199
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11159
11200
|
var htmlTextWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11160
|
-
const _sfc_main$
|
|
11201
|
+
const _sfc_main$_ = {
|
|
11161
11202
|
name: "html-text-widget",
|
|
11162
11203
|
componentName: "FieldWidget",
|
|
11163
11204
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -11203,8 +11244,8 @@ const _sfc_main$X = {
|
|
|
11203
11244
|
},
|
|
11204
11245
|
methods: {}
|
|
11205
11246
|
};
|
|
11206
|
-
const _hoisted_1$
|
|
11207
|
-
function _sfc_render$
|
|
11247
|
+
const _hoisted_1$D = ["innerHTML"];
|
|
11248
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11208
11249
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
11209
11250
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
11210
11251
|
designer: $props.designer,
|
|
@@ -11221,19 +11262,19 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11221
11262
|
createElementVNode("div", {
|
|
11222
11263
|
ref: "fieldEditor",
|
|
11223
11264
|
innerHTML: $props.field.options.htmlContent
|
|
11224
|
-
}, null, 8, _hoisted_1$
|
|
11265
|
+
}, null, 8, _hoisted_1$D)
|
|
11225
11266
|
]),
|
|
11226
11267
|
_: 1
|
|
11227
11268
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11228
11269
|
}
|
|
11229
|
-
var htmlTextWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
11270
|
+
var htmlTextWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["render", _sfc_render$_], ["__scopeId", "data-v-3d941b4e"]]);
|
|
11230
11271
|
var __glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11231
11272
|
__proto__: null,
|
|
11232
11273
|
"default": htmlTextWidget
|
|
11233
11274
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11234
11275
|
var inputWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11235
11276
|
var inputWidget_vue_vue_type_style_index_1_lang = "";
|
|
11236
|
-
const _sfc_main$
|
|
11277
|
+
const _sfc_main$Z = {
|
|
11237
11278
|
name: "input-widget",
|
|
11238
11279
|
componentName: "FieldWidget",
|
|
11239
11280
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -11299,8 +11340,8 @@ const _sfc_main$W = {
|
|
|
11299
11340
|
},
|
|
11300
11341
|
methods: {}
|
|
11301
11342
|
};
|
|
11302
|
-
const _hoisted_1$
|
|
11303
|
-
function _sfc_render$
|
|
11343
|
+
const _hoisted_1$C = { class: "input-disabled-tooltip-wrap" };
|
|
11344
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11304
11345
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
11305
11346
|
const _component_el_button = resolveComponent("el-button");
|
|
11306
11347
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -11327,7 +11368,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11327
11368
|
"popper-class": "input-disabled-tooltip-popper"
|
|
11328
11369
|
}, {
|
|
11329
11370
|
default: withCtx(() => [
|
|
11330
|
-
createElementVNode("span", _hoisted_1$
|
|
11371
|
+
createElementVNode("span", _hoisted_1$C, [
|
|
11331
11372
|
createVNode(_component_el_input, {
|
|
11332
11373
|
ref: "fieldEditor",
|
|
11333
11374
|
modelValue: $data.fieldModel,
|
|
@@ -11376,13 +11417,13 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11376
11417
|
_: 1
|
|
11377
11418
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11378
11419
|
}
|
|
11379
|
-
var inputWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
11420
|
+
var inputWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["render", _sfc_render$Z], ["__scopeId", "data-v-14765387"]]);
|
|
11380
11421
|
var __glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11381
11422
|
__proto__: null,
|
|
11382
11423
|
"default": inputWidget
|
|
11383
11424
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11384
11425
|
var numberWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11385
|
-
const _sfc_main$
|
|
11426
|
+
const _sfc_main$Y = {
|
|
11386
11427
|
name: "number-widget",
|
|
11387
11428
|
componentName: "FieldWidget",
|
|
11388
11429
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -11437,7 +11478,7 @@ const _sfc_main$V = {
|
|
|
11437
11478
|
},
|
|
11438
11479
|
methods: {}
|
|
11439
11480
|
};
|
|
11440
|
-
function _sfc_render$
|
|
11481
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11441
11482
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
11442
11483
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
11443
11484
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -11474,13 +11515,13 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11474
11515
|
_: 1
|
|
11475
11516
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11476
11517
|
}
|
|
11477
|
-
var numberWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
11518
|
+
var numberWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["render", _sfc_render$Y], ["__scopeId", "data-v-30c98522"]]);
|
|
11478
11519
|
var __glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11479
11520
|
__proto__: null,
|
|
11480
11521
|
"default": numberWidget
|
|
11481
11522
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11482
11523
|
var pictureUploadWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11483
|
-
const _sfc_main$
|
|
11524
|
+
const _sfc_main$X = {
|
|
11484
11525
|
name: "picture-upload-widget",
|
|
11485
11526
|
componentName: "FieldWidget",
|
|
11486
11527
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -11677,20 +11718,20 @@ const _sfc_main$U = {
|
|
|
11677
11718
|
}
|
|
11678
11719
|
}
|
|
11679
11720
|
};
|
|
11680
|
-
const _hoisted_1$
|
|
11681
|
-
const _hoisted_2$
|
|
11721
|
+
const _hoisted_1$B = { class: "el-upload-list__item-status-label" };
|
|
11722
|
+
const _hoisted_2$q = {
|
|
11682
11723
|
class: "el-icon--upload-success",
|
|
11683
11724
|
style: { "color": "#FFF" }
|
|
11684
11725
|
};
|
|
11685
|
-
const _hoisted_3$
|
|
11686
|
-
const _hoisted_4$
|
|
11687
|
-
const _hoisted_5$
|
|
11688
|
-
const _hoisted_6$
|
|
11726
|
+
const _hoisted_3$l = { class: "el-upload-list__item-actions" };
|
|
11727
|
+
const _hoisted_4$i = ["onClick"];
|
|
11728
|
+
const _hoisted_5$e = ["onClick"];
|
|
11729
|
+
const _hoisted_6$e = {
|
|
11689
11730
|
key: 0,
|
|
11690
11731
|
class: "el-upload__tip"
|
|
11691
11732
|
};
|
|
11692
|
-
const _hoisted_7$
|
|
11693
|
-
function _sfc_render$
|
|
11733
|
+
const _hoisted_7$c = { class: "uploader-icon" };
|
|
11734
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11694
11735
|
const _component_el_image = resolveComponent("el-image");
|
|
11695
11736
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
11696
11737
|
const _component_el_upload = resolveComponent("el-upload");
|
|
@@ -11738,34 +11779,34 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11738
11779
|
fit: "cover",
|
|
11739
11780
|
"preview-teleported": ""
|
|
11740
11781
|
}, null, 8, ["src", "preview-src-list", "initial-index"]),
|
|
11741
|
-
createElementVNode("label", _hoisted_1$
|
|
11742
|
-
createElementVNode("i", _hoisted_2$
|
|
11782
|
+
createElementVNode("label", _hoisted_1$B, [
|
|
11783
|
+
createElementVNode("i", _hoisted_2$q, [
|
|
11743
11784
|
createVNode(_component_svg_icon, {
|
|
11744
11785
|
class: "",
|
|
11745
11786
|
"icon-class": "el-check"
|
|
11746
11787
|
})
|
|
11747
11788
|
])
|
|
11748
11789
|
]),
|
|
11749
|
-
createElementVNode("span", _hoisted_3$
|
|
11790
|
+
createElementVNode("span", _hoisted_3$l, [
|
|
11750
11791
|
createElementVNode("span", {
|
|
11751
11792
|
class: "el-upload-list__item-preview",
|
|
11752
11793
|
onClick: ($event) => $options.handlePictureCardPreview(file)
|
|
11753
11794
|
}, [
|
|
11754
11795
|
createVNode(_component_svg_icon, { "icon-class": "el-zoom-in" })
|
|
11755
|
-
], 8, _hoisted_4$
|
|
11796
|
+
], 8, _hoisted_4$i),
|
|
11756
11797
|
createElementVNode("span", {
|
|
11757
11798
|
class: "el-upload-list__item-delete",
|
|
11758
11799
|
onClick: ($event) => $options.handlePictureRemove(file)
|
|
11759
11800
|
}, [
|
|
11760
11801
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
11761
|
-
], 8, _hoisted_5$
|
|
11802
|
+
], 8, _hoisted_5$e)
|
|
11762
11803
|
])
|
|
11763
11804
|
]),
|
|
11764
11805
|
tip: withCtx(() => [
|
|
11765
|
-
!!$props.field.options.uploadTip ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
11806
|
+
!!$props.field.options.uploadTip ? (openBlock(), createElementBlock("div", _hoisted_6$e, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
|
|
11766
11807
|
]),
|
|
11767
11808
|
default: withCtx(() => [
|
|
11768
|
-
createElementVNode("div", _hoisted_7$
|
|
11809
|
+
createElementVNode("div", _hoisted_7$c, [
|
|
11769
11810
|
createVNode(_component_svg_icon, { "icon-class": "el-plus" })
|
|
11770
11811
|
])
|
|
11771
11812
|
]),
|
|
@@ -11775,13 +11816,13 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11775
11816
|
_: 1
|
|
11776
11817
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11777
11818
|
}
|
|
11778
|
-
var pictureUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
11819
|
+
var pictureUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-4d09ba72"]]);
|
|
11779
11820
|
var __glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11780
11821
|
__proto__: null,
|
|
11781
11822
|
"default": pictureUploadWidget
|
|
11782
11823
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11783
11824
|
var radioWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11784
|
-
const _sfc_main$
|
|
11825
|
+
const _sfc_main$W = {
|
|
11785
11826
|
name: "radio-widget",
|
|
11786
11827
|
componentName: "FieldWidget",
|
|
11787
11828
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -11837,7 +11878,7 @@ const _sfc_main$T = {
|
|
|
11837
11878
|
},
|
|
11838
11879
|
methods: {}
|
|
11839
11880
|
};
|
|
11840
|
-
function _sfc_render$
|
|
11881
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11841
11882
|
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
11842
11883
|
const _component_el_radio = resolveComponent("el-radio");
|
|
11843
11884
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
@@ -11899,13 +11940,13 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11899
11940
|
_: 1
|
|
11900
11941
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11901
11942
|
}
|
|
11902
|
-
var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
11943
|
+
var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$W], ["__scopeId", "data-v-05b877c5"]]);
|
|
11903
11944
|
var __glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11904
11945
|
__proto__: null,
|
|
11905
11946
|
"default": radioWidget
|
|
11906
11947
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11907
11948
|
var rateWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11908
|
-
const _sfc_main$
|
|
11949
|
+
const _sfc_main$V = {
|
|
11909
11950
|
name: "rate-widget",
|
|
11910
11951
|
componentName: "FieldWidget",
|
|
11911
11952
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -11960,7 +12001,7 @@ const _sfc_main$S = {
|
|
|
11960
12001
|
},
|
|
11961
12002
|
methods: {}
|
|
11962
12003
|
};
|
|
11963
|
-
function _sfc_render$
|
|
12004
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11964
12005
|
const _component_el_rate = resolveComponent("el-rate");
|
|
11965
12006
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
11966
12007
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -11993,7 +12034,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11993
12034
|
_: 1
|
|
11994
12035
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11995
12036
|
}
|
|
11996
|
-
var rateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
12037
|
+
var rateWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$V], ["__scopeId", "data-v-3c7d82fe"]]);
|
|
11997
12038
|
var __glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11998
12039
|
__proto__: null,
|
|
11999
12040
|
"default": rateWidget
|
|
@@ -23329,7 +23370,7 @@ const defaultOptions = {
|
|
|
23329
23370
|
placeholder: "Insert content here ...",
|
|
23330
23371
|
readOnly: false
|
|
23331
23372
|
};
|
|
23332
|
-
const _sfc_main$
|
|
23373
|
+
const _sfc_main$U = {
|
|
23333
23374
|
name: "quill-editor",
|
|
23334
23375
|
props: {
|
|
23335
23376
|
content: String,
|
|
@@ -23433,16 +23474,16 @@ const _sfc_main$R = {
|
|
|
23433
23474
|
return { editor };
|
|
23434
23475
|
}
|
|
23435
23476
|
};
|
|
23436
|
-
const _hoisted_1$
|
|
23437
|
-
function _sfc_render$
|
|
23438
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
23477
|
+
const _hoisted_1$A = { ref: "editor" };
|
|
23478
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23479
|
+
return openBlock(), createElementBlock("section", _hoisted_1$A, null, 512);
|
|
23439
23480
|
}
|
|
23440
|
-
var quillEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
23481
|
+
var quillEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$U]]);
|
|
23441
23482
|
quillEditor.install = function(app) {
|
|
23442
23483
|
app.component(quillEditor.name, quillEditor);
|
|
23443
23484
|
};
|
|
23444
23485
|
var richEditorWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23445
|
-
const _sfc_main$
|
|
23486
|
+
const _sfc_main$T = {
|
|
23446
23487
|
name: "rich-editor-widget",
|
|
23447
23488
|
componentName: "FieldWidget",
|
|
23448
23489
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -23521,7 +23562,7 @@ const _sfc_main$Q = {
|
|
|
23521
23562
|
}
|
|
23522
23563
|
}
|
|
23523
23564
|
};
|
|
23524
|
-
function _sfc_render$
|
|
23565
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23525
23566
|
const _component_quill_editor = resolveComponent("quill-editor");
|
|
23526
23567
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
23527
23568
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -23553,12 +23594,12 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23553
23594
|
_: 1
|
|
23554
23595
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
23555
23596
|
}
|
|
23556
|
-
var richEditorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
23597
|
+
var richEditorWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$T], ["__scopeId", "data-v-6f719fd1"]]);
|
|
23557
23598
|
var __glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23558
23599
|
__proto__: null,
|
|
23559
23600
|
"default": richEditorWidget
|
|
23560
23601
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
23561
|
-
const _sfc_main$
|
|
23602
|
+
const _sfc_main$S = {
|
|
23562
23603
|
name: "select-tree-widget",
|
|
23563
23604
|
componentName: "FieldWidget",
|
|
23564
23605
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -23630,7 +23671,7 @@ const _sfc_main$P = {
|
|
|
23630
23671
|
this.unregisterFromRefList();
|
|
23631
23672
|
}
|
|
23632
23673
|
};
|
|
23633
|
-
function _sfc_render$
|
|
23674
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23634
23675
|
const _component_el_tree_select = resolveComponent("el-tree-select");
|
|
23635
23676
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
23636
23677
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -23678,13 +23719,13 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23678
23719
|
_: 1
|
|
23679
23720
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
23680
23721
|
}
|
|
23681
|
-
var selectTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
23722
|
+
var selectTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$S]]);
|
|
23682
23723
|
var __glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23683
23724
|
__proto__: null,
|
|
23684
23725
|
"default": selectTreeWidget
|
|
23685
23726
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
23686
23727
|
var selectWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23687
|
-
const _sfc_main$
|
|
23728
|
+
const _sfc_main$R = {
|
|
23688
23729
|
name: "select-widget",
|
|
23689
23730
|
componentName: "FieldWidget",
|
|
23690
23731
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -23763,7 +23804,7 @@ const _sfc_main$O = {
|
|
|
23763
23804
|
}
|
|
23764
23805
|
}
|
|
23765
23806
|
};
|
|
23766
|
-
function _sfc_render$
|
|
23807
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23767
23808
|
const _component_el_option = resolveComponent("el-option");
|
|
23768
23809
|
const _component_el_select = resolveComponent("el-select");
|
|
23769
23810
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
@@ -23817,13 +23858,13 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23817
23858
|
_: 1
|
|
23818
23859
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
23819
23860
|
}
|
|
23820
|
-
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
23861
|
+
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-63065392"]]);
|
|
23821
23862
|
var __glob_0_17 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23822
23863
|
__proto__: null,
|
|
23823
23864
|
"default": selectWidget
|
|
23824
23865
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
23825
23866
|
var sliderWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23826
|
-
const _sfc_main$
|
|
23867
|
+
const _sfc_main$Q = {
|
|
23827
23868
|
name: "slider-widget",
|
|
23828
23869
|
componentName: "FieldWidget",
|
|
23829
23870
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -23878,7 +23919,7 @@ const _sfc_main$N = {
|
|
|
23878
23919
|
},
|
|
23879
23920
|
methods: {}
|
|
23880
23921
|
};
|
|
23881
|
-
function _sfc_render$
|
|
23922
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23882
23923
|
const _component_el_slider = resolveComponent("el-slider");
|
|
23883
23924
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
23884
23925
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -23911,13 +23952,13 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23911
23952
|
_: 1
|
|
23912
23953
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
23913
23954
|
}
|
|
23914
|
-
var sliderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
23955
|
+
var sliderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$Q], ["__scopeId", "data-v-c9a31970"]]);
|
|
23915
23956
|
var __glob_0_18 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23916
23957
|
__proto__: null,
|
|
23917
23958
|
"default": sliderWidget
|
|
23918
23959
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
23919
23960
|
var slotWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23920
|
-
const _sfc_main$
|
|
23961
|
+
const _sfc_main$P = {
|
|
23921
23962
|
name: "slot-widget",
|
|
23922
23963
|
componentName: "FieldWidget",
|
|
23923
23964
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -23963,11 +24004,11 @@ const _sfc_main$M = {
|
|
|
23963
24004
|
},
|
|
23964
24005
|
methods: {}
|
|
23965
24006
|
};
|
|
23966
|
-
const _hoisted_1$
|
|
24007
|
+
const _hoisted_1$z = {
|
|
23967
24008
|
key: 0,
|
|
23968
24009
|
class: "slot-title"
|
|
23969
24010
|
};
|
|
23970
|
-
function _sfc_render$
|
|
24011
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23971
24012
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
23972
24013
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
23973
24014
|
designer: $props.designer,
|
|
@@ -23985,19 +24026,19 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23985
24026
|
class: normalizeClass([!!$props.designState ? "slot-wrapper-design" : "slot-wrapper-render"])
|
|
23986
24027
|
}, [
|
|
23987
24028
|
renderSlot(_ctx.$slots, $props.field.options.name, { formModel: _ctx.formModel }, void 0, true),
|
|
23988
|
-
!!$props.designState ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24029
|
+
!!$props.designState ? (openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString($props.field.options.label), 1)) : createCommentVNode("", true)
|
|
23989
24030
|
], 2)
|
|
23990
24031
|
]),
|
|
23991
24032
|
_: 3
|
|
23992
24033
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
23993
24034
|
}
|
|
23994
|
-
var slotWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
24035
|
+
var slotWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$P], ["__scopeId", "data-v-95f13fca"]]);
|
|
23995
24036
|
var __glob_0_19 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23996
24037
|
__proto__: null,
|
|
23997
24038
|
"default": slotWidget
|
|
23998
24039
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
23999
24040
|
var staticTextWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24000
|
-
const _sfc_main$
|
|
24041
|
+
const _sfc_main$O = {
|
|
24001
24042
|
name: "static-text-widget",
|
|
24002
24043
|
componentName: "FieldWidget",
|
|
24003
24044
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -24083,7 +24124,7 @@ const _sfc_main$L = {
|
|
|
24083
24124
|
}
|
|
24084
24125
|
}
|
|
24085
24126
|
};
|
|
24086
|
-
function _sfc_render$
|
|
24127
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24087
24128
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
24088
24129
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
24089
24130
|
designer: $props.designer,
|
|
@@ -24110,13 +24151,13 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24110
24151
|
_: 1
|
|
24111
24152
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
24112
24153
|
}
|
|
24113
|
-
var staticTextWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
24154
|
+
var staticTextWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$O], ["__scopeId", "data-v-760822b6"]]);
|
|
24114
24155
|
var __glob_0_21 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24115
24156
|
__proto__: null,
|
|
24116
24157
|
"default": staticTextWidget
|
|
24117
24158
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
24118
24159
|
var switchWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24119
|
-
const _sfc_main$
|
|
24160
|
+
const _sfc_main$N = {
|
|
24120
24161
|
name: "switch-widget",
|
|
24121
24162
|
componentName: "FieldWidget",
|
|
24122
24163
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -24171,7 +24212,7 @@ const _sfc_main$K = {
|
|
|
24171
24212
|
},
|
|
24172
24213
|
methods: {}
|
|
24173
24214
|
};
|
|
24174
|
-
function _sfc_render$
|
|
24215
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24175
24216
|
const _component_el_switch = resolveComponent("el-switch");
|
|
24176
24217
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
24177
24218
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -24203,13 +24244,13 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24203
24244
|
_: 1
|
|
24204
24245
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
24205
24246
|
}
|
|
24206
|
-
var switchWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
24247
|
+
var switchWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$N], ["__scopeId", "data-v-2e8d2d0a"]]);
|
|
24207
24248
|
var __glob_0_22 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24208
24249
|
__proto__: null,
|
|
24209
24250
|
"default": switchWidget
|
|
24210
24251
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
24211
24252
|
var textareaWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24212
|
-
const _sfc_main$
|
|
24253
|
+
const _sfc_main$M = {
|
|
24213
24254
|
name: "textarea-widget",
|
|
24214
24255
|
componentName: "FieldWidget",
|
|
24215
24256
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -24264,7 +24305,7 @@ const _sfc_main$J = {
|
|
|
24264
24305
|
},
|
|
24265
24306
|
methods: {}
|
|
24266
24307
|
};
|
|
24267
|
-
function _sfc_render$
|
|
24308
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24268
24309
|
const _component_el_input = resolveComponent("el-input");
|
|
24269
24310
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
24270
24311
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -24302,13 +24343,13 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24302
24343
|
_: 1
|
|
24303
24344
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
24304
24345
|
}
|
|
24305
|
-
var textareaWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
24346
|
+
var textareaWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-687fedce"]]);
|
|
24306
24347
|
var __glob_0_23 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24307
24348
|
__proto__: null,
|
|
24308
24349
|
"default": textareaWidget
|
|
24309
24350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
24310
24351
|
var timeRangeWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24311
|
-
const _sfc_main$
|
|
24352
|
+
const _sfc_main$L = {
|
|
24312
24353
|
name: "time-range-widget",
|
|
24313
24354
|
componentName: "FieldWidget",
|
|
24314
24355
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -24363,7 +24404,7 @@ const _sfc_main$I = {
|
|
|
24363
24404
|
},
|
|
24364
24405
|
methods: {}
|
|
24365
24406
|
};
|
|
24366
|
-
function _sfc_render$
|
|
24407
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24367
24408
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
24368
24409
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
24369
24410
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -24406,13 +24447,13 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24406
24447
|
_: 1
|
|
24407
24448
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
24408
24449
|
}
|
|
24409
|
-
var timeRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
24450
|
+
var timeRangeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$L], ["__scopeId", "data-v-f78e9b46"]]);
|
|
24410
24451
|
var __glob_0_24 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24411
24452
|
__proto__: null,
|
|
24412
24453
|
"default": timeRangeWidget
|
|
24413
24454
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
24414
24455
|
var timeWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24415
|
-
const _sfc_main$
|
|
24456
|
+
const _sfc_main$K = {
|
|
24416
24457
|
name: "time-widget",
|
|
24417
24458
|
componentName: "FieldWidget",
|
|
24418
24459
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -24467,7 +24508,7 @@ const _sfc_main$H = {
|
|
|
24467
24508
|
},
|
|
24468
24509
|
methods: {}
|
|
24469
24510
|
};
|
|
24470
|
-
function _sfc_render$
|
|
24511
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24471
24512
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
24472
24513
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
24473
24514
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -24504,7 +24545,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24504
24545
|
_: 1
|
|
24505
24546
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
24506
24547
|
}
|
|
24507
|
-
var timeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
24548
|
+
var timeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$K], ["__scopeId", "data-v-60cd3a6a"]]);
|
|
24508
24549
|
var __glob_0_25 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24509
24550
|
__proto__: null,
|
|
24510
24551
|
"default": timeWidget
|
|
@@ -24516,7 +24557,7 @@ for (const path in modules$2) {
|
|
|
24516
24557
|
comps[cname] = modules$2[path].default;
|
|
24517
24558
|
}
|
|
24518
24559
|
var gridColItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24519
|
-
const _sfc_main$
|
|
24560
|
+
const _sfc_main$J = {
|
|
24520
24561
|
name: "GridColItem",
|
|
24521
24562
|
componentName: "ContainerItem",
|
|
24522
24563
|
mixins: [emitter, i18n$1, refMixin],
|
|
@@ -24669,9 +24710,9 @@ const _sfc_main$G = {
|
|
|
24669
24710
|
}
|
|
24670
24711
|
}
|
|
24671
24712
|
};
|
|
24672
|
-
const _hoisted_1$
|
|
24673
|
-
const _hoisted_2$
|
|
24674
|
-
function _sfc_render$
|
|
24713
|
+
const _hoisted_1$y = { class: "blank-cell" };
|
|
24714
|
+
const _hoisted_2$p = { class: "invisible-content" };
|
|
24715
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24675
24716
|
const _component_el_col = resolveComponent("el-col");
|
|
24676
24717
|
return $props.widget ? withDirectives((openBlock(), createBlock(_component_el_col, mergeProps({
|
|
24677
24718
|
key: 0,
|
|
@@ -24727,8 +24768,8 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24727
24768
|
], 64);
|
|
24728
24769
|
}), 256)) : (openBlock(), createBlock(_component_el_col, { key: 1 }, {
|
|
24729
24770
|
default: withCtx(() => [
|
|
24730
|
-
createElementVNode("div", _hoisted_1$
|
|
24731
|
-
createElementVNode("span", _hoisted_2$
|
|
24771
|
+
createElementVNode("div", _hoisted_1$y, [
|
|
24772
|
+
createElementVNode("span", _hoisted_2$p, toDisplayString(_ctx.i18nt("render.hint.blankCellContent")), 1)
|
|
24732
24773
|
])
|
|
24733
24774
|
]),
|
|
24734
24775
|
_: 1
|
|
@@ -24739,7 +24780,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24739
24780
|
[vShow, $options.colVisible]
|
|
24740
24781
|
]) : createCommentVNode("", true);
|
|
24741
24782
|
}
|
|
24742
|
-
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
24783
|
+
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-20705201"]]);
|
|
24743
24784
|
var __glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24744
24785
|
__proto__: null,
|
|
24745
24786
|
"default": GridColItem
|
|
@@ -24933,7 +24974,7 @@ var containerItemMixin = {
|
|
|
24933
24974
|
}
|
|
24934
24975
|
}
|
|
24935
24976
|
};
|
|
24936
|
-
const _sfc_main$
|
|
24977
|
+
const _sfc_main$I = {
|
|
24937
24978
|
name: "vf-grid-item",
|
|
24938
24979
|
componentName: "ContainerItem",
|
|
24939
24980
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -24976,7 +25017,7 @@ const _sfc_main$F = {
|
|
|
24976
25017
|
},
|
|
24977
25018
|
methods: {}
|
|
24978
25019
|
};
|
|
24979
|
-
function _sfc_render$
|
|
25020
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24980
25021
|
const _component_grid_col_item = resolveComponent("grid-col-item");
|
|
24981
25022
|
const _component_el_row = resolveComponent("el-row");
|
|
24982
25023
|
const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
|
|
@@ -25022,13 +25063,13 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25022
25063
|
_: 3
|
|
25023
25064
|
}, 8, ["widget"]);
|
|
25024
25065
|
}
|
|
25025
|
-
var gridItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
25066
|
+
var gridItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$I]]);
|
|
25026
25067
|
var __glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25027
25068
|
__proto__: null,
|
|
25028
25069
|
"default": gridItem
|
|
25029
25070
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
25030
25071
|
var subFormItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
25031
|
-
const _sfc_main$
|
|
25072
|
+
const _sfc_main$H = {
|
|
25032
25073
|
name: "sub-form-item",
|
|
25033
25074
|
componentName: "ContainerItem",
|
|
25034
25075
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -25229,20 +25270,20 @@ const _sfc_main$E = {
|
|
|
25229
25270
|
}
|
|
25230
25271
|
}
|
|
25231
25272
|
};
|
|
25232
|
-
const _hoisted_1$
|
|
25233
|
-
const _hoisted_2$
|
|
25234
|
-
const _hoisted_3$
|
|
25273
|
+
const _hoisted_1$x = { class: "action-header-column" };
|
|
25274
|
+
const _hoisted_2$o = { class: "action-label" };
|
|
25275
|
+
const _hoisted_3$k = {
|
|
25235
25276
|
key: 0,
|
|
25236
25277
|
class: "custom-label"
|
|
25237
25278
|
};
|
|
25238
|
-
const _hoisted_4$
|
|
25239
|
-
const _hoisted_5$
|
|
25240
|
-
const _hoisted_6$
|
|
25241
|
-
const _hoisted_7$
|
|
25279
|
+
const _hoisted_4$h = ["title"];
|
|
25280
|
+
const _hoisted_5$d = { class: "sub-form-action-column hide-label" };
|
|
25281
|
+
const _hoisted_6$d = { class: "action-button-column" };
|
|
25282
|
+
const _hoisted_7$b = {
|
|
25242
25283
|
key: 0,
|
|
25243
25284
|
class: "row-number-span"
|
|
25244
25285
|
};
|
|
25245
|
-
function _sfc_render$
|
|
25286
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25246
25287
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
25247
25288
|
const _component_el_button = resolveComponent("el-button");
|
|
25248
25289
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -25256,8 +25297,8 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25256
25297
|
}, [
|
|
25257
25298
|
createVNode(_component_el_row, { class: "header-row" }, {
|
|
25258
25299
|
default: withCtx(() => [
|
|
25259
|
-
createElementVNode("div", _hoisted_1$
|
|
25260
|
-
createElementVNode("span", _hoisted_2$
|
|
25300
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
25301
|
+
createElementVNode("span", _hoisted_2$o, toDisplayString(_ctx.i18nt("render.hint.subFormAction")), 1),
|
|
25261
25302
|
createVNode(_component_el_button, {
|
|
25262
25303
|
disabled: $data.actionDisabled,
|
|
25263
25304
|
round: "",
|
|
@@ -25280,7 +25321,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25280
25321
|
class: normalizeClass(["field-header-column", [$options.getLabelAlign($props.widget, subWidget), !!subWidget.options.required ? "is-required" : ""]]),
|
|
25281
25322
|
style: normalizeStyle({ width: subWidget.options.columnWidth })
|
|
25282
25323
|
}, [
|
|
25283
|
-
!!subWidget.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
25324
|
+
!!subWidget.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_3$k, [
|
|
25284
25325
|
subWidget.options.labelIconPosition === "front" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
25285
25326
|
!!subWidget.options.labelTooltip ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
25286
25327
|
createVNode(_component_el_tooltip, {
|
|
@@ -25325,7 +25366,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25325
25366
|
])) : (openBlock(), createElementBlock("span", {
|
|
25326
25367
|
key: 1,
|
|
25327
25368
|
title: subWidget.options.labelTooltip
|
|
25328
|
-
}, toDisplayString(subWidget.options.label), 9, _hoisted_4$
|
|
25369
|
+
}, toDisplayString(subWidget.options.label), 9, _hoisted_4$h))
|
|
25329
25370
|
], 6);
|
|
25330
25371
|
}), 128))
|
|
25331
25372
|
]),
|
|
@@ -25337,8 +25378,8 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25337
25378
|
key: subFormRowId
|
|
25338
25379
|
}, {
|
|
25339
25380
|
default: withCtx(() => [
|
|
25340
|
-
createElementVNode("div", _hoisted_5$
|
|
25341
|
-
createElementVNode("div", _hoisted_6$
|
|
25381
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
25382
|
+
createElementVNode("div", _hoisted_6$d, [
|
|
25342
25383
|
createVNode(_component_el_button, {
|
|
25343
25384
|
disabled: $data.actionDisabled,
|
|
25344
25385
|
circle: "",
|
|
@@ -25361,7 +25402,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25361
25402
|
]),
|
|
25362
25403
|
_: 1
|
|
25363
25404
|
}, 8, ["disabled", "onClick", "title"]),
|
|
25364
|
-
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
25405
|
+
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_7$b, "#" + toDisplayString(sfrIdx + 1), 1)) : createCommentVNode("", true)
|
|
25365
25406
|
])
|
|
25366
25407
|
]),
|
|
25367
25408
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.widgetList, (subWidget, swIdx) => {
|
|
@@ -25404,12 +25445,12 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25404
25445
|
_: 1
|
|
25405
25446
|
}, 8, ["widget"]);
|
|
25406
25447
|
}
|
|
25407
|
-
var subFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
25448
|
+
var subFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$H], ["__scopeId", "data-v-59c24e8e"]]);
|
|
25408
25449
|
var __glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25409
25450
|
__proto__: null,
|
|
25410
25451
|
"default": subFormItem
|
|
25411
25452
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
25412
|
-
const _sfc_main$
|
|
25453
|
+
const _sfc_main$G = {
|
|
25413
25454
|
name: "tab-item",
|
|
25414
25455
|
componentName: "ContainerItem",
|
|
25415
25456
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -25460,7 +25501,7 @@ const _sfc_main$D = {
|
|
|
25460
25501
|
}
|
|
25461
25502
|
}
|
|
25462
25503
|
};
|
|
25463
|
-
function _sfc_render$
|
|
25504
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25464
25505
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
25465
25506
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
25466
25507
|
const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
|
|
@@ -25535,13 +25576,13 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25535
25576
|
_: 3
|
|
25536
25577
|
}, 8, ["widget"]);
|
|
25537
25578
|
}
|
|
25538
|
-
var tabItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
25579
|
+
var tabItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$G]]);
|
|
25539
25580
|
var __glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25540
25581
|
__proto__: null,
|
|
25541
25582
|
"default": tabItem
|
|
25542
25583
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
25543
25584
|
var tableCellItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
25544
|
-
const _sfc_main$
|
|
25585
|
+
const _sfc_main$F = {
|
|
25545
25586
|
name: "TableCellItem",
|
|
25546
25587
|
componentName: "ContainerItem",
|
|
25547
25588
|
mixins: [emitter, i18n$1, refMixin],
|
|
@@ -25564,8 +25605,8 @@ const _sfc_main$C = {
|
|
|
25564
25605
|
},
|
|
25565
25606
|
methods: {}
|
|
25566
25607
|
};
|
|
25567
|
-
const _hoisted_1$
|
|
25568
|
-
function _sfc_render$
|
|
25608
|
+
const _hoisted_1$w = ["colspan", "rowspan"];
|
|
25609
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25569
25610
|
return openBlock(), createElementBlock("td", {
|
|
25570
25611
|
class: normalizeClass(["table-cell", [$options.customClass]]),
|
|
25571
25612
|
colspan: $props.widget && $props.widget.options ? $props.widget.options.colspan || 1 : 1,
|
|
@@ -25607,15 +25648,15 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25607
25648
|
]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
25608
25649
|
], 64);
|
|
25609
25650
|
}), 256))
|
|
25610
|
-
], 14, _hoisted_1$
|
|
25651
|
+
], 14, _hoisted_1$w);
|
|
25611
25652
|
}
|
|
25612
|
-
var TableCellItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
25653
|
+
var TableCellItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$F], ["__scopeId", "data-v-7d6166fa"]]);
|
|
25613
25654
|
var __glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25614
25655
|
__proto__: null,
|
|
25615
25656
|
"default": TableCellItem
|
|
25616
25657
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
25617
25658
|
var tableItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
25618
|
-
const _sfc_main$
|
|
25659
|
+
const _sfc_main$E = {
|
|
25619
25660
|
name: "table-item",
|
|
25620
25661
|
componentName: "ContainerItem",
|
|
25621
25662
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -25637,7 +25678,7 @@ const _sfc_main$B = {
|
|
|
25637
25678
|
},
|
|
25638
25679
|
methods: {}
|
|
25639
25680
|
};
|
|
25640
|
-
function _sfc_render$
|
|
25681
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25641
25682
|
const _component_table_cell_item = resolveComponent("table-cell-item");
|
|
25642
25683
|
const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
|
|
25643
25684
|
return openBlock(), createBlock(_component_container_item_wrapper, { widget: $props.widget }, {
|
|
@@ -25687,7 +25728,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25687
25728
|
_: 3
|
|
25688
25729
|
}, 8, ["widget"]);
|
|
25689
25730
|
}
|
|
25690
|
-
var tableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
25731
|
+
var tableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render$E], ["__scopeId", "data-v-3481d843"]]);
|
|
25691
25732
|
var __glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25692
25733
|
__proto__: null,
|
|
25693
25734
|
"default": tableItem
|
|
@@ -25702,7 +25743,7 @@ var ContainerItems = {
|
|
|
25702
25743
|
}
|
|
25703
25744
|
};
|
|
25704
25745
|
var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
|
|
25705
|
-
const _sfc_main$
|
|
25746
|
+
const _sfc_main$D = {
|
|
25706
25747
|
name: "VFormRender",
|
|
25707
25748
|
componentName: "VFormRender",
|
|
25708
25749
|
mixins: [emitter, i18n$1],
|
|
@@ -26531,7 +26572,7 @@ const _sfc_main$A = {
|
|
|
26531
26572
|
}
|
|
26532
26573
|
}
|
|
26533
26574
|
};
|
|
26534
|
-
function _sfc_render$
|
|
26575
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26535
26576
|
const _component_el_form = resolveComponent("el-form");
|
|
26536
26577
|
return openBlock(), createBlock(_component_el_form, {
|
|
26537
26578
|
"label-position": $options.labelPosition,
|
|
@@ -26588,7 +26629,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26588
26629
|
_: 3
|
|
26589
26630
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
26590
26631
|
}
|
|
26591
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
26632
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["render", _sfc_render$D], ["__scopeId", "data-v-4fac61a7"]]);
|
|
26592
26633
|
function registerIcon(app) {
|
|
26593
26634
|
app.component("el-icon-edit", edit);
|
|
26594
26635
|
app.component("el-icon-minus", minus);
|
|
@@ -26603,13 +26644,13 @@ function registerIcon(app) {
|
|
|
26603
26644
|
if (typeof window !== "undefined") {
|
|
26604
26645
|
let loadSvg = function() {
|
|
26605
26646
|
var body = document.body;
|
|
26606
|
-
var svgDom = document.getElementById("
|
|
26647
|
+
var svgDom = document.getElementById("__svg__icons__dom__1783060851654__");
|
|
26607
26648
|
if (!svgDom) {
|
|
26608
26649
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26609
26650
|
svgDom.style.position = "absolute";
|
|
26610
26651
|
svgDom.style.width = "0";
|
|
26611
26652
|
svgDom.style.height = "0";
|
|
26612
|
-
svgDom.id = "
|
|
26653
|
+
svgDom.id = "__svg__icons__dom__1783060851654__";
|
|
26613
26654
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26614
26655
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26615
26656
|
}
|
|
@@ -26883,7 +26924,7 @@ var containerMixin = {
|
|
|
26883
26924
|
}
|
|
26884
26925
|
};
|
|
26885
26926
|
var containerWrapper_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
26886
|
-
const _sfc_main$
|
|
26927
|
+
const _sfc_main$C = {
|
|
26887
26928
|
name: "container-wrapper",
|
|
26888
26929
|
mixins: [i18n$1, containerMixin],
|
|
26889
26930
|
components: {
|
|
@@ -26902,92 +26943,92 @@ const _sfc_main$z = {
|
|
|
26902
26943
|
}
|
|
26903
26944
|
}
|
|
26904
26945
|
};
|
|
26905
|
-
const _hoisted_1$
|
|
26946
|
+
const _hoisted_1$v = {
|
|
26906
26947
|
key: 0,
|
|
26907
26948
|
class: "container-action"
|
|
26908
26949
|
};
|
|
26909
|
-
const _hoisted_2$
|
|
26910
|
-
const _hoisted_3$
|
|
26911
|
-
const _hoisted_4$
|
|
26912
|
-
const _hoisted_5$
|
|
26913
|
-
const _hoisted_6$
|
|
26914
|
-
const _hoisted_7$
|
|
26915
|
-
const _hoisted_8$
|
|
26916
|
-
const _hoisted_9$
|
|
26950
|
+
const _hoisted_2$n = ["title"];
|
|
26951
|
+
const _hoisted_3$j = ["title"];
|
|
26952
|
+
const _hoisted_4$g = ["title"];
|
|
26953
|
+
const _hoisted_5$c = ["title"];
|
|
26954
|
+
const _hoisted_6$c = ["title"];
|
|
26955
|
+
const _hoisted_7$a = ["title"];
|
|
26956
|
+
const _hoisted_8$7 = ["title"];
|
|
26957
|
+
const _hoisted_9$6 = {
|
|
26917
26958
|
key: 1,
|
|
26918
26959
|
class: "drag-handler"
|
|
26919
26960
|
};
|
|
26920
|
-
const _hoisted_10$
|
|
26921
|
-
const _hoisted_11$
|
|
26922
|
-
function _sfc_render$
|
|
26961
|
+
const _hoisted_10$4 = ["title"];
|
|
26962
|
+
const _hoisted_11$2 = { key: 0 };
|
|
26963
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26923
26964
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
26924
26965
|
return openBlock(), createElementBlock("div", {
|
|
26925
26966
|
class: normalizeClass(["container-wrapper", [$options.customClass]])
|
|
26926
26967
|
}, [
|
|
26927
26968
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
26928
|
-
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26969
|
+
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
26929
26970
|
createElementVNode("i", {
|
|
26930
26971
|
title: _ctx.i18nt("designer.hint.selectParentWidget"),
|
|
26931
26972
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.selectParentWidget($props.widget), ["stop"]))
|
|
26932
26973
|
}, [
|
|
26933
26974
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
26934
|
-
], 8, _hoisted_2$
|
|
26975
|
+
], 8, _hoisted_2$n),
|
|
26935
26976
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
26936
26977
|
key: 0,
|
|
26937
26978
|
title: _ctx.i18nt("designer.hint.moveUpWidget"),
|
|
26938
26979
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.moveUpWidget(), ["stop"]))
|
|
26939
26980
|
}, [
|
|
26940
26981
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
26941
|
-
], 8, _hoisted_3$
|
|
26982
|
+
], 8, _hoisted_3$j)) : createCommentVNode("", true),
|
|
26942
26983
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
26943
26984
|
key: 1,
|
|
26944
26985
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
26945
26986
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => _ctx.moveDownWidget(), ["stop"]))
|
|
26946
26987
|
}, [
|
|
26947
26988
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
26948
|
-
], 8, _hoisted_4$
|
|
26989
|
+
], 8, _hoisted_4$g)) : createCommentVNode("", true),
|
|
26949
26990
|
$props.widget.type === "table" ? (openBlock(), createElementBlock("i", {
|
|
26950
26991
|
key: 2,
|
|
26951
26992
|
title: _ctx.i18nt("designer.hint.insertRow"),
|
|
26952
26993
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => _ctx.appendTableRow($props.widget), ["stop"]))
|
|
26953
26994
|
}, [
|
|
26954
26995
|
createVNode(_component_svg_icon, { "icon-class": "el-insert-row" })
|
|
26955
|
-
], 8, _hoisted_5$
|
|
26996
|
+
], 8, _hoisted_5$c)) : createCommentVNode("", true),
|
|
26956
26997
|
$props.widget.type === "table" ? (openBlock(), createElementBlock("i", {
|
|
26957
26998
|
key: 3,
|
|
26958
26999
|
title: _ctx.i18nt("designer.hint.insertColumn"),
|
|
26959
27000
|
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => _ctx.appendTableCol($props.widget), ["stop"]))
|
|
26960
27001
|
}, [
|
|
26961
27002
|
createVNode(_component_svg_icon, { "icon-class": "el-insert-column" })
|
|
26962
|
-
], 8, _hoisted_6$
|
|
27003
|
+
], 8, _hoisted_6$c)) : createCommentVNode("", true),
|
|
26963
27004
|
$props.widget.type === "grid" || $props.widget.type === "table" ? (openBlock(), createElementBlock("i", {
|
|
26964
27005
|
key: 4,
|
|
26965
27006
|
title: _ctx.i18nt("designer.hint.cloneWidget"),
|
|
26966
27007
|
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.cloneContainer($props.widget), ["stop"]))
|
|
26967
27008
|
}, [
|
|
26968
27009
|
createVNode(_component_svg_icon, { "icon-class": "el-clone" })
|
|
26969
|
-
], 8, _hoisted_7$
|
|
27010
|
+
], 8, _hoisted_7$a)) : createCommentVNode("", true),
|
|
26970
27011
|
createElementVNode("i", {
|
|
26971
27012
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
26972
27013
|
onClick: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.removeWidget && _ctx.removeWidget(...args), ["stop"]))
|
|
26973
27014
|
}, [
|
|
26974
27015
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
26975
|
-
], 8, _hoisted_8$
|
|
27016
|
+
], 8, _hoisted_8$7)
|
|
26976
27017
|
])) : createCommentVNode("", true),
|
|
26977
|
-
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
27018
|
+
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$6, [
|
|
26978
27019
|
createElementVNode("i", {
|
|
26979
27020
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
26980
27021
|
}, [
|
|
26981
27022
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
26982
|
-
], 8, _hoisted_10$
|
|
27023
|
+
], 8, _hoisted_10$4),
|
|
26983
27024
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.widget.type}`, `extension.widgetLabel.${$props.widget.type}`)), 1),
|
|
26984
|
-
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_11$
|
|
27025
|
+
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_11$2, [
|
|
26985
27026
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
26986
27027
|
])) : createCommentVNode("", true)
|
|
26987
27028
|
])) : createCommentVNode("", true)
|
|
26988
27029
|
], 2);
|
|
26989
27030
|
}
|
|
26990
|
-
var ContainerWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
27031
|
+
var ContainerWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _sfc_render$C], ["__scopeId", "data-v-679de05a"]]);
|
|
26991
27032
|
var __glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26992
27033
|
__proto__: null,
|
|
26993
27034
|
"default": ContainerWrapper
|
|
@@ -27017,7 +27058,7 @@ var refMixinDesign = {
|
|
|
27017
27058
|
}
|
|
27018
27059
|
};
|
|
27019
27060
|
var cardWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
27020
|
-
const _sfc_main$
|
|
27061
|
+
const _sfc_main$B = {
|
|
27021
27062
|
name: "card-widget",
|
|
27022
27063
|
componentName: "ContainerWidget",
|
|
27023
27064
|
mixins: [i18n$1, containerMixin, refMixinDesign],
|
|
@@ -27057,9 +27098,9 @@ const _sfc_main$y = {
|
|
|
27057
27098
|
}
|
|
27058
27099
|
}
|
|
27059
27100
|
};
|
|
27060
|
-
const _hoisted_1$
|
|
27061
|
-
const _hoisted_2$
|
|
27062
|
-
function _sfc_render$
|
|
27101
|
+
const _hoisted_1$u = { class: "label" };
|
|
27102
|
+
const _hoisted_2$m = { class: "form-widget-list" };
|
|
27103
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27063
27104
|
const _component_ArrowDownBold = resolveComponent("ArrowDownBold");
|
|
27064
27105
|
const _component_el_icon = resolveComponent("el-icon");
|
|
27065
27106
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -27093,7 +27134,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27093
27134
|
]),
|
|
27094
27135
|
_: 1
|
|
27095
27136
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
27096
|
-
createElementVNode("div", _hoisted_1$
|
|
27137
|
+
createElementVNode("div", _hoisted_1$u, toDisplayString($props.widget.options.label), 1)
|
|
27097
27138
|
])
|
|
27098
27139
|
]),
|
|
27099
27140
|
default: withCtx(() => [
|
|
@@ -27109,7 +27150,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27109
27150
|
move: $options.checkContainerMove
|
|
27110
27151
|
}), {
|
|
27111
27152
|
item: withCtx(({ element: subWidget, index: swIdx }) => [
|
|
27112
|
-
createElementVNode("div", _hoisted_2$
|
|
27153
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
27113
27154
|
subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
|
|
27114
27155
|
widget: subWidget,
|
|
27115
27156
|
designer: $props.designer,
|
|
@@ -27137,9 +27178,9 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27137
27178
|
_: 1
|
|
27138
27179
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
27139
27180
|
}
|
|
27140
|
-
var CardWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
27181
|
+
var CardWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["render", _sfc_render$B], ["__scopeId", "data-v-2c3be1b8"]]);
|
|
27141
27182
|
var cardItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
27142
|
-
const _sfc_main$
|
|
27183
|
+
const _sfc_main$A = {
|
|
27143
27184
|
name: "card-item",
|
|
27144
27185
|
componentName: "ContainerItem",
|
|
27145
27186
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -27169,8 +27210,8 @@ const _sfc_main$x = {
|
|
|
27169
27210
|
}
|
|
27170
27211
|
}
|
|
27171
27212
|
};
|
|
27172
|
-
const _hoisted_1$
|
|
27173
|
-
function _sfc_render$
|
|
27213
|
+
const _hoisted_1$t = { class: "label" };
|
|
27214
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27174
27215
|
const _component_ArrowDownBold = resolveComponent("ArrowDownBold");
|
|
27175
27216
|
const _component_el_icon = resolveComponent("el-icon");
|
|
27176
27217
|
const _component_el_card = resolveComponent("el-card");
|
|
@@ -27197,7 +27238,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27197
27238
|
]),
|
|
27198
27239
|
_: 1
|
|
27199
27240
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
27200
|
-
createElementVNode("div", _hoisted_1$
|
|
27241
|
+
createElementVNode("div", _hoisted_1$t, toDisplayString($props.widget.options.label), 1)
|
|
27201
27242
|
])
|
|
27202
27243
|
]),
|
|
27203
27244
|
default: withCtx(() => [
|
|
@@ -27246,9 +27287,9 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27246
27287
|
_: 3
|
|
27247
27288
|
}, 8, ["widget"]);
|
|
27248
27289
|
}
|
|
27249
|
-
var CardItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
27290
|
+
var CardItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["render", _sfc_render$A], ["__scopeId", "data-v-2f0daae4"]]);
|
|
27250
27291
|
const ACE_BASE_PATH = "https://ks3-cn-beijing.ksyun.com/vform2021/ace-mini";
|
|
27251
|
-
const _sfc_main$
|
|
27292
|
+
const _sfc_main$z = {
|
|
27252
27293
|
name: "alert-widget",
|
|
27253
27294
|
componentName: "FieldWidget",
|
|
27254
27295
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -27294,7 +27335,7 @@ const _sfc_main$w = {
|
|
|
27294
27335
|
}
|
|
27295
27336
|
}
|
|
27296
27337
|
};
|
|
27297
|
-
function _sfc_render$
|
|
27338
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27298
27339
|
const _component_el_alert = resolveComponent("el-alert");
|
|
27299
27340
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
27300
27341
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
@@ -27325,7 +27366,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27325
27366
|
_: 1
|
|
27326
27367
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
27327
27368
|
}
|
|
27328
|
-
var AlertWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
27369
|
+
var AlertWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$z]]);
|
|
27329
27370
|
var cryptoJs = { exports: {} };
|
|
27330
27371
|
var core = { exports: {} };
|
|
27331
27372
|
(function(module, exports) {
|
|
@@ -32625,7 +32666,7 @@ var personTree = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGlu
|
|
|
32625
32666
|
var personIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT7nvJbnu4QgOOWkh+S7vSAyPC90aXRsZT4NCiAgICA8ZGVmcz4NCiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDIzLjk5OTk1NzEgMjQgMjMuOTk5OTU3MSAyNCAwIDAgMCI+PC9wb2x5Z29uPg0KICAgIDwvZGVmcz4NCiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPg0KICAgICAgICA8ZyBpZD0i5Zu+5bqTIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzc5LCAtODcpIj4NCiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtOOWkh+S7vS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg3NzksIDg3KSI+DQogICAgICAgICAgICAgICAgPG1hc2sgaWQ9Im1hc2stMiIgZmlsbD0id2hpdGUiPg0KICAgICAgICAgICAgICAgICAgICA8dXNlIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPg0KICAgICAgICAgICAgICAgIDwvbWFzaz4NCiAgICAgICAgICAgICAgICA8dXNlIGlkPSLokpnniYgiIGZpbGw9IiNFM0U2RjEiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPg0KICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtOCIgbWFzaz0idXJsKCNtYXNrLTIpIj4NCiAgICAgICAgICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIuMjgxOCwgMi4yNTc2KSI+DQogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iRmlsbC0yIiBmaWxsPSIjRkRFRUVBIiBwb2ludHM9IjEyLjIxNzA4ODIgMTguOTc4MDExIDE2LjM0NjU4MDggMTguOTc4MDExIDE2LjM0NjU4MDggMTMuOTkzMjYyOCAxMi4yMTcwODgyIDEzLjk5MzI2MjgiPjwvcG9seWdvbj4NCiAgICAgICAgICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtNiIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTMuOTMyMjcwOCwzLjMzNTQ5NDY2IEwxNy44NTY1NjM4LDMuNzE5NjY1NCBMMjEuMDM2NjAxLDcuMzA1Njg3NTcgQzIxLjAzNjYwMSw3LjMwNTY4NzU3IDIxLjA1MTM0OSw3LjQxMjQwNzk0IDIxLjA2NjI2NzksNy41OTIxMzY2NCBDMjEuNTQ1NjQyOCw3Ljc1OTM3ODQ1IDIxLjg5MzYxOCw4LjI1NDkwNTE4IDIxLjg5MzYxOCw4Ljg0MDIzMTk3IEMyMS44OTM2MTgsOS41MDY4MDY3NyAyMS40NDIzMzQ3LDEwLjA1NjkyMTMgMjAuODU4ODY1NCwxMC4xMzgwMTY1IEMyMC40MzcwNzIzLDExLjU1MDQ3MTQgMTguNzA0NDc3MiwxNi4wNTQ0ODYyIDE0LjI0Mjk4NDYsMTYuMDU0NDg2MiBDOS43OTU0NjA4OSwxNi4wNTQ0ODYyIDguMTA2NDY3NDksMTEuMzgxNjA0OCA3LjY0NTA2NDUsMTAuMTI2NDE1NCBDNy4wOTA5MTA3MywxMC4wMTkwNTA5IDYuNjcwMDUwOTUsOS40ODM5NDU5MyA2LjY3MDA1MDk1LDguODQwMjMxOTcgQzYuNjcwMDUwOTUsOC4yNTIwNTk5NyA3LjAyMTQxNzM4LDcuNzU0NTYzMTggNy41MDQ5MjUzNyw3LjU4OTk1NTEzIEw3LjUwNDUxMzc1LDcuNDg5Mjg3MjQgTDkuMDM4MTY1MjksNS42MzA0MDQ4NSBMMTMuOTMyMjcwOCwzLjMzNTQ5NDY2IFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9IiNGRkY1RjQiPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNy41MDQ1MjUxNyw3LjQ4OTI3ODY3IEM3LjIwNDk1NDI4LDUuNzQ1MTY3NSA3LjYzMjg4MjA4LDIuNjE5ODU4OCAxMC43MDcxMDUyLDAuODExMTE5MTY4IEMxMy43OTI0NzExLC0xLjAwNDIyMDQ1IDE4LjEyNzIwNjIsMC42Mjc1MTk0OTYgMTguMTA0NjIwNSwxLjgyMDg3NDUxIEMxOC45MzkzMDQ4LDEuNzg3ODc0NTcgMjEuMzczMjQzMywyLjQ2NjE3MzM2IDIxLjAzNjYwMSw3LjMwNTY3OSBDMjAuNjk4Mjg3Myw3LjI4Mjc1MDQ3IDE3LjgzNDAyMSw3LjA1MzI1MDg4IDE2LjQxMzEzNzgsNC42NDM2MTIzMiBDMTUuOTg0NjEsNS4wMzM3NDAyIDEzLjk3NzM1NjUsNi42NDAxNTE2MiAxMS4wNDU0MTg4LDYuODY5NjUxMjEgQzkuNjI0NTM1NjcsNi45ODQzNzk1NyA3Ljg2NTM4MTY3LDYuOTM4NDc5NjUgNy41MDQ1MjUxNyw3LjQ4OTI3ODY3IiBpZD0iRmlsbC01IiBmaWxsPSIjNjQ2NjdBIj48L3BhdGg+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTI4LjU2MzY3NzYsMjcuODAyMDY2NyBDMjguNTYzNjc3NiwzMy4zOTI5NDI0IDIxLjU0NDc2MTUsMzcuOTI1MjQ4NiAxNC4yODE4MTc0LDM3LjkyNTI0ODYgQzcuMDE4OTE2MDQsMzcuOTI1MjQ4NiAwLDMzLjM5Mjk0MjQgMCwyNy44MDIwNjY3IEMwLDIzLjI5MzUwMzMgMS40MDE0Njg5MywxNy45MTEyMTI5IDEzLjQyNjAwNDYsMTcuNjg2MTcwNSBDMTMuNTA5NjE4NywxNy45NTMyOTg2IDEzLjk2NjIxNzksMTguMzAwMTQwOCAxNC4yMzUxODg5LDE4LjMwMDE0MDggQzE0LjQ4Mjk0NTYsMTguMzAwMTQwOCAxNS4wOTIzMzAyLDE4LjA2MDk1NTUgMTUuMDgwNDE1OSwxNy42ODUyMjc2IEMyNy4xNjEyMjI5LDE3Ljg5ODA5ODcgMjguNTYzNjc3NiwyMy40MTgzNDU5IDI4LjU2MzY3NzYsMjcuODAyMDY2NyIgaWQ9IkZpbGwtMTEiIGZpbGw9IiM2NDY2N0EiPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTEuODU2MTQxNywxNi41NzcwMTY3IEwxMS4wODcyNDMxLDE3LjM0NDU4NjggQzExLjAwNDIyODksMTcuNDI3NTE1MiAxMC45ODE3NzE4LDE3LjU0OTc4NjQgMTEuMDMwMzcxNywxNy42NTQ1NzE5IEwxMi40NTI2MjYzLDIwLjcxOTgzNzkgQzEyLjUwMDI4MzQsMjAuODIyNTY2MyAxMi42MDcyMTE4LDIwLjg4ODgyMzMgMTIuNzI1MjQwMSwyMC44ODg4MjMzIEwxNS44MzE2OTE3LDIwLjg4ODgyMzMgQzE1Ljk0OTA3NzIsMjAuODg4ODIzMyAxNi4wNTU1MzQyLDIwLjgyMzI5NDkgMTYuMTAzNTc3LDIwLjcyMTQyMzYgTDE3LjUzMjU2MDEsMTcuNjkxMzQzMyBDMTcuNTgzMTc0MywxNy41ODQwMjkyIDE3LjU1ODgzMTUsMTcuNDU4MTE1MiAxNy40NzE0MDMxLDE3LjM3NDkyOTYgTDE2LjYyMzczMzIsMTYuNTY4NjE2NyBDMTYuNTA2ODE5MSwxNi40NTc0MDI3IDE2LjMxNzAwNTEsMTYuNDU4MDAyNyAxNi4yMDA4NjI1LDE2LjU3MDAzMSBMMTQuOTI5MjA3NiwxNy43OTY3Mjg4IEMxNC44NzMxOTM0LDE3Ljg1MDcyODcgMTQuNzk2Nzc5MywxNy44ODExNTczIDE0LjcxNzAyMjMsMTcuODgxMTU3MyBMMTMuNzgyMTM4MiwxNy44ODExNTczIEMxMy43MDMxMDk4LDE3Ljg4MTE1NzMgMTMuNjI3MzM4NSwxNy44NTEyODU5IDEzLjU3MTQ1MjksMTcuNzk4MTQzMSBMMTIuMjgyNTY5NSwxNi41NzIxMzEgQzEyLjE2NDE5ODMsMTYuNDU5NTQ1NSAxMS45NzE1OTg2LDE2LjQ2MTczMTIgMTEuODU2MTQxNywxNi41NzcwMTY3IiBpZD0iRmlsbC0xMyIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xNC41NTEwNTQsMTcuODU1OTc4NyBMMTQuMDE1NjgzNSwxNy44NTU5Nzg3IEMxMy44ODk4OTgxLDE3Ljg1NTk3ODcgMTMuNzgwMTQxMSwxNy45NDExMzU3IDEzLjc0ODgxMjYsMTguMDYyODkyNiBMMTIuOTg2NzI4MiwyMS4wMjY5NzMxIEMxMi45NzIwMjgzLDIxLjA4NDEwMTUgMTIuOTc2MDk5NywyMS4xNDQ0NDQzIDEyLjk5ODI1NjgsMjEuMTk5MTI5OSBMMTMuNzMyMjY5OCwyMy4wMDk0MTI0IEMxMy43NzQ0NDExLDIzLjExMzM4MzYgMTMuODc1NDEyNCwyMy4xODEzOTc4IDEzLjk4NzYxMjIsMjMuMTgxMzk3OCBMMTQuNTc5MTI1NCwyMy4xODEzOTc4IEMxNC42OTEyODIzLDIzLjE4MTM5NzggMTQuNzkyMjk2NCwyMy4xMTMzODM2IDE0LjgzNDQ2NzgsMjMuMDA5NDEyNCBMMTUuNTY4NDgwOCwyMS4xOTkxMjk5IEMxNS41OTA2Mzc5LDIxLjE0NDQ0NDMgMTUuNTk0NjY2NCwyMS4wODQxMDE1IDE1LjU4MDAwOTMsMjEuMDI2OTczMSBMMTQuODE3OTI1LDE4LjA2Mjg5MjYgQzE0Ljc4NjU5NjUsMTcuOTQxMTM1NyAxNC42NzY3OTY2LDE3Ljg1NTk3ODcgMTQuNTUxMDU0LDE3Ljg1NTk3ODciIGlkPSJGaWxsLTE1IiBmaWxsPSIjQTNBREMzIj48L3BhdGg+DQogICAgICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICA8L2c+DQogICAgICAgIDwvZz4NCiAgICA8L2c+DQo8L3N2Zz4=";
|
|
32626
32667
|
var personTreeItem_vue_vue_type_style_index_0_lang = "";
|
|
32627
32668
|
var personTreeItem_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
32628
|
-
const _sfc_main$
|
|
32669
|
+
const _sfc_main$y = {
|
|
32629
32670
|
name: "person-tree-widget",
|
|
32630
32671
|
componentName: "FieldWidget",
|
|
32631
32672
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -32925,10 +32966,10 @@ const _sfc_main$v = {
|
|
|
32925
32966
|
}
|
|
32926
32967
|
}
|
|
32927
32968
|
};
|
|
32928
|
-
const _hoisted_1$
|
|
32929
|
-
const _hoisted_2$
|
|
32930
|
-
const _hoisted_3$
|
|
32931
|
-
function _sfc_render$
|
|
32969
|
+
const _hoisted_1$s = { class: "person-tree-widget__trigger" };
|
|
32970
|
+
const _hoisted_2$l = { class: "flex items-center" };
|
|
32971
|
+
const _hoisted_3$i = { class: "dialog-footer" };
|
|
32972
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32932
32973
|
const _component_el_input_tag = resolveComponent("el-input-tag");
|
|
32933
32974
|
const _component_el_input = resolveComponent("el-input");
|
|
32934
32975
|
const _component_el_tree = resolveComponent("el-tree");
|
|
@@ -32953,7 +32994,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32953
32994
|
class: "person-tree-widget",
|
|
32954
32995
|
style: normalizeStyle($options.widgetStyle)
|
|
32955
32996
|
}, [
|
|
32956
|
-
createElementVNode("div", _hoisted_1$
|
|
32997
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
32957
32998
|
createVNode(_component_el_input_tag, {
|
|
32958
32999
|
modelValue: $options.displayModel,
|
|
32959
33000
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
|
|
@@ -32966,7 +33007,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32966
33007
|
onRemoveTag: $options.handleRemoveTag
|
|
32967
33008
|
}, {
|
|
32968
33009
|
tag: withCtx(({ value: value2 }) => [
|
|
32969
|
-
createElementVNode("div", _hoisted_2$
|
|
33010
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
32970
33011
|
createElementVNode("span", null, toDisplayString(value2.name), 1)
|
|
32971
33012
|
])
|
|
32972
33013
|
]),
|
|
@@ -33018,7 +33059,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33018
33059
|
!$props.field.options.hideFooter ? {
|
|
33019
33060
|
name: "footer",
|
|
33020
33061
|
fn: withCtx(() => [
|
|
33021
|
-
createElementVNode("div", _hoisted_3$
|
|
33062
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
33022
33063
|
createVNode(_component_el_button, {
|
|
33023
33064
|
onClick: $options.handleCancel,
|
|
33024
33065
|
size: "default"
|
|
@@ -33048,8 +33089,8 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33048
33089
|
_: 1
|
|
33049
33090
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
33050
33091
|
}
|
|
33051
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
33052
|
-
const _sfc_main$
|
|
33092
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$y], ["__scopeId", "data-v-2f0d2d47"]]);
|
|
33093
|
+
const _sfc_main$x = {
|
|
33053
33094
|
name: "radio-other-widget",
|
|
33054
33095
|
componentName: "FieldWidget",
|
|
33055
33096
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -33164,7 +33205,7 @@ const _sfc_main$u = {
|
|
|
33164
33205
|
}
|
|
33165
33206
|
}
|
|
33166
33207
|
};
|
|
33167
|
-
function _sfc_render$
|
|
33208
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33168
33209
|
const _component_el_radio = resolveComponent("el-radio");
|
|
33169
33210
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
33170
33211
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -33220,8 +33261,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33220
33261
|
_: 1
|
|
33221
33262
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
33222
33263
|
}
|
|
33223
|
-
var radioOtherItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
33224
|
-
const _sfc_main$
|
|
33264
|
+
var radioOtherItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$x]]);
|
|
33265
|
+
const _sfc_main$w = {
|
|
33225
33266
|
name: "select-other-widget",
|
|
33226
33267
|
componentName: "FieldWidget",
|
|
33227
33268
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -33330,7 +33371,7 @@ const _sfc_main$t = {
|
|
|
33330
33371
|
}
|
|
33331
33372
|
}
|
|
33332
33373
|
};
|
|
33333
|
-
function _sfc_render$
|
|
33374
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33334
33375
|
const _component_el_option = resolveComponent("el-option");
|
|
33335
33376
|
const _component_el_select = resolveComponent("el-select");
|
|
33336
33377
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -33393,9 +33434,9 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33393
33434
|
_: 1
|
|
33394
33435
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
33395
33436
|
}
|
|
33396
|
-
var selectOtherItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
33437
|
+
var selectOtherItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$w]]);
|
|
33397
33438
|
var meetingRoomItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
33398
|
-
const _sfc_main$
|
|
33439
|
+
const _sfc_main$v = {
|
|
33399
33440
|
name: "meeting-room-widget",
|
|
33400
33441
|
componentName: "FieldWidget",
|
|
33401
33442
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -33554,26 +33595,26 @@ const _sfc_main$s = {
|
|
|
33554
33595
|
}
|
|
33555
33596
|
}
|
|
33556
33597
|
};
|
|
33557
|
-
const _hoisted_1$
|
|
33598
|
+
const _hoisted_1$r = {
|
|
33558
33599
|
key: 0,
|
|
33559
33600
|
class: "empty-wrap"
|
|
33560
33601
|
};
|
|
33561
|
-
const _hoisted_2$
|
|
33602
|
+
const _hoisted_2$k = {
|
|
33562
33603
|
key: 1,
|
|
33563
33604
|
class: "room-wrap"
|
|
33564
33605
|
};
|
|
33565
|
-
const _hoisted_3$
|
|
33566
|
-
const _hoisted_4$
|
|
33567
|
-
const _hoisted_5$
|
|
33568
|
-
const _hoisted_6$
|
|
33606
|
+
const _hoisted_3$h = ["onClick"];
|
|
33607
|
+
const _hoisted_4$f = { class: "select-icon" };
|
|
33608
|
+
const _hoisted_5$b = { class: "room-item-name" };
|
|
33609
|
+
const _hoisted_6$b = {
|
|
33569
33610
|
key: 0,
|
|
33570
33611
|
class: "room-item-capacity"
|
|
33571
33612
|
};
|
|
33572
|
-
const _hoisted_7$
|
|
33613
|
+
const _hoisted_7$9 = {
|
|
33573
33614
|
key: 1,
|
|
33574
33615
|
class: "room-item-equipment"
|
|
33575
33616
|
};
|
|
33576
|
-
function _sfc_render$
|
|
33617
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33577
33618
|
const _component_el_input = resolveComponent("el-input");
|
|
33578
33619
|
const _component_el_empty = resolveComponent("el-empty");
|
|
33579
33620
|
const _component_Select = resolveComponent("Select");
|
|
@@ -33615,9 +33656,9 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33615
33656
|
]),
|
|
33616
33657
|
default: withCtx(() => [
|
|
33617
33658
|
createElementVNode("div", null, [
|
|
33618
|
-
$data.roomList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
33659
|
+
$data.roomList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
33619
33660
|
createVNode(_component_el_empty, { description: "\u6682\u65E0\u6570\u636E" })
|
|
33620
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
33661
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$k, [
|
|
33621
33662
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.roomList, (item) => {
|
|
33622
33663
|
var _a;
|
|
33623
33664
|
return openBlock(), createElementBlock("div", {
|
|
@@ -33630,7 +33671,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33630
33671
|
key: item.id || item.value,
|
|
33631
33672
|
onClick: ($event) => $options.handleSelectRoom(item)
|
|
33632
33673
|
}, [
|
|
33633
|
-
withDirectives(createElementVNode("div", _hoisted_4$
|
|
33674
|
+
withDirectives(createElementVNode("div", _hoisted_4$f, [
|
|
33634
33675
|
createVNode(_component_el_icon, null, {
|
|
33635
33676
|
default: withCtx(() => [
|
|
33636
33677
|
createVNode(_component_Select)
|
|
@@ -33640,16 +33681,16 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33640
33681
|
], 512), [
|
|
33641
33682
|
[vShow, $options.handleSelect(item)]
|
|
33642
33683
|
]),
|
|
33643
|
-
createElementVNode("div", _hoisted_5$
|
|
33684
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
33644
33685
|
createElementVNode("span", null, toDisplayString(item.roomName), 1)
|
|
33645
33686
|
]),
|
|
33646
|
-
item.capacity ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
33687
|
+
item.capacity ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
33647
33688
|
createElementVNode("span", null, "\u5BB9\u91CF\uFF1A" + toDisplayString(item.capacity), 1)
|
|
33648
33689
|
])) : createCommentVNode("", true),
|
|
33649
|
-
item.equipment ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
33690
|
+
item.equipment ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
|
|
33650
33691
|
createElementVNode("span", null, "\u8BBE\u5907\uFF1A" + toDisplayString(item.equipment), 1)
|
|
33651
33692
|
])) : createCommentVNode("", true)
|
|
33652
|
-
], 10, _hoisted_3$
|
|
33693
|
+
], 10, _hoisted_3$h);
|
|
33653
33694
|
}), 128))
|
|
33654
33695
|
]))
|
|
33655
33696
|
])
|
|
@@ -33660,9 +33701,9 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33660
33701
|
_: 1
|
|
33661
33702
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
33662
33703
|
}
|
|
33663
|
-
var meetingRoomItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
33704
|
+
var meetingRoomItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$v], ["__scopeId", "data-v-344c32a1"]]);
|
|
33664
33705
|
var gridColWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
33665
|
-
const _sfc_main$
|
|
33706
|
+
const _sfc_main$u = {
|
|
33666
33707
|
name: "GridColWidget",
|
|
33667
33708
|
componentName: "GridColWidget",
|
|
33668
33709
|
mixins: [i18n$1, refMixinDesign],
|
|
@@ -33864,25 +33905,25 @@ const _sfc_main$r = {
|
|
|
33864
33905
|
}
|
|
33865
33906
|
}
|
|
33866
33907
|
};
|
|
33867
|
-
const _hoisted_1$
|
|
33868
|
-
const _hoisted_2$
|
|
33908
|
+
const _hoisted_1$q = { class: "form-widget-list" };
|
|
33909
|
+
const _hoisted_2$j = {
|
|
33869
33910
|
key: 0,
|
|
33870
33911
|
class: "grid-col-action"
|
|
33871
33912
|
};
|
|
33872
|
-
const _hoisted_3$
|
|
33873
|
-
const _hoisted_4$
|
|
33874
|
-
const _hoisted_5$
|
|
33875
|
-
const _hoisted_6$
|
|
33876
|
-
const _hoisted_7$
|
|
33877
|
-
const _hoisted_8$
|
|
33913
|
+
const _hoisted_3$g = ["title"];
|
|
33914
|
+
const _hoisted_4$e = ["title"];
|
|
33915
|
+
const _hoisted_5$a = ["title"];
|
|
33916
|
+
const _hoisted_6$a = ["title"];
|
|
33917
|
+
const _hoisted_7$8 = ["title"];
|
|
33918
|
+
const _hoisted_8$6 = {
|
|
33878
33919
|
key: 1,
|
|
33879
33920
|
class: "grid-col-handler"
|
|
33880
33921
|
};
|
|
33881
|
-
const _hoisted_9$
|
|
33922
|
+
const _hoisted_9$5 = {
|
|
33882
33923
|
key: 0,
|
|
33883
33924
|
class: "col-hidden-tag"
|
|
33884
33925
|
};
|
|
33885
|
-
function _sfc_render$
|
|
33926
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33886
33927
|
const _component_draggable = resolveComponent("draggable");
|
|
33887
33928
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
33888
33929
|
const _component_el_col = resolveComponent("el-col");
|
|
@@ -33909,7 +33950,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33909
33950
|
move: $options.checkContainerMove
|
|
33910
33951
|
}), {
|
|
33911
33952
|
item: withCtx(({ element: subWidget, index: swIdx }) => [
|
|
33912
|
-
createElementVNode("div", _hoisted_1$
|
|
33953
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
33913
33954
|
subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
|
|
33914
33955
|
widget: subWidget,
|
|
33915
33956
|
designer: $props.designer,
|
|
@@ -33934,43 +33975,43 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33934
33975
|
]),
|
|
33935
33976
|
_: 1
|
|
33936
33977
|
}, 16, ["list", "onUpdate", "move"]),
|
|
33937
|
-
$props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
33978
|
+
$props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
33938
33979
|
createElementVNode("i", {
|
|
33939
33980
|
title: _ctx.i18nt("designer.hint.selectParentWidget"),
|
|
33940
33981
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.selectParentWidget($props.widget), ["stop"]))
|
|
33941
33982
|
}, [
|
|
33942
33983
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
33943
|
-
], 8, _hoisted_3$
|
|
33984
|
+
], 8, _hoisted_3$g),
|
|
33944
33985
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
33945
33986
|
key: 0,
|
|
33946
33987
|
title: _ctx.i18nt("designer.hint.moveUpWidget"),
|
|
33947
33988
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => $options.moveUpWidget(), ["stop"]))
|
|
33948
33989
|
}, [
|
|
33949
33990
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
33950
|
-
], 8, _hoisted_4$
|
|
33991
|
+
], 8, _hoisted_4$e)) : createCommentVNode("", true),
|
|
33951
33992
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
33952
33993
|
key: 1,
|
|
33953
33994
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
33954
33995
|
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => $options.moveDownWidget(), ["stop"]))
|
|
33955
33996
|
}, [
|
|
33956
33997
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
33957
|
-
], 8, _hoisted_5$
|
|
33998
|
+
], 8, _hoisted_5$a)) : createCommentVNode("", true),
|
|
33958
33999
|
createElementVNode("i", {
|
|
33959
34000
|
title: _ctx.i18nt("designer.hint.cloneWidget"),
|
|
33960
34001
|
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => $options.cloneGridCol($props.widget), ["stop"]))
|
|
33961
34002
|
}, [
|
|
33962
34003
|
createVNode(_component_svg_icon, { "icon-class": "el-clone" })
|
|
33963
|
-
], 8, _hoisted_6$
|
|
34004
|
+
], 8, _hoisted_6$a),
|
|
33964
34005
|
createElementVNode("i", {
|
|
33965
34006
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
33966
34007
|
onClick: _cache[6] || (_cache[6] = withModifiers((...args) => $options.removeWidget && $options.removeWidget(...args), ["stop"]))
|
|
33967
34008
|
}, [
|
|
33968
34009
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
33969
|
-
], 8, _hoisted_7$
|
|
34010
|
+
], 8, _hoisted_7$8)
|
|
33970
34011
|
])) : createCommentVNode("", true),
|
|
33971
|
-
$props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
34012
|
+
$props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_8$6, [
|
|
33972
34013
|
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1),
|
|
33973
|
-
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$
|
|
34014
|
+
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$5, [
|
|
33974
34015
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
33975
34016
|
])) : createCommentVNode("", true)
|
|
33976
34017
|
])) : createCommentVNode("", true)
|
|
@@ -33978,13 +34019,13 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33978
34019
|
_: 1
|
|
33979
34020
|
}, 16, ["class", "style"])) : createCommentVNode("", true);
|
|
33980
34021
|
}
|
|
33981
|
-
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34022
|
+
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$u], ["__scopeId", "data-v-cb053c20"]]);
|
|
33982
34023
|
var __glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
33983
34024
|
__proto__: null,
|
|
33984
34025
|
"default": GridColWidget
|
|
33985
34026
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
33986
34027
|
var gridWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
33987
|
-
const _sfc_main$
|
|
34028
|
+
const _sfc_main$t = {
|
|
33988
34029
|
name: "grid-widget",
|
|
33989
34030
|
componentName: "ContainerWidget",
|
|
33990
34031
|
mixins: [i18n$1, containerMixin, refMixinDesign],
|
|
@@ -34016,7 +34057,7 @@ const _sfc_main$q = {
|
|
|
34016
34057
|
},
|
|
34017
34058
|
methods: {}
|
|
34018
34059
|
};
|
|
34019
|
-
function _sfc_render$
|
|
34060
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34020
34061
|
const _component_grid_col_widget = resolveComponent("grid-col-widget");
|
|
34021
34062
|
const _component_el_row = resolveComponent("el-row");
|
|
34022
34063
|
const _component_container_wrapper = resolveComponent("container-wrapper");
|
|
@@ -34053,13 +34094,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34053
34094
|
_: 1
|
|
34054
34095
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
34055
34096
|
}
|
|
34056
|
-
var gridWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34097
|
+
var gridWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$t], ["__scopeId", "data-v-2b4f7bb7"]]);
|
|
34057
34098
|
var __glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34058
34099
|
__proto__: null,
|
|
34059
34100
|
"default": gridWidget
|
|
34060
34101
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34061
34102
|
var tabWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
34062
|
-
const _sfc_main$
|
|
34103
|
+
const _sfc_main$s = {
|
|
34063
34104
|
name: "tab-widget",
|
|
34064
34105
|
componentName: "ContainerWidget",
|
|
34065
34106
|
mixins: [i18n$1, containerMixin, refMixinDesign],
|
|
@@ -34102,8 +34143,8 @@ const _sfc_main$p = {
|
|
|
34102
34143
|
}
|
|
34103
34144
|
}
|
|
34104
34145
|
};
|
|
34105
|
-
const _hoisted_1$
|
|
34106
|
-
function _sfc_render$
|
|
34146
|
+
const _hoisted_1$p = { class: "form-widget-list" };
|
|
34147
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34107
34148
|
const _component_draggable = resolveComponent("draggable");
|
|
34108
34149
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
34109
34150
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
@@ -34148,7 +34189,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34148
34189
|
move: _ctx.checkContainerMove
|
|
34149
34190
|
}), {
|
|
34150
34191
|
item: withCtx(({ element: subWidget, index: swIdx }) => [
|
|
34151
|
-
createElementVNode("div", _hoisted_1$
|
|
34192
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
34152
34193
|
subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
|
|
34153
34194
|
widget: subWidget,
|
|
34154
34195
|
designer: $props.designer,
|
|
@@ -34181,13 +34222,13 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34181
34222
|
_: 1
|
|
34182
34223
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
34183
34224
|
}
|
|
34184
|
-
var tabWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34225
|
+
var tabWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-2c29f864"]]);
|
|
34185
34226
|
var __glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34186
34227
|
__proto__: null,
|
|
34187
34228
|
"default": tabWidget
|
|
34188
34229
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34189
34230
|
var tableCellWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
34190
|
-
const _sfc_main$
|
|
34231
|
+
const _sfc_main$r = {
|
|
34191
34232
|
name: "TableCellWidget",
|
|
34192
34233
|
componentName: "TableCellWidget",
|
|
34193
34234
|
mixins: [i18n$1, refMixinDesign],
|
|
@@ -34352,19 +34393,19 @@ const _sfc_main$o = {
|
|
|
34352
34393
|
}
|
|
34353
34394
|
}
|
|
34354
34395
|
};
|
|
34355
|
-
const _hoisted_1$
|
|
34356
|
-
const _hoisted_2$
|
|
34357
|
-
const _hoisted_3$
|
|
34396
|
+
const _hoisted_1$o = ["colspan", "rowspan"];
|
|
34397
|
+
const _hoisted_2$i = { class: "form-widget-list" };
|
|
34398
|
+
const _hoisted_3$f = {
|
|
34358
34399
|
key: 0,
|
|
34359
34400
|
class: "table-cell-action"
|
|
34360
34401
|
};
|
|
34361
|
-
const _hoisted_4$
|
|
34362
|
-
const _hoisted_5$
|
|
34363
|
-
const _hoisted_6$
|
|
34402
|
+
const _hoisted_4$d = ["title"];
|
|
34403
|
+
const _hoisted_5$9 = ["title"];
|
|
34404
|
+
const _hoisted_6$9 = {
|
|
34364
34405
|
key: 1,
|
|
34365
34406
|
class: "table-cell-handler"
|
|
34366
34407
|
};
|
|
34367
|
-
function _sfc_render$
|
|
34408
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34368
34409
|
const _component_draggable = resolveComponent("draggable");
|
|
34369
34410
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
34370
34411
|
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
@@ -34390,7 +34431,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34390
34431
|
move: $options.checkContainerMove
|
|
34391
34432
|
}), {
|
|
34392
34433
|
item: withCtx(({ element: subWidget, index: swIdx }) => [
|
|
34393
|
-
createElementVNode("div", _hoisted_2$
|
|
34434
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
34394
34435
|
subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
|
|
34395
34436
|
widget: subWidget,
|
|
34396
34437
|
designer: $props.designer,
|
|
@@ -34411,13 +34452,13 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34411
34452
|
]),
|
|
34412
34453
|
_: 1
|
|
34413
34454
|
}, 16, ["list", "onUpdate", "move"]),
|
|
34414
|
-
$props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
34455
|
+
$props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
34415
34456
|
createElementVNode("i", {
|
|
34416
34457
|
title: _ctx.i18nt("designer.hint.selectParentWidget"),
|
|
34417
34458
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.selectParentWidget(), ["stop"]))
|
|
34418
34459
|
}, [
|
|
34419
34460
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
34420
|
-
], 8, _hoisted_4$
|
|
34461
|
+
], 8, _hoisted_4$d),
|
|
34421
34462
|
createVNode(_component_el_dropdown, {
|
|
34422
34463
|
trigger: "click",
|
|
34423
34464
|
onCommand: $options.handleTableCellCommand,
|
|
@@ -34553,23 +34594,23 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34553
34594
|
title: _ctx.i18nt("designer.hint.cellSetting")
|
|
34554
34595
|
}, [
|
|
34555
34596
|
createVNode(_component_svg_icon, { "icon-class": "el-menu" })
|
|
34556
|
-
], 8, _hoisted_5$
|
|
34597
|
+
], 8, _hoisted_5$9)
|
|
34557
34598
|
]),
|
|
34558
34599
|
_: 1
|
|
34559
34600
|
}, 8, ["onCommand"])
|
|
34560
34601
|
])) : createCommentVNode("", true),
|
|
34561
|
-
$props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
34602
|
+
$props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
34562
34603
|
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1)
|
|
34563
34604
|
])) : createCommentVNode("", true)
|
|
34564
|
-
], 14, _hoisted_1$
|
|
34605
|
+
], 14, _hoisted_1$o);
|
|
34565
34606
|
}
|
|
34566
|
-
var TableCellWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34607
|
+
var TableCellWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$r], ["__scopeId", "data-v-2dc3e6c7"]]);
|
|
34567
34608
|
var __glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34568
34609
|
__proto__: null,
|
|
34569
34610
|
"default": TableCellWidget
|
|
34570
34611
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34571
34612
|
var tableWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
34572
|
-
const _sfc_main$
|
|
34613
|
+
const _sfc_main$q = {
|
|
34573
34614
|
name: "table-widget",
|
|
34574
34615
|
componentName: "ContainerWidget",
|
|
34575
34616
|
mixins: [i18n$1, containerMixin, refMixinDesign],
|
|
@@ -34601,8 +34642,8 @@ const _sfc_main$n = {
|
|
|
34601
34642
|
},
|
|
34602
34643
|
methods: {}
|
|
34603
34644
|
};
|
|
34604
|
-
const _hoisted_1$
|
|
34605
|
-
function _sfc_render$
|
|
34645
|
+
const _hoisted_1$n = { class: "table-layout" };
|
|
34646
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34606
34647
|
const _component_table_cell_widget = resolveComponent("table-cell-widget");
|
|
34607
34648
|
const _component_container_wrapper = resolveComponent("container-wrapper");
|
|
34608
34649
|
return openBlock(), createBlock(_component_container_wrapper, {
|
|
@@ -34618,7 +34659,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34618
34659
|
class: normalizeClass(["table-container", [$options.selected ? "selected" : "", $options.customClass]]),
|
|
34619
34660
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.selectWidget($props.widget), ["stop"]))
|
|
34620
34661
|
}, [
|
|
34621
|
-
createElementVNode("table", _hoisted_1$
|
|
34662
|
+
createElementVNode("table", _hoisted_1$n, [
|
|
34622
34663
|
createElementVNode("tbody", null, [
|
|
34623
34664
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.rows, (row, rowIdx) => {
|
|
34624
34665
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -34650,7 +34691,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34650
34691
|
_: 1
|
|
34651
34692
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
34652
34693
|
}
|
|
34653
|
-
var tableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34694
|
+
var tableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-2fde56df"]]);
|
|
34654
34695
|
var __glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34655
34696
|
__proto__: null,
|
|
34656
34697
|
"default": tableWidget
|
|
@@ -34665,7 +34706,7 @@ var ContainerComponents = {
|
|
|
34665
34706
|
}
|
|
34666
34707
|
};
|
|
34667
34708
|
var customSubFormWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
34668
|
-
const _sfc_main$
|
|
34709
|
+
const _sfc_main$p = {
|
|
34669
34710
|
name: "custom-sub-form-widget",
|
|
34670
34711
|
componentName: "ContainerWidget",
|
|
34671
34712
|
mixins: [i18n$1, containerMixin, refMixinDesign],
|
|
@@ -34724,29 +34765,29 @@ const _sfc_main$m = {
|
|
|
34724
34765
|
}
|
|
34725
34766
|
}
|
|
34726
34767
|
};
|
|
34727
|
-
const _hoisted_1$
|
|
34728
|
-
const _hoisted_2$
|
|
34768
|
+
const _hoisted_1$m = { class: "sub-form-header" };
|
|
34769
|
+
const _hoisted_2$h = {
|
|
34729
34770
|
key: 0,
|
|
34730
34771
|
class: "sub-form-label"
|
|
34731
34772
|
};
|
|
34732
|
-
const _hoisted_3$
|
|
34733
|
-
const _hoisted_4$
|
|
34734
|
-
const _hoisted_5$
|
|
34773
|
+
const _hoisted_3$e = { class: "group-header" };
|
|
34774
|
+
const _hoisted_4$c = { class: "group-title" };
|
|
34775
|
+
const _hoisted_5$8 = {
|
|
34735
34776
|
key: 0,
|
|
34736
34777
|
class: "row-number-span"
|
|
34737
34778
|
};
|
|
34738
|
-
const _hoisted_6$
|
|
34779
|
+
const _hoisted_6$8 = {
|
|
34739
34780
|
key: 1,
|
|
34740
34781
|
class: "row-number-span"
|
|
34741
34782
|
};
|
|
34742
|
-
const _hoisted_7$
|
|
34743
|
-
const _hoisted_8$
|
|
34744
|
-
const _hoisted_9$
|
|
34745
|
-
const _hoisted_10$
|
|
34783
|
+
const _hoisted_7$7 = { class: "group-actions" };
|
|
34784
|
+
const _hoisted_8$5 = { class: "group-content" };
|
|
34785
|
+
const _hoisted_9$4 = { class: "form-widget-list" };
|
|
34786
|
+
const _hoisted_10$3 = {
|
|
34746
34787
|
key: 0,
|
|
34747
34788
|
class: "empty-hint"
|
|
34748
34789
|
};
|
|
34749
|
-
function _sfc_render$
|
|
34790
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34750
34791
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
34751
34792
|
const _component_el_button = resolveComponent("el-button");
|
|
34752
34793
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -34764,19 +34805,19 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34764
34805
|
class: normalizeClass(["custom-sub-form-container", [$options.selected ? "selected" : "", $options.customClass]]),
|
|
34765
34806
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.selectWidget($props.widget), ["stop"]))
|
|
34766
34807
|
}, [
|
|
34767
|
-
createElementVNode("div", _hoisted_1$
|
|
34768
|
-
!$props.widget.options.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
34808
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
34809
|
+
!$props.widget.options.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_2$h, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)) : createCommentVNode("", true)
|
|
34769
34810
|
]),
|
|
34770
34811
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.previewRows, (row, rowIdx) => {
|
|
34771
34812
|
return openBlock(), createElementBlock("div", {
|
|
34772
34813
|
class: "preview-group-row",
|
|
34773
34814
|
key: "preview-" + rowIdx
|
|
34774
34815
|
}, [
|
|
34775
|
-
createElementVNode("div", _hoisted_3$
|
|
34776
|
-
createElementVNode("div", _hoisted_4$
|
|
34777
|
-
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
34816
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
34817
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
34818
|
+
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString($props.widget.options.label) + " " + toDisplayString(rowIdx + 1) + " \u7EC4", 1)) : (openBlock(), createElementBlock("span", _hoisted_6$8, "\u8868\u5355\u7EC4"))
|
|
34778
34819
|
]),
|
|
34779
|
-
createElementVNode("div", _hoisted_7$
|
|
34820
|
+
createElementVNode("div", _hoisted_7$7, [
|
|
34780
34821
|
createVNode(_component_el_button, {
|
|
34781
34822
|
size: "small",
|
|
34782
34823
|
type: "danger",
|
|
@@ -34791,7 +34832,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34791
34832
|
}, 8, ["onClick"])
|
|
34792
34833
|
])
|
|
34793
34834
|
]),
|
|
34794
|
-
createElementVNode("div", _hoisted_8$
|
|
34835
|
+
createElementVNode("div", _hoisted_8$5, [
|
|
34795
34836
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.widgetList, (subWidget, swIdx) => {
|
|
34796
34837
|
return openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
|
|
34797
34838
|
key: subWidget.id + "preview" + rowIdx + "-" + swIdx,
|
|
@@ -34825,7 +34866,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34825
34866
|
move: $options.checkContainerMove
|
|
34826
34867
|
}), {
|
|
34827
34868
|
item: withCtx(({ element: subWidget, index: swIdx }) => [
|
|
34828
|
-
createElementVNode("div", _hoisted_9$
|
|
34869
|
+
createElementVNode("div", _hoisted_9$4, [
|
|
34829
34870
|
subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
|
|
34830
34871
|
widget: subWidget,
|
|
34831
34872
|
designer: $props.designer,
|
|
@@ -34846,16 +34887,16 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34846
34887
|
]),
|
|
34847
34888
|
_: 1
|
|
34848
34889
|
}, 16, ["list", "onUpdate", "move"]),
|
|
34849
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
34890
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$3, " \u62D6\u62FD\u4EFB\u610F\u7EC4\u4EF6\u5230\u6B64\u5904 ")) : createCommentVNode("", true)
|
|
34850
34891
|
], 2)
|
|
34851
34892
|
], 2))
|
|
34852
34893
|
]),
|
|
34853
34894
|
_: 1
|
|
34854
34895
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
34855
34896
|
}
|
|
34856
|
-
var CustomSubFormWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34897
|
+
var CustomSubFormWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-0d784fb7"]]);
|
|
34857
34898
|
var customSubFormItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
34858
|
-
const _sfc_main$
|
|
34899
|
+
const _sfc_main$o = {
|
|
34859
34900
|
name: "custom-sub-form-item",
|
|
34860
34901
|
componentName: "ContainerItem",
|
|
34861
34902
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -35231,39 +35272,39 @@ const _sfc_main$l = {
|
|
|
35231
35272
|
}
|
|
35232
35273
|
}
|
|
35233
35274
|
};
|
|
35234
|
-
const _hoisted_1$
|
|
35275
|
+
const _hoisted_1$l = {
|
|
35235
35276
|
key: 0,
|
|
35236
35277
|
class: "sub-form-header"
|
|
35237
35278
|
};
|
|
35238
|
-
const _hoisted_2$
|
|
35239
|
-
const _hoisted_3$
|
|
35240
|
-
const _hoisted_4$
|
|
35241
|
-
const _hoisted_5$
|
|
35279
|
+
const _hoisted_2$g = { class: "sub-form-label" };
|
|
35280
|
+
const _hoisted_3$d = { class: "group-header" };
|
|
35281
|
+
const _hoisted_4$b = { class: "group-title" };
|
|
35282
|
+
const _hoisted_5$7 = {
|
|
35242
35283
|
key: 0,
|
|
35243
35284
|
class: "row-number-span"
|
|
35244
35285
|
};
|
|
35245
|
-
const _hoisted_6$
|
|
35246
|
-
const _hoisted_7$
|
|
35247
|
-
const _hoisted_8$
|
|
35286
|
+
const _hoisted_6$7 = { class: "group-actions" };
|
|
35287
|
+
const _hoisted_7$6 = { class: "group-content" };
|
|
35288
|
+
const _hoisted_8$4 = {
|
|
35248
35289
|
key: 1,
|
|
35249
35290
|
class: "field-loading",
|
|
35250
35291
|
style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
|
|
35251
35292
|
};
|
|
35252
|
-
const _hoisted_9$
|
|
35293
|
+
const _hoisted_9$3 = {
|
|
35253
35294
|
key: 1,
|
|
35254
35295
|
class: "empty-hint"
|
|
35255
35296
|
};
|
|
35256
|
-
const _hoisted_10$
|
|
35257
|
-
const _hoisted_11 = { key: 1 };
|
|
35258
|
-
const _hoisted_12 = {
|
|
35297
|
+
const _hoisted_10$2 = { key: 0 };
|
|
35298
|
+
const _hoisted_11$1 = { key: 1 };
|
|
35299
|
+
const _hoisted_12$1 = {
|
|
35259
35300
|
key: 1,
|
|
35260
35301
|
class: "empty-hint"
|
|
35261
35302
|
};
|
|
35262
|
-
const _hoisted_13 = {
|
|
35303
|
+
const _hoisted_13$1 = {
|
|
35263
35304
|
key: 2,
|
|
35264
35305
|
class: "empty-hint"
|
|
35265
35306
|
};
|
|
35266
|
-
function _sfc_render$
|
|
35307
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35267
35308
|
const _component_el_button = resolveComponent("el-button");
|
|
35268
35309
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
35269
35310
|
const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
|
|
@@ -35273,19 +35314,19 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35273
35314
|
key: $props.widget.id,
|
|
35274
35315
|
class: normalizeClass(["custom-sub-form-container", $options.customClass])
|
|
35275
35316
|
}, [
|
|
35276
|
-
!$props.widget.options.labelHidden ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
35277
|
-
createElementVNode("span", _hoisted_2$
|
|
35317
|
+
!$props.widget.options.labelHidden ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
35318
|
+
createElementVNode("span", _hoisted_2$g, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
|
|
35278
35319
|
])) : createCommentVNode("", true),
|
|
35279
35320
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
|
|
35280
35321
|
return openBlock(), createElementBlock("div", {
|
|
35281
35322
|
class: "form-group-row",
|
|
35282
35323
|
key: subFormRowId
|
|
35283
35324
|
}, [
|
|
35284
|
-
createElementVNode("div", _hoisted_3$
|
|
35285
|
-
createElementVNode("div", _hoisted_4$
|
|
35286
|
-
$props.widget.options.showRowNumber && !$props.widget.options.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
35325
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
35326
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
35327
|
+
$props.widget.options.showRowNumber && !$props.widget.options.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355") + " " + toDisplayString(sfrIdx + 1), 1)) : createCommentVNode("", true)
|
|
35287
35328
|
]),
|
|
35288
|
-
createElementVNode("div", _hoisted_6$
|
|
35329
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
35289
35330
|
sfrIdx > 0 && !$props.widget.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
35290
35331
|
key: 0,
|
|
35291
35332
|
size: "small",
|
|
@@ -35301,7 +35342,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35301
35342
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
35302
35343
|
])
|
|
35303
35344
|
]),
|
|
35304
|
-
createElementVNode("div", _hoisted_7$
|
|
35345
|
+
createElementVNode("div", _hoisted_7$6, [
|
|
35305
35346
|
$props.widget && $props.widget.widgetList && $props.widget.widgetList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.widget.widgetList, (subWidget, swIdx) => {
|
|
35306
35347
|
return openBlock(), createElementBlock(Fragment, {
|
|
35307
35348
|
key: subWidget ? subWidget.id + "gc" + subFormRowId + "-" + swIdx : "gc" + subFormRowId + "-" + swIdx
|
|
@@ -35328,16 +35369,16 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35328
35369
|
"sub-form-row-index": sfrIdx,
|
|
35329
35370
|
"sub-form-col-index": swIdx,
|
|
35330
35371
|
"sub-form-disabled": $props.widget.options.disabled
|
|
35331
|
-
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "sub-form-disabled"])) : (openBlock(), createElementBlock("div", _hoisted_8$
|
|
35372
|
+
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "sub-form-disabled"])) : (openBlock(), createElementBlock("div", _hoisted_8$4, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
|
|
35332
35373
|
], 64)) : createCommentVNode("", true)
|
|
35333
35374
|
], 64);
|
|
35334
|
-
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_9$
|
|
35335
|
-
!$props.widget ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
35375
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
35376
|
+
!$props.widget ? (openBlock(), createElementBlock("div", _hoisted_10$2, "\u7EC4\u4EF6\u672A\u521D\u59CB\u5316")) : !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_11$1, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : createCommentVNode("", true)
|
|
35336
35377
|
]))
|
|
35337
35378
|
])
|
|
35338
35379
|
]);
|
|
35339
35380
|
}), 128)),
|
|
35340
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_12, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : $data.rowIdData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_13, ' \u70B9\u51FB"\u6DFB\u52A0"\u6309\u94AE\u6DFB\u52A0\u6570\u636E\u884C ')) : createCommentVNode("", true),
|
|
35381
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_12$1, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : $data.rowIdData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_13$1, ' \u70B9\u51FB"\u6DFB\u52A0"\u6309\u94AE\u6DFB\u52A0\u6570\u636E\u884C ')) : createCommentVNode("", true),
|
|
35341
35382
|
!$props.widget.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
35342
35383
|
key: 3,
|
|
35343
35384
|
disabled: $data.actionDisabled,
|
|
@@ -35359,9 +35400,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35359
35400
|
_: 1
|
|
35360
35401
|
}, 8, ["widget"]);
|
|
35361
35402
|
}
|
|
35362
|
-
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35403
|
+
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-09af068c"]]);
|
|
35363
35404
|
var customTableCellWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
35364
|
-
const _sfc_main$
|
|
35405
|
+
const _sfc_main$n = {
|
|
35365
35406
|
name: "custom-table-cell-widget",
|
|
35366
35407
|
componentName: "CustomTableCellWidget",
|
|
35367
35408
|
mixins: [i18n$1, refMixinDesign],
|
|
@@ -35517,22 +35558,22 @@ const _sfc_main$k = {
|
|
|
35517
35558
|
}
|
|
35518
35559
|
}
|
|
35519
35560
|
};
|
|
35520
|
-
const _hoisted_1$
|
|
35521
|
-
const _hoisted_2$
|
|
35522
|
-
const _hoisted_3$
|
|
35561
|
+
const _hoisted_1$k = ["colspan", "rowspan"];
|
|
35562
|
+
const _hoisted_2$f = { class: "form-widget-list" };
|
|
35563
|
+
const _hoisted_3$c = {
|
|
35523
35564
|
key: 0,
|
|
35524
35565
|
class: "custom-table-cell-action"
|
|
35525
35566
|
};
|
|
35526
|
-
const _hoisted_4$
|
|
35527
|
-
const _hoisted_5$
|
|
35567
|
+
const _hoisted_4$a = { title: "\u5355\u5143\u683C\u8BBE\u7F6E" };
|
|
35568
|
+
const _hoisted_5$6 = {
|
|
35528
35569
|
key: 1,
|
|
35529
35570
|
class: "custom-table-cell-handler"
|
|
35530
35571
|
};
|
|
35531
|
-
const _hoisted_6$
|
|
35572
|
+
const _hoisted_6$6 = {
|
|
35532
35573
|
key: 2,
|
|
35533
35574
|
class: "empty-hint"
|
|
35534
35575
|
};
|
|
35535
|
-
function _sfc_render$
|
|
35576
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35536
35577
|
const _component_draggable = resolveComponent("draggable");
|
|
35537
35578
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
35538
35579
|
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
@@ -35565,7 +35606,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35565
35606
|
move: $options.checkContainerMove
|
|
35566
35607
|
}), {
|
|
35567
35608
|
item: withCtx(({ element: subWidget, index: swIdx }) => [
|
|
35568
|
-
createElementVNode("div", _hoisted_2$
|
|
35609
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
35569
35610
|
subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
|
|
35570
35611
|
widget: subWidget,
|
|
35571
35612
|
designer: $props.designer,
|
|
@@ -35586,7 +35627,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35586
35627
|
]),
|
|
35587
35628
|
_: 1
|
|
35588
35629
|
}, 16, ["list", "onUpdate", "move"]),
|
|
35589
|
-
$props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
35630
|
+
$props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
35590
35631
|
createElementVNode("i", {
|
|
35591
35632
|
title: "\u9009\u62E9\u7236\u7EC4\u4EF6",
|
|
35592
35633
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget(), ["stop"]))
|
|
@@ -35645,22 +35686,22 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35645
35686
|
})
|
|
35646
35687
|
]),
|
|
35647
35688
|
default: withCtx(() => [
|
|
35648
|
-
createElementVNode("i", _hoisted_4$
|
|
35689
|
+
createElementVNode("i", _hoisted_4$a, [
|
|
35649
35690
|
createVNode(_component_svg_icon, { "icon-class": "el-menu" })
|
|
35650
35691
|
])
|
|
35651
35692
|
]),
|
|
35652
35693
|
_: 1
|
|
35653
35694
|
}, 8, ["onCommand"])
|
|
35654
35695
|
])) : createCommentVNode("", true),
|
|
35655
|
-
$props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
35696
|
+
$props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_5$6, [..._cache[9] || (_cache[9] = [
|
|
35656
35697
|
createElementVNode("i", null, "\u5355\u5143\u683C", -1)
|
|
35657
35698
|
])])) : createCommentVNode("", true),
|
|
35658
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
35659
|
-
], 14, _hoisted_1$
|
|
35699
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$6, " \u62D6\u62FD\u7EC4\u4EF6\u5230\u6B64\u5904 ")) : createCommentVNode("", true)
|
|
35700
|
+
], 14, _hoisted_1$k);
|
|
35660
35701
|
}
|
|
35661
|
-
var CustomTableCellWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35702
|
+
var CustomTableCellWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-6e28297c"]]);
|
|
35662
35703
|
var customTableWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
35663
|
-
const _sfc_main$
|
|
35704
|
+
const _sfc_main$m = {
|
|
35664
35705
|
name: "custom-table-widget",
|
|
35665
35706
|
componentName: "ContainerWidget",
|
|
35666
35707
|
mixins: [i18n$1, containerMixin, refMixinDesign],
|
|
@@ -35711,8 +35752,8 @@ const _sfc_main$j = {
|
|
|
35711
35752
|
}
|
|
35712
35753
|
}
|
|
35713
35754
|
};
|
|
35714
|
-
const _hoisted_1$
|
|
35715
|
-
function _sfc_render$
|
|
35755
|
+
const _hoisted_1$j = { class: "custom-table-layout" };
|
|
35756
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35716
35757
|
const _component_custom_table_cell_widget = resolveComponent("custom-table-cell-widget");
|
|
35717
35758
|
const _component_container_wrapper = resolveComponent("container-wrapper");
|
|
35718
35759
|
return openBlock(), createBlock(_component_container_wrapper, {
|
|
@@ -35728,7 +35769,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35728
35769
|
class: normalizeClass(["custom-table-container", [$options.selected ? "selected" : "", $options.customClass]]),
|
|
35729
35770
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.selectWidget($props.widget), ["stop"]))
|
|
35730
35771
|
}, [
|
|
35731
|
-
createElementVNode("table", _hoisted_1$
|
|
35772
|
+
createElementVNode("table", _hoisted_1$j, [
|
|
35732
35773
|
createElementVNode("tbody", null, [
|
|
35733
35774
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.rows, (row, rowIdx) => {
|
|
35734
35775
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -35758,9 +35799,9 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35758
35799
|
_: 1
|
|
35759
35800
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
35760
35801
|
}
|
|
35761
|
-
var CustomTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35802
|
+
var CustomTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-5281c94a"]]);
|
|
35762
35803
|
var customTableCellItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
35763
|
-
const _sfc_main$
|
|
35804
|
+
const _sfc_main$l = {
|
|
35764
35805
|
name: "custom-table-cell-item",
|
|
35765
35806
|
componentName: "ContainerItem",
|
|
35766
35807
|
mixins: [emitter, i18n$1, refMixin],
|
|
@@ -35777,8 +35818,8 @@ const _sfc_main$i = {
|
|
|
35777
35818
|
}
|
|
35778
35819
|
}
|
|
35779
35820
|
};
|
|
35780
|
-
const _hoisted_1$
|
|
35781
|
-
function _sfc_render$
|
|
35821
|
+
const _hoisted_1$i = ["colspan", "rowspan"];
|
|
35822
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35782
35823
|
return openBlock(), createElementBlock("td", {
|
|
35783
35824
|
class: normalizeClass(["custom-table-cell", $options.customClass]),
|
|
35784
35825
|
colspan: $props.widget.options.colspan || 1,
|
|
@@ -35809,11 +35850,11 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35809
35850
|
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
35810
35851
|
], 64);
|
|
35811
35852
|
}), 128))
|
|
35812
|
-
], 14, _hoisted_1$
|
|
35853
|
+
], 14, _hoisted_1$i);
|
|
35813
35854
|
}
|
|
35814
|
-
var CustomTableCellItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35855
|
+
var CustomTableCellItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-188e7bf2"]]);
|
|
35815
35856
|
var customTableItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
35816
|
-
const _sfc_main$
|
|
35857
|
+
const _sfc_main$k = {
|
|
35817
35858
|
name: "custom-table-item",
|
|
35818
35859
|
componentName: "ContainerItem",
|
|
35819
35860
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -35998,16 +36039,16 @@ const _sfc_main$h = {
|
|
|
35998
36039
|
}
|
|
35999
36040
|
}
|
|
36000
36041
|
};
|
|
36001
|
-
const _hoisted_1$
|
|
36042
|
+
const _hoisted_1$h = {
|
|
36002
36043
|
key: 0,
|
|
36003
36044
|
class: "table-actions"
|
|
36004
36045
|
};
|
|
36005
|
-
const _hoisted_2$
|
|
36006
|
-
const _hoisted_3$
|
|
36046
|
+
const _hoisted_2$e = { class: "custom-table-layout" };
|
|
36047
|
+
const _hoisted_3$b = {
|
|
36007
36048
|
key: 0,
|
|
36008
36049
|
class: "row-actions-cell"
|
|
36009
36050
|
};
|
|
36010
|
-
function _sfc_render$
|
|
36051
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36011
36052
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
36012
36053
|
const _component_el_button = resolveComponent("el-button");
|
|
36013
36054
|
const _component_custom_table_cell_item = resolveComponent("custom-table-cell-item");
|
|
@@ -36018,7 +36059,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36018
36059
|
key: $props.widget.id,
|
|
36019
36060
|
class: normalizeClass(["custom-table-container", $options.customClass])
|
|
36020
36061
|
}, [
|
|
36021
|
-
$props.widget.rows && $props.widget.rows.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36062
|
+
$props.widget.rows && $props.widget.rows.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
36022
36063
|
createVNode(_component_el_button, {
|
|
36023
36064
|
type: "primary",
|
|
36024
36065
|
size: "small",
|
|
@@ -36032,13 +36073,13 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36032
36073
|
_: 1
|
|
36033
36074
|
}, 8, ["onClick"])
|
|
36034
36075
|
])) : createCommentVNode("", true),
|
|
36035
|
-
createElementVNode("table", _hoisted_2$
|
|
36076
|
+
createElementVNode("table", _hoisted_2$e, [
|
|
36036
36077
|
createElementVNode("tbody", null, [
|
|
36037
36078
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.rows, (row, rowIdx) => {
|
|
36038
36079
|
return openBlock(), createElementBlock("tr", {
|
|
36039
36080
|
key: $data.rowIdData[rowIdx] || row.id
|
|
36040
36081
|
}, [
|
|
36041
|
-
$props.widget.rows.length > 0 ? (openBlock(), createElementBlock("td", _hoisted_3$
|
|
36082
|
+
$props.widget.rows.length > 0 ? (openBlock(), createElementBlock("td", _hoisted_3$b, [
|
|
36042
36083
|
createVNode(_component_el_button, {
|
|
36043
36084
|
type: "primary",
|
|
36044
36085
|
size: "small",
|
|
@@ -36087,9 +36128,9 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36087
36128
|
_: 1
|
|
36088
36129
|
}, 8, ["widget"]);
|
|
36089
36130
|
}
|
|
36090
|
-
var CustomTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
36131
|
+
var CustomTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-1aff2bd9"]]);
|
|
36091
36132
|
var subTableWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
36092
|
-
const _sfc_main$
|
|
36133
|
+
const _sfc_main$j = {
|
|
36093
36134
|
name: "sub-table-widget",
|
|
36094
36135
|
componentName: "ContainerWidget",
|
|
36095
36136
|
mixins: [i18n$1, containerMixin, refMixinDesign],
|
|
@@ -36175,18 +36216,18 @@ const _sfc_main$g = {
|
|
|
36175
36216
|
}
|
|
36176
36217
|
}
|
|
36177
36218
|
};
|
|
36178
|
-
const _hoisted_1$
|
|
36179
|
-
const _hoisted_2$
|
|
36180
|
-
const _hoisted_3$
|
|
36181
|
-
const _hoisted_4$
|
|
36182
|
-
const _hoisted_5$
|
|
36183
|
-
const _hoisted_6$
|
|
36184
|
-
const _hoisted_7$
|
|
36185
|
-
const _hoisted_8$
|
|
36219
|
+
const _hoisted_1$g = { class: "sub-table-header" };
|
|
36220
|
+
const _hoisted_2$d = { class: "sub-table-label" };
|
|
36221
|
+
const _hoisted_3$a = { class: "table-preview" };
|
|
36222
|
+
const _hoisted_4$9 = { class: "preview-cell" };
|
|
36223
|
+
const _hoisted_5$5 = { class: "empty-hint" };
|
|
36224
|
+
const _hoisted_6$5 = { key: 0 };
|
|
36225
|
+
const _hoisted_7$5 = { key: 1 };
|
|
36226
|
+
const _hoisted_8$3 = {
|
|
36186
36227
|
key: 0,
|
|
36187
36228
|
class: "config-hint"
|
|
36188
36229
|
};
|
|
36189
|
-
function _sfc_render$
|
|
36230
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36190
36231
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
36191
36232
|
const _component_el_button = resolveComponent("el-button");
|
|
36192
36233
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
@@ -36206,8 +36247,8 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36206
36247
|
class: normalizeClass(["sub-table-container", [$options.selected ? "selected" : "", $options.customClass]]),
|
|
36207
36248
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.selectWidget($props.widget), ["stop"]))
|
|
36208
36249
|
}, [
|
|
36209
|
-
createElementVNode("div", _hoisted_1$
|
|
36210
|
-
createElementVNode("span", _hoisted_2$
|
|
36250
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
36251
|
+
createElementVNode("span", _hoisted_2$d, toDisplayString($props.widget.options.label || "\u5B50\u8868\u683C"), 1),
|
|
36211
36252
|
createVNode(_component_el_button, {
|
|
36212
36253
|
disabled: $data.actionDisabled,
|
|
36213
36254
|
round: "",
|
|
@@ -36223,7 +36264,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36223
36264
|
_: 1
|
|
36224
36265
|
}, 8, ["disabled", "onClick"])
|
|
36225
36266
|
]),
|
|
36226
|
-
createElementVNode("div", _hoisted_3$
|
|
36267
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
36227
36268
|
createVNode(_component_el_table, {
|
|
36228
36269
|
data: $data.previewData,
|
|
36229
36270
|
border: $props.widget.options.border,
|
|
@@ -36233,8 +36274,8 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36233
36274
|
style: { "width": "100%" }
|
|
36234
36275
|
}, {
|
|
36235
36276
|
empty: withCtx(() => [
|
|
36236
|
-
createElementVNode("div", _hoisted_5$
|
|
36237
|
-
$props.widget.options.columns && $props.widget.options.columns.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
36277
|
+
createElementVNode("div", _hoisted_5$5, [
|
|
36278
|
+
$props.widget.options.columns && $props.widget.options.columns.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_6$5, ' \u6682\u65E0\u6570\u636E\uFF0C\u70B9\u51FB"\u6DFB\u52A0\u884C"\u6309\u94AE\u6DFB\u52A0\u6570\u636E ')) : (openBlock(), createElementBlock("span", _hoisted_7$5, " \u8BF7\u5728\u53F3\u4FA7\u5C5E\u6027\u9762\u677F\u4E2D\u914D\u7F6E\u8868\u683C\u5217 "))
|
|
36238
36279
|
])
|
|
36239
36280
|
]),
|
|
36240
36281
|
default: withCtx(() => [
|
|
@@ -36255,7 +36296,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36255
36296
|
align: "center"
|
|
36256
36297
|
}, {
|
|
36257
36298
|
default: withCtx(({ row }) => [
|
|
36258
|
-
createElementVNode("span", _hoisted_4$
|
|
36299
|
+
createElementVNode("span", _hoisted_4$9, toDisplayString(row[col.prop] || "-"), 1)
|
|
36259
36300
|
]),
|
|
36260
36301
|
_: 2
|
|
36261
36302
|
}, 1032, ["prop", "label", "width", "min-width"]);
|
|
@@ -36297,7 +36338,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36297
36338
|
_: 1
|
|
36298
36339
|
}, 8, ["data", "border", "stripe", "size", "max-height"])
|
|
36299
36340
|
]),
|
|
36300
|
-
!$props.widget.options.columns || $props.widget.options.columns.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
36341
|
+
!$props.widget.options.columns || $props.widget.options.columns.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
36301
36342
|
createVNode(_component_el_alert, {
|
|
36302
36343
|
title: "\u63D0\u793A",
|
|
36303
36344
|
type: "info",
|
|
@@ -36315,9 +36356,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36315
36356
|
_: 1
|
|
36316
36357
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
36317
36358
|
}
|
|
36318
|
-
var SubTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
36359
|
+
var SubTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-1fb729c8"]]);
|
|
36319
36360
|
var subTableItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
36320
|
-
const _sfc_main$
|
|
36361
|
+
const _sfc_main$i = {
|
|
36321
36362
|
name: "sub-table-item",
|
|
36322
36363
|
componentName: "ContainerItem",
|
|
36323
36364
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -36719,17 +36760,17 @@ const _sfc_main$f = {
|
|
|
36719
36760
|
}
|
|
36720
36761
|
}
|
|
36721
36762
|
};
|
|
36722
|
-
const _hoisted_1$
|
|
36763
|
+
const _hoisted_1$f = {
|
|
36723
36764
|
key: 0,
|
|
36724
36765
|
class: "sub-table-label"
|
|
36725
36766
|
};
|
|
36726
|
-
const _hoisted_2$
|
|
36767
|
+
const _hoisted_2$c = {
|
|
36727
36768
|
key: 0,
|
|
36728
36769
|
class: "required-mark"
|
|
36729
36770
|
};
|
|
36730
|
-
const _hoisted_3$
|
|
36731
|
-
const _hoisted_4$
|
|
36732
|
-
function _sfc_render$
|
|
36771
|
+
const _hoisted_3$9 = { class: "table-toolbar" };
|
|
36772
|
+
const _hoisted_4$8 = { class: "dialog-footer" };
|
|
36773
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36733
36774
|
const _component_el_button = resolveComponent("el-button");
|
|
36734
36775
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
36735
36776
|
const _component_el_table = resolveComponent("el-table");
|
|
@@ -36749,13 +36790,13 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36749
36790
|
key: $props.widget.id,
|
|
36750
36791
|
class: normalizeClass(["sub-table-container", $options.customClass])
|
|
36751
36792
|
}, [
|
|
36752
|
-
$props.widget.options.label ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
36793
|
+
$props.widget.options.label ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
36753
36794
|
createElementVNode("span", {
|
|
36754
36795
|
class: normalizeClass($options.labelClass)
|
|
36755
36796
|
}, toDisplayString($props.widget.options.label), 3),
|
|
36756
|
-
$props.widget.options.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
36797
|
+
$props.widget.options.required ? (openBlock(), createElementBlock("span", _hoisted_2$c, "*")) : createCommentVNode("", true)
|
|
36757
36798
|
])) : createCommentVNode("", true),
|
|
36758
|
-
createElementVNode("div", _hoisted_3$
|
|
36799
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
36759
36800
|
!$props.widget.options.disabled ? (openBlock(), createBlock(_component_el_button, {
|
|
36760
36801
|
key: 0,
|
|
36761
36802
|
type: "primary",
|
|
@@ -36856,7 +36897,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36856
36897
|
onOpened: $options.handleDialogOpened
|
|
36857
36898
|
}, {
|
|
36858
36899
|
footer: withCtx(() => [
|
|
36859
|
-
createElementVNode("span", _hoisted_4$
|
|
36900
|
+
createElementVNode("span", _hoisted_4$8, [
|
|
36860
36901
|
createVNode(_component_el_button, {
|
|
36861
36902
|
size: "default",
|
|
36862
36903
|
onClick: _cache[0] || (_cache[0] = ($event) => $data.dialogVisible = false)
|
|
@@ -36997,7 +37038,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36997
37038
|
_: 1
|
|
36998
37039
|
}, 8, ["widget"]);
|
|
36999
37040
|
}
|
|
37000
|
-
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
37041
|
+
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-7ee123a5"]]);
|
|
37001
37042
|
var ace$2 = { exports: {} };
|
|
37002
37043
|
(function(module, exports) {
|
|
37003
37044
|
(function() {
|
|
@@ -61443,7 +61484,7 @@ var extLanguage_tools = { exports: {} };
|
|
|
61443
61484
|
})();
|
|
61444
61485
|
})(extLanguage_tools);
|
|
61445
61486
|
var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
|
|
61446
|
-
const _sfc_main$
|
|
61487
|
+
const _sfc_main$h = {
|
|
61447
61488
|
name: "CodeEditor",
|
|
61448
61489
|
props: {
|
|
61449
61490
|
modelValue: {
|
|
@@ -61534,19 +61575,19 @@ const _sfc_main$e = {
|
|
|
61534
61575
|
}
|
|
61535
61576
|
}
|
|
61536
61577
|
};
|
|
61537
|
-
const _hoisted_1$
|
|
61538
|
-
const _hoisted_2$
|
|
61578
|
+
const _hoisted_1$e = { class: "ace-container" };
|
|
61579
|
+
const _hoisted_2$b = {
|
|
61539
61580
|
class: "ace-editor",
|
|
61540
61581
|
ref: "ace"
|
|
61541
61582
|
};
|
|
61542
|
-
function _sfc_render$
|
|
61543
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
61544
|
-
createElementVNode("div", _hoisted_2$
|
|
61583
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61584
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
61585
|
+
createElementVNode("div", _hoisted_2$b, null, 512)
|
|
61545
61586
|
]);
|
|
61546
61587
|
}
|
|
61547
|
-
var CodeEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
61588
|
+
var CodeEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-335e1214"]]);
|
|
61548
61589
|
var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
61549
|
-
const _sfc_main$
|
|
61590
|
+
const _sfc_main$g = {
|
|
61550
61591
|
name: "sub-table-columns-editor",
|
|
61551
61592
|
mixins: [i18n$1],
|
|
61552
61593
|
components: {
|
|
@@ -61764,11 +61805,11 @@ const _sfc_main$d = {
|
|
|
61764
61805
|
}
|
|
61765
61806
|
}
|
|
61766
61807
|
};
|
|
61767
|
-
const _hoisted_1$
|
|
61768
|
-
const _hoisted_2$
|
|
61769
|
-
const _hoisted_3$
|
|
61770
|
-
const _hoisted_4$
|
|
61771
|
-
function _sfc_render$
|
|
61808
|
+
const _hoisted_1$d = { class: "column-header" };
|
|
61809
|
+
const _hoisted_2$a = { class: "column-title" };
|
|
61810
|
+
const _hoisted_3$8 = { class: "column-form" };
|
|
61811
|
+
const _hoisted_4$7 = { class: "dialog-footer" };
|
|
61812
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61772
61813
|
const _component_el_divider = resolveComponent("el-divider");
|
|
61773
61814
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
61774
61815
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -61800,8 +61841,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61800
61841
|
key: colIdx,
|
|
61801
61842
|
class: "column-item"
|
|
61802
61843
|
}, [
|
|
61803
|
-
createElementVNode("div", _hoisted_1$
|
|
61804
|
-
createElementVNode("span", _hoisted_2$
|
|
61844
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
61845
|
+
createElementVNode("span", _hoisted_2$a, "\u5217 " + toDisplayString(colIdx + 1), 1),
|
|
61805
61846
|
createVNode(_component_el_button, {
|
|
61806
61847
|
circle: "",
|
|
61807
61848
|
plain: "",
|
|
@@ -61812,7 +61853,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61812
61853
|
class: "column-delete-button"
|
|
61813
61854
|
}, null, 8, ["onClick"])
|
|
61814
61855
|
]),
|
|
61815
|
-
createElementVNode("div", _hoisted_3$
|
|
61856
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
61816
61857
|
createVNode(_component_el_form_item, { label: "\u5217\u540D" }, {
|
|
61817
61858
|
default: withCtx(() => [
|
|
61818
61859
|
createVNode(_component_el_input, {
|
|
@@ -62228,7 +62269,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62228
62269
|
"close-on-click-modal": false
|
|
62229
62270
|
}, {
|
|
62230
62271
|
footer: withCtx(() => [
|
|
62231
|
-
createElementVNode("div", _hoisted_4$
|
|
62272
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
62232
62273
|
createVNode(_component_el_button, {
|
|
62233
62274
|
onClick: _cache[1] || (_cache[1] = ($event) => $data.showColumnEventDialog = false)
|
|
62234
62275
|
}, {
|
|
@@ -62267,8 +62308,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62267
62308
|
}, 8, ["modelValue", "title"])
|
|
62268
62309
|
], 64);
|
|
62269
62310
|
}
|
|
62270
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
62271
|
-
const _sfc_main$
|
|
62311
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-2401420e"]]);
|
|
62312
|
+
const _sfc_main$f = {
|
|
62272
62313
|
name: "current-user-widget",
|
|
62273
62314
|
componentName: "FieldWidget",
|
|
62274
62315
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -62378,7 +62419,7 @@ const _sfc_main$c = {
|
|
|
62378
62419
|
this.getCurrentUser();
|
|
62379
62420
|
}
|
|
62380
62421
|
};
|
|
62381
|
-
function _sfc_render$
|
|
62422
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
62382
62423
|
const _component_el_input = resolveComponent("el-input");
|
|
62383
62424
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
62384
62425
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -62403,9 +62444,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62403
62444
|
_: 1
|
|
62404
62445
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
62405
62446
|
}
|
|
62406
|
-
var CurrentUserWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
62447
|
+
var CurrentUserWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_render$f]]);
|
|
62407
62448
|
var assetDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
62408
|
-
const _sfc_main$
|
|
62449
|
+
const _sfc_main$e = {
|
|
62409
62450
|
name: "asset-dialog",
|
|
62410
62451
|
props: {
|
|
62411
62452
|
dialogVisible: {
|
|
@@ -62602,17 +62643,17 @@ const _sfc_main$b = {
|
|
|
62602
62643
|
this.handleGetAssetTypeOptions();
|
|
62603
62644
|
}
|
|
62604
62645
|
};
|
|
62605
|
-
const _hoisted_1$
|
|
62606
|
-
const _hoisted_2$
|
|
62607
|
-
const _hoisted_3$
|
|
62608
|
-
const _hoisted_4$
|
|
62609
|
-
const _hoisted_5$
|
|
62610
|
-
const _hoisted_6$
|
|
62611
|
-
const _hoisted_7$
|
|
62612
|
-
const _hoisted_8$
|
|
62613
|
-
const _hoisted_9$
|
|
62614
|
-
const _hoisted_10 = { class: "dialog-footer" };
|
|
62615
|
-
function _sfc_render$
|
|
62646
|
+
const _hoisted_1$c = { class: "asset-body-wrap" };
|
|
62647
|
+
const _hoisted_2$9 = { class: "bottom-wrap" };
|
|
62648
|
+
const _hoisted_3$7 = { class: "left-wrap" };
|
|
62649
|
+
const _hoisted_4$6 = { class: "filter-wrap" };
|
|
62650
|
+
const _hoisted_5$4 = { class: "right-wrap" };
|
|
62651
|
+
const _hoisted_6$4 = { class: "asset-wrap-title" };
|
|
62652
|
+
const _hoisted_7$4 = { class: "asset-wrap" };
|
|
62653
|
+
const _hoisted_8$2 = { class: "asset-item-left" };
|
|
62654
|
+
const _hoisted_9$2 = { class: "asset-item-right" };
|
|
62655
|
+
const _hoisted_10$1 = { class: "dialog-footer" };
|
|
62656
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
62616
62657
|
const _component_el_input = resolveComponent("el-input");
|
|
62617
62658
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
62618
62659
|
const _component_el_col = resolveComponent("el-col");
|
|
@@ -62642,7 +62683,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62642
62683
|
"header-class": "asset-list-dialog-header"
|
|
62643
62684
|
}, {
|
|
62644
62685
|
footer: withCtx(() => [
|
|
62645
|
-
createElementVNode("div", _hoisted_10, [
|
|
62686
|
+
createElementVNode("div", _hoisted_10$1, [
|
|
62646
62687
|
createVNode(_component_el_button, {
|
|
62647
62688
|
onClick: $options.handleClose,
|
|
62648
62689
|
size: "default"
|
|
@@ -62665,10 +62706,10 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62665
62706
|
])
|
|
62666
62707
|
]),
|
|
62667
62708
|
default: withCtx(() => [
|
|
62668
|
-
createElementVNode("div", _hoisted_1$
|
|
62669
|
-
createElementVNode("div", _hoisted_2$
|
|
62670
|
-
createElementVNode("div", _hoisted_3$
|
|
62671
|
-
createElementVNode("div", _hoisted_4$
|
|
62709
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
62710
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
62711
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
62712
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
62672
62713
|
createVNode(_component_el_form, {
|
|
62673
62714
|
model: $data.form,
|
|
62674
62715
|
ref: "formRef"
|
|
@@ -62877,8 +62918,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62877
62918
|
_: 1
|
|
62878
62919
|
})
|
|
62879
62920
|
]),
|
|
62880
|
-
createElementVNode("div", _hoisted_5$
|
|
62881
|
-
createElementVNode("div", _hoisted_6$
|
|
62921
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
62922
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
62882
62923
|
createVNode(_component_el_input, {
|
|
62883
62924
|
modelValue: $data.searchValue,
|
|
62884
62925
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.searchValue = $event),
|
|
@@ -62898,17 +62939,17 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62898
62939
|
]),
|
|
62899
62940
|
createVNode(_component_el_scrollbar, { class: "asset-wrap-scroll" }, {
|
|
62900
62941
|
default: withCtx(() => [
|
|
62901
|
-
createElementVNode("ul", _hoisted_7$
|
|
62942
|
+
createElementVNode("ul", _hoisted_7$4, [
|
|
62902
62943
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.filterList, (item) => {
|
|
62903
62944
|
return openBlock(), createElementBlock("li", {
|
|
62904
62945
|
class: "asset-item",
|
|
62905
62946
|
key: item.assetId
|
|
62906
62947
|
}, [
|
|
62907
|
-
createElementVNode("div", _hoisted_8$
|
|
62948
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
62908
62949
|
createElementVNode("div", null, toDisplayString(item.labelName), 1),
|
|
62909
62950
|
createElementVNode("div", null, toDisplayString(item.assetCode), 1)
|
|
62910
62951
|
]),
|
|
62911
|
-
createElementVNode("div", _hoisted_9$
|
|
62952
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
62912
62953
|
createVNode(_component_el_icon, {
|
|
62913
62954
|
onClick: ($event) => $options.handleRemove(item.assetId)
|
|
62914
62955
|
}, {
|
|
@@ -62931,9 +62972,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62931
62972
|
_: 1
|
|
62932
62973
|
}, 8, ["modelValue", "onClose"]);
|
|
62933
62974
|
}
|
|
62934
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
62935
|
-
var index_vue_vue_type_style_index_0_lang$
|
|
62936
|
-
const _sfc_main$
|
|
62975
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-5cca3952"]]);
|
|
62976
|
+
var index_vue_vue_type_style_index_0_lang$2 = "";
|
|
62977
|
+
const _sfc_main$d = {
|
|
62937
62978
|
name: "asset-select-widget",
|
|
62938
62979
|
componentName: "FieldWidget",
|
|
62939
62980
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -63127,8 +63168,8 @@ const _sfc_main$a = {
|
|
|
63127
63168
|
}
|
|
63128
63169
|
}
|
|
63129
63170
|
};
|
|
63130
|
-
const _hoisted_1$
|
|
63131
|
-
function _sfc_render$
|
|
63171
|
+
const _hoisted_1$b = { class: "asset-select-widget__trigger" };
|
|
63172
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63132
63173
|
const _component_el_button = resolveComponent("el-button");
|
|
63133
63174
|
const _component_asset_dialog = resolveComponent("asset-dialog");
|
|
63134
63175
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
@@ -63149,7 +63190,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63149
63190
|
class: "asset-select-widget",
|
|
63150
63191
|
style: normalizeStyle($options.widgetStyle)
|
|
63151
63192
|
}, [
|
|
63152
|
-
createElementVNode("div", _hoisted_1$
|
|
63193
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
63153
63194
|
createVNode(_component_el_button, {
|
|
63154
63195
|
type: "primary",
|
|
63155
63196
|
class: "asset-select-widget__button",
|
|
@@ -63179,7 +63220,964 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63179
63220
|
_: 1
|
|
63180
63221
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
63181
63222
|
}
|
|
63182
|
-
var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
63223
|
+
var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d]]);
|
|
63224
|
+
var documentDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
63225
|
+
var documentDialog_vue_vue_type_style_index_1_lang = "";
|
|
63226
|
+
const DEFAULT_FORM_JSON$1 = {
|
|
63227
|
+
widgetList: [],
|
|
63228
|
+
formConfig: {
|
|
63229
|
+
modelName: "formData",
|
|
63230
|
+
refName: "vForm",
|
|
63231
|
+
rulesName: "rules",
|
|
63232
|
+
labelWidth: 80,
|
|
63233
|
+
labelPosition: "left",
|
|
63234
|
+
size: "",
|
|
63235
|
+
labelAlign: "label-left-align",
|
|
63236
|
+
cssCode: "",
|
|
63237
|
+
customClass: [],
|
|
63238
|
+
functions: "",
|
|
63239
|
+
layoutType: "PC",
|
|
63240
|
+
jsonVersion: 3,
|
|
63241
|
+
onFormCreated: "",
|
|
63242
|
+
onFormMounted: "",
|
|
63243
|
+
onFormDataChange: "",
|
|
63244
|
+
onFormValidate: "",
|
|
63245
|
+
onFormValidateSuccess: ""
|
|
63246
|
+
}
|
|
63247
|
+
};
|
|
63248
|
+
const _sfc_main$c = {
|
|
63249
|
+
name: "document-dialog",
|
|
63250
|
+
components: {
|
|
63251
|
+
VFormRender
|
|
63252
|
+
},
|
|
63253
|
+
props: {
|
|
63254
|
+
dialogVisible: {
|
|
63255
|
+
type: Boolean,
|
|
63256
|
+
default: false
|
|
63257
|
+
},
|
|
63258
|
+
fieldValue: {
|
|
63259
|
+
type: Array,
|
|
63260
|
+
default: () => []
|
|
63261
|
+
},
|
|
63262
|
+
documentTypeValue: {
|
|
63263
|
+
type: String,
|
|
63264
|
+
default: ""
|
|
63265
|
+
},
|
|
63266
|
+
documentListUrl: {
|
|
63267
|
+
type: String,
|
|
63268
|
+
default: "unified-system/workflow/businessFlow/page"
|
|
63269
|
+
},
|
|
63270
|
+
limit: {
|
|
63271
|
+
type: Number,
|
|
63272
|
+
default: 0
|
|
63273
|
+
}
|
|
63274
|
+
},
|
|
63275
|
+
data() {
|
|
63276
|
+
return {
|
|
63277
|
+
tableData: [],
|
|
63278
|
+
selectedRows: [],
|
|
63279
|
+
checkedIds: [],
|
|
63280
|
+
visible: false,
|
|
63281
|
+
pageSize: 10,
|
|
63282
|
+
currentPage: 1,
|
|
63283
|
+
form: {
|
|
63284
|
+
title: ""
|
|
63285
|
+
},
|
|
63286
|
+
total: 0,
|
|
63287
|
+
activeDocumentId: null,
|
|
63288
|
+
activeDocument: null,
|
|
63289
|
+
formJson: null,
|
|
63290
|
+
formData: {},
|
|
63291
|
+
showForm: false,
|
|
63292
|
+
detailLoading: false,
|
|
63293
|
+
formJsonCache: {},
|
|
63294
|
+
_handlingCheckedChange: false
|
|
63295
|
+
};
|
|
63296
|
+
},
|
|
63297
|
+
computed: {
|
|
63298
|
+
renderFormJson() {
|
|
63299
|
+
return this.formJson || DEFAULT_FORM_JSON$1;
|
|
63300
|
+
}
|
|
63301
|
+
},
|
|
63302
|
+
watch: {
|
|
63303
|
+
dialogVisible: {
|
|
63304
|
+
handler(newVal) {
|
|
63305
|
+
this.visible = newVal;
|
|
63306
|
+
if (newVal) {
|
|
63307
|
+
this.getTableData();
|
|
63308
|
+
this.selectedRows = this.fieldValue && Array.isArray(this.fieldValue) ? lodash.exports.cloneDeep(this.fieldValue) : [];
|
|
63309
|
+
if (this.selectedRows.length > 0) {
|
|
63310
|
+
this.handleSelectActive(this.selectedRows[0]);
|
|
63311
|
+
} else {
|
|
63312
|
+
this.resetDetail();
|
|
63313
|
+
}
|
|
63314
|
+
}
|
|
63315
|
+
}
|
|
63316
|
+
}
|
|
63317
|
+
},
|
|
63318
|
+
methods: {
|
|
63319
|
+
resetDetail() {
|
|
63320
|
+
this.activeDocumentId = null;
|
|
63321
|
+
this.activeDocument = null;
|
|
63322
|
+
this.formJson = null;
|
|
63323
|
+
this.formData = {};
|
|
63324
|
+
this.showForm = false;
|
|
63325
|
+
this.detailLoading = false;
|
|
63326
|
+
},
|
|
63327
|
+
syncCheckedIds() {
|
|
63328
|
+
this.checkedIds = this.tableData.filter((item) => this.selectedRows.some((row) => row.id === item.id)).map((item) => item.id);
|
|
63329
|
+
},
|
|
63330
|
+
handleClose() {
|
|
63331
|
+
this.form = { title: "" };
|
|
63332
|
+
this.checkedIds = [];
|
|
63333
|
+
this.resetDetail();
|
|
63334
|
+
this.$emit("close");
|
|
63335
|
+
},
|
|
63336
|
+
handleConfirm() {
|
|
63337
|
+
if (!this.selectedRows.length) {
|
|
63338
|
+
this.$message.error("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u6761\u6536\u6587");
|
|
63339
|
+
return;
|
|
63340
|
+
}
|
|
63341
|
+
this.form = { title: "" };
|
|
63342
|
+
console.log(this.selectedRows, "this.selectedRows");
|
|
63343
|
+
this.$emit("confirm", lodash.exports.cloneDeep(this.selectedRows));
|
|
63344
|
+
},
|
|
63345
|
+
handleCheckedChange(checkedIds) {
|
|
63346
|
+
if (this._handlingCheckedChange)
|
|
63347
|
+
return;
|
|
63348
|
+
const currentPageIds = this.tableData.map((item) => item.id);
|
|
63349
|
+
const uncheckedIds = currentPageIds.filter((id) => !checkedIds.includes(id));
|
|
63350
|
+
const nextSelected = this.selectedRows.filter((row) => !uncheckedIds.includes(row.id));
|
|
63351
|
+
checkedIds.forEach((id) => {
|
|
63352
|
+
if (!nextSelected.some((row) => row.id === id)) {
|
|
63353
|
+
const item = this.tableData.find((row) => row.id === id);
|
|
63354
|
+
if (item) {
|
|
63355
|
+
nextSelected.push(item);
|
|
63356
|
+
}
|
|
63357
|
+
}
|
|
63358
|
+
});
|
|
63359
|
+
if (this.limit > 0 && nextSelected.length > this.limit) {
|
|
63360
|
+
this.$message.error(`\u6700\u591A\u9009\u62E9 ${this.limit} \u6761\u6536\u6587`);
|
|
63361
|
+
this._handlingCheckedChange = true;
|
|
63362
|
+
this.syncCheckedIds();
|
|
63363
|
+
this._handlingCheckedChange = false;
|
|
63364
|
+
return;
|
|
63365
|
+
}
|
|
63366
|
+
this.selectedRows = nextSelected;
|
|
63367
|
+
},
|
|
63368
|
+
getTableData() {
|
|
63369
|
+
service$1({
|
|
63370
|
+
method: "post",
|
|
63371
|
+
url: this.documentListUrl,
|
|
63372
|
+
data: {
|
|
63373
|
+
size: this.pageSize,
|
|
63374
|
+
current: this.currentPage,
|
|
63375
|
+
title: this.form.title,
|
|
63376
|
+
createdByCompanyId: "1933058214390362114",
|
|
63377
|
+
dataJson: {
|
|
63378
|
+
form_titleName: this.form.title
|
|
63379
|
+
},
|
|
63380
|
+
subCategoryCode: "1009",
|
|
63381
|
+
status: -1
|
|
63382
|
+
}
|
|
63383
|
+
}).then(({ data: data2 }) => {
|
|
63384
|
+
const { hits = [], totalHits = 0 } = data2 || {};
|
|
63385
|
+
this.tableData = hits;
|
|
63386
|
+
this.total = totalHits;
|
|
63387
|
+
this.syncCheckedIds();
|
|
63388
|
+
}).catch((err) => {
|
|
63389
|
+
console.error(err);
|
|
63390
|
+
this.tableData = [];
|
|
63391
|
+
this.total = 0;
|
|
63392
|
+
this.checkedIds = [];
|
|
63393
|
+
});
|
|
63394
|
+
},
|
|
63395
|
+
handleSizeChange(size) {
|
|
63396
|
+
this.pageSize = size;
|
|
63397
|
+
this.currentPage = 1;
|
|
63398
|
+
this.getTableData();
|
|
63399
|
+
},
|
|
63400
|
+
handleCurrentChange(page) {
|
|
63401
|
+
this.currentPage = page;
|
|
63402
|
+
this.getTableData();
|
|
63403
|
+
},
|
|
63404
|
+
handleSelectActive(item) {
|
|
63405
|
+
console.log(item, "item");
|
|
63406
|
+
if (!item)
|
|
63407
|
+
return;
|
|
63408
|
+
this.activeDocumentId = item.id;
|
|
63409
|
+
this.activeDocument = item;
|
|
63410
|
+
this.loadDocumentDetail(item);
|
|
63411
|
+
},
|
|
63412
|
+
resolveDocumentFormData(item) {
|
|
63413
|
+
if (!item || typeof item !== "object") {
|
|
63414
|
+
return {};
|
|
63415
|
+
}
|
|
63416
|
+
let formData = lodash.exports.cloneDeep(item);
|
|
63417
|
+
const { dataJson } = item;
|
|
63418
|
+
if (dataJson != null && dataJson !== "") {
|
|
63419
|
+
let parsed = dataJson;
|
|
63420
|
+
if (typeof parsed === "string") {
|
|
63421
|
+
try {
|
|
63422
|
+
parsed = JSON.parse(parsed);
|
|
63423
|
+
} catch {
|
|
63424
|
+
parsed = null;
|
|
63425
|
+
}
|
|
63426
|
+
}
|
|
63427
|
+
if (parsed && typeof parsed === "object") {
|
|
63428
|
+
formData = __spreadValues(__spreadValues({}, formData), parsed);
|
|
63429
|
+
}
|
|
63430
|
+
}
|
|
63431
|
+
return formData;
|
|
63432
|
+
},
|
|
63433
|
+
getFormConfigCode(item) {
|
|
63434
|
+
return (item == null ? void 0 : item.formCode) || (item == null ? void 0 : item.subCategoryCode) || this.documentTypeValue;
|
|
63435
|
+
},
|
|
63436
|
+
buildReadonlyFormJson(formJson) {
|
|
63437
|
+
const json = lodash.exports.cloneDeep(formJson);
|
|
63438
|
+
if (json == null ? void 0 : json.widgetList) {
|
|
63439
|
+
traverseFieldWidgets(json.widgetList, (widget) => {
|
|
63440
|
+
if (widget == null ? void 0 : widget.options) {
|
|
63441
|
+
widget.options.disabled = true;
|
|
63442
|
+
widget.options.readonly = true;
|
|
63443
|
+
}
|
|
63444
|
+
});
|
|
63445
|
+
}
|
|
63446
|
+
return json;
|
|
63447
|
+
},
|
|
63448
|
+
applyFormToRender(parsed, formData) {
|
|
63449
|
+
const disabledJson = this.buildReadonlyFormJson(parsed);
|
|
63450
|
+
this.formJson = disabledJson;
|
|
63451
|
+
this.showForm = true;
|
|
63452
|
+
this.$nextTick(() => {
|
|
63453
|
+
const ref2 = this.$refs.detailFormRender;
|
|
63454
|
+
if (!ref2 || typeof ref2.setFormJson !== "function") {
|
|
63455
|
+
return;
|
|
63456
|
+
}
|
|
63457
|
+
ref2.setFormJson(lodash.exports.cloneDeep(disabledJson));
|
|
63458
|
+
this.$nextTick(() => {
|
|
63459
|
+
if (typeof ref2.setFormData === "function") {
|
|
63460
|
+
ref2.setFormData(lodash.exports.cloneDeep(formData));
|
|
63461
|
+
}
|
|
63462
|
+
this.syncFormDisabledStatus();
|
|
63463
|
+
});
|
|
63464
|
+
});
|
|
63465
|
+
},
|
|
63466
|
+
syncFormDisabledStatus() {
|
|
63467
|
+
const disable = () => {
|
|
63468
|
+
const ref2 = this.$refs.detailFormRender;
|
|
63469
|
+
if (ref2 && typeof ref2.disableForm === "function") {
|
|
63470
|
+
ref2.disableForm();
|
|
63471
|
+
}
|
|
63472
|
+
};
|
|
63473
|
+
this.$nextTick(disable);
|
|
63474
|
+
[300, 800, 1500].forEach((delay) => setTimeout(disable, delay));
|
|
63475
|
+
},
|
|
63476
|
+
async loadDocumentDetail(item) {
|
|
63477
|
+
const formConfigCode = this.getFormConfigCode(item);
|
|
63478
|
+
this.formData = this.resolveDocumentFormData(item);
|
|
63479
|
+
if (!formConfigCode) {
|
|
63480
|
+
this.showForm = false;
|
|
63481
|
+
this.formJson = null;
|
|
63482
|
+
return;
|
|
63483
|
+
}
|
|
63484
|
+
this.detailLoading = true;
|
|
63485
|
+
this.showForm = false;
|
|
63486
|
+
try {
|
|
63487
|
+
let parsed = this.formJsonCache[formConfigCode];
|
|
63488
|
+
if (!parsed) {
|
|
63489
|
+
const { data: data2 } = await service$1({
|
|
63490
|
+
method: "get",
|
|
63491
|
+
url: `/workflow-engine/businessFlowConfig/detailByCode/${item.subCategoryCode}`
|
|
63492
|
+
});
|
|
63493
|
+
if (data2 == null ? void 0 : data2.formJson) {
|
|
63494
|
+
parsed = typeof data2.formJson === "string" ? JSON.parse(data2.formJson) : data2.formJson;
|
|
63495
|
+
this.formJsonCache[formConfigCode] = parsed;
|
|
63496
|
+
}
|
|
63497
|
+
}
|
|
63498
|
+
if ((parsed == null ? void 0 : parsed.widgetList) && (parsed == null ? void 0 : parsed.formConfig)) {
|
|
63499
|
+
this.applyFormToRender(parsed, this.formData);
|
|
63500
|
+
} else {
|
|
63501
|
+
this.formJson = null;
|
|
63502
|
+
this.showForm = false;
|
|
63503
|
+
}
|
|
63504
|
+
} catch (err) {
|
|
63505
|
+
console.error(err);
|
|
63506
|
+
this.formJson = null;
|
|
63507
|
+
this.showForm = false;
|
|
63508
|
+
} finally {
|
|
63509
|
+
this.detailLoading = false;
|
|
63510
|
+
}
|
|
63511
|
+
},
|
|
63512
|
+
getDocumentTitle(item) {
|
|
63513
|
+
return (item == null ? void 0 : item.form_titleName) || (item == null ? void 0 : item.title) || (item == null ? void 0 : item.documentTitle) || "-";
|
|
63514
|
+
},
|
|
63515
|
+
handleSearch() {
|
|
63516
|
+
this.currentPage = 1;
|
|
63517
|
+
this.getTableData();
|
|
63518
|
+
}
|
|
63519
|
+
}
|
|
63520
|
+
};
|
|
63521
|
+
const _hoisted_1$a = { class: "document-body-wrap" };
|
|
63522
|
+
const _hoisted_2$8 = { class: "bottom-wrap" };
|
|
63523
|
+
const _hoisted_3$6 = { class: "left-wrap" };
|
|
63524
|
+
const _hoisted_4$5 = { class: "filter-wrap" };
|
|
63525
|
+
const _hoisted_5$3 = ["onClick"];
|
|
63526
|
+
const _hoisted_6$3 = {
|
|
63527
|
+
key: 0,
|
|
63528
|
+
class: "document-list-empty"
|
|
63529
|
+
};
|
|
63530
|
+
const _hoisted_7$3 = { class: "right-wrap" };
|
|
63531
|
+
const _hoisted_8$1 = { class: "detail-panel" };
|
|
63532
|
+
const _hoisted_9$1 = {
|
|
63533
|
+
key: 0,
|
|
63534
|
+
class: "detail-loading"
|
|
63535
|
+
};
|
|
63536
|
+
const _hoisted_10 = {
|
|
63537
|
+
key: 1,
|
|
63538
|
+
class: "detail-empty"
|
|
63539
|
+
};
|
|
63540
|
+
const _hoisted_11 = {
|
|
63541
|
+
key: 2,
|
|
63542
|
+
class: "detail-form detail-form--readonly"
|
|
63543
|
+
};
|
|
63544
|
+
const _hoisted_12 = {
|
|
63545
|
+
key: 3,
|
|
63546
|
+
class: "detail-empty"
|
|
63547
|
+
};
|
|
63548
|
+
const _hoisted_13 = { class: "dialog-footer" };
|
|
63549
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63550
|
+
const _component_el_input = resolveComponent("el-input");
|
|
63551
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
63552
|
+
const _component_el_form = resolveComponent("el-form");
|
|
63553
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
63554
|
+
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
63555
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
63556
|
+
const _component_el_pagination = resolveComponent("el-pagination");
|
|
63557
|
+
const _component_Loading = resolveComponent("Loading");
|
|
63558
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
63559
|
+
const _component_v_form_render = resolveComponent("v-form-render");
|
|
63560
|
+
const _component_el_button = resolveComponent("el-button");
|
|
63561
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
63562
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
63563
|
+
modelValue: $data.visible,
|
|
63564
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.visible = $event),
|
|
63565
|
+
title: "\u6536\u6587\u9009\u62E9",
|
|
63566
|
+
width: "1418px",
|
|
63567
|
+
onClose: $options.handleClose,
|
|
63568
|
+
"body-class": "document-list-dialog-body",
|
|
63569
|
+
"close-on-click-modal": false,
|
|
63570
|
+
draggable: "",
|
|
63571
|
+
"header-class": "document-list-dialog-header"
|
|
63572
|
+
}, {
|
|
63573
|
+
footer: withCtx(() => [
|
|
63574
|
+
createElementVNode("div", _hoisted_13, [
|
|
63575
|
+
createVNode(_component_el_button, {
|
|
63576
|
+
onClick: $options.handleClose,
|
|
63577
|
+
size: "default"
|
|
63578
|
+
}, {
|
|
63579
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
63580
|
+
createTextVNode("\u53D6\u6D88", -1)
|
|
63581
|
+
])]),
|
|
63582
|
+
_: 1
|
|
63583
|
+
}, 8, ["onClick"]),
|
|
63584
|
+
createVNode(_component_el_button, {
|
|
63585
|
+
type: "primary",
|
|
63586
|
+
onClick: $options.handleConfirm,
|
|
63587
|
+
size: "default"
|
|
63588
|
+
}, {
|
|
63589
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
63590
|
+
createTextVNode("\u786E\u5B9A", -1)
|
|
63591
|
+
])]),
|
|
63592
|
+
_: 1
|
|
63593
|
+
}, 8, ["onClick"])
|
|
63594
|
+
])
|
|
63595
|
+
]),
|
|
63596
|
+
default: withCtx(() => [
|
|
63597
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
63598
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
63599
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
63600
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
63601
|
+
createVNode(_component_el_form, {
|
|
63602
|
+
model: $data.form,
|
|
63603
|
+
ref: "formRef",
|
|
63604
|
+
onSubmit: withModifiers($options.handleSearch, ["prevent"])
|
|
63605
|
+
}, {
|
|
63606
|
+
default: withCtx(() => [
|
|
63607
|
+
createVNode(_component_el_form_item, null, {
|
|
63608
|
+
default: withCtx(() => [
|
|
63609
|
+
createVNode(_component_el_input, {
|
|
63610
|
+
maxlength: "50",
|
|
63611
|
+
modelValue: $data.form.title,
|
|
63612
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.title = $event),
|
|
63613
|
+
placeholder: "\u8BF7\u8F93\u5165\u6536\u6587\u6807\u9898",
|
|
63614
|
+
clearable: "",
|
|
63615
|
+
onKeyup: withKeys($options.handleSearch, ["enter"])
|
|
63616
|
+
}, {
|
|
63617
|
+
prefix: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
63618
|
+
createElementVNode("span", null, "\u6536\u6587\u6807\u9898\uFF1A", -1)
|
|
63619
|
+
])]),
|
|
63620
|
+
_: 1
|
|
63621
|
+
}, 8, ["modelValue", "onKeyup"])
|
|
63622
|
+
]),
|
|
63623
|
+
_: 1
|
|
63624
|
+
})
|
|
63625
|
+
]),
|
|
63626
|
+
_: 1
|
|
63627
|
+
}, 8, ["model", "onSubmit"])
|
|
63628
|
+
]),
|
|
63629
|
+
createVNode(_component_el_scrollbar, { class: "document-list-scroll" }, {
|
|
63630
|
+
default: withCtx(() => [
|
|
63631
|
+
createVNode(_component_el_checkbox_group, {
|
|
63632
|
+
modelValue: $data.checkedIds,
|
|
63633
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.checkedIds = $event),
|
|
63634
|
+
class: "document-checkbox-group",
|
|
63635
|
+
onChange: $options.handleCheckedChange
|
|
63636
|
+
}, {
|
|
63637
|
+
default: withCtx(() => [
|
|
63638
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.tableData, (item) => {
|
|
63639
|
+
return openBlock(), createElementBlock("div", {
|
|
63640
|
+
key: item.id,
|
|
63641
|
+
class: normalizeClass(["document-checkbox-item", { active: $data.activeDocumentId === item.id }])
|
|
63642
|
+
}, [
|
|
63643
|
+
createVNode(_component_el_checkbox, {
|
|
63644
|
+
label: item.id
|
|
63645
|
+
}, {
|
|
63646
|
+
default: withCtx(() => [
|
|
63647
|
+
createElementVNode("span", {
|
|
63648
|
+
class: "document-checkbox-item__title",
|
|
63649
|
+
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
63650
|
+
}, ["stop", "prevent"])),
|
|
63651
|
+
onClick: withModifiers(($event) => $options.handleSelectActive(item), ["stop", "prevent"])
|
|
63652
|
+
}, toDisplayString($options.getDocumentTitle(item)), 41, _hoisted_5$3)
|
|
63653
|
+
]),
|
|
63654
|
+
_: 2
|
|
63655
|
+
}, 1032, ["label"])
|
|
63656
|
+
], 2);
|
|
63657
|
+
}), 128)),
|
|
63658
|
+
$data.tableData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$3, "\u6682\u65E0\u6536\u6587\u6570\u636E")) : createCommentVNode("", true)
|
|
63659
|
+
]),
|
|
63660
|
+
_: 1
|
|
63661
|
+
}, 8, ["modelValue", "onChange"])
|
|
63662
|
+
]),
|
|
63663
|
+
_: 1
|
|
63664
|
+
}),
|
|
63665
|
+
createVNode(_component_el_pagination, {
|
|
63666
|
+
onSizeChange: $options.handleSizeChange,
|
|
63667
|
+
onCurrentChange: $options.handleCurrentChange,
|
|
63668
|
+
"current-page": $data.currentPage,
|
|
63669
|
+
"page-size": $data.pageSize,
|
|
63670
|
+
layout: "total, prev, pager, next",
|
|
63671
|
+
size: "small",
|
|
63672
|
+
total: $data.total
|
|
63673
|
+
}, null, 8, ["onSizeChange", "onCurrentChange", "current-page", "page-size", "total"])
|
|
63674
|
+
]),
|
|
63675
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
63676
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
63677
|
+
_cache[6] || (_cache[6] = createElementVNode("div", { class: "detail-panel__title" }, "\u6536\u6587\u8BE6\u60C5", -1)),
|
|
63678
|
+
createVNode(_component_el_scrollbar, { class: "detail-panel__scroll" }, {
|
|
63679
|
+
default: withCtx(() => [
|
|
63680
|
+
$data.detailLoading ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
63681
|
+
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
63682
|
+
default: withCtx(() => [
|
|
63683
|
+
createVNode(_component_Loading)
|
|
63684
|
+
]),
|
|
63685
|
+
_: 1
|
|
63686
|
+
}),
|
|
63687
|
+
_cache[5] || (_cache[5] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
|
|
63688
|
+
])) : !$data.activeDocument ? (openBlock(), createElementBlock("div", _hoisted_10, "\u8BF7\u9009\u62E9\u6536\u6587\u67E5\u770B\u8BE6\u60C5")) : $data.showForm ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
63689
|
+
createVNode(_component_v_form_render, {
|
|
63690
|
+
ref: "detailFormRender",
|
|
63691
|
+
"form-json": $options.renderFormJson,
|
|
63692
|
+
"form-data": $data.formData,
|
|
63693
|
+
"preview-state": true
|
|
63694
|
+
}, null, 8, ["form-json", "form-data"])
|
|
63695
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_12, "\u672A\u627E\u5230\u8868\u5355\u914D\u7F6E"))
|
|
63696
|
+
]),
|
|
63697
|
+
_: 1
|
|
63698
|
+
})
|
|
63699
|
+
])
|
|
63700
|
+
])
|
|
63701
|
+
])
|
|
63702
|
+
])
|
|
63703
|
+
]),
|
|
63704
|
+
_: 1
|
|
63705
|
+
}, 8, ["modelValue", "onClose"]);
|
|
63706
|
+
}
|
|
63707
|
+
var DocumentDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-6ee0ef30"]]);
|
|
63708
|
+
var documentDetailDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
63709
|
+
var documentDetailDialog_vue_vue_type_style_index_1_lang = "";
|
|
63710
|
+
const DEFAULT_FORM_JSON = {
|
|
63711
|
+
widgetList: [],
|
|
63712
|
+
formConfig: {
|
|
63713
|
+
modelName: "formData",
|
|
63714
|
+
refName: "vForm",
|
|
63715
|
+
rulesName: "rules",
|
|
63716
|
+
labelWidth: 80,
|
|
63717
|
+
labelPosition: "left",
|
|
63718
|
+
size: "",
|
|
63719
|
+
labelAlign: "label-left-align",
|
|
63720
|
+
cssCode: "",
|
|
63721
|
+
customClass: [],
|
|
63722
|
+
functions: "",
|
|
63723
|
+
layoutType: "PC",
|
|
63724
|
+
jsonVersion: 3,
|
|
63725
|
+
onFormCreated: "",
|
|
63726
|
+
onFormMounted: "",
|
|
63727
|
+
onFormDataChange: "",
|
|
63728
|
+
onFormValidate: "",
|
|
63729
|
+
onFormValidateSuccess: ""
|
|
63730
|
+
}
|
|
63731
|
+
};
|
|
63732
|
+
const _sfc_main$b = {
|
|
63733
|
+
name: "document-detail-dialog",
|
|
63734
|
+
components: {
|
|
63735
|
+
VFormRender
|
|
63736
|
+
},
|
|
63737
|
+
props: {
|
|
63738
|
+
dialogVisible: {
|
|
63739
|
+
type: Boolean,
|
|
63740
|
+
default: false
|
|
63741
|
+
},
|
|
63742
|
+
document: {
|
|
63743
|
+
type: Object,
|
|
63744
|
+
default: null
|
|
63745
|
+
},
|
|
63746
|
+
documentTypeValue: {
|
|
63747
|
+
type: String,
|
|
63748
|
+
default: ""
|
|
63749
|
+
}
|
|
63750
|
+
},
|
|
63751
|
+
data() {
|
|
63752
|
+
return {
|
|
63753
|
+
visible: false,
|
|
63754
|
+
formJson: null,
|
|
63755
|
+
formData: {},
|
|
63756
|
+
showForm: false,
|
|
63757
|
+
detailLoading: false,
|
|
63758
|
+
formJsonCache: {}
|
|
63759
|
+
};
|
|
63760
|
+
},
|
|
63761
|
+
computed: {
|
|
63762
|
+
renderFormJson() {
|
|
63763
|
+
return this.formJson || DEFAULT_FORM_JSON;
|
|
63764
|
+
}
|
|
63765
|
+
},
|
|
63766
|
+
watch: {
|
|
63767
|
+
dialogVisible: {
|
|
63768
|
+
handler(newVal) {
|
|
63769
|
+
this.visible = newVal;
|
|
63770
|
+
if (newVal && this.document) {
|
|
63771
|
+
this.loadDocumentDetail(this.document);
|
|
63772
|
+
} else if (!newVal) {
|
|
63773
|
+
this.resetDetail();
|
|
63774
|
+
}
|
|
63775
|
+
}
|
|
63776
|
+
}
|
|
63777
|
+
},
|
|
63778
|
+
methods: {
|
|
63779
|
+
resetDetail() {
|
|
63780
|
+
this.formJson = null;
|
|
63781
|
+
this.formData = {};
|
|
63782
|
+
this.showForm = false;
|
|
63783
|
+
this.detailLoading = false;
|
|
63784
|
+
},
|
|
63785
|
+
handleClose() {
|
|
63786
|
+
this.resetDetail();
|
|
63787
|
+
this.$emit("close");
|
|
63788
|
+
},
|
|
63789
|
+
resolveDocumentFormData(item) {
|
|
63790
|
+
if (!item || typeof item !== "object") {
|
|
63791
|
+
return {};
|
|
63792
|
+
}
|
|
63793
|
+
let formData = lodash.exports.cloneDeep(item);
|
|
63794
|
+
const { dataJson } = item;
|
|
63795
|
+
if (dataJson != null && dataJson !== "") {
|
|
63796
|
+
let parsed = dataJson;
|
|
63797
|
+
if (typeof parsed === "string") {
|
|
63798
|
+
try {
|
|
63799
|
+
parsed = JSON.parse(parsed);
|
|
63800
|
+
} catch {
|
|
63801
|
+
parsed = null;
|
|
63802
|
+
}
|
|
63803
|
+
}
|
|
63804
|
+
if (parsed && typeof parsed === "object") {
|
|
63805
|
+
formData = __spreadValues(__spreadValues({}, formData), parsed);
|
|
63806
|
+
}
|
|
63807
|
+
}
|
|
63808
|
+
return formData;
|
|
63809
|
+
},
|
|
63810
|
+
getFormConfigCode(item) {
|
|
63811
|
+
return (item == null ? void 0 : item.subCategoryCode) || (item == null ? void 0 : item.formCode) || this.documentTypeValue;
|
|
63812
|
+
},
|
|
63813
|
+
applyFormToRender(parsed, formData) {
|
|
63814
|
+
this.formJson = parsed;
|
|
63815
|
+
this.showForm = true;
|
|
63816
|
+
this.$nextTick(() => {
|
|
63817
|
+
const ref2 = this.$refs.detailFormRender;
|
|
63818
|
+
if (!ref2 || typeof ref2.setFormJson !== "function") {
|
|
63819
|
+
return;
|
|
63820
|
+
}
|
|
63821
|
+
ref2.setFormJson(lodash.exports.cloneDeep(parsed));
|
|
63822
|
+
this.$nextTick(() => {
|
|
63823
|
+
if (typeof ref2.setFormData === "function") {
|
|
63824
|
+
ref2.setFormData(lodash.exports.cloneDeep(formData));
|
|
63825
|
+
}
|
|
63826
|
+
this.syncFormDisabledStatus();
|
|
63827
|
+
});
|
|
63828
|
+
});
|
|
63829
|
+
},
|
|
63830
|
+
syncFormDisabledStatus() {
|
|
63831
|
+
const disable = () => {
|
|
63832
|
+
const ref2 = this.$refs.detailFormRender;
|
|
63833
|
+
if (ref2 && typeof ref2.disableForm === "function") {
|
|
63834
|
+
ref2.disableForm();
|
|
63835
|
+
}
|
|
63836
|
+
};
|
|
63837
|
+
this.$nextTick(disable);
|
|
63838
|
+
setTimeout(disable, 300);
|
|
63839
|
+
},
|
|
63840
|
+
async loadDocumentDetail(item) {
|
|
63841
|
+
const formConfigCode = this.getFormConfigCode(item);
|
|
63842
|
+
this.formData = this.resolveDocumentFormData(item);
|
|
63843
|
+
if (!formConfigCode) {
|
|
63844
|
+
this.showForm = false;
|
|
63845
|
+
this.formJson = null;
|
|
63846
|
+
return;
|
|
63847
|
+
}
|
|
63848
|
+
this.detailLoading = true;
|
|
63849
|
+
this.showForm = false;
|
|
63850
|
+
try {
|
|
63851
|
+
let parsed = this.formJsonCache[formConfigCode];
|
|
63852
|
+
if (!parsed) {
|
|
63853
|
+
const { data: data2 } = await service$1({
|
|
63854
|
+
method: "get",
|
|
63855
|
+
url: `/workflow-engine/businessFlowConfig/detailByCode/${formConfigCode}`
|
|
63856
|
+
});
|
|
63857
|
+
if (data2 == null ? void 0 : data2.formJson) {
|
|
63858
|
+
parsed = typeof data2.formJson === "string" ? JSON.parse(data2.formJson) : data2.formJson;
|
|
63859
|
+
this.formJsonCache[formConfigCode] = parsed;
|
|
63860
|
+
}
|
|
63861
|
+
}
|
|
63862
|
+
if ((parsed == null ? void 0 : parsed.widgetList) && (parsed == null ? void 0 : parsed.formConfig)) {
|
|
63863
|
+
this.applyFormToRender(parsed, this.formData);
|
|
63864
|
+
} else {
|
|
63865
|
+
this.formJson = null;
|
|
63866
|
+
this.showForm = false;
|
|
63867
|
+
}
|
|
63868
|
+
} catch (err) {
|
|
63869
|
+
console.error(err);
|
|
63870
|
+
this.formJson = null;
|
|
63871
|
+
this.showForm = false;
|
|
63872
|
+
} finally {
|
|
63873
|
+
this.detailLoading = false;
|
|
63874
|
+
}
|
|
63875
|
+
}
|
|
63876
|
+
}
|
|
63877
|
+
};
|
|
63878
|
+
const _hoisted_1$9 = {
|
|
63879
|
+
key: 0,
|
|
63880
|
+
class: "detail-loading"
|
|
63881
|
+
};
|
|
63882
|
+
const _hoisted_2$7 = {
|
|
63883
|
+
key: 1,
|
|
63884
|
+
class: "detail-form"
|
|
63885
|
+
};
|
|
63886
|
+
const _hoisted_3$5 = {
|
|
63887
|
+
key: 2,
|
|
63888
|
+
class: "detail-empty"
|
|
63889
|
+
};
|
|
63890
|
+
const _hoisted_4$4 = { class: "dialog-footer" };
|
|
63891
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63892
|
+
const _component_Loading = resolveComponent("Loading");
|
|
63893
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
63894
|
+
const _component_v_form_render = resolveComponent("v-form-render");
|
|
63895
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
63896
|
+
const _component_el_button = resolveComponent("el-button");
|
|
63897
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
63898
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
63899
|
+
modelValue: $data.visible,
|
|
63900
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.visible = $event),
|
|
63901
|
+
title: "\u6536\u6587\u8BE6\u60C5",
|
|
63902
|
+
width: "900px",
|
|
63903
|
+
onClose: $options.handleClose,
|
|
63904
|
+
"close-on-click-modal": false,
|
|
63905
|
+
"append-to-body": "",
|
|
63906
|
+
draggable: "",
|
|
63907
|
+
"body-class": "document-detail-dialog-body"
|
|
63908
|
+
}, {
|
|
63909
|
+
footer: withCtx(() => [
|
|
63910
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
63911
|
+
createVNode(_component_el_button, {
|
|
63912
|
+
onClick: $options.handleClose,
|
|
63913
|
+
size: "default"
|
|
63914
|
+
}, {
|
|
63915
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
63916
|
+
createTextVNode("\u5173\u95ED", -1)
|
|
63917
|
+
])]),
|
|
63918
|
+
_: 1
|
|
63919
|
+
}, 8, ["onClick"])
|
|
63920
|
+
])
|
|
63921
|
+
]),
|
|
63922
|
+
default: withCtx(() => [
|
|
63923
|
+
createVNode(_component_el_scrollbar, { class: "detail-panel__scroll" }, {
|
|
63924
|
+
default: withCtx(() => [
|
|
63925
|
+
$data.detailLoading ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
63926
|
+
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
63927
|
+
default: withCtx(() => [
|
|
63928
|
+
createVNode(_component_Loading)
|
|
63929
|
+
]),
|
|
63930
|
+
_: 1
|
|
63931
|
+
}),
|
|
63932
|
+
_cache[1] || (_cache[1] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
|
|
63933
|
+
])) : $data.showForm ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
63934
|
+
createVNode(_component_v_form_render, {
|
|
63935
|
+
ref: "detailFormRender",
|
|
63936
|
+
"form-json": $options.renderFormJson,
|
|
63937
|
+
"form-data": $data.formData,
|
|
63938
|
+
"preview-state": true
|
|
63939
|
+
}, null, 8, ["form-json", "form-data"])
|
|
63940
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$5, "\u672A\u627E\u5230\u8868\u5355\u914D\u7F6E"))
|
|
63941
|
+
]),
|
|
63942
|
+
_: 1
|
|
63943
|
+
})
|
|
63944
|
+
]),
|
|
63945
|
+
_: 1
|
|
63946
|
+
}, 8, ["modelValue", "onClose"]);
|
|
63947
|
+
}
|
|
63948
|
+
var DocumentDetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-6eaf8455"]]);
|
|
63949
|
+
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
63950
|
+
const _sfc_main$a = {
|
|
63951
|
+
name: "document-select-widget",
|
|
63952
|
+
componentName: "FieldWidget",
|
|
63953
|
+
mixins: [emitter, fieldMixin, i18n$1],
|
|
63954
|
+
props: {
|
|
63955
|
+
field: {
|
|
63956
|
+
type: Object,
|
|
63957
|
+
default: () => ({})
|
|
63958
|
+
},
|
|
63959
|
+
parentWidget: Object,
|
|
63960
|
+
parentList: Array,
|
|
63961
|
+
indexOfParentList: Number,
|
|
63962
|
+
designer: Object,
|
|
63963
|
+
designState: {
|
|
63964
|
+
type: Boolean,
|
|
63965
|
+
default: false
|
|
63966
|
+
},
|
|
63967
|
+
subFormRowIndex: {
|
|
63968
|
+
type: Number,
|
|
63969
|
+
default: -1
|
|
63970
|
+
},
|
|
63971
|
+
subFormColIndex: {
|
|
63972
|
+
type: Number,
|
|
63973
|
+
default: -1
|
|
63974
|
+
},
|
|
63975
|
+
subFormRowId: {
|
|
63976
|
+
type: String,
|
|
63977
|
+
default: ""
|
|
63978
|
+
}
|
|
63979
|
+
},
|
|
63980
|
+
components: {
|
|
63981
|
+
FormItemWrapper,
|
|
63982
|
+
DocumentDialog,
|
|
63983
|
+
DocumentDetailDialog
|
|
63984
|
+
},
|
|
63985
|
+
data() {
|
|
63986
|
+
return {
|
|
63987
|
+
dialogVisible: false,
|
|
63988
|
+
detailDialogVisible: false,
|
|
63989
|
+
currentDetailDocument: null,
|
|
63990
|
+
fieldModel: null,
|
|
63991
|
+
oldFieldValue: null,
|
|
63992
|
+
rules: []
|
|
63993
|
+
};
|
|
63994
|
+
},
|
|
63995
|
+
computed: {
|
|
63996
|
+
isDisabled() {
|
|
63997
|
+
var _a, _b;
|
|
63998
|
+
return !!((_b = (_a = this.field) == null ? void 0 : _a.options) == null ? void 0 : _b.disabled);
|
|
63999
|
+
},
|
|
64000
|
+
selectedList() {
|
|
64001
|
+
if (Array.isArray(this.fieldModel)) {
|
|
64002
|
+
return this.fieldModel;
|
|
64003
|
+
}
|
|
64004
|
+
return this.fieldModel ? [this.fieldModel] : [];
|
|
64005
|
+
},
|
|
64006
|
+
widgetStyle() {
|
|
64007
|
+
return {
|
|
64008
|
+
width: "100%"
|
|
64009
|
+
};
|
|
64010
|
+
}
|
|
64011
|
+
},
|
|
64012
|
+
watch: {
|
|
64013
|
+
"field.options.required"() {
|
|
64014
|
+
this.buildFieldRules();
|
|
64015
|
+
},
|
|
64016
|
+
"field.options.validation"() {
|
|
64017
|
+
this.buildFieldRules();
|
|
64018
|
+
},
|
|
64019
|
+
"field.options.onValidate"() {
|
|
64020
|
+
this.buildFieldRules();
|
|
64021
|
+
}
|
|
64022
|
+
},
|
|
64023
|
+
created() {
|
|
64024
|
+
this.initFieldModel();
|
|
64025
|
+
this.registerToRefList();
|
|
64026
|
+
this.initEventHandler();
|
|
64027
|
+
this.buildFieldRules();
|
|
64028
|
+
this.handleOnCreated();
|
|
64029
|
+
},
|
|
64030
|
+
mounted() {
|
|
64031
|
+
this.handleOnMounted();
|
|
64032
|
+
},
|
|
64033
|
+
beforeUnmount() {
|
|
64034
|
+
this.unregisterFromRefList();
|
|
64035
|
+
},
|
|
64036
|
+
methods: {
|
|
64037
|
+
getDocumentKey(item) {
|
|
64038
|
+
var _a, _b;
|
|
64039
|
+
return (_b = (_a = item == null ? void 0 : item.id) != null ? _a : item == null ? void 0 : item.documentId) != null ? _b : item == null ? void 0 : item.form_titleName;
|
|
64040
|
+
},
|
|
64041
|
+
getDocumentTitle(item) {
|
|
64042
|
+
return (item == null ? void 0 : item.form_titleName) || (item == null ? void 0 : item.title) || (item == null ? void 0 : item.documentTitle) || "-";
|
|
64043
|
+
},
|
|
64044
|
+
handleClick() {
|
|
64045
|
+
this.dialogVisible = true;
|
|
64046
|
+
},
|
|
64047
|
+
handleViewDetail(item) {
|
|
64048
|
+
this.currentDetailDocument = item;
|
|
64049
|
+
this.detailDialogVisible = true;
|
|
64050
|
+
},
|
|
64051
|
+
handleDetailClose() {
|
|
64052
|
+
this.detailDialogVisible = false;
|
|
64053
|
+
this.currentDetailDocument = null;
|
|
64054
|
+
},
|
|
64055
|
+
handleConfirm(selectedRows) {
|
|
64056
|
+
this.dialogVisible = false;
|
|
64057
|
+
this.oldFieldValue = this.fieldModel ? deepClone(this.fieldModel) : null;
|
|
64058
|
+
this.fieldModel = selectedRows;
|
|
64059
|
+
this.syncUpdateFormModel(this.fieldModel);
|
|
64060
|
+
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
64061
|
+
this.triggerEvent("onConfirm", selectedRows);
|
|
64062
|
+
this.$nextTick(() => {
|
|
64063
|
+
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
64064
|
+
});
|
|
64065
|
+
},
|
|
64066
|
+
handleCancel() {
|
|
64067
|
+
this.triggerEvent("onCancel");
|
|
64068
|
+
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
64069
|
+
},
|
|
64070
|
+
handleClose() {
|
|
64071
|
+
this.dialogVisible = false;
|
|
64072
|
+
this.triggerEvent("onClose");
|
|
64073
|
+
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
64074
|
+
},
|
|
64075
|
+
triggerEvent(eventName, ...args) {
|
|
64076
|
+
var _a, _b;
|
|
64077
|
+
const handler = (_b = (_a = this.field) == null ? void 0 : _a.options) == null ? void 0 : _b[eventName];
|
|
64078
|
+
if (handler) {
|
|
64079
|
+
try {
|
|
64080
|
+
if (eventName === "onConfirm" && args.length > 0) {
|
|
64081
|
+
const nodes = args[0];
|
|
64082
|
+
const fn = new Function("checkedNodes", "selectedNodes", "selectedValue", handler);
|
|
64083
|
+
fn.call(this, nodes, nodes, nodes);
|
|
64084
|
+
} else if (args.length > 0) {
|
|
64085
|
+
const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
|
|
64086
|
+
const fn = new Function(paramNames, handler);
|
|
64087
|
+
fn.apply(this, args);
|
|
64088
|
+
} else {
|
|
64089
|
+
const fn = new Function(handler);
|
|
64090
|
+
fn.call(this);
|
|
64091
|
+
}
|
|
64092
|
+
} catch (error) {
|
|
64093
|
+
console.error(`Error executing ${eventName} handler:`, error);
|
|
64094
|
+
}
|
|
64095
|
+
}
|
|
64096
|
+
}
|
|
64097
|
+
}
|
|
64098
|
+
};
|
|
64099
|
+
const _hoisted_1$8 = {
|
|
64100
|
+
key: 0,
|
|
64101
|
+
class: "document-selected-list"
|
|
64102
|
+
};
|
|
64103
|
+
const _hoisted_2$6 = ["onClick"];
|
|
64104
|
+
const _hoisted_3$4 = {
|
|
64105
|
+
key: 1,
|
|
64106
|
+
class: "document-selected-empty"
|
|
64107
|
+
};
|
|
64108
|
+
const _hoisted_4$3 = {
|
|
64109
|
+
key: 1,
|
|
64110
|
+
class: "document-select-widget__trigger"
|
|
64111
|
+
};
|
|
64112
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64113
|
+
const _component_el_button = resolveComponent("el-button");
|
|
64114
|
+
const _component_document_dialog = resolveComponent("document-dialog");
|
|
64115
|
+
const _component_document_detail_dialog = resolveComponent("document-detail-dialog");
|
|
64116
|
+
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
64117
|
+
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
64118
|
+
designer: $props.designer,
|
|
64119
|
+
field: $props.field,
|
|
64120
|
+
rules: $data.rules,
|
|
64121
|
+
"design-state": $props.designState,
|
|
64122
|
+
"parent-widget": $props.parentWidget,
|
|
64123
|
+
"parent-list": $props.parentList,
|
|
64124
|
+
"index-of-parent-list": $props.indexOfParentList,
|
|
64125
|
+
"sub-form-row-index": $props.subFormRowIndex,
|
|
64126
|
+
"sub-form-col-index": $props.subFormColIndex,
|
|
64127
|
+
"sub-form-row-id": $props.subFormRowId
|
|
64128
|
+
}, {
|
|
64129
|
+
default: withCtx(() => [
|
|
64130
|
+
createElementVNode("div", {
|
|
64131
|
+
class: "document-select-widget",
|
|
64132
|
+
style: normalizeStyle($options.widgetStyle)
|
|
64133
|
+
}, [
|
|
64134
|
+
$options.isDisabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
64135
|
+
$options.selectedList.length ? (openBlock(), createElementBlock("ul", _hoisted_1$8, [
|
|
64136
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.selectedList, (item) => {
|
|
64137
|
+
return openBlock(), createElementBlock("li", {
|
|
64138
|
+
key: $options.getDocumentKey(item),
|
|
64139
|
+
class: "document-selected-item",
|
|
64140
|
+
onClick: ($event) => $options.handleViewDetail(item)
|
|
64141
|
+
}, toDisplayString($options.getDocumentTitle(item)), 9, _hoisted_2$6);
|
|
64142
|
+
}), 128))
|
|
64143
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$4, "\u6682\u65E0\u5173\u8054\u516C\u6587"))
|
|
64144
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
64145
|
+
createVNode(_component_el_button, {
|
|
64146
|
+
type: "primary",
|
|
64147
|
+
class: "document-select-widget__button",
|
|
64148
|
+
plain: "",
|
|
64149
|
+
placeholder: "\u8BF7\u9009\u62E9\u5173\u8054\u6536\u6587",
|
|
64150
|
+
onClick: $options.handleClick,
|
|
64151
|
+
ref: "inputTagRef"
|
|
64152
|
+
}, {
|
|
64153
|
+
default: withCtx(() => [
|
|
64154
|
+
createTextVNode(toDisplayString($props.field.options.buttonText || "\u9009\u62E9\u6587\u6863"), 1)
|
|
64155
|
+
]),
|
|
64156
|
+
_: 1
|
|
64157
|
+
}, 8, ["onClick"])
|
|
64158
|
+
])),
|
|
64159
|
+
createVNode(_component_document_dialog, {
|
|
64160
|
+
"dialog-visible": $data.dialogVisible,
|
|
64161
|
+
onClose: $options.handleClose,
|
|
64162
|
+
onConfirm: $options.handleConfirm,
|
|
64163
|
+
onCancel: $options.handleCancel,
|
|
64164
|
+
limit: $props.field.options.documentLimit,
|
|
64165
|
+
"field-value": $data.fieldModel,
|
|
64166
|
+
"document-type-value": $props.field.options.documentTypeValue,
|
|
64167
|
+
"document-list-url": $props.field.options.documentListUrl
|
|
64168
|
+
}, null, 8, ["dialog-visible", "onClose", "onConfirm", "onCancel", "limit", "field-value", "document-type-value", "document-list-url"]),
|
|
64169
|
+
createVNode(_component_document_detail_dialog, {
|
|
64170
|
+
"dialog-visible": $data.detailDialogVisible,
|
|
64171
|
+
document: $data.currentDetailDocument,
|
|
64172
|
+
"document-type-value": $props.field.options.documentTypeValue,
|
|
64173
|
+
onClose: $options.handleDetailClose
|
|
64174
|
+
}, null, 8, ["dialog-visible", "document", "document-type-value", "onClose"])
|
|
64175
|
+
], 4)
|
|
64176
|
+
]),
|
|
64177
|
+
_: 1
|
|
64178
|
+
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
64179
|
+
}
|
|
64180
|
+
var DocumentSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["render", _sfc_render$a]]);
|
|
63183
64181
|
const DEFAULT_DICT_API = "/unified-dict/sysItemDict/page";
|
|
63184
64182
|
const DEFAULT_DICT_PARAMS = { current: 1, size: 1e4 };
|
|
63185
64183
|
function normalizeDictRecords(records) {
|
|
@@ -65903,6 +66901,14 @@ const loadExtension = function(app) {
|
|
|
65903
66901
|
registerCPEditor(app, "asset-select-typeJson", "asset-select-typeJson-editor", createTextareaEditor("typeJson", "extension.setting.assetSelectTypeJson", { rows: 4 }));
|
|
65904
66902
|
registerCPEditor(app, "asset-select-assetTypeValue", "asset-select-assetTypeValue-editor", createInputTextEditor("assetTypeValue", "extension.setting.assetSelectAssetTypeValue"));
|
|
65905
66903
|
registerCPEditor(app, "asset-select-assetLimit", "asset-select-assetLimit-editor", createInputNumberEditor("assetLimit", "extension.setting.assetSelectAssetLimit"));
|
|
66904
|
+
app.component(DocumentSelectWidget.name, DocumentSelectWidget);
|
|
66905
|
+
registerCPEditor(app, "document-select-buttonText", "document-select-buttonText-editor", createInputTextEditor("buttonText", "extension.setting.documentSelectButtonText"));
|
|
66906
|
+
registerCPEditor(app, "document-select-documentTypeValue", "document-select-documentTypeValue-editor", createInputTextEditor("documentTypeValue", "extension.setting.documentSelectDocumentTypeValue"));
|
|
66907
|
+
registerCPEditor(app, "document-select-documentLimit", "document-select-documentLimit-editor", createInputNumberEditor("documentLimit", "extension.setting.documentSelectDocumentLimit"));
|
|
66908
|
+
registerCPEditor(app, "document-select-documentListUrl", "document-select-documentListUrl-editor", createInputTextEditor("documentListUrl", "extension.setting.documentSelectDocumentListUrl"));
|
|
66909
|
+
registerEPEditor(app, "document-select-onConfirm", "document-select-onConfirm-editor", createEventHandlerEditor("onConfirm", ["checkedNodes"]));
|
|
66910
|
+
registerEPEditor(app, "document-select-onCancel", "document-select-onCancel-editor", createEventHandlerEditor("onCancel", []));
|
|
66911
|
+
registerEPEditor(app, "document-select-onClose", "document-select-onClose-editor", createEventHandlerEditor("onClose", []));
|
|
65906
66912
|
app.component(DictSelectWidget.name, DictSelectWidget);
|
|
65907
66913
|
registerCPEditor(app, "dict-select-dictCode", "dict-select-dictCode-editor", DictSelectDictCodeEditor);
|
|
65908
66914
|
registerCPEditor(app, "dict-select-type", "dict-select-type-editor", createSelectEditor("type", "extension.setting.dictSelectType", {
|