hlrender 0.0.116 → 0.0.118
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/package.json +3 -2
- package/render.es.js +1 -1
- package/render.umd.js +76 -76
- package/sfcview-9540088a.js +141 -0
- package/sfcview-dcc62a41.js +0 -141
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { D as G, B as c } from "./baseImp-26b9c04a.js";
|
|
2
|
+
import { c as p } from "./enum-type-bb2bfafa.js";
|
|
3
|
+
import { f as M, n as S, o as q } from "./index-a7d766e7.js";
|
|
4
|
+
import { l as I } from "./expression-490b4335.js";
|
|
5
|
+
import { c as x, I as $, f as A } from "./enum-type-4a798b1a.js";
|
|
6
|
+
import "./icon-a0e0cdb0.js";
|
|
7
|
+
import "vue";
|
|
8
|
+
import "./dialog-c4706078.js";
|
|
9
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
+
import "./uuid-4999945f.js";
|
|
11
|
+
import "element-plus";
|
|
12
|
+
import "./source-map-b04aec4a.js";
|
|
13
|
+
import "./esprima-e8d15055.js";
|
|
14
|
+
const tt = (h, y) => {
|
|
15
|
+
const F = (u, l) => {
|
|
16
|
+
const n = [], a = (o) => !!o.dynamicItemFlag;
|
|
17
|
+
S(u, n, !1, a);
|
|
18
|
+
var _ = n == null ? void 0 : n.filter((o) => o == null ? void 0 : o.formItemFlag);
|
|
19
|
+
return _ == null || _.forEach((o) => {
|
|
20
|
+
if (!(o != null && o.dynamicItemFlag))
|
|
21
|
+
l.push({ widget: O(o) });
|
|
22
|
+
else {
|
|
23
|
+
const f = [];
|
|
24
|
+
q(o, f, !1, a);
|
|
25
|
+
const b = [];
|
|
26
|
+
F(f, b), l.push({ widget: O(o), children: b });
|
|
27
|
+
}
|
|
28
|
+
}), l;
|
|
29
|
+
}, m = (u) => c.getOptions(u, "name"), j = () => {
|
|
30
|
+
const u = [];
|
|
31
|
+
var l = y ? M(h, (n) => m(n) === (y == null ? void 0 : y.fName) || (n == null ? void 0 : n.type) == (y == null ? void 0 : y.wdt), !1) : h;
|
|
32
|
+
return F(l, u);
|
|
33
|
+
}, O = (u) => {
|
|
34
|
+
var k;
|
|
35
|
+
const l = {}, n = (t, r) => {
|
|
36
|
+
l[t] = r;
|
|
37
|
+
}, a = (t) => {
|
|
38
|
+
const r = c.getOptions(t, "content"), e = c.getOptions(t, "label"), s = c.getOptions(t, "name");
|
|
39
|
+
return e || r || s;
|
|
40
|
+
}, _ = "|", o = ";", f = (t, r) => {
|
|
41
|
+
var s, i;
|
|
42
|
+
if (Array.isArray(t))
|
|
43
|
+
return (s = x(e)) == null ? void 0 : s.join(o);
|
|
44
|
+
if (!$(t))
|
|
45
|
+
return t;
|
|
46
|
+
var e = A(t);
|
|
47
|
+
return !r || !Array.isArray(e) ? t : (i = x(e)) == null ? void 0 : i.join(o);
|
|
48
|
+
}, b = (t, r) => {
|
|
49
|
+
var s, i, g;
|
|
50
|
+
if (Array.isArray(t))
|
|
51
|
+
return (s = x(t)) == null ? void 0 : s.join(_);
|
|
52
|
+
if (!$(t))
|
|
53
|
+
return t;
|
|
54
|
+
var e = A(t);
|
|
55
|
+
return r ? (g = e == null ? void 0 : e.map((D) => {
|
|
56
|
+
var T;
|
|
57
|
+
return (T = x(D)) == null ? void 0 : T.join(_);
|
|
58
|
+
})) == null ? void 0 : g.join(o) : (i = x(e)) == null ? void 0 : i.join(_);
|
|
59
|
+
}, V = (t) => ({
|
|
60
|
+
type: t.type,
|
|
61
|
+
label: a(t),
|
|
62
|
+
key: m(t),
|
|
63
|
+
options: {
|
|
64
|
+
valueFormat: (r) => r
|
|
65
|
+
}
|
|
66
|
+
}), E = (t) => {
|
|
67
|
+
let r = c.getOptions(t, "textName"), e = c.getOptions(t, "multiple");
|
|
68
|
+
const s = r || `${m(t)}${I.optionText}`;
|
|
69
|
+
return {
|
|
70
|
+
type: t.type,
|
|
71
|
+
label: a(t),
|
|
72
|
+
key: `${s}`,
|
|
73
|
+
options: {
|
|
74
|
+
valueFormat: (i) => e ? f(i) : i
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}, W = (t) => {
|
|
78
|
+
const r = m(t);
|
|
79
|
+
return {
|
|
80
|
+
type: t.type,
|
|
81
|
+
label: a(t),
|
|
82
|
+
key: `${r}`,
|
|
83
|
+
options: {
|
|
84
|
+
valueFormat: (e) => (console.log("checkbox", e), f(e))
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}, C = (t) => {
|
|
88
|
+
const r = m(t);
|
|
89
|
+
return {
|
|
90
|
+
type: t.type,
|
|
91
|
+
label: a(t),
|
|
92
|
+
key: `${r}`,
|
|
93
|
+
options: {
|
|
94
|
+
valueFormat: (e) => (console.log("radio", e), e)
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}, v = (t) => {
|
|
98
|
+
let r = c.getOptions(t, "textName"), e = c.getOptions(t, "multiple");
|
|
99
|
+
const s = r || `${m(t)}${I.optionText}`;
|
|
100
|
+
return {
|
|
101
|
+
type: t.type,
|
|
102
|
+
label: a(t),
|
|
103
|
+
key: `${s}`,
|
|
104
|
+
options: {
|
|
105
|
+
valueFormat: (i) => (console.log("cascader", i), e ? b(i) : f(i))
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}, B = (t) => {
|
|
109
|
+
const r = c.getOptions(t, "activeValue"), e = c.getOptions(t, "inactiveValue"), s = c.getOptions(t, "activeText"), i = c.getOptions(t, "inactiveText");
|
|
110
|
+
return {
|
|
111
|
+
type: t.type,
|
|
112
|
+
label: a(t),
|
|
113
|
+
key: m(t),
|
|
114
|
+
options: {
|
|
115
|
+
valueFormat: (g) => g === r ? s : g === e ? i : g
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}, J = (t) => ({
|
|
119
|
+
type: t.type,
|
|
120
|
+
label: a(t),
|
|
121
|
+
key: m(t)
|
|
122
|
+
});
|
|
123
|
+
return (() => {
|
|
124
|
+
G(p).forEach((t) => {
|
|
125
|
+
n(t.label, V);
|
|
126
|
+
}), [
|
|
127
|
+
p.select,
|
|
128
|
+
p.treeSelect,
|
|
129
|
+
p.autoComplete
|
|
130
|
+
].forEach((t) => {
|
|
131
|
+
n(t, E);
|
|
132
|
+
}), n(p.multirow, J), n(p.checkbox, W), n(p.radio, C), n(p.cascader, v), n(p.switch, B);
|
|
133
|
+
})(), (k = l[u.type]) == null ? void 0 : k.call(l, u);
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
filterFieldItems: j
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export {
|
|
140
|
+
tt as useGenFieldItemList
|
|
141
|
+
};
|
package/sfcview-dcc62a41.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { D, B as s } from "./baseImp-26b9c04a.js";
|
|
2
|
-
import { c as m } from "./enum-type-bb2bfafa.js";
|
|
3
|
-
import { f as G, n as M, o as S } from "./index-a7d766e7.js";
|
|
4
|
-
import { l as h } from "./expression-490b4335.js";
|
|
5
|
-
import { c as x, I, f as A } from "./enum-type-4a798b1a.js";
|
|
6
|
-
import "./icon-a0e0cdb0.js";
|
|
7
|
-
import "vue";
|
|
8
|
-
import "./dialog-c4706078.js";
|
|
9
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
-
import "./uuid-4999945f.js";
|
|
11
|
-
import "element-plus";
|
|
12
|
-
import "./source-map-b04aec4a.js";
|
|
13
|
-
import "./esprima-e8d15055.js";
|
|
14
|
-
const tt = (F, y) => {
|
|
15
|
-
const O = (u, p) => {
|
|
16
|
-
const n = [], c = (i) => !!i.dynamicItemFlag;
|
|
17
|
-
M(u, n, !1, c);
|
|
18
|
-
var _ = n == null ? void 0 : n.filter((i) => i == null ? void 0 : i.formItemFlag);
|
|
19
|
-
return _ == null || _.forEach((i) => {
|
|
20
|
-
if (!(i != null && i.dynamicItemFlag))
|
|
21
|
-
p.push({ widget: T(i) });
|
|
22
|
-
else {
|
|
23
|
-
const f = [];
|
|
24
|
-
S(i, f, !1, c);
|
|
25
|
-
const b = [];
|
|
26
|
-
O(f, b), p.push({ widget: T(i), children: b });
|
|
27
|
-
}
|
|
28
|
-
}), p;
|
|
29
|
-
}, l = (u) => s.getOptions(u, "name"), j = () => {
|
|
30
|
-
const u = [];
|
|
31
|
-
var p = y ? G(F, (n) => l(n) === (y == null ? void 0 : y.fName) || (n == null ? void 0 : n.type) == (y == null ? void 0 : y.wdt), !1) : F;
|
|
32
|
-
return O(p, u);
|
|
33
|
-
}, T = (u) => {
|
|
34
|
-
var $;
|
|
35
|
-
const p = {}, n = (t, r) => {
|
|
36
|
-
p[t] = r;
|
|
37
|
-
}, c = (t) => {
|
|
38
|
-
const r = s.getOptions(t, "content"), e = s.getOptions(t, "label"), o = s.getOptions(t, "name");
|
|
39
|
-
return e || r || o;
|
|
40
|
-
}, _ = "|", i = ";", f = (t, r) => {
|
|
41
|
-
var o, a;
|
|
42
|
-
if (Array.isArray(t))
|
|
43
|
-
return (o = x(e)) == null ? void 0 : o.join(i);
|
|
44
|
-
if (!I(t))
|
|
45
|
-
return t;
|
|
46
|
-
var e = A(t);
|
|
47
|
-
return !r || !Array.isArray(e) ? t : (a = x(e)) == null ? void 0 : a.join(i);
|
|
48
|
-
}, b = (t, r) => {
|
|
49
|
-
var o, a, g;
|
|
50
|
-
if (Array.isArray(t))
|
|
51
|
-
return (o = x(t)) == null ? void 0 : o.join(_);
|
|
52
|
-
if (!I(t))
|
|
53
|
-
return t;
|
|
54
|
-
var e = A(t);
|
|
55
|
-
return r ? (g = e == null ? void 0 : e.map((J) => {
|
|
56
|
-
var k;
|
|
57
|
-
return (k = x(J)) == null ? void 0 : k.join(_);
|
|
58
|
-
})) == null ? void 0 : g.join(i) : (a = x(e)) == null ? void 0 : a.join(_);
|
|
59
|
-
}, v = (t) => ({
|
|
60
|
-
type: t.type,
|
|
61
|
-
label: c(t),
|
|
62
|
-
key: l(t),
|
|
63
|
-
options: {
|
|
64
|
-
valueFormat: (r) => r
|
|
65
|
-
}
|
|
66
|
-
}), V = (t) => {
|
|
67
|
-
let r = s.getOptions(t, "textName"), e = s.getOptions(t, "multiple");
|
|
68
|
-
const o = r || `${l(t)}${h.optionText}`;
|
|
69
|
-
return {
|
|
70
|
-
type: t.type,
|
|
71
|
-
label: c(t),
|
|
72
|
-
key: `${o}`,
|
|
73
|
-
options: {
|
|
74
|
-
valueFormat: (a) => e ? f(a) : a
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
}, E = (t) => {
|
|
78
|
-
const e = s.getOptions(t, "textName") || `${l(t)}${h.optionText}`;
|
|
79
|
-
return {
|
|
80
|
-
type: t.type,
|
|
81
|
-
label: c(t),
|
|
82
|
-
key: `${e}`,
|
|
83
|
-
options: {
|
|
84
|
-
valueFormat: (o) => f(o)
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
}, W = (t) => {
|
|
88
|
-
const e = s.getOptions(t, "textName") || `${l(t)}${h.optionText}`;
|
|
89
|
-
return {
|
|
90
|
-
type: t.type,
|
|
91
|
-
label: c(t),
|
|
92
|
-
key: `${e}`,
|
|
93
|
-
options: {
|
|
94
|
-
valueFormat: (o) => o
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}, C = (t) => {
|
|
98
|
-
let r = s.getOptions(t, "textName"), e = s.getOptions(t, "multiple");
|
|
99
|
-
const o = r || `${l(t)}${h.optionText}`;
|
|
100
|
-
return {
|
|
101
|
-
type: t.type,
|
|
102
|
-
label: c(t),
|
|
103
|
-
key: `${o}`,
|
|
104
|
-
options: {
|
|
105
|
-
valueFormat: (a) => e ? b(a) : f(a)
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}, N = (t) => {
|
|
109
|
-
const r = s.getOptions(t, "activeValue"), e = s.getOptions(t, "inactiveValue"), o = s.getOptions(t, "activeText"), a = s.getOptions(t, "inactiveText");
|
|
110
|
-
return {
|
|
111
|
-
type: t.type,
|
|
112
|
-
label: c(t),
|
|
113
|
-
key: l(t),
|
|
114
|
-
options: {
|
|
115
|
-
valueFormat: (g) => g === r ? o : g === e ? a : g
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}, B = (t) => ({
|
|
119
|
-
type: t.type,
|
|
120
|
-
label: c(t),
|
|
121
|
-
key: l(t)
|
|
122
|
-
});
|
|
123
|
-
return (() => {
|
|
124
|
-
D(m).forEach((t) => {
|
|
125
|
-
n(t.label, v);
|
|
126
|
-
}), [
|
|
127
|
-
m.select,
|
|
128
|
-
m.treeSelect,
|
|
129
|
-
m.autoComplete
|
|
130
|
-
].forEach((t) => {
|
|
131
|
-
n(t, V);
|
|
132
|
-
}), n(m.multirow, B), n(m.checkbox, E), n(m.radio, W), n(m.cascader, C), n(m.switch, N);
|
|
133
|
-
})(), ($ = p[u.type]) == null ? void 0 : $.call(p, u);
|
|
134
|
-
};
|
|
135
|
-
return {
|
|
136
|
-
filterFieldItems: j
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
export {
|
|
140
|
-
tt as useGenFieldItemList
|
|
141
|
-
};
|