@web-utils/component 2.7.13 → 2.7.14
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/chunks/{ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js → ConfigSelect.vue_vue_type_template_lang.dfc91f07.js} +20 -15
- package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.e9060616.js → ConfigTable.vue_vue_type_template_lang.b27540fd.js} +1 -1
- package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.48dd814b.js → ConfigUpload.vue_vue_type_template_lang.129c0ced.js} +18 -13
- package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.7928c468.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
- package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.e3e800a6.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
- package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.6a693e5e.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
- package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.291bf39a.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +3 -2
- package/dist/chunks/{dataformat.d3fd2d1b.js → dataformat.65b92bfe.js} +36 -35
- package/dist/chunks/detail.d67573b1.js +28 -0
- package/dist/chunks/dic.70feb9b4.js +135 -0
- package/dist/chunks/{event.43b42228.js → event.dd6f522d.js} +3 -3
- package/dist/chunks/{init.3b47bb80.js → init.7c58eb34.js} +10 -10
- package/dist/chunks/{monaco.1dbdc960.js → monaco.cefcb9f5.js} +92 -85
- package/dist/chunks/{packages.6f252850.js → packages.1fc9ccba.js} +1 -1
- package/dist/chunks/slot.4b391395.js +27 -0
- package/dist/chunks/util.23fe58fb.js +261 -0
- package/dist/components/afd-column/index.js +1 -1
- package/dist/components/affix/index.js +2 -2
- package/dist/components/base.css +1 -1
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/chat/index.js +9 -9
- package/dist/components/column/index.js +25 -25
- package/dist/components/column-default/index.js +3 -2
- package/dist/components/column-dynamic/index.js +1 -1
- package/dist/components/column-menu/index.js +11 -11
- package/dist/components/column-slot/index.js +54 -53
- package/dist/components/config-custom/index.js +3 -3
- package/dist/components/config-event/index.js +5 -5
- package/dist/components/config-rate/index.js +1 -1
- package/dist/components/config-rate/style.css +1 -1
- package/dist/components/config-select/index.js +3 -3
- package/dist/components/config-switch/index.js +5 -5
- package/dist/components/config-switch/style.css +1 -1
- package/dist/components/config-table/index.js +3 -3
- package/dist/components/config-tree/index.js +3 -3
- package/dist/components/config-tree/style.css +1 -1
- package/dist/components/config-upload/index.js +1 -1
- package/dist/components/dialog-excel/index.js +37 -40
- package/dist/components/dialog-filter/index.js +19 -19
- package/dist/components/dialog-form/index.js +1 -1
- package/dist/components/element-dialog/index.js +2 -2
- package/dist/components/element-dialog/style.css +1 -1
- package/dist/components/flow/index.js +17 -18
- package/dist/components/flow-node/index.js +1 -1
- package/dist/components/form-temp/index.js +3 -3
- package/dist/components/fy-array/index.js +2 -2
- package/dist/components/fy-cascader/index.js +13 -13
- package/dist/components/fy-checkbox/index.js +4 -4
- package/dist/components/fy-code/index.js +1 -1
- package/dist/components/fy-curd/index.js +68 -69
- package/dist/components/fy-date/index.js +1 -1
- package/dist/components/fy-dialog-form/index.js +11 -11
- package/dist/components/fy-draggable/index.js +5 -7
- package/dist/components/fy-dynamic/index.js +32 -28
- package/dist/components/fy-empty/index.js +1 -1
- package/dist/components/fy-form/index.js +153 -141
- package/dist/components/fy-form-design/index.js +31 -31
- package/dist/components/fy-input/index.js +60 -46
- package/dist/components/fy-input-color/index.js +34 -29
- package/dist/components/fy-input-icon/index.js +1 -1
- package/dist/components/fy-input-map/index.js +14 -14
- package/dist/components/fy-input-number/index.js +1 -1
- package/dist/components/fy-input-table/index.js +2 -2
- package/dist/components/fy-input-tree/index.js +12 -12
- package/dist/components/fy-radio/index.js +1 -1
- package/dist/components/fy-rate/index.js +1 -1
- package/dist/components/fy-select/index.js +3 -3
- package/dist/components/fy-slider/index.js +2 -2
- package/dist/components/fy-switch/index.js +1 -1
- package/dist/components/fy-tabs/index.js +2 -2
- package/dist/components/fy-time/index.js +2 -2
- package/dist/components/fy-title/index.js +1 -1
- package/dist/components/fy-tree/index.js +3 -3
- package/dist/components/fy-u-editor/index.js +26 -24
- package/dist/components/fy-upload/index.js +146 -282
- package/dist/components/header-menu/index.js +2 -2
- package/dist/components/header-search/index.js +16 -15
- package/dist/components/image-cropper/index.js +299 -0
- package/dist/components/image-cropper/style.css +1 -0
- package/dist/components/image-preview/index.js +346 -0
- package/dist/components/image-preview/style.css +1 -0
- package/dist/components/keyboard/index.js +58 -63
- package/dist/components/license/index.js +7 -7
- package/dist/components/login/index.js +37 -32
- package/dist/components/name-avatar/index.js +1 -1
- package/dist/components/pageable-table/index.js +1 -1
- package/dist/components/pageable-view/index.js +26 -26
- package/dist/components/photo-swipe/index.js +71 -166
- package/dist/components/queue/index.js +6 -6
- package/dist/components/record-video/index.js +18 -18
- package/dist/components/search/index.js +3 -3
- package/dist/components/sign/index.js +64 -59
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/table-page/index.js +5 -5
- package/dist/components/text-ellipsis/index.js +11 -10
- package/dist/components/verify/index.js +25 -25
- package/dist/components/widget-config/index.js +8 -8
- package/dist/components/widget-form/index.js +7 -7
- package/dist/components/widget-form-group/index.js +8 -8
- package/dist/components/widget-form-item/index.js +14 -13
- package/dist/components/widget-form-table/index.js +14 -14
- package/dist/index.css +109 -40
- package/dist/index.es.js +4048 -3732
- package/package.json +5 -56
- package/web-types.json +28 -10
- package/dist/chunks/detail.ac4d421a.js +0 -28
- package/dist/chunks/dic.79d9f595.js +0 -133
- package/dist/chunks/slot.1b8d2b1b.js +0 -27
- package/dist/chunks/util.80e28481.js +0 -250
- package/dist/components/photo-swipe/style.css +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as staticRenderFns$3, r as render$3, C as ConfigCustom, a as ConfigInput, b as ConfigTextarea, c as ConfigNumber, d as ConfigDynamic, e as ConfigSwitch, f as ConfigRate, g as ConfigSlider, h as ConfigColor, i as ConfigSelect, j as ConfigTree, k as ConfigDate, l as ConfigUpload, m as ConfigUEditor, n as ConfigMap, o as ConfigGroup, p as ConfigArray, q as ConfigTitle, t as ConfigEvent, u as ConfigTable, v as fields } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.
|
|
1
|
+
import { s as staticRenderFns$3, r as render$3, C as ConfigCustom, a as ConfigInput, b as ConfigTextarea, c as ConfigNumber, d as ConfigDynamic, e as ConfigSwitch, f as ConfigRate, g as ConfigSlider, h as ConfigColor, i as ConfigSelect, j as ConfigTree, k as ConfigDate, l as ConfigUpload, m as ConfigUEditor, n as ConfigMap, o as ConfigGroup, p as ConfigArray, q as ConfigTitle, t as ConfigEvent, u as ConfigTable, v as fields } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js";
|
|
2
2
|
import { isBlank } from "@web-utils/core";
|
|
3
|
-
import { c as convert, M as MonacoEditor } from "../../chunks/monaco.
|
|
4
|
-
import { d as deepClone } from "../../chunks/util.
|
|
3
|
+
import { c as convert, M as MonacoEditor } from "../../chunks/monaco.cefcb9f5.js";
|
|
4
|
+
import { d as deepClone } from "../../chunks/util.23fe58fb.js";
|
|
5
5
|
import Draggable from "vuedraggable";
|
|
6
|
-
import { W as WidgetFormItem } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.
|
|
7
|
-
import { W as WidgetFormTable } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.
|
|
8
|
-
import { s as staticRenderFns$1, r as render$1, W as WidgetFormGroup } from "../../chunks/WidgetForm.vue_vue_type_template_lang.
|
|
6
|
+
import { W as WidgetFormItem } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
|
|
7
|
+
import { W as WidgetFormTable } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js";
|
|
8
|
+
import { s as staticRenderFns$1, r as render$1, W as WidgetFormGroup } from "../../chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js";
|
|
9
9
|
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
10
10
|
import { s as staticRenderFns$2, r as render$2 } from "../../chunks/FormConfig.vue_vue_type_template_lang.82463ce5.js";
|
|
11
11
|
const widgetEmpty = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAAACAszPmAAAAAXNSR0IArs4c6QAADXRJREFUeAHt3cuLZGcZB+BvLk2PM0ZxFMdJXEQCYRIialrUmPgXuM0qkI3GnVl4ScBtUEFFXOhCEBQ3oiDi36BGkWQ0gpgIZgK59EhIxhBn0nMfz+nqwq6e6upT019933vqPAVxuuty3vc8b/fPU3UufWB9ff1GciNAgMDABQ6363/y5MmBM8y3+mfPnmU2H5lnEwgt0P5OHwzdoeYIECBQSEAYFoJWhgCB2ALCMPZ8dEeAQCEBYVgIWhkCBGILCMPY89EdAQKFBIRhIWhlCBCILbB5aE3sFnVHgEAtgfaQk0Xddh7St6haO+vstj4zw/DPr26knz/3dnrr4vXN199/cjV9/cHjm19/9w/n0nP/vjSx3I9/aDU9+VA/Hv/e0+fSX89O9v/J21fTVz876n9ixeb4ZlEDnaOFqU/t+gMx9cXuJDAAgZlvk3/6l/8HYWtx9frynKxy/vIo4LfP+Nn1S+nbv3tz+12+JkBgIAIH2tPxdttqeOTXo03kb306pZUmNg/NjM5+ibW5/s7VyZ6feiala839v3h49hk57dbfbma2DCdNfddvgUX+PO/8HVpUrZ11pk2krT3zbfL4RW0ILlMQtut18EBK714Zr6F/CRAYusDMMPxE8xnhlWZTaeXg5aE7WX8CBJZcYGYYPrG1s2RRm69Lbmv1CBDokcDMMOzRemRp9f7bj6RrS7STKAuKhRAYiMDMMGwPn2lvj941DI2vPPC+YayotSRA4CaBmfuH2+MIdx5LeNMS3EGAAIElEJi5ZbgE6zfXKoy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GRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBU4H8RUTV123y9kQAAAABJRU5ErkJggg==", history = {
|
|
@@ -32,7 +32,7 @@ const widgetEmpty = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAA
|
|
|
32
32
|
if (data.storage) {
|
|
33
33
|
const history = localStorage.getItem("avue-form-history");
|
|
34
34
|
if (history) {
|
|
35
|
-
this.historySteps = eval(
|
|
35
|
+
this.historySteps = eval(`(${history})`);
|
|
36
36
|
const { index, steps } = this.historySteps;
|
|
37
37
|
return deepClone(steps[index]);
|
|
38
38
|
}
|
|
@@ -84,7 +84,7 @@ const widgetEmpty = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAA
|
|
|
84
84
|
},
|
|
85
85
|
handleWidgetAdd(t) {
|
|
86
86
|
const n = t.newIndex, o = deepClone(this.data.column[n]);
|
|
87
|
-
o.prop || (o.prop =
|
|
87
|
+
o.prop || (o.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete o.icon, delete o.subfield, o.type === "title" && (delete o.label, this.form[o.prop] = o.value), this.$set(this.data.column, n, o), this.handleSelectWidget(n), this.$emit("change");
|
|
88
88
|
},
|
|
89
89
|
handleWidgetDelete(t) {
|
|
90
90
|
this.data.column.length - 1 === t ? t === 0 ? this.selectWidget = {} : this.handleSelectWidget(t - 1) : this.handleSelectWidget(t + 1), this.$nextTick(() => {
|
|
@@ -92,8 +92,8 @@ const widgetEmpty = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAA
|
|
|
92
92
|
});
|
|
93
93
|
},
|
|
94
94
|
handleWidgetClone(t) {
|
|
95
|
-
|
|
96
|
-
n.prop =
|
|
95
|
+
const n = deepClone(this.data.column[t]);
|
|
96
|
+
n.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.data.column.push(n), this.$nextTick(() => {
|
|
97
97
|
this.handleSelectWidget(this.data.column.length - 1), this.$emit("change");
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -192,7 +192,7 @@ const FormConfig = /* @__PURE__ */ function() {
|
|
|
192
192
|
getComponent() {
|
|
193
193
|
const t = "config-", { type: n, component: o } = this.data;
|
|
194
194
|
if ((!n || o) && n !== "u-editor")
|
|
195
|
-
return t
|
|
195
|
+
return `${t}custom`;
|
|
196
196
|
let s = "input";
|
|
197
197
|
return [void 0, "input", "password", "url"].includes(n) ? s = "input" : dateArr.includes(n) ? s = "date" : ["array", "img"].includes(n) ? s = "array" : ["tree", "cascader"].includes(n) ? s = "tree" : ["radio", "checkbox", "select"].includes(n) ? s = "select" : s = n, t + s;
|
|
198
198
|
}
|
|
@@ -210,11 +210,11 @@ const FormConfig = /* @__PURE__ */ function() {
|
|
|
210
210
|
if (!t)
|
|
211
211
|
return;
|
|
212
212
|
let n;
|
|
213
|
-
for (
|
|
213
|
+
for (const o of this.fields)
|
|
214
214
|
if (n = o.list.find((s) => s.type === t), n)
|
|
215
215
|
break;
|
|
216
216
|
if (n)
|
|
217
|
-
for (
|
|
217
|
+
for (const o in n)
|
|
218
218
|
n && Object.prototype.hasOwnProperty.call(n, o) && !["icon", "label", "span"].includes(o) && (this.data[o] = n[o]);
|
|
219
219
|
},
|
|
220
220
|
generateRule() {
|
|
@@ -254,10 +254,10 @@ var render = function() {
|
|
|
254
254
|
staticClass: "fields-list"
|
|
255
255
|
}, [t.customFields && t.customFields.length > 0 ? [t.customFields[0].title && t.customFields[0].list && t.customFields[0].list.length > 0 ? [t._l(t.customFields, function(s, a) {
|
|
256
256
|
return [o("div", {
|
|
257
|
-
key:
|
|
257
|
+
key: `f_${a}`,
|
|
258
258
|
staticClass: "field-title"
|
|
259
259
|
}, [t._v(" " + t._s(s.title) + " ")]), o("Draggable", {
|
|
260
|
-
key:
|
|
260
|
+
key: `d_${a}`,
|
|
261
261
|
attrs: {
|
|
262
262
|
tag: "ul",
|
|
263
263
|
list: s.list,
|
|
@@ -271,7 +271,7 @@ var render = function() {
|
|
|
271
271
|
}
|
|
272
272
|
}, [t._l(s.list, function(r, l) {
|
|
273
273
|
return [o("li", {
|
|
274
|
-
key:
|
|
274
|
+
key: `c_${l}`,
|
|
275
275
|
staticClass: "field-label"
|
|
276
276
|
}, [o("a", {
|
|
277
277
|
on: {
|
|
@@ -370,7 +370,7 @@ var render = function() {
|
|
|
370
370
|
}
|
|
371
371
|
}, [t._l(s.list, function(r, l) {
|
|
372
372
|
return [t.includeFields.includes(r.type) ? o("li", {
|
|
373
|
-
key:
|
|
373
|
+
key: `c_${l}`,
|
|
374
374
|
staticClass: "field-label"
|
|
375
375
|
}, [o("a", {
|
|
376
376
|
on: {
|
|
@@ -935,7 +935,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
935
935
|
let options = val;
|
|
936
936
|
if (typeof options == "string")
|
|
937
937
|
try {
|
|
938
|
-
options = eval(
|
|
938
|
+
options = eval(`(${options})`);
|
|
939
939
|
} catch (t) {
|
|
940
940
|
console.error("非法配置"), options = { column: [] };
|
|
941
941
|
}
|
|
@@ -961,7 +961,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
961
961
|
let options = this.options;
|
|
962
962
|
if (typeof options == "string")
|
|
963
963
|
try {
|
|
964
|
-
options = eval(
|
|
964
|
+
options = eval(`(${options})`);
|
|
965
965
|
} catch (t) {
|
|
966
966
|
console.error("非法配置"), options = { column: [] };
|
|
967
967
|
}
|
|
@@ -1067,15 +1067,15 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
1067
1067
|
return new Promise((resolve, reject) => {
|
|
1068
1068
|
try {
|
|
1069
1069
|
const data = deepClone(obj);
|
|
1070
|
-
for (
|
|
1070
|
+
for (const t in data)
|
|
1071
1071
|
isBlank(data[t]) && delete data[t];
|
|
1072
1072
|
for (let i = 0; i < data.column.length; i++) {
|
|
1073
1073
|
const col = data.column[i];
|
|
1074
1074
|
if (isPreview) {
|
|
1075
|
-
|
|
1075
|
+
const event = ["change", "blur", "click", "focus"];
|
|
1076
1076
|
event.forEach((e) => {
|
|
1077
|
-
col[e] && (col[e] = eval(
|
|
1078
|
-
}), col.event && Object.keys(col.event).forEach((key) => col.event[key] = eval(
|
|
1077
|
+
col[e] && (col[e] = eval(`${col[e]}`.replace(/this/g, "_this")));
|
|
1078
|
+
}), col.event && Object.keys(col.event).forEach((key) => col.event[key] = eval(`${col.event[key]}`.replace(/this/g, "_this")));
|
|
1079
1079
|
}
|
|
1080
1080
|
if (col.type === "dynamic" && col.children && col.children.column && col.children.column.length > 0)
|
|
1081
1081
|
col.children.column.forEach((n) => {
|
|
@@ -1140,7 +1140,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
1140
1140
|
delete col.data;
|
|
1141
1141
|
delete col.dataConfig;
|
|
1142
1142
|
}
|
|
1143
|
-
for (
|
|
1143
|
+
for (const t in col)
|
|
1144
1144
|
isBlank(col[t]) && delete col[t];
|
|
1145
1145
|
}
|
|
1146
1146
|
resolve(data);
|
|
@@ -1151,7 +1151,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
// Avue配置项 转化为 表单设计器配置项
|
|
1153
1153
|
transAvueOptionsToFormDesigner(obj) {
|
|
1154
|
-
typeof obj == "string" && (obj = eval(
|
|
1154
|
+
typeof obj == "string" && (obj = eval(`(${obj})`));
|
|
1155
1155
|
const data = deepClone(obj);
|
|
1156
1156
|
return new Promise((t, n) => {
|
|
1157
1157
|
try {
|
|
@@ -1165,7 +1165,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
1165
1165
|
else if (["checkbox", "radio", "tree", "cascader", "select"].includes(o.type)) {
|
|
1166
1166
|
if (!o.dicData && o.dicQuery && typeof o.dicQuery == "object") {
|
|
1167
1167
|
const s = [];
|
|
1168
|
-
for (
|
|
1168
|
+
for (const a in o.dicQuery)
|
|
1169
1169
|
s.push({
|
|
1170
1170
|
key: a,
|
|
1171
1171
|
value: o.dicQuery[a],
|
|
@@ -1191,7 +1191,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
1191
1191
|
} else if (["upload"].includes(o.type)) {
|
|
1192
1192
|
if (o.headers && typeof o.headers == "object") {
|
|
1193
1193
|
const s = [];
|
|
1194
|
-
for (
|
|
1194
|
+
for (const a in o.headers)
|
|
1195
1195
|
s.push({
|
|
1196
1196
|
key: a,
|
|
1197
1197
|
value: o.headers[a],
|
|
@@ -1202,7 +1202,7 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
1202
1202
|
o.headersConfig = [];
|
|
1203
1203
|
if (o.data && typeof o.data == "object") {
|
|
1204
1204
|
const s = [];
|
|
1205
|
-
for (
|
|
1205
|
+
for (const a in o.data)
|
|
1206
1206
|
s.push({
|
|
1207
1207
|
key: a,
|
|
1208
1208
|
value: o.data[a],
|
|
@@ -1249,9 +1249,9 @@ const FyFormDesign_vue_vue_type_style_index_0_lang = "", __vue2_script = {
|
|
|
1249
1249
|
return await this.transformToAvueOptions(this.widgetForm);
|
|
1250
1250
|
},
|
|
1251
1251
|
parseJson(t) {
|
|
1252
|
-
for (
|
|
1253
|
-
|
|
1254
|
-
o && o.length > 0 && typeof o == "object" || typeof o == "object" ? this.parseJson(o) : typeof o == "function" && (t[n] = o
|
|
1252
|
+
for (const n in t) {
|
|
1253
|
+
const o = t[n];
|
|
1254
|
+
o && o.length > 0 && typeof o == "object" || typeof o == "object" ? this.parseJson(o) : typeof o == "function" && (t[n] = `${o}`);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var e = this,
|
|
5
|
-
return
|
|
1
|
+
import { p as a, e as p } from "../../chunks/event.dd6f522d.js";
|
|
2
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var s = function() {
|
|
4
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
5
|
+
return r("ElInput", {
|
|
6
6
|
staticClass: "avue-input",
|
|
7
7
|
attrs: {
|
|
8
8
|
size: e.size,
|
|
@@ -25,8 +25,8 @@ var l = function() {
|
|
|
25
25
|
autocomplete: e.autocomplete
|
|
26
26
|
},
|
|
27
27
|
on: {
|
|
28
|
-
keyup: function(
|
|
29
|
-
if (!
|
|
28
|
+
keyup: function(n) {
|
|
29
|
+
if (!n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter"))
|
|
30
30
|
return null;
|
|
31
31
|
e.isSearch && e.appendClick();
|
|
32
32
|
},
|
|
@@ -34,49 +34,63 @@ var l = function() {
|
|
|
34
34
|
blur: e.handleBlur
|
|
35
35
|
},
|
|
36
36
|
nativeOn: {
|
|
37
|
-
click: function(
|
|
37
|
+
click: function(n) {
|
|
38
38
|
return e.handleClick.apply(null, arguments);
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
+
scopedSlots: e._u([e.prepend ? {
|
|
42
|
+
key: "prepend",
|
|
43
|
+
fn: function() {
|
|
44
|
+
return [r("span", {
|
|
45
|
+
on: {
|
|
46
|
+
click: function(n) {
|
|
47
|
+
return e.prependClick();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, [e._v(e._s(e.prepend))])];
|
|
51
|
+
},
|
|
52
|
+
proxy: !0
|
|
53
|
+
} : null, e.append ? {
|
|
54
|
+
key: "append",
|
|
55
|
+
fn: function() {
|
|
56
|
+
return [r("span", {
|
|
57
|
+
on: {
|
|
58
|
+
click: function(n) {
|
|
59
|
+
return e.appendClick();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, [e._v(e._s(e.append))])];
|
|
63
|
+
},
|
|
64
|
+
proxy: !0
|
|
65
|
+
} : e.isSearch ? {
|
|
66
|
+
key: "append",
|
|
67
|
+
fn: function(n) {
|
|
68
|
+
return r("ElButton", {
|
|
69
|
+
attrs: {
|
|
70
|
+
slot: "append",
|
|
71
|
+
icon: "el-icon-search"
|
|
72
|
+
},
|
|
73
|
+
on: {
|
|
74
|
+
click: function(f) {
|
|
75
|
+
return e.appendClick();
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
slot: "append"
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
} : null], null, !0),
|
|
41
82
|
model: {
|
|
42
83
|
value: e.text,
|
|
43
|
-
callback: function(
|
|
44
|
-
e.text =
|
|
84
|
+
callback: function(n) {
|
|
85
|
+
e.text = n;
|
|
45
86
|
},
|
|
46
87
|
expression: "text"
|
|
47
88
|
}
|
|
48
|
-
}
|
|
49
|
-
slot: "prepend"
|
|
50
|
-
}, [n("span", {
|
|
51
|
-
on: {
|
|
52
|
-
click: function(t) {
|
|
53
|
-
return e.prependClick();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}, [e._v(e._s(e.prepend))])]) : e._e(), e.append ? n("template", {
|
|
57
|
-
slot: "append"
|
|
58
|
-
}, [n("span", {
|
|
59
|
-
on: {
|
|
60
|
-
click: function(t) {
|
|
61
|
-
return e.appendClick();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}, [e._v(e._s(e.append))])]) : e.isSearch ? n("ElButton", {
|
|
65
|
-
attrs: {
|
|
66
|
-
slot: "append",
|
|
67
|
-
icon: "el-icon-search"
|
|
68
|
-
},
|
|
69
|
-
on: {
|
|
70
|
-
click: function(t) {
|
|
71
|
-
return e.appendClick();
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
slot: "append"
|
|
75
|
-
}) : e._e()], 2);
|
|
89
|
+
});
|
|
76
90
|
}, i = [];
|
|
77
91
|
const u = {
|
|
78
92
|
name: "FyInput",
|
|
79
|
-
mixins: [
|
|
93
|
+
mixins: [a, p],
|
|
80
94
|
props: {
|
|
81
95
|
showPassword: {
|
|
82
96
|
type: Boolean,
|
|
@@ -139,10 +153,10 @@ const u = {
|
|
|
139
153
|
return this.type === "textarea" ? "textarea" : this.type === "password" ? "password" : "text";
|
|
140
154
|
}
|
|
141
155
|
}
|
|
142
|
-
},
|
|
143
|
-
var c = /* @__PURE__ */
|
|
156
|
+
}, o = {};
|
|
157
|
+
var c = /* @__PURE__ */ l(
|
|
144
158
|
u,
|
|
145
|
-
|
|
159
|
+
s,
|
|
146
160
|
i,
|
|
147
161
|
!1,
|
|
148
162
|
d,
|
|
@@ -151,12 +165,12 @@ var c = /* @__PURE__ */ s(
|
|
|
151
165
|
null
|
|
152
166
|
);
|
|
153
167
|
function d(e) {
|
|
154
|
-
for (let
|
|
155
|
-
this[
|
|
168
|
+
for (let t in o)
|
|
169
|
+
this[t] = o[t];
|
|
156
170
|
}
|
|
157
|
-
const
|
|
171
|
+
const h = /* @__PURE__ */ function() {
|
|
158
172
|
return c.exports;
|
|
159
173
|
}();
|
|
160
174
|
export {
|
|
161
|
-
|
|
175
|
+
h as default
|
|
162
176
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as
|
|
1
|
+
import { p as a, e as o } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
-
var
|
|
3
|
+
var c = function() {
|
|
4
4
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
5
5
|
return l("div", {
|
|
6
6
|
staticClass: "avue-input-color"
|
|
@@ -14,40 +14,45 @@ var i = function() {
|
|
|
14
14
|
disabled: e.disabled
|
|
15
15
|
},
|
|
16
16
|
nativeOn: {
|
|
17
|
-
click: function(
|
|
17
|
+
click: function(r) {
|
|
18
18
|
return e.handleClick.apply(null, arguments);
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
scopedSlots: e._u([{
|
|
22
|
+
key: "append",
|
|
23
|
+
fn: function() {
|
|
24
|
+
return [l("ElColorPicker", {
|
|
25
|
+
attrs: {
|
|
26
|
+
size: "mini",
|
|
27
|
+
"popper-class": e.popperClass,
|
|
28
|
+
"color-format": e.colorFormat,
|
|
29
|
+
disabled: e.disabled,
|
|
30
|
+
"show-alpha": e.showAlpha,
|
|
31
|
+
predefine: e.predefine
|
|
32
|
+
},
|
|
33
|
+
model: {
|
|
34
|
+
value: e.text,
|
|
35
|
+
callback: function(r) {
|
|
36
|
+
e.text = r;
|
|
37
|
+
},
|
|
38
|
+
expression: "text"
|
|
39
|
+
}
|
|
40
|
+
})];
|
|
25
41
|
},
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
}, [l("template", {
|
|
29
|
-
slot: "append"
|
|
30
|
-
}, [l("ElColorPicker", {
|
|
31
|
-
attrs: {
|
|
32
|
-
size: "mini",
|
|
33
|
-
"popper-class": e.popperClass,
|
|
34
|
-
"color-format": e.colorFormat,
|
|
35
|
-
disabled: e.disabled,
|
|
36
|
-
"show-alpha": e.showAlpha,
|
|
37
|
-
predefine: e.predefine
|
|
38
|
-
},
|
|
42
|
+
proxy: !0
|
|
43
|
+
}]),
|
|
39
44
|
model: {
|
|
40
45
|
value: e.text,
|
|
41
|
-
callback: function(
|
|
42
|
-
e.text =
|
|
46
|
+
callback: function(r) {
|
|
47
|
+
e.text = r;
|
|
43
48
|
},
|
|
44
49
|
expression: "text"
|
|
45
50
|
}
|
|
46
|
-
})], 1)
|
|
47
|
-
},
|
|
51
|
+
})], 1);
|
|
52
|
+
}, i = [];
|
|
48
53
|
const p = {
|
|
49
54
|
name: "FyInputColor",
|
|
50
|
-
mixins: [
|
|
55
|
+
mixins: [a, o],
|
|
51
56
|
props: {
|
|
52
57
|
colorFormat: String,
|
|
53
58
|
predefine: {
|
|
@@ -73,11 +78,11 @@ const p = {
|
|
|
73
78
|
default: !0
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
|
-
},
|
|
81
|
+
}, n = {};
|
|
77
82
|
var u = /* @__PURE__ */ s(
|
|
78
83
|
p,
|
|
79
|
-
i,
|
|
80
84
|
c,
|
|
85
|
+
i,
|
|
81
86
|
!1,
|
|
82
87
|
d,
|
|
83
88
|
null,
|
|
@@ -85,8 +90,8 @@ var u = /* @__PURE__ */ s(
|
|
|
85
90
|
null
|
|
86
91
|
);
|
|
87
92
|
function d(e) {
|
|
88
|
-
for (let t in
|
|
89
|
-
this[t] =
|
|
93
|
+
for (let t in n)
|
|
94
|
+
this[t] = n[t];
|
|
90
95
|
}
|
|
91
96
|
const v = /* @__PURE__ */ function() {
|
|
92
97
|
return u.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as s, e as o } from "../../chunks/event.
|
|
1
|
+
import { p as s, e as o } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var u = function() {
|
|
4
4
|
var t = this, i = t.$createElement, e = t._self._c || i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p, e as u } from "../../chunks/event.
|
|
1
|
+
import { p, e as u } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { isBlank as d } from "@web-utils/core";
|
|
3
3
|
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var m = function() {
|
|
@@ -181,15 +181,15 @@ const f = {
|
|
|
181
181
|
handleShow() {
|
|
182
182
|
this.$refs.main.blur(), this.box = !0;
|
|
183
183
|
},
|
|
184
|
-
|
|
184
|
+
// 新增坐标
|
|
185
185
|
addMarker(e, t) {
|
|
186
186
|
this.clearMarker(), this.marker = new window.AMap.Marker({ position: [e, t] }), this.marker.setMap(this.map);
|
|
187
187
|
},
|
|
188
|
-
|
|
188
|
+
// 清空坐标
|
|
189
189
|
clearMarker() {
|
|
190
190
|
this.marker && (this.marker.setMap(null), this.marker = null);
|
|
191
191
|
},
|
|
192
|
-
|
|
192
|
+
// 获取坐标
|
|
193
193
|
getAddress(e, t) {
|
|
194
194
|
new window.AMap.service("AMap.Geocoder", () => {
|
|
195
195
|
new window.AMap.Geocoder({}).getAddress([e, t], (i, r) => {
|
|
@@ -199,9 +199,9 @@ const f = {
|
|
|
199
199
|
longitude: e,
|
|
200
200
|
latitude: t
|
|
201
201
|
});
|
|
202
|
-
|
|
202
|
+
const s = document.createElement("div"), o = document.createElement("img");
|
|
203
203
|
o.src = "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png", s.appendChild(o);
|
|
204
|
-
|
|
204
|
+
const n = document.createElement("span");
|
|
205
205
|
n.className = "avue-input-map__marker", n.innerHTML = this.poi.formattedAddress, s.appendChild(n), this.marker.setContent(s);
|
|
206
206
|
}
|
|
207
207
|
});
|
|
@@ -229,7 +229,7 @@ const f = {
|
|
|
229
229
|
},
|
|
230
230
|
initPoip() {
|
|
231
231
|
window.AMapUI.loadUI(["misc/PoiPicker"], (e) => {
|
|
232
|
-
|
|
232
|
+
const t = new e({
|
|
233
233
|
input: "map__input",
|
|
234
234
|
placeSearchOptions: {
|
|
235
235
|
map: this.map,
|
|
@@ -243,7 +243,7 @@ const f = {
|
|
|
243
243
|
poiPickerReady(e) {
|
|
244
244
|
window.poiPicker = e, e.on("poiPicked", (t) => {
|
|
245
245
|
this.clearMarker();
|
|
246
|
-
|
|
246
|
+
const a = t.source, i = t.item;
|
|
247
247
|
this.poi = Object.assign(i, {
|
|
248
248
|
formattedAddress: i.name,
|
|
249
249
|
longitude: i.location.R,
|
|
@@ -253,23 +253,23 @@ const f = {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}, l = {};
|
|
256
|
-
var
|
|
256
|
+
var k = /* @__PURE__ */ h(
|
|
257
257
|
f,
|
|
258
258
|
m,
|
|
259
259
|
_,
|
|
260
260
|
!1,
|
|
261
|
-
|
|
261
|
+
g,
|
|
262
262
|
null,
|
|
263
263
|
null,
|
|
264
264
|
null
|
|
265
265
|
);
|
|
266
|
-
function
|
|
266
|
+
function g(e) {
|
|
267
267
|
for (let t in l)
|
|
268
268
|
this[t] = l[t];
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
return
|
|
270
|
+
const x = /* @__PURE__ */ function() {
|
|
271
|
+
return k.exports;
|
|
272
272
|
}();
|
|
273
273
|
export {
|
|
274
|
-
|
|
274
|
+
x as default
|
|
275
275
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, e as a } from "../../chunks/event.
|
|
1
|
+
import { p as o, e as a } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, e as r } from "../../chunks/event.
|
|
1
|
+
import { p as o, e as r } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { isBlank as n } from "@web-utils/core";
|
|
3
3
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var h = function() {
|
|
@@ -144,7 +144,7 @@ const u = {
|
|
|
144
144
|
onList() {
|
|
145
145
|
this.loading = !0, typeof this.onLoad == "function" && this.onLoad({ page: this.page, data: this.search }, (e) => {
|
|
146
146
|
this.page.total = e.total, this.data = e.data, this.loading = !1;
|
|
147
|
-
|
|
147
|
+
const t = this.data.find((a) => a[this.valueKey] === this.object[this.valueKey]);
|
|
148
148
|
setTimeout(() => this.$refs.crud.setCurrentRow(t));
|
|
149
149
|
});
|
|
150
150
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { isBlank as
|
|
1
|
+
import { p as u, e as h } from "../../chunks/event.dd6f522d.js";
|
|
2
|
+
import { isBlank as r } from "@web-utils/core";
|
|
3
3
|
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var f = function() {
|
|
5
5
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
@@ -92,7 +92,7 @@ var f = function() {
|
|
|
92
92
|
}, y = [];
|
|
93
93
|
const m = {
|
|
94
94
|
name: "FyInputTree",
|
|
95
|
-
mixins: [
|
|
95
|
+
mixins: [u, h],
|
|
96
96
|
props: {
|
|
97
97
|
nodeClick: Function,
|
|
98
98
|
treeLoad: Function,
|
|
@@ -197,10 +197,10 @@ const m = {
|
|
|
197
197
|
this.text = this.multiple ? [] : "", this.node = [], this.filterValue = "", this.$refs.tree.setCurrentKey(null), this.$refs.tree.setCheckedKeys([]);
|
|
198
198
|
},
|
|
199
199
|
handleTreeLoad(e, t) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
a[this.valueKey] === o ? a[this.childrenKey] =
|
|
200
|
+
const l = (i) => {
|
|
201
|
+
const s = (n, o, c) => {
|
|
202
|
+
n.forEach((a) => {
|
|
203
|
+
a[this.valueKey] === o ? a[this.childrenKey] = c : a[this.childrenKey] && s(a[this.childrenKey]);
|
|
204
204
|
});
|
|
205
205
|
};
|
|
206
206
|
s(this.dicList, e.key, i), t(i);
|
|
@@ -211,7 +211,7 @@ const m = {
|
|
|
211
211
|
return e ? t[this.labelKey].toLowerCase().indexOf(e.toLowerCase()) !== -1 : !0;
|
|
212
212
|
},
|
|
213
213
|
checkChange(e, t, l, i) {
|
|
214
|
-
this.text.splice(0, this.text.length), this.$refs.tree.getCheckedNodes(this.leafOnly, !1).forEach((
|
|
214
|
+
this.text.splice(0, this.text.length), this.$refs.tree.getCheckedNodes(this.leafOnly, !1).forEach((n) => this.text.push(n[this.valueKey])), typeof this.checked == "function" && this.checked(e, t, l, i);
|
|
215
215
|
},
|
|
216
216
|
getHalfList() {
|
|
217
217
|
let e = this.$refs.tree.getCheckedNodes(!1, !0);
|
|
@@ -224,9 +224,9 @@ const m = {
|
|
|
224
224
|
this.node.push(t);
|
|
225
225
|
});
|
|
226
226
|
else {
|
|
227
|
-
|
|
227
|
+
const e = this.$refs.tree.getNode(this.text);
|
|
228
228
|
if (e) {
|
|
229
|
-
|
|
229
|
+
const t = e.data;
|
|
230
230
|
this.$refs.tree.setCurrentKey(t[this.valueKey]), this.node.push(t);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -235,11 +235,11 @@ const m = {
|
|
|
235
235
|
disabledParentNode(e, t) {
|
|
236
236
|
e.forEach((l) => {
|
|
237
237
|
const i = l[this.childrenKey];
|
|
238
|
-
|
|
238
|
+
r(i) || (t || (l.disabled = !0), this.disabledParentNode(i, t));
|
|
239
239
|
});
|
|
240
240
|
},
|
|
241
241
|
handleNodeClick(e, t, l) {
|
|
242
|
-
e.disabled || (typeof this.nodeClick == "function" && this.nodeClick(e, t, l), !this.multiple && (
|
|
242
|
+
e.disabled || (typeof this.nodeClick == "function" && this.nodeClick(e, t, l), !this.multiple && (r(e[this.childrenKey]) && !this.multiple || this.parent) && (this.text = e[this.valueKey], this.$refs.main.blur()));
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
}, d = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as l, e as s } from "../../chunks/event.
|
|
1
|
+
import { p as l, e as s } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n as i } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var c = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as a, e as r } from "../../chunks/event.
|
|
1
|
+
import { p as a, e as r } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var e = this, o = e.$createElement, s = e._self._c || o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as r, e as c } from "../../chunks/event.
|
|
2
|
-
import { s as d } from "../../chunks/dic.
|
|
3
|
-
import { D as u } from "../../chunks/util.
|
|
1
|
+
import { p as r, e as c } from "../../chunks/event.dd6f522d.js";
|
|
2
|
+
import { s as d } from "../../chunks/dic.70feb9b4.js";
|
|
3
|
+
import { D as u } from "../../chunks/util.23fe58fb.js";
|
|
4
4
|
import { isBlank as p } from "@web-utils/core";
|
|
5
5
|
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
6
6
|
var f = function() {
|