@web-utils/component 3.6.0 → 3.7.0
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/chunk-file-uploader/index.mjs +13 -12
- package/chunks/{ElementForm.4QQYs5uq.mjs → ElementForm.8w6UkiuU.mjs} +1 -1
- package/chunks/{ElementListeners.vfHHHAOL.mjs → ElementListeners.DOy8wyD2.mjs} +0 -1
- package/chunks/{ElementProperties.CRIQaaPc.mjs → ElementProperties.B2I48muA.mjs} +1 -1
- package/color-picker/index.mjs +6 -5
- package/count-up/index.mjs +12 -12
- package/data-card-text/index.mjs +6 -5
- package/dialog-form/index.mjs +2 -1
- package/e-charts/index.mjs +2 -1
- package/editable-tree/index.mjs +2 -1
- package/flow-designer/index.mjs +7 -14
- package/fy-cascader/index.mjs +16 -15
- package/fy-curd/index.mjs +2 -2
- package/fy-draggable/index.mjs +2 -1
- package/fy-dynamic/index.mjs +24 -22
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input-table/index.mjs +6 -6
- package/fy-input-tree/index.mjs +17 -16
- package/fy-tree/index.mjs +1 -1
- package/fy-upload/index.mjs +94 -92
- package/image-cropper/index.mjs +7 -5
- package/image-preview/index.mjs +8 -7
- package/monaco-editor/index.mjs +5 -3
- package/package.json +5 -5
- package/page-index/index.mjs +9 -8
- package/sign-panel/index.mjs +1 -1
- package/vue-tree-select/index.mjs +4 -6
- package/web-types.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { n
|
|
1
|
+
import a from "simple-uploader.js";
|
|
2
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
3
|
function r(e) {
|
|
4
4
|
return e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
|
|
5
5
|
}
|
|
6
|
-
const s = "fileAdded", l = "filesAdded",
|
|
6
|
+
const s = "fileAdded", l = "filesAdded", u = "uploadStart", f = {
|
|
7
7
|
name: "ChunkFileUploader",
|
|
8
8
|
provide() {
|
|
9
9
|
return {
|
|
@@ -43,7 +43,7 @@ const s = "fileAdded", l = "filesAdded", n = "uploadStart", u = {
|
|
|
43
43
|
},
|
|
44
44
|
created() {
|
|
45
45
|
this.options.initialPaused = !this.autoStart;
|
|
46
|
-
const e = new
|
|
46
|
+
const e = new a(this.options);
|
|
47
47
|
this.uploader = e, this.uploader.fileStatusText = this.fileStatusText, e.on("catchAll", this.allEvent), e.on(s, this.fileAdded), e.on(l, this.filesAdded), e.on("fileRemoved", this.fileRemoved), e.on("filesSubmitted", this.filesSubmitted);
|
|
48
48
|
},
|
|
49
49
|
destroyed() {
|
|
@@ -69,34 +69,35 @@ const s = "fileAdded", l = "filesAdded", n = "uploadStart", u = {
|
|
|
69
69
|
this.files = this.uploader.files, this.fileList = this.uploader.fileList, this.autoStart && this.uploader.upload();
|
|
70
70
|
},
|
|
71
71
|
allEvent(...e) {
|
|
72
|
+
var d;
|
|
72
73
|
const t = e[0], o = {
|
|
73
74
|
[s]: !0,
|
|
74
75
|
[l]: !0,
|
|
75
|
-
[
|
|
76
|
+
[u]: "uploadStart"
|
|
76
77
|
}[t];
|
|
77
78
|
if (o) {
|
|
78
79
|
if (o === !0)
|
|
79
80
|
return;
|
|
80
|
-
this[o].
|
|
81
|
+
(d = this[o]) == null || d.call(this, e.slice(1));
|
|
81
82
|
}
|
|
82
|
-
e[0] = r(t), this.$emit
|
|
83
|
+
e[0] = r(t), this.$emit(...e);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
|
-
var
|
|
87
|
+
var p = function() {
|
|
87
88
|
var t = this, i = t._self._c;
|
|
88
89
|
return i("div", { staticClass: "uploader" }, [t._t("default", function() {
|
|
89
90
|
return [i("ChunkFileUploaderUnSupport"), i("ChunkFileUploaderDrop", [i("p", [t._v("Drop files here to upload or")]), i("ChunkFileUploaderButton", [t._v("select files")]), i("ChunkFileUploaderButton", { attrs: { directory: !0 } }, [t._v(" select folder ")])], 1), i("ChunkFileUploaderList")];
|
|
90
91
|
}, { files: t.files, fileList: t.fileList, started: t.started })], 2);
|
|
91
|
-
},
|
|
92
|
-
u,
|
|
92
|
+
}, h = [], c = /* @__PURE__ */ n(
|
|
93
93
|
f,
|
|
94
94
|
p,
|
|
95
|
+
h,
|
|
95
96
|
!1,
|
|
96
97
|
null,
|
|
97
98
|
null
|
|
98
99
|
);
|
|
99
|
-
const
|
|
100
|
+
const v = c.exports;
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
v as default
|
|
102
103
|
};
|
|
@@ -103,7 +103,7 @@ const u = {
|
|
|
103
103
|
},
|
|
104
104
|
// 保存字段 某个 配置项
|
|
105
105
|
saveFieldOption() {
|
|
106
|
-
this.formFieldOptionIndex === -1 ? (this.fieldOptionType === "property" && this.fieldPropertiesList.push(this.fieldOptionForm), this.fieldOptionType === "constraint" && this.fieldConstraintsList.push(this.fieldOptionForm), this.fieldOptionType === "enum" && this.fieldEnumList.push(this.fieldOptionForm)) :
|
|
106
|
+
this.formFieldOptionIndex === -1 ? (this.fieldOptionType === "property" && this.fieldPropertiesList.push(this.fieldOptionForm), this.fieldOptionType === "constraint" && this.fieldConstraintsList.push(this.fieldOptionForm), this.fieldOptionType === "enum" && this.fieldEnumList.push(this.fieldOptionForm)) : this.fieldOptionType === "property" ? this.fieldPropertiesList.splice(this.formFieldOptionIndex, 1, this.fieldOptionForm) : this.fieldOptionType === "constraint" ? this.fieldConstraintsList.splice(this.formFieldOptionIndex, 1, this.fieldOptionForm) : this.fieldOptionType === "enum" && this.fieldEnumList.splice(this.formFieldOptionIndex, 1, this.fieldOptionForm), this.fieldOptionModelVisible = !1, this.fieldOptionForm = {};
|
|
107
107
|
},
|
|
108
108
|
// 保存字段配置
|
|
109
109
|
saveField() {
|
|
@@ -32,7 +32,6 @@ import { n as T } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
|
32
32
|
const $ = (s) => ({
|
|
33
33
|
$type: "flowable:ExecutionListener",
|
|
34
34
|
event: s === "draft" ? "start" : s,
|
|
35
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
36
35
|
delegateExpression: "${httpInvokeExecutionListener}",
|
|
37
36
|
fields: [],
|
|
38
37
|
listenerType: "delegateExpressionListener"
|
package/color-picker/index.mjs
CHANGED
|
@@ -15,11 +15,11 @@ var a = (i, e, r) => new Promise((t, n) => {
|
|
|
15
15
|
s((r = r.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
17
|
import p from "element-ui/packages/color-picker/src/color";
|
|
18
|
-
import
|
|
19
|
-
import { n as
|
|
18
|
+
import u from "element-ui/src/utils/clickoutside";
|
|
19
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
20
20
|
const f = {
|
|
21
21
|
name: "ColorPicker",
|
|
22
|
-
directives: { Clickoutside:
|
|
22
|
+
directives: { Clickoutside: u },
|
|
23
23
|
props: {
|
|
24
24
|
popperClass: String,
|
|
25
25
|
predefine: Array,
|
|
@@ -53,7 +53,8 @@ const f = {
|
|
|
53
53
|
immediate: !0,
|
|
54
54
|
handler(i) {
|
|
55
55
|
return a(this, null, function* () {
|
|
56
|
-
|
|
56
|
+
var e;
|
|
57
|
+
i ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : (e = this.$refs.dropdown) == null || e.doDestroy(!0), this.showPicker = i;
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -81,7 +82,7 @@ var m = function() {
|
|
|
81
82
|
return r("ElColorPickerDropdown", { directives: [{ name: "clickoutside", rawName: "v-clickoutside", value: e.onClickOutside, expression: "onClickOutside" }], ref: "dropdown", class: ["el-color-picker__panel", e.popperClass || ""], attrs: { offset: e.offset, "append-to-body": e.appendToBody, color: e.color, predefine: e.predefine }, on: { pick: e.confirmValue, clear: e.clearValue }, model: { value: e.showPicker, callback: function(t) {
|
|
82
83
|
e.showPicker = t;
|
|
83
84
|
}, expression: "showPicker" } });
|
|
84
|
-
}, k = [], v = /* @__PURE__ */
|
|
85
|
+
}, k = [], v = /* @__PURE__ */ h(
|
|
85
86
|
f,
|
|
86
87
|
m,
|
|
87
88
|
k,
|
package/count-up/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var u = Object.defineProperty, o = Object.defineProperties;
|
|
2
2
|
var d = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var i = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var r = (t, e, s) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s,
|
|
4
|
+
var p = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var r = (t, e, s) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, n = (t, e) => {
|
|
6
6
|
for (var s in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
p.call(e, s) && r(t, s, e[s]);
|
|
8
8
|
if (i)
|
|
9
9
|
for (var s of i(e))
|
|
10
|
-
|
|
10
|
+
h.call(e, s) && r(t, s, e[s]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
import { CountUp as
|
|
14
|
-
import { n as
|
|
12
|
+
}, a = (t, e) => o(t, d(e));
|
|
13
|
+
import { CountUp as c } from "countup.js";
|
|
14
|
+
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
15
15
|
const m = {
|
|
16
16
|
name: "CountUp",
|
|
17
17
|
props: {
|
|
@@ -70,7 +70,7 @@ const m = {
|
|
|
70
70
|
},
|
|
71
71
|
methods: {
|
|
72
72
|
init() {
|
|
73
|
-
this.c || (this.c = new
|
|
73
|
+
this.c || (this.c = new c(this.$el, this.end, a(n({}, this.options), {
|
|
74
74
|
decimal: this.decimals,
|
|
75
75
|
duration: this.duration,
|
|
76
76
|
startVal: this.start
|
|
@@ -85,7 +85,7 @@ const m = {
|
|
|
85
85
|
start(t) {
|
|
86
86
|
var e;
|
|
87
87
|
(e = this.c) == null || e.start(() => {
|
|
88
|
-
t
|
|
88
|
+
t == null || t(this.c);
|
|
89
89
|
});
|
|
90
90
|
},
|
|
91
91
|
pauseResume() {
|
|
@@ -104,7 +104,7 @@ const m = {
|
|
|
104
104
|
var f = function() {
|
|
105
105
|
var e = this, s = e._self._c;
|
|
106
106
|
return s("span", [e._v(e._s(e.end))]);
|
|
107
|
-
}, _ = [], y = /* @__PURE__ */
|
|
107
|
+
}, _ = [], y = /* @__PURE__ */ l(
|
|
108
108
|
m,
|
|
109
109
|
f,
|
|
110
110
|
_,
|
|
@@ -112,7 +112,7 @@ var f = function() {
|
|
|
112
112
|
null,
|
|
113
113
|
null
|
|
114
114
|
);
|
|
115
|
-
const
|
|
115
|
+
const b = y.exports;
|
|
116
116
|
export {
|
|
117
|
-
|
|
117
|
+
b as default
|
|
118
118
|
};
|
package/data-card-text/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
const
|
|
1
|
+
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const e = {
|
|
3
3
|
name: "DataCardText",
|
|
4
4
|
props: {
|
|
5
5
|
option: {
|
|
@@ -24,7 +24,8 @@ const o = {
|
|
|
24
24
|
},
|
|
25
25
|
methods: {
|
|
26
26
|
itemClick(s) {
|
|
27
|
-
|
|
27
|
+
var t;
|
|
28
|
+
(t = s.click) == null || t.call(s, s), this.$router.push(s.path);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
};
|
|
@@ -35,8 +36,8 @@ var c = function() {
|
|
|
35
36
|
return t.itemClick(a);
|
|
36
37
|
} } }, [n("div", { staticClass: "item-header" }, [t._v(" " + t._s(a.title) + " ")]), a.content ? n("div", { staticClass: "item-content" }, [t._v(t._s(a.content))]) : t._e(), a.name || a.date ? n("div", { staticClass: "item-footer" }, [n("span", [t._v(t._s(a.name))]), n("span", [t._v(t._s(a.date))])]) : t._e()])])]);
|
|
37
38
|
}), 1)], 1);
|
|
38
|
-
}, i = [], l = /* @__PURE__ */
|
|
39
|
-
|
|
39
|
+
}, i = [], l = /* @__PURE__ */ o(
|
|
40
|
+
e,
|
|
40
41
|
c,
|
|
41
42
|
i,
|
|
42
43
|
!1,
|
package/dialog-form/index.mjs
CHANGED
|
@@ -68,7 +68,8 @@ const i = {
|
|
|
68
68
|
typeof this.dialog.beforeClose == "function" ? this.dialog.beforeClose(t) : t();
|
|
69
69
|
},
|
|
70
70
|
handleSubmit(t, e) {
|
|
71
|
-
|
|
71
|
+
var o;
|
|
72
|
+
(o = this.callback) == null || o.call(this, { data: t, close: this.close, done: e });
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
};
|
package/e-charts/index.mjs
CHANGED
|
@@ -59,7 +59,8 @@ const c = ["theme", "initOptions", "autoResize"], l = ["manualUpdate", "watchSha
|
|
|
59
59
|
this.options && this.init();
|
|
60
60
|
},
|
|
61
61
|
activated() {
|
|
62
|
-
|
|
62
|
+
var t;
|
|
63
|
+
this.autoResize && ((t = this.chart) == null || t.resize());
|
|
63
64
|
},
|
|
64
65
|
destroyed() {
|
|
65
66
|
this.chart && this.destroy();
|
package/editable-tree/index.mjs
CHANGED
package/flow-designer/index.mjs
CHANGED
|
@@ -485,9 +485,9 @@ const je = {
|
|
|
485
485
|
componentName: "MyPropertiesPanel",
|
|
486
486
|
components: {
|
|
487
487
|
UserTaskListeners: () => import("../chunks/UserTaskListeners.XXe5dC5I.mjs"),
|
|
488
|
-
ElementForm: () => import("../chunks/ElementForm.
|
|
489
|
-
ElementProperties: () => import("../chunks/ElementProperties.
|
|
490
|
-
ElementListeners: () => import("../chunks/ElementListeners.
|
|
488
|
+
ElementForm: () => import("../chunks/ElementForm.8w6UkiuU.mjs"),
|
|
489
|
+
ElementProperties: () => import("../chunks/ElementProperties.B2I48muA.mjs"),
|
|
490
|
+
ElementListeners: () => import("../chunks/ElementListeners.DOy8wyD2.mjs"),
|
|
491
491
|
SignalAndMassage: () => import("../chunks/SignalAndMessage.CH6L7cYu.mjs"),
|
|
492
492
|
FlowCondition: () => import("../chunks/FlowCondition.BfU9kw6h.mjs"),
|
|
493
493
|
ElementMultiInstance: () => import("../chunks/ElementMultiInstance.3Z28ewuh.mjs"),
|
|
@@ -926,16 +926,8 @@ const Ye = {
|
|
|
926
926
|
"Due Date": "到期时间",
|
|
927
927
|
"Follow Up Date": "跟踪日期",
|
|
928
928
|
Priority: "优先级",
|
|
929
|
-
|
|
930
|
-
"The
|
|
931
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
932
|
-
"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00"
|
|
933
|
-
),
|
|
934
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
935
|
-
"The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": (
|
|
936
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
937
|
-
"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00"
|
|
938
|
-
),
|
|
929
|
+
"The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
|
|
930
|
+
"The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
|
|
939
931
|
Variables: "变量",
|
|
940
932
|
"Candidate Starter Configuration": "候选人起动器配置",
|
|
941
933
|
"Candidate Starter Groups": "候选人起动器组",
|
|
@@ -4544,7 +4536,8 @@ const ut = {
|
|
|
4544
4536
|
this.downloadProcess("svg");
|
|
4545
4537
|
},
|
|
4546
4538
|
processSimulation() {
|
|
4547
|
-
|
|
4539
|
+
var n;
|
|
4540
|
+
this.simulationStatus = !this.simulationStatus, this.simulation && ((n = this.bpmnModeler) == null || n.get("toggleMode").toggleMode());
|
|
4548
4541
|
},
|
|
4549
4542
|
processRedo() {
|
|
4550
4543
|
this.bpmnModeler.get("commandStack").redo();
|
package/fy-cascader/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p
|
|
2
|
-
import { n as
|
|
3
|
-
const
|
|
1
|
+
import { p, e as d } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const h = {
|
|
4
4
|
name: "FyCascader",
|
|
5
|
-
mixins: [
|
|
5
|
+
mixins: [p, d],
|
|
6
6
|
props: {
|
|
7
7
|
checkStrictly: {
|
|
8
8
|
type: Boolean,
|
|
@@ -51,22 +51,23 @@ const u = {
|
|
|
51
51
|
emitPath: this.emitPath,
|
|
52
52
|
lazy: this.lazy,
|
|
53
53
|
lazyLoad: (r, e) => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
var l;
|
|
55
|
+
const a = (t) => {
|
|
56
|
+
const n = (o, i, c) => {
|
|
57
|
+
o.forEach((s) => {
|
|
58
|
+
s[this.valueKey] === i ? s[this.childrenKey] = c : s[this.childrenKey] && n(s[this.childrenKey]);
|
|
58
59
|
});
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
+
n(this.dic, r[this.valueKey], t), e(t);
|
|
61
62
|
};
|
|
62
|
-
this.lazyLoad
|
|
63
|
+
(l = this.lazyLoad) == null || l.call(this, r, a);
|
|
63
64
|
},
|
|
64
65
|
expandTrigger: this.expandTrigger
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
};
|
|
69
|
-
var
|
|
70
|
+
var f = function() {
|
|
70
71
|
var e = this, a = e._self._c;
|
|
71
72
|
return a("ElCascader", { attrs: { options: e.dic, placeholder: e.placeholder, props: e.allProps, size: e.size, clearable: e.clearableVal, "show-all-levels": e.showAllLevels, filterable: e.filterable, "popper-class": e.popperClass, separator: e.separator, disabled: e.disabled, "collapse-tags": e.tags }, on: { focus: e.handleFocus, blur: e.handleBlur }, nativeOn: { click: function(l) {
|
|
72
73
|
return e.handleClick.apply(null, arguments);
|
|
@@ -75,15 +76,15 @@ var h = function() {
|
|
|
75
76
|
} }], null, !0), model: { value: e.text, callback: function(l) {
|
|
76
77
|
e.text = l;
|
|
77
78
|
}, expression: "text" } });
|
|
78
|
-
},
|
|
79
|
-
u,
|
|
79
|
+
}, y = [], m = /* @__PURE__ */ u(
|
|
80
80
|
h,
|
|
81
81
|
f,
|
|
82
|
+
y,
|
|
82
83
|
!1,
|
|
83
84
|
null,
|
|
84
85
|
null
|
|
85
86
|
);
|
|
86
|
-
const
|
|
87
|
+
const b = m.exports;
|
|
87
88
|
export {
|
|
88
|
-
|
|
89
|
+
b as default
|
|
89
90
|
};
|
package/fy-curd/index.mjs
CHANGED
|
@@ -921,7 +921,7 @@ const we = Be.exports, Se = {
|
|
|
921
921
|
// 隐藏表单
|
|
922
922
|
hide(t) {
|
|
923
923
|
const e = () => {
|
|
924
|
-
t
|
|
924
|
+
t == null || t(), this.crud.tableIndex = -1, this.crud.tableForm = {}, this.crud.setVal(), this.boxVisible = !1;
|
|
925
925
|
};
|
|
926
926
|
typeof this.crud.beforeClose == "function" ? this.crud.beforeClose(e, this.boxType) : e();
|
|
927
927
|
},
|
|
@@ -1546,7 +1546,7 @@ const We = je.exports, Ke = {
|
|
|
1546
1546
|
},
|
|
1547
1547
|
refreshTable(t) {
|
|
1548
1548
|
this.reload = Math.random(), this.$nextTick(() => {
|
|
1549
|
-
t
|
|
1549
|
+
t == null || t();
|
|
1550
1550
|
});
|
|
1551
1551
|
},
|
|
1552
1552
|
// 树懒加载
|
package/fy-draggable/index.mjs
CHANGED
|
@@ -256,6 +256,7 @@ const v = {
|
|
|
256
256
|
},
|
|
257
257
|
handleKeydown() {
|
|
258
258
|
document.onkeydown = (t) => {
|
|
259
|
+
var i;
|
|
259
260
|
const e = t || window.event, s = this.step;
|
|
260
261
|
this.$refs.input.focused && (e && e.keyCode === 38 ? this.baseTop = a(this.baseTop - s) : e && e.keyCode === 37 ? this.baseLeft = a(this.baseLeft - s) : e && e.keyCode === 40 ? this.baseTop = a(this.baseTop + s) : e && e.keyCode === 39 && (this.baseLeft = a(this.baseLeft + s)), t.stopPropagation(), t.preventDefault(), this.$emit("blur", {
|
|
261
262
|
index: this.index,
|
|
@@ -263,7 +264,7 @@ const v = {
|
|
|
263
264
|
height: this.baseHeight,
|
|
264
265
|
left: this.baseLeft,
|
|
265
266
|
top: this.baseTop
|
|
266
|
-
}), this.keyDown
|
|
267
|
+
}), (i = this.keyDown) == null || i.call(this, t));
|
|
267
268
|
};
|
|
268
269
|
},
|
|
269
270
|
handleMouseDown() {
|
package/fy-dynamic/index.mjs
CHANGED
|
@@ -130,10 +130,12 @@ const h = {
|
|
|
130
130
|
methods: {
|
|
131
131
|
deepClone: l,
|
|
132
132
|
handleSelectionChange(t) {
|
|
133
|
-
|
|
133
|
+
var e;
|
|
134
|
+
(e = this.selectionChange) == null || e.call(this, t);
|
|
134
135
|
},
|
|
135
|
-
handleSortableChange(t, e, n,
|
|
136
|
-
|
|
136
|
+
handleSortableChange(t, e, n, r) {
|
|
137
|
+
var i;
|
|
138
|
+
(i = this.sortableChange) == null || i.call(this, t, e, n, r);
|
|
137
139
|
},
|
|
138
140
|
cellMouseenter(t) {
|
|
139
141
|
const e = t.$index;
|
|
@@ -181,33 +183,33 @@ const h = {
|
|
|
181
183
|
};
|
|
182
184
|
var f = function() {
|
|
183
185
|
var e = this, n = e._self._c;
|
|
184
|
-
return n("div", { key: e.reload, staticClass: "avue-dynamic" }, [e.isForm ? [n("div", { staticClass: "avue-dynamic__header" }, [!e.readonly && !e.disabled && !e.addBtn ? n("ElButton", { attrs: { size: "mini", circle: "", disabled: e.disabled, type: "primary", icon: "el-icon-plus" }, on: { click: e.addRow } }) : e._e()], 1), n("div", e._l(e.text, function(
|
|
185
|
-
return n("div", { key:
|
|
186
|
-
return e.cellMouseenter({ $index:
|
|
186
|
+
return n("div", { key: e.reload, staticClass: "avue-dynamic" }, [e.isForm ? [n("div", { staticClass: "avue-dynamic__header" }, [!e.readonly && !e.disabled && !e.addBtn ? n("ElButton", { attrs: { size: "mini", circle: "", disabled: e.disabled, type: "primary", icon: "el-icon-plus" }, on: { click: e.addRow } }) : e._e()], 1), n("div", e._l(e.text, function(r, i) {
|
|
187
|
+
return n("div", { key: i, staticClass: "avue-dynamic__row", on: { mouseenter: function(s) {
|
|
188
|
+
return e.cellMouseenter({ $index: i });
|
|
187
189
|
}, mouseleave: function(s) {
|
|
188
|
-
return e.cellMouseLeave({ $index:
|
|
189
|
-
} } }, [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[
|
|
190
|
-
return e.delRow(
|
|
191
|
-
} } }) : e._e(), n("FyForm", { key:
|
|
192
|
-
return [n("div", [n("span", [e._v(e._s(
|
|
190
|
+
return e.cellMouseLeave({ $index: i });
|
|
191
|
+
} } }, [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[i] ? n("ElButton", { staticClass: "avue-dynamic__menu", attrs: { type: "danger", size: "mini", disabled: e.disabled, icon: "el-icon-delete", circle: "" }, on: { click: function(s) {
|
|
192
|
+
return e.delRow(r.$index);
|
|
193
|
+
} } }) : e._e(), n("FyForm", { key: i, ref: "main", refInFor: !0, attrs: { option: e.deepClone(e.option) }, scopedSlots: e._u([{ key: "_index", fn: function({}) {
|
|
194
|
+
return [n("div", [n("span", [e._v(e._s(r.$index + 1))])])];
|
|
193
195
|
} }, e._l(e.columnSlot, function(s) {
|
|
194
196
|
return { key: s, fn: function(a) {
|
|
195
|
-
return [e._t(s, null, null, Object.assign(a, { row: e.text[
|
|
197
|
+
return [e._t(s, null, null, Object.assign(a, { row: e.text[i] }))];
|
|
196
198
|
} };
|
|
197
|
-
})], null, !0), model: { value: e.text[
|
|
198
|
-
e.$set(e.text,
|
|
199
|
+
})], null, !0), model: { value: e.text[i], callback: function(s) {
|
|
200
|
+
e.$set(e.text, i, s);
|
|
199
201
|
}, expression: "text[index]" } })], 1);
|
|
200
202
|
}), 0)] : e.isCrud ? n("FyCurd", { ref: "main", attrs: { option: e.option, disabled: e.disabled, data: e.text }, on: { "cell-mouse-enter": e.cellMouseenter, "cell-mouse-leave": e.cellMouseLeave, "selection-change": e.handleSelectionChange, "sortable-change": e.handleSortableChange }, scopedSlots: e._u([{ key: "_indexHeader", fn: function() {
|
|
201
|
-
return [!(e.addBtn || e.readonly) && e.maxFlag ? n("ElButton", { attrs: { type: "primary", size: "mini", disabled: e.disabled, icon: "el-icon-plus", circle: "" }, on: { click: function(
|
|
203
|
+
return [!(e.addBtn || e.readonly) && e.maxFlag ? n("ElButton", { attrs: { type: "primary", size: "mini", disabled: e.disabled, icon: "el-icon-plus", circle: "" }, on: { click: function(r) {
|
|
202
204
|
return e.addRow();
|
|
203
205
|
} } }) : e._e()];
|
|
204
|
-
}, proxy: !0 }, { key: "_index", fn: function(
|
|
205
|
-
return [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[
|
|
206
|
-
return e.delRow(
|
|
207
|
-
} } }) : n("div", [e._v(" " + e._s(
|
|
208
|
-
} }, e._l(e.columnSlot, function(
|
|
209
|
-
return { key: e.getSlotName({ prop:
|
|
210
|
-
return [e._t(
|
|
206
|
+
}, proxy: !0 }, { key: "_index", fn: function(r) {
|
|
207
|
+
return [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[r.row.$index] ? n("ElButton", { attrs: { type: "danger", size: "mini", disabled: e.disabled, icon: "el-icon-delete", circle: "" }, on: { click: function(i) {
|
|
208
|
+
return e.delRow(r.row.$index);
|
|
209
|
+
} } }) : n("div", [e._v(" " + e._s(r.row.$index + 1) + " ")])];
|
|
210
|
+
} }, e._l(e.columnSlot, function(r) {
|
|
211
|
+
return { key: e.getSlotName({ prop: r }, "F"), fn: function(i) {
|
|
212
|
+
return [e._t(r, null, null, i)];
|
|
211
213
|
} };
|
|
212
214
|
})], null, !0) }) : e._e()], 2);
|
|
213
215
|
}, m = [], p = /* @__PURE__ */ c(
|
package/fy-form-design/index.mjs
CHANGED
package/fy-form-design/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-befe1506]{vertical-align:top}.el-tag+.el-tag[data-v-befe1506]{margin-left:5px}.input-new-tag[data-v-befe1506]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-befe1506]{vertical-align:top;left:10px}.custom-tree-node[data-v-e3a1f4c8]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
|
1
|
+
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-befe1506]{vertical-align:top}.el-tag+.el-tag[data-v-befe1506]{margin-left:5px}.input-new-tag[data-v-befe1506]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-befe1506]{vertical-align:top;left:10px}.custom-tree-node[data-v-a2df3d76]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
package/fy-input-table/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { isBlank as
|
|
1
|
+
import { p as n, e as r } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
+
import { isBlank as s } from "@web-utils/core";
|
|
3
3
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const l = {
|
|
5
5
|
name: "FyInputTable",
|
|
6
|
-
mixins: [
|
|
6
|
+
mixins: [n, r],
|
|
7
7
|
props: {
|
|
8
8
|
formatter: Function,
|
|
9
9
|
onLoad: Function,
|
|
@@ -47,10 +47,10 @@ const l = {
|
|
|
47
47
|
},
|
|
48
48
|
watch: {
|
|
49
49
|
value(t) {
|
|
50
|
-
|
|
50
|
+
s(t) && (this.active = {}, this.object = {});
|
|
51
51
|
},
|
|
52
52
|
text(t) {
|
|
53
|
-
this.created ||
|
|
53
|
+
this.created || s(t) || typeof this.onLoad == "function" && this.onLoad({ value: this.text }, (e) => {
|
|
54
54
|
this.active = e, this.object = e, this.created = !0;
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -69,7 +69,7 @@ const l = {
|
|
|
69
69
|
this.active = t;
|
|
70
70
|
},
|
|
71
71
|
handleSearchChange(t, e) {
|
|
72
|
-
this.page.page = 1, this.onList(), e
|
|
72
|
+
this.page.page = 1, this.onList(), e == null || e();
|
|
73
73
|
},
|
|
74
74
|
onList() {
|
|
75
75
|
this.loading = !0, typeof this.onLoad == "function" && this.onLoad({ page: this.page, data: this.search }, (t) => {
|