@web-utils/component 2.8.0 → 2.8.2
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/base.css +1 -1
- package/card/index.mjs +33 -37
- package/chat/index.mjs +132 -123
- package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
- package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
- package/chunks/dic.7f13b573.mjs +130 -0
- package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
- package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
- package/chunks/json-beautifier.21cfffea.mjs +126 -0
- package/chunks/util.505913d9.mjs +266 -0
- package/column/index.mjs +2 -2
- package/column-default/index.mjs +1 -1
- package/column-dynamic/index.mjs +1 -1
- package/column-menu/index.mjs +81 -79
- package/column-slot/index.mjs +8 -7
- package/comment/index.mjs +6 -10
- package/data-pay/index.mjs +16 -13
- package/data-table-picker/index.mjs +22 -22
- package/dialog-excel/index.mjs +8 -8
- package/dialog-filter/index.mjs +4 -2
- package/dialog-form/index.mjs +6 -6
- package/dynamic-table/index.mjs +8 -8
- package/editable-tree/index.mjs +5 -5
- package/flow/index.mjs +11 -11
- package/flow/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/form-block/index.mjs +156 -0
- package/form-block/style.css +1 -0
- package/form-button/index.mjs +16 -38
- package/form-group/index.mjs +28 -33
- package/form-input-tag/index.mjs +99 -0
- package/form-temp/index.mjs +15 -27
- package/fy-array/index.mjs +44 -42
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +2 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +29 -31
- package/fy-date/index.mjs +1 -1
- package/fy-dialog-form/index.mjs +5 -11
- package/fy-draggable/index.mjs +3 -3
- package/fy-dynamic/index.mjs +3 -3
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +133 -122
- package/fy-form-design/index.mjs +2596 -2893
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +10 -15
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +21 -16
- package/fy-input-map/index.mjs +22 -19
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +5 -6
- package/fy-radio/index.mjs +3 -1
- package/fy-rate/index.mjs +2 -1
- package/fy-select/index.mjs +29 -28
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +2 -1
- package/fy-tabs/index.mjs +19 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +8 -6
- package/fy-u-editor/index.mjs +10 -14
- package/fy-upload/index.mjs +85 -84
- package/header-menu/index.mjs +1 -1
- package/header-search/index.mjs +7 -5
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.cjs +62 -38
- package/index.css +1 -1
- package/index.mjs +17121 -16215
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +196 -0
- package/package.json +3 -2
- package/present-view/index.mjs +360 -0
- package/present-view/style.css +1 -0
- package/process-designer/index.mjs +10 -2
- package/queue/index.mjs +3 -8
- package/queue/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +25 -24
- package/sign/index.mjs +17 -18
- package/sign/style.css +1 -1
- package/swiper/index.mjs +1 -1
- package/table-page/index.mjs +21 -23
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/style.css +1 -1
- package/tinymce-wrapper/index.mjs +290 -97
- package/verify/index.mjs +1 -1
- package/web-types.json +829 -320
- package/x-input-tag/index.mjs +182 -0
- package/x-input-tag/style.css +1 -0
- package/chunks/dic.e8280157.mjs +0 -130
- package/chunks/util.17330567.mjs +0 -266
package/form-button/index.mjs
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Confirmable as n } from "@web-utils/component";
|
|
2
2
|
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
const
|
|
4
|
-
name: "Confirmable",
|
|
5
|
-
mixins: [r]
|
|
6
|
-
};
|
|
7
|
-
let s, _;
|
|
8
|
-
const t = {};
|
|
9
|
-
var a = /* @__PURE__ */ o(
|
|
10
|
-
i,
|
|
11
|
-
s,
|
|
12
|
-
_,
|
|
13
|
-
!1,
|
|
14
|
-
u,
|
|
15
|
-
null,
|
|
16
|
-
null,
|
|
17
|
-
null
|
|
18
|
-
);
|
|
19
|
-
function u(l) {
|
|
20
|
-
for (let n in t)
|
|
21
|
-
this[n] = t[n];
|
|
22
|
-
}
|
|
23
|
-
const c = /* @__PURE__ */ function() {
|
|
24
|
-
return a.exports;
|
|
25
|
-
}(), p = {
|
|
3
|
+
const l = {
|
|
26
4
|
props: {
|
|
27
5
|
type: {
|
|
28
6
|
type: String,
|
|
@@ -52,29 +30,29 @@ const c = /* @__PURE__ */ function() {
|
|
|
52
30
|
default: "AwesomeButton"
|
|
53
31
|
}
|
|
54
32
|
}
|
|
55
|
-
},
|
|
33
|
+
}, r = {
|
|
56
34
|
name: "FormButton",
|
|
57
|
-
mixins: [
|
|
35
|
+
mixins: [n, l]
|
|
58
36
|
};
|
|
59
|
-
let
|
|
37
|
+
let a, i;
|
|
60
38
|
const e = {};
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
39
|
+
var u = /* @__PURE__ */ o(
|
|
40
|
+
r,
|
|
41
|
+
a,
|
|
42
|
+
i,
|
|
65
43
|
!1,
|
|
66
|
-
|
|
44
|
+
s,
|
|
67
45
|
null,
|
|
68
46
|
null,
|
|
69
47
|
null
|
|
70
48
|
);
|
|
71
|
-
function
|
|
72
|
-
for (let
|
|
73
|
-
this[
|
|
49
|
+
function s(p) {
|
|
50
|
+
for (let t in e)
|
|
51
|
+
this[t] = e[t];
|
|
74
52
|
}
|
|
75
|
-
const
|
|
76
|
-
return
|
|
53
|
+
const f = /* @__PURE__ */ function() {
|
|
54
|
+
return u.exports;
|
|
77
55
|
}();
|
|
78
56
|
export {
|
|
79
|
-
|
|
57
|
+
f as default
|
|
80
58
|
};
|
package/form-group/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n
|
|
2
|
-
var
|
|
1
|
+
import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
var l = function() {
|
|
3
3
|
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
4
4
|
return e.display ? t("div", {
|
|
5
5
|
class: ["avue-group", {
|
|
@@ -15,8 +15,8 @@ var s = function() {
|
|
|
15
15
|
},
|
|
16
16
|
model: {
|
|
17
17
|
value: e.activeName,
|
|
18
|
-
callback: function(
|
|
19
|
-
e.activeName =
|
|
18
|
+
callback: function(o) {
|
|
19
|
+
e.activeName = o;
|
|
20
20
|
},
|
|
21
21
|
expression: "activeName"
|
|
22
22
|
}
|
|
@@ -24,26 +24,25 @@ var s = function() {
|
|
|
24
24
|
attrs: {
|
|
25
25
|
name: 1,
|
|
26
26
|
disabled: !e.arrow
|
|
27
|
-
}
|
|
28
|
-
}, [e.$slots.header && e.header ? t("div", {
|
|
29
|
-
staticClass: "avue-group__header",
|
|
30
|
-
attrs: {
|
|
31
|
-
slot: "title"
|
|
32
|
-
},
|
|
33
|
-
slot: "title"
|
|
34
|
-
}, [e._t("header")], 2) : (e.label || e.icon) && e.header ? t("div", {
|
|
35
|
-
staticClass: "avue-group__header",
|
|
36
|
-
attrs: {
|
|
37
|
-
slot: "title"
|
|
38
27
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
scopedSlots: e._u([{
|
|
29
|
+
key: "title",
|
|
30
|
+
fn: function() {
|
|
31
|
+
return [t("div", {
|
|
32
|
+
staticClass: "avue-group__header"
|
|
33
|
+
}, [e._t("header", function() {
|
|
34
|
+
return [e.icon ? t("i", {
|
|
35
|
+
class: [e.icon, "avue-group__icon"]
|
|
36
|
+
}) : e._e(), e.label ? t("h1", {
|
|
37
|
+
staticClass: "avue-group__title"
|
|
38
|
+
}, [e._v(" " + e._s(e.label) + " ")]) : e._e()];
|
|
39
|
+
})], 2)];
|
|
40
|
+
},
|
|
41
|
+
proxy: !0
|
|
42
|
+
}], null, !0)
|
|
43
|
+
}, [e._t("default")], 2)], 1)], 2) : e._e();
|
|
44
|
+
}, s = [];
|
|
45
|
+
const u = {
|
|
47
46
|
name: "FormGroup",
|
|
48
47
|
props: {
|
|
49
48
|
arrow: {
|
|
@@ -65,10 +64,6 @@ const i = {
|
|
|
65
64
|
type: Boolean,
|
|
66
65
|
default: !0
|
|
67
66
|
},
|
|
68
|
-
card: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: !1
|
|
71
|
-
},
|
|
72
67
|
label: {
|
|
73
68
|
type: String
|
|
74
69
|
}
|
|
@@ -100,10 +95,10 @@ const i = {
|
|
|
100
95
|
}
|
|
101
96
|
}
|
|
102
97
|
}, r = {};
|
|
103
|
-
var
|
|
104
|
-
|
|
98
|
+
var i = /* @__PURE__ */ n(
|
|
99
|
+
u,
|
|
100
|
+
l,
|
|
105
101
|
s,
|
|
106
|
-
n,
|
|
107
102
|
!1,
|
|
108
103
|
c,
|
|
109
104
|
null,
|
|
@@ -114,9 +109,9 @@ function c(e) {
|
|
|
114
109
|
for (let a in r)
|
|
115
110
|
this[a] = r[a];
|
|
116
111
|
}
|
|
117
|
-
const
|
|
118
|
-
return
|
|
112
|
+
const p = /* @__PURE__ */ function() {
|
|
113
|
+
return i.exports;
|
|
119
114
|
}();
|
|
120
115
|
export {
|
|
121
|
-
|
|
116
|
+
p as default
|
|
122
117
|
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var a = Object.getOwnPropertySymbols;
|
|
3
|
+
var p = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (r, e, t) => e in r ? i(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, n = (r, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
p.call(e, t) && l(r, t, e[t]);
|
|
7
|
+
if (a)
|
|
8
|
+
for (var t of a(e))
|
|
9
|
+
c.call(e, t) && l(r, t, e[t]);
|
|
10
|
+
return r;
|
|
11
|
+
};
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.124653d9.mjs";
|
|
13
|
+
import { d, n as f } from "../chunks/index.57f871af.mjs";
|
|
14
|
+
import { XInputTag as _ } from "@web-utils/component";
|
|
15
|
+
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
+
var v = function() {
|
|
17
|
+
var r = this, e = r.$createElement, t = r._self._c || e;
|
|
18
|
+
return t("FormItem", r._b({
|
|
19
|
+
attrs: {
|
|
20
|
+
block: r.block,
|
|
21
|
+
rules: r.computeRules,
|
|
22
|
+
disabled: r.inputDisabled
|
|
23
|
+
},
|
|
24
|
+
scopedSlots: r._u([{
|
|
25
|
+
key: "default",
|
|
26
|
+
fn: function() {
|
|
27
|
+
return [t("XInputTag", r._g(r._b({
|
|
28
|
+
attrs: {
|
|
29
|
+
value: r.value,
|
|
30
|
+
readonly: r.readonly,
|
|
31
|
+
disabled: r.inputDisabled,
|
|
32
|
+
placeholder: r.computePlaceholder,
|
|
33
|
+
"array-mode": r.arrayMode
|
|
34
|
+
},
|
|
35
|
+
on: {
|
|
36
|
+
input: function(o) {
|
|
37
|
+
return r.$emit("input", o);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, "XInputTag", r.inputProps, !1), r.listeners))];
|
|
41
|
+
},
|
|
42
|
+
proxy: !0
|
|
43
|
+
}, {
|
|
44
|
+
key: "error",
|
|
45
|
+
fn: function(o) {
|
|
46
|
+
var s = o.error;
|
|
47
|
+
return [r._t("error", null, {
|
|
48
|
+
error: s
|
|
49
|
+
})];
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "label",
|
|
53
|
+
fn: function() {
|
|
54
|
+
return [r._t("label")];
|
|
55
|
+
},
|
|
56
|
+
proxy: !0
|
|
57
|
+
}], null, !0)
|
|
58
|
+
}, "FormItem", r.formItemProps, !1));
|
|
59
|
+
}, b = [];
|
|
60
|
+
const I = Object.keys(_.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), h = {
|
|
61
|
+
name: "FormInputTag",
|
|
62
|
+
mixins: [m],
|
|
63
|
+
props: {
|
|
64
|
+
value: [Array, String],
|
|
65
|
+
block: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: !0
|
|
68
|
+
},
|
|
69
|
+
arrayMode: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: !0
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
computed: {
|
|
75
|
+
inputProps() {
|
|
76
|
+
return d(n(n({}, f(this.$attrs)), this.$props), I);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}, u = {};
|
|
80
|
+
var g = /* @__PURE__ */ y(
|
|
81
|
+
h,
|
|
82
|
+
v,
|
|
83
|
+
b,
|
|
84
|
+
!1,
|
|
85
|
+
k,
|
|
86
|
+
null,
|
|
87
|
+
null,
|
|
88
|
+
null
|
|
89
|
+
);
|
|
90
|
+
function k(r) {
|
|
91
|
+
for (let e in u)
|
|
92
|
+
this[e] = u[e];
|
|
93
|
+
}
|
|
94
|
+
const $ = /* @__PURE__ */ function() {
|
|
95
|
+
return g.exports;
|
|
96
|
+
}();
|
|
97
|
+
export {
|
|
98
|
+
$ as default
|
|
99
|
+
};
|
package/form-temp/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as a, a as u } from "../chunks/dataformat.
|
|
2
|
-
import { s
|
|
3
|
-
import { u as
|
|
4
|
-
import { n as
|
|
5
|
-
var
|
|
1
|
+
import { g as a, a as u } from "../chunks/dataformat.ab62230f.mjs";
|
|
2
|
+
import { s } from "../chunks/slot.4b391395.mjs";
|
|
3
|
+
import { u as p } from "../chunks/util.505913d9.mjs";
|
|
4
|
+
import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
var c = function() {
|
|
6
6
|
var e = this, n = e.$createElement, o = e._self._c || n;
|
|
7
7
|
return o(e.getComponent(e.column.type, e.column.component), e._g(e._b({
|
|
8
8
|
ref: "temp",
|
|
@@ -28,8 +28,8 @@ var i = function() {
|
|
|
28
28
|
scopedSlots: e._u([e._l(e.columnSlot, function(t) {
|
|
29
29
|
return {
|
|
30
30
|
key: t,
|
|
31
|
-
fn: function(
|
|
32
|
-
return [e._t(t, null, null,
|
|
31
|
+
fn: function(l) {
|
|
32
|
+
return [e._t(t, null, null, l)];
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
})], null, !0),
|
|
@@ -45,18 +45,12 @@ var i = function() {
|
|
|
45
45
|
innerHTML: e._s(e.params.html)
|
|
46
46
|
}
|
|
47
47
|
}) : e._e()]);
|
|
48
|
-
},
|
|
48
|
+
}, i = [];
|
|
49
49
|
const d = {
|
|
50
50
|
name: "FormTemp",
|
|
51
|
-
mixins: [
|
|
51
|
+
mixins: [s],
|
|
52
52
|
props: {
|
|
53
53
|
value: [String, Object, Number, Boolean, Array],
|
|
54
|
-
uploadBefore: Function,
|
|
55
|
-
uploadDelete: Function,
|
|
56
|
-
uploadAfter: Function,
|
|
57
|
-
uploadPreview: Function,
|
|
58
|
-
uploadError: Function,
|
|
59
|
-
uploadExceed: Function,
|
|
60
54
|
columnSlot: {
|
|
61
55
|
type: Array,
|
|
62
56
|
default: () => []
|
|
@@ -65,9 +59,6 @@ const d = {
|
|
|
65
59
|
type: Object,
|
|
66
60
|
default: () => ({})
|
|
67
61
|
},
|
|
68
|
-
clearable: {
|
|
69
|
-
type: Boolean
|
|
70
|
-
},
|
|
71
62
|
enter: {
|
|
72
63
|
type: Boolean,
|
|
73
64
|
default: !1
|
|
@@ -85,9 +76,6 @@ const d = {
|
|
|
85
76
|
dic: {
|
|
86
77
|
type: Array
|
|
87
78
|
},
|
|
88
|
-
placeholder: {
|
|
89
|
-
type: String
|
|
90
|
-
},
|
|
91
79
|
size: {
|
|
92
80
|
type: String
|
|
93
81
|
},
|
|
@@ -119,18 +107,18 @@ const d = {
|
|
|
119
107
|
}
|
|
120
108
|
},
|
|
121
109
|
methods: {
|
|
122
|
-
uploadFun:
|
|
110
|
+
uploadFun: p,
|
|
123
111
|
getComponent: a,
|
|
124
112
|
getPlaceholder: u,
|
|
125
113
|
enterChange() {
|
|
126
114
|
typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
|
|
127
115
|
}
|
|
128
116
|
}
|
|
129
|
-
},
|
|
130
|
-
var y = /* @__PURE__ */
|
|
117
|
+
}, r = {};
|
|
118
|
+
var y = /* @__PURE__ */ m(
|
|
131
119
|
d,
|
|
120
|
+
c,
|
|
132
121
|
i,
|
|
133
|
-
m,
|
|
134
122
|
!1,
|
|
135
123
|
f,
|
|
136
124
|
null,
|
|
@@ -138,8 +126,8 @@ var y = /* @__PURE__ */ c(
|
|
|
138
126
|
null
|
|
139
127
|
);
|
|
140
128
|
function f(e) {
|
|
141
|
-
for (let n in
|
|
142
|
-
this[n] =
|
|
129
|
+
for (let n in r)
|
|
130
|
+
this[n] = r[n];
|
|
143
131
|
}
|
|
144
132
|
const v = /* @__PURE__ */ function() {
|
|
145
133
|
return y.exports;
|
package/fy-array/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as a, e as o } from "../chunks/event.
|
|
2
|
-
import { i as c } from "../chunks/util.
|
|
3
|
-
import { n as
|
|
4
|
-
var
|
|
5
|
-
var t = this,
|
|
1
|
+
import { p as a, e as o } from "../chunks/event.1ac32f1d.mjs";
|
|
2
|
+
import { i as c } from "../chunks/util.505913d9.mjs";
|
|
3
|
+
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
var p = function() {
|
|
5
|
+
var t = this, n = t.$createElement, e = t._self._c || n;
|
|
6
6
|
return e("div", {
|
|
7
7
|
staticClass: "avue-array"
|
|
8
8
|
}, [t.text ? e("ElButton", {
|
|
@@ -28,33 +28,35 @@ var u = function() {
|
|
|
28
28
|
attrs: {
|
|
29
29
|
placement: "bottom",
|
|
30
30
|
disabled: !t.isImg && !t.isUrl || !!i
|
|
31
|
-
}
|
|
32
|
-
}, [e("div", {
|
|
33
|
-
attrs: {
|
|
34
|
-
slot: "content"
|
|
35
|
-
},
|
|
36
|
-
slot: "content"
|
|
37
|
-
}, [t.isImg ? e(t.isMediaType(i), {
|
|
38
|
-
tag: "Component",
|
|
39
|
-
staticStyle: {
|
|
40
|
-
width: "200px"
|
|
41
31
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
32
|
+
scopedSlots: t._u([{
|
|
33
|
+
key: "content",
|
|
34
|
+
fn: function() {
|
|
35
|
+
return [e("div", [t.isImg ? e(t.isMediaType(i), {
|
|
36
|
+
tag: "Component",
|
|
37
|
+
staticStyle: {
|
|
38
|
+
width: "200px"
|
|
39
|
+
},
|
|
40
|
+
attrs: {
|
|
41
|
+
src: i,
|
|
42
|
+
controls: "controls"
|
|
43
|
+
},
|
|
44
|
+
on: {
|
|
45
|
+
click: function(s) {
|
|
46
|
+
return t.openImg(r);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}) : t.isUrl ? e("ElLink", {
|
|
50
|
+
attrs: {
|
|
51
|
+
type: "primary",
|
|
52
|
+
href: i,
|
|
53
|
+
target: t.target
|
|
54
|
+
}
|
|
55
|
+
}, [t._v(" " + t._s(i) + " ")]) : t._e()], 1)];
|
|
56
|
+
},
|
|
57
|
+
proxy: !0
|
|
58
|
+
}], null, !0)
|
|
59
|
+
}, [e("ElInput", {
|
|
58
60
|
attrs: {
|
|
59
61
|
size: t.size,
|
|
60
62
|
placeholder: t.placeholder,
|
|
@@ -62,8 +64,8 @@ var u = function() {
|
|
|
62
64
|
},
|
|
63
65
|
model: {
|
|
64
66
|
value: t.text[r],
|
|
65
|
-
callback: function(
|
|
66
|
-
t.$set(t.text, r,
|
|
67
|
+
callback: function(s) {
|
|
68
|
+
t.$set(t.text, r, s);
|
|
67
69
|
},
|
|
68
70
|
expression: "text[index]"
|
|
69
71
|
}
|
|
@@ -76,7 +78,7 @@ var u = function() {
|
|
|
76
78
|
disabled: t.disabled
|
|
77
79
|
},
|
|
78
80
|
on: {
|
|
79
|
-
click: function(
|
|
81
|
+
click: function(s) {
|
|
80
82
|
return t.add(r);
|
|
81
83
|
}
|
|
82
84
|
}
|
|
@@ -89,14 +91,14 @@ var u = function() {
|
|
|
89
91
|
disabled: t.disabled
|
|
90
92
|
},
|
|
91
93
|
on: {
|
|
92
|
-
click: function(
|
|
94
|
+
click: function(s) {
|
|
93
95
|
return t.remove(r);
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
})]], 2)]);
|
|
97
99
|
})], 2);
|
|
98
100
|
}, d = [];
|
|
99
|
-
const
|
|
101
|
+
const _ = {
|
|
100
102
|
name: "FyArray",
|
|
101
103
|
mixins: [a, o],
|
|
102
104
|
props: {
|
|
@@ -134,9 +136,9 @@ const m = {
|
|
|
134
136
|
}
|
|
135
137
|
}
|
|
136
138
|
}, l = {};
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
var m = /* @__PURE__ */ u(
|
|
140
|
+
_,
|
|
141
|
+
p,
|
|
140
142
|
d,
|
|
141
143
|
!1,
|
|
142
144
|
y,
|
|
@@ -145,11 +147,11 @@ var _ = /* @__PURE__ */ p(
|
|
|
145
147
|
null
|
|
146
148
|
);
|
|
147
149
|
function y(t) {
|
|
148
|
-
for (let
|
|
149
|
-
this[
|
|
150
|
+
for (let n in l)
|
|
151
|
+
this[n] = l[n];
|
|
150
152
|
}
|
|
151
153
|
const b = /* @__PURE__ */ function() {
|
|
152
|
-
return
|
|
154
|
+
return m.exports;
|
|
153
155
|
}();
|
|
154
156
|
export {
|
|
155
157
|
b as default
|
package/fy-cascader/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as d, e as u } from "../chunks/event.
|
|
1
|
+
import { p as d, e as u } from "../chunks/event.1ac32f1d.mjs";
|
|
2
2
|
import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var e = this, l = e.$createElement, s = e._self._c || l;
|
package/fy-checkbox/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as c, e as i } from "../chunks/event.
|
|
1
|
+
import { p as c, e as i } from "../chunks/event.1ac32f1d.mjs";
|
|
2
2
|
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
@@ -68,6 +68,7 @@ const d = {
|
|
|
68
68
|
return {
|
|
69
69
|
checkAll: !1,
|
|
70
70
|
isIndeterminate: !1,
|
|
71
|
+
// eslint-disable-next-line vue/no-unused-properties
|
|
71
72
|
name: "checkbox"
|
|
72
73
|
};
|
|
73
74
|
},
|
package/fy-code/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import s from "element-ui/lib/scrollbar";
|
|
2
|
-
import { s as o } from "../chunks/util.
|
|
2
|
+
import { s as o } from "../chunks/util.505913d9.mjs";
|
|
3
3
|
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
4
|
var i = function() {
|
|
5
5
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
package/fy-curd/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { p as
|
|
3
|
-
import { i as
|
|
1
|
+
import { p as C } from "../chunks/packages.1fc9ccba.mjs";
|
|
2
|
+
import { p as $ } from "../chunks/permission.ce5d2121.mjs";
|
|
3
|
+
import { i as F } from "../chunks/init.47ce5ed9.mjs";
|
|
4
4
|
import { c as d } from "../chunks/config.46422d7f.mjs";
|
|
5
|
-
import { c as
|
|
6
|
-
import { D as f, s as
|
|
5
|
+
import { c as S, t as _, f as O } from "../chunks/dataformat.ab62230f.mjs";
|
|
6
|
+
import { D as f, s as v, o as y, d as n } from "../chunks/util.505913d9.mjs";
|
|
7
7
|
import { isBlank as b } from "@web-utils/core";
|
|
8
|
-
import { n as
|
|
9
|
-
var
|
|
8
|
+
import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
9
|
+
var E = function() {
|
|
10
10
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
11
11
|
return l("div", {
|
|
12
12
|
staticClass: "avue-crud avue-crud--card"
|
|
@@ -218,13 +218,13 @@ var x = function() {
|
|
|
218
218
|
}), l("DialogFilter", {
|
|
219
219
|
ref: "dialogFilter"
|
|
220
220
|
})], 2);
|
|
221
|
-
},
|
|
222
|
-
const
|
|
221
|
+
}, k = [];
|
|
222
|
+
const x = {
|
|
223
223
|
name: "FyCurd",
|
|
224
224
|
directives: {
|
|
225
|
-
permission:
|
|
225
|
+
permission: $
|
|
226
226
|
},
|
|
227
|
-
mixins: [
|
|
227
|
+
mixins: [F],
|
|
228
228
|
provide() {
|
|
229
229
|
return {
|
|
230
230
|
crud: this
|
|
@@ -352,7 +352,7 @@ const P = {
|
|
|
352
352
|
Array.isArray(i.children) ? t(i.children) : e.push(i);
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
return t(this.columnOption), e =
|
|
355
|
+
return t(this.columnOption), e = S(e), e;
|
|
356
356
|
},
|
|
357
357
|
isShowSummary() {
|
|
358
358
|
return this.option.showSummary;
|
|
@@ -416,7 +416,7 @@ const P = {
|
|
|
416
416
|
this.dataInit(), this.getTableHeight(), this.refreshTable();
|
|
417
417
|
},
|
|
418
418
|
methods: {
|
|
419
|
-
setPx:
|
|
419
|
+
setPx: v,
|
|
420
420
|
optVal: y,
|
|
421
421
|
handleValidate(e, t, l) {
|
|
422
422
|
this.listError[e] || this.$set(this.listError, e, { valid: !1, msg: "" }), this.listError[e].valid = !t, this.listError[e].msg = l;
|
|
@@ -448,7 +448,7 @@ const P = {
|
|
|
448
448
|
});
|
|
449
449
|
},
|
|
450
450
|
menuIcon(e) {
|
|
451
|
-
return y(this.tableOption[`${e}Text`],
|
|
451
|
+
return y(this.tableOption[`${e}Text`], _(`crud.${e}`));
|
|
452
452
|
},
|
|
453
453
|
getBtnIcon(e) {
|
|
454
454
|
const t = `${e}Icon`;
|
|
@@ -549,7 +549,7 @@ const P = {
|
|
|
549
549
|
cellClick(e, t, l, i) {
|
|
550
550
|
this.$emit("cell-click", e, t, l, i);
|
|
551
551
|
},
|
|
552
|
-
//
|
|
552
|
+
// 当某一列的表头被点击时会触发该事件
|
|
553
553
|
headerClick(e, t) {
|
|
554
554
|
this.$emit("header-click", e, t);
|
|
555
555
|
},
|
|
@@ -567,7 +567,7 @@ const P = {
|
|
|
567
567
|
},
|
|
568
568
|
// 单元格新增
|
|
569
569
|
rowCellAdd(e = {}) {
|
|
570
|
-
const t = this.list.length, l =
|
|
570
|
+
const t = this.list.length, l = O(this.propOption).tableForm;
|
|
571
571
|
e = n(
|
|
572
572
|
Object.assign(
|
|
573
573
|
{
|
|
@@ -611,7 +611,7 @@ const P = {
|
|
|
611
611
|
validateCellField(e) {
|
|
612
612
|
let t = !0;
|
|
613
613
|
for (const l of this.$refs.cellForm.fields)
|
|
614
|
-
if (l.prop.split(".")[1]
|
|
614
|
+
if (l.prop.split(".")[1] === `${e}` && this.$refs.cellForm.validateField(l.prop, (i) => {
|
|
615
615
|
i && (t = !1);
|
|
616
616
|
}), !t)
|
|
617
617
|
break;
|
|
@@ -669,21 +669,19 @@ const P = {
|
|
|
669
669
|
const h = this.sumColumnList.find((u) => u.name === r.property);
|
|
670
670
|
if (h) {
|
|
671
671
|
const u = h.decimals || 2, m = h.label || "";
|
|
672
|
+
let g = 1;
|
|
672
673
|
switch (h.type) {
|
|
673
674
|
case "count":
|
|
674
675
|
s[a] = m + i.length;
|
|
675
676
|
break;
|
|
676
677
|
case "avg":
|
|
677
|
-
|
|
678
|
-
let g = 1;
|
|
679
|
-
s[a] = C.reduce((o, c) => {
|
|
678
|
+
s[a] = i.map((o) => Number(o[r.property])).reduce((o, c) => {
|
|
680
679
|
const p = Number(c);
|
|
681
680
|
return isNaN(p) ? o : (o * (g - 1) + c) / g++;
|
|
682
681
|
}, 0), s[a] = m + s[a].toFixed(u);
|
|
683
682
|
break;
|
|
684
683
|
case "sum":
|
|
685
|
-
|
|
686
|
-
s[a] = $.reduce((o, c) => {
|
|
684
|
+
s[a] = i.map((o) => Number(o[r.property])).reduce((o, c) => {
|
|
687
685
|
const p = Number(c);
|
|
688
686
|
return isNaN(p) ? o : o + c;
|
|
689
687
|
}, 0), s[a] = m + s[a].toFixed(u);
|
|
@@ -702,7 +700,7 @@ const P = {
|
|
|
702
700
|
return;
|
|
703
701
|
}
|
|
704
702
|
if (!window.Sortable) {
|
|
705
|
-
|
|
703
|
+
C.logs("Sortable");
|
|
706
704
|
return;
|
|
707
705
|
}
|
|
708
706
|
window.Sortable.create(t, {
|
|
@@ -729,23 +727,23 @@ const P = {
|
|
|
729
727
|
}
|
|
730
728
|
}
|
|
731
729
|
}, w = {};
|
|
732
|
-
var
|
|
733
|
-
P,
|
|
730
|
+
var D = /* @__PURE__ */ L(
|
|
734
731
|
x,
|
|
735
|
-
|
|
732
|
+
E,
|
|
733
|
+
k,
|
|
736
734
|
!1,
|
|
737
|
-
|
|
735
|
+
P,
|
|
738
736
|
null,
|
|
739
737
|
null,
|
|
740
738
|
null
|
|
741
739
|
);
|
|
742
|
-
function
|
|
740
|
+
function P(e) {
|
|
743
741
|
for (let t in w)
|
|
744
742
|
this[t] = w[t];
|
|
745
743
|
}
|
|
746
|
-
const
|
|
747
|
-
return
|
|
744
|
+
const K = /* @__PURE__ */ function() {
|
|
745
|
+
return D.exports;
|
|
748
746
|
}();
|
|
749
747
|
export {
|
|
750
|
-
|
|
748
|
+
K as default
|
|
751
749
|
};
|