@das-fed/upf-ui 6.4.0-dev.210 → 6.4.0-dev.212
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/front-end/i18n/front-end-page/dasui_en-US.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +5 -5
- package/package.json +5 -5
- package/packages/business-components/ai-panel/{index-BgyMyjJo.js → index-BybM3Q9u.js} +700 -711
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +142 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-Bw7rNZmA.js → index-CwdJKHy0.js} +9 -9
- package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +8773 -8873
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +50 -50
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +149 -149
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +60 -60
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +128 -130
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +896 -904
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +246 -249
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +0 -1
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/button/index.js +182 -178
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/calendar/index.js +104 -104
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +27 -27
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +54 -54
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +459 -459
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +61 -63
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +22 -23
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +223 -224
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +42 -44
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +63 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +32 -32
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +51 -51
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +44 -44
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +832 -834
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +431 -437
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +33 -33
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4556 -4586
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +2 -2
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.d.ts +3 -0
- package/packages/components/select/index.js +348 -310
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/src/type.d.ts +2 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.js +6 -10
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +35 -35
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +101 -102
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +599 -604
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree/index.js +173 -182
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +427 -409
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +8 -2
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +10 -4
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1208 -1240
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js +0 -143
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
|
Binary file
|
|
@@ -375,7 +375,6 @@ const Te = /* @__PURE__ */ D({
|
|
|
375
375
|
return (d = h.value) == null ? void 0 : d.video;
|
|
376
376
|
}), u = k(!1), c = k(!0), g = (d) => {
|
|
377
377
|
n.value = d, n.value.on(window.mpegts.Events.ERROR, (b) => {
|
|
378
|
-
console.log("player error", b);
|
|
379
378
|
});
|
|
380
379
|
}, _ = () => {
|
|
381
380
|
s.value = !s.value, n.value && (n.value.muted = s.value);
|
|
Binary file
|
|
@@ -213,13 +213,10 @@ var ot = /* @__PURE__ */ function() {
|
|
|
213
213
|
}();
|
|
214
214
|
function _e(e, t, i) {
|
|
215
215
|
var s = t.value;
|
|
216
|
-
if (s)
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
var n = new ot(e, s, i);
|
|
221
|
-
e._vue_visibilityState = n;
|
|
222
|
-
}
|
|
216
|
+
if (s && !(typeof IntersectionObserver > "u")) {
|
|
217
|
+
var n = new ot(e, s, i);
|
|
218
|
+
e._vue_visibilityState = n;
|
|
219
|
+
}
|
|
223
220
|
}
|
|
224
221
|
function at(e, t, i) {
|
|
225
222
|
var s = t.value, n = t.oldValue;
|
|
@@ -446,7 +443,7 @@ var de = {
|
|
|
446
443
|
}
|
|
447
444
|
},
|
|
448
445
|
created() {
|
|
449
|
-
this.$_startIndex = 0, this.$_endIndex = 0, this.$_views = /* @__PURE__ */ new Map(), this.$_unusedViews = /* @__PURE__ */ new Map(), this.$_scrollDirty = !1, this.$_lastUpdateScrollPosition = 0, this.prerender && (this.$_prerender = !0, this.updateVisibleItems(!1)), this.gridItems &&
|
|
446
|
+
this.$_startIndex = 0, this.$_endIndex = 0, this.$_views = /* @__PURE__ */ new Map(), this.$_unusedViews = /* @__PURE__ */ new Map(), this.$_scrollDirty = !1, this.$_lastUpdateScrollPosition = 0, this.prerender && (this.$_prerender = !0, this.updateVisibleItems(!1)), this.gridItems && this.itemSize;
|
|
450
447
|
},
|
|
451
448
|
mounted() {
|
|
452
449
|
this.applyPageMode(), this.$nextTick(() => {
|
|
@@ -623,7 +620,6 @@ var de = {
|
|
|
623
620
|
},
|
|
624
621
|
itemsLimitError() {
|
|
625
622
|
throw setTimeout(() => {
|
|
626
|
-
console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.", "Scroller:", this.$el), console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.");
|
|
627
623
|
}), new Error("Rendered items limit reached");
|
|
628
624
|
},
|
|
629
625
|
sortViews() {
|
|
@@ -789,9 +785,7 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = {
|
|
|
789
785
|
s.showFullPath ? m.value = r.pathName || "" : m.value = r.name || "";
|
|
790
786
|
return;
|
|
791
787
|
}
|
|
792
|
-
let o = _.value.treeRef.getNode(r);
|
|
793
|
-
console.log("treeNodeClick回调:", r, o);
|
|
794
|
-
let T = [o.data[s.fieldNames.label] || ""];
|
|
788
|
+
let o = _.value.treeRef.getNode(r), T = [o.data[s.fieldNames.label] || ""];
|
|
795
789
|
if (s.showFullPath)
|
|
796
790
|
for (; o.parent && o.parent.data[s.fieldNames.label]; )
|
|
797
791
|
o = o.parent, T.unshift(o.data[s.fieldNames.label]);
|
|
Binary file
|
|
@@ -2,130 +2,130 @@ import '@das-fed/upf-ui/packages/components/button/style.css';
|
|
|
2
2
|
import { withInstall as oe } from "@das-fed/upf-utils/with-install/index";
|
|
3
3
|
import { ConfigProvider as le } from "ant-design-vue/es";
|
|
4
4
|
import "ant-design-vue/es/config-provider/style/css";
|
|
5
|
-
import { defineComponent as ue,
|
|
6
|
-
import { DasAutoRegisterIcon as
|
|
7
|
-
import { DropdownButton as
|
|
5
|
+
import { defineComponent as ue, useAttrs as se, computed as F, ref as H, watchEffect as de, openBlock as u, createElementBlock as I, normalizeClass as fe, normalizeStyle as be, createVNode as D, withCtx as s, createBlock as m, unref as l, mergeProps as B, createSlots as X, createCommentVNode as O, renderSlot as P, Fragment as w, renderList as L, createTextVNode as G, toDisplayString as V, isRef as ce } from "vue";
|
|
6
|
+
import { DasAutoRegisterIcon as me, DasIcon as M } from "@das-fed/upf-ui/packages/components/icon/index";
|
|
7
|
+
import { DropdownButton as pe, Menu as q, MenuItem as J, Dropdown as ye, Button as Q, RadioGroup as ge, RadioButton as ve } from "ant-design-vue";
|
|
8
8
|
import "ant-design-vue/es/button/style/css";
|
|
9
9
|
import "ant-design-vue/es/dropdown/style/css";
|
|
10
10
|
import "ant-design-vue/es/radio/style/css";
|
|
11
|
-
import { setThemeRule as
|
|
12
|
-
var
|
|
13
|
-
function
|
|
11
|
+
import { setThemeRule as ke } from "@das-fed/upf-web/packages/theme/index";
|
|
12
|
+
var E = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
13
|
+
function Te(t) {
|
|
14
14
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function he(t) {
|
|
17
17
|
var a = typeof t;
|
|
18
18
|
return t != null && (a == "object" || a == "function");
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
return
|
|
22
|
-
},
|
|
23
|
-
function
|
|
24
|
-
for (var a = t.length; a-- &&
|
|
20
|
+
var ne = he, Ce = typeof E == "object" && E && E.Object === Object && E, $e = Ce, Se = $e, je = typeof self == "object" && self && self.Object === Object && self, Ie = Se || je || Function("return this")(), ae = Ie, Oe = ae, ze = function() {
|
|
21
|
+
return Oe.Date.now();
|
|
22
|
+
}, De = ze, Be = /\s/;
|
|
23
|
+
function Pe(t) {
|
|
24
|
+
for (var a = t.length; a-- && Be.test(t.charAt(a)); )
|
|
25
25
|
;
|
|
26
26
|
return a;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
return t && t.slice(0,
|
|
28
|
+
var we = Pe, Me = we, Ee = /^\s+/;
|
|
29
|
+
function Ae(t) {
|
|
30
|
+
return t && t.slice(0, Me(t) + 1).replace(Ee, "");
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
var a =
|
|
32
|
+
var Ne = Ae, Re = ae, Fe = Re.Symbol, ie = Fe, Y = ie, re = Object.prototype, Le = re.hasOwnProperty, Ge = re.toString, z = Y ? Y.toStringTag : void 0;
|
|
33
|
+
function Ve(t) {
|
|
34
|
+
var a = Le.call(t, z), n = t[z];
|
|
35
35
|
try {
|
|
36
|
-
t[
|
|
37
|
-
var
|
|
36
|
+
t[z] = void 0;
|
|
37
|
+
var d = !0;
|
|
38
38
|
} catch {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
return
|
|
40
|
+
var b = Ge.call(t);
|
|
41
|
+
return d && (a ? t[z] = n : delete t[z]), b;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
return
|
|
43
|
+
var We = Ve, Ke = Object.prototype, Ue = Ke.toString;
|
|
44
|
+
function He(t) {
|
|
45
|
+
return Ue.call(t);
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function Qe(t) {
|
|
49
|
-
return t == null ? t === void 0 ? Je : qe : Z && Z in Object(t) ? He(t) : Xe(t);
|
|
50
|
-
}
|
|
51
|
-
var Ye = Qe;
|
|
47
|
+
var Xe = He, Z = ie, qe = We, Je = Xe, Qe = "[object Null]", Ye = "[object Undefined]", _ = Z ? Z.toStringTag : void 0;
|
|
52
48
|
function Ze(t) {
|
|
49
|
+
return t == null ? t === void 0 ? Ye : Qe : _ && _ in Object(t) ? qe(t) : Je(t);
|
|
50
|
+
}
|
|
51
|
+
var _e = Ze;
|
|
52
|
+
function xe(t) {
|
|
53
53
|
return t != null && typeof t == "object";
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
57
|
-
return typeof t == "symbol" ||
|
|
55
|
+
var et = xe, tt = _e, nt = et, at = "[object Symbol]";
|
|
56
|
+
function it(t) {
|
|
57
|
+
return typeof t == "symbol" || nt(t) && tt(t) == at;
|
|
58
58
|
}
|
|
59
|
-
var
|
|
60
|
-
function
|
|
59
|
+
var rt = it, ot = Ne, x = ne, lt = rt, ee = NaN, ut = /^[-+]0x[0-9a-f]+$/i, st = /^0b[01]+$/i, dt = /^0o[0-7]+$/i, ft = parseInt;
|
|
60
|
+
function bt(t) {
|
|
61
61
|
if (typeof t == "number")
|
|
62
62
|
return t;
|
|
63
|
-
if (
|
|
64
|
-
return
|
|
65
|
-
if (
|
|
63
|
+
if (lt(t))
|
|
64
|
+
return ee;
|
|
65
|
+
if (x(t)) {
|
|
66
66
|
var a = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
67
|
-
t =
|
|
67
|
+
t = x(a) ? a + "" : a;
|
|
68
68
|
}
|
|
69
69
|
if (typeof t != "string")
|
|
70
70
|
return t === 0 ? t : +t;
|
|
71
|
-
t =
|
|
72
|
-
var n =
|
|
73
|
-
return n ||
|
|
71
|
+
t = ot(t);
|
|
72
|
+
var n = st.test(t);
|
|
73
|
+
return n || dt.test(t) ? ft(t.slice(2), n ? 2 : 8) : ut.test(t) ? ee : +t;
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
function
|
|
77
|
-
var
|
|
75
|
+
var ct = bt, mt = ne, W = De, te = ct, pt = "Expected a function", yt = Math.max, gt = Math.min;
|
|
76
|
+
function vt(t, a, n) {
|
|
77
|
+
var d, b, g, f, r, c, v = 0, p = !1, k = !1, C = !0;
|
|
78
78
|
if (typeof t != "function")
|
|
79
|
-
throw new TypeError(
|
|
80
|
-
a =
|
|
81
|
-
function
|
|
82
|
-
var
|
|
83
|
-
return
|
|
79
|
+
throw new TypeError(pt);
|
|
80
|
+
a = te(a) || 0, mt(n) && (p = !!n.leading, k = "maxWait" in n, g = k ? yt(te(n.maxWait) || 0, a) : g, C = "trailing" in n ? !!n.trailing : C);
|
|
81
|
+
function $(o) {
|
|
82
|
+
var y = d, j = b;
|
|
83
|
+
return d = b = void 0, v = o, f = t.apply(j, y), f;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return v =
|
|
85
|
+
function A(o) {
|
|
86
|
+
return v = o, r = setTimeout(T, a), p ? $(o) : f;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
var
|
|
90
|
-
return k ?
|
|
88
|
+
function N(o) {
|
|
89
|
+
var y = o - c, j = o - v, U = a - y;
|
|
90
|
+
return k ? gt(U, g - j) : U;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
var
|
|
94
|
-
return
|
|
92
|
+
function S(o) {
|
|
93
|
+
var y = o - c, j = o - v;
|
|
94
|
+
return c === void 0 || y >= a || y < 0 || k && j >= g;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
var
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
100
|
-
|
|
96
|
+
function T() {
|
|
97
|
+
var o = W();
|
|
98
|
+
if (S(o))
|
|
99
|
+
return e(o);
|
|
100
|
+
r = setTimeout(T, N(o));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
102
|
+
function e(o) {
|
|
103
|
+
return r = void 0, C && d ? $(o) : (d = b = void 0, f);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function h() {
|
|
106
|
+
r !== void 0 && clearTimeout(r), v = 0, d = c = b = r = void 0;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function R() {
|
|
109
|
+
return r === void 0 ? f : e(W());
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
var
|
|
113
|
-
if (
|
|
114
|
-
if (
|
|
115
|
-
return
|
|
111
|
+
function i() {
|
|
112
|
+
var o = W(), y = S(o);
|
|
113
|
+
if (d = arguments, b = this, c = o, y) {
|
|
114
|
+
if (r === void 0)
|
|
115
|
+
return A(c);
|
|
116
116
|
if (k)
|
|
117
|
-
return clearTimeout(
|
|
117
|
+
return clearTimeout(r), r = setTimeout(T, a), $(c);
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return r === void 0 && (r = setTimeout(T, a)), f;
|
|
120
120
|
}
|
|
121
|
-
return
|
|
121
|
+
return i.cancel = h, i.flush = R, i;
|
|
122
122
|
}
|
|
123
|
-
var
|
|
124
|
-
const
|
|
123
|
+
var kt = vt;
|
|
124
|
+
const K = /* @__PURE__ */ Te(kt), Tt = {
|
|
125
125
|
inheritAttrs: !1
|
|
126
126
|
// 不希望组件的根元素继承特性
|
|
127
|
-
},
|
|
128
|
-
...
|
|
127
|
+
}, ht = /* @__PURE__ */ ue({
|
|
128
|
+
...Tt,
|
|
129
129
|
__name: "Index",
|
|
130
130
|
props: {
|
|
131
131
|
btnType: { default: "primary" },
|
|
@@ -149,13 +149,16 @@ const V = /* @__PURE__ */ ve(gt), vt = {
|
|
|
149
149
|
},
|
|
150
150
|
emits: ["update:activeKey", "click"],
|
|
151
151
|
setup(t, { emit: a }) {
|
|
152
|
-
|
|
152
|
+
me({
|
|
153
153
|
fold: import("@das-fed/upf-ui/packages/icons/fold"),
|
|
154
154
|
unflod: import("@das-fed/upf-ui/packages/icons/unflod")
|
|
155
155
|
});
|
|
156
|
-
const n = t, b =
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
const n = t, d = a, b = se(), g = F(() => {
|
|
157
|
+
if (n.btnType === "default-basicset" || n.btnType === "primary-basicset")
|
|
158
|
+
return b.style;
|
|
159
|
+
});
|
|
160
|
+
let f = H(n.activeKey), r = H(n.icon);
|
|
161
|
+
const c = F(() => n.size === "small" ? "mini" : n.size === "middle" ? "small" : n.size === "large" ? "medium" : "small"), v = F(() => [
|
|
159
162
|
"das-ui-button",
|
|
160
163
|
`das-ui-button--${n.size}`,
|
|
161
164
|
`das-ui-button--${n.btnType}`,
|
|
@@ -165,84 +168,85 @@ const V = /* @__PURE__ */ ve(gt), vt = {
|
|
|
165
168
|
"das-ui-button--icon": !!n.icon
|
|
166
169
|
}
|
|
167
170
|
]);
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
de(() => {
|
|
172
|
+
d("update:activeKey", f.value);
|
|
170
173
|
});
|
|
171
|
-
const
|
|
172
|
-
document.body.click(),
|
|
173
|
-
},
|
|
174
|
+
const p = (e, h) => {
|
|
175
|
+
document.body.click(), d("click", e, h);
|
|
176
|
+
}, k = K(
|
|
174
177
|
(e) => {
|
|
175
|
-
|
|
178
|
+
r.value = n.icon, p(e, "menu-click");
|
|
176
179
|
},
|
|
177
180
|
300,
|
|
178
181
|
{
|
|
179
182
|
leading: !0
|
|
180
183
|
}
|
|
181
|
-
),
|
|
184
|
+
), C = K(
|
|
182
185
|
(e) => {
|
|
183
|
-
|
|
186
|
+
p(e, "button-click");
|
|
184
187
|
},
|
|
185
188
|
300,
|
|
186
189
|
{
|
|
187
190
|
leading: !0
|
|
188
191
|
}
|
|
189
|
-
),
|
|
192
|
+
), $ = K(
|
|
190
193
|
(e) => {
|
|
191
|
-
|
|
194
|
+
p(e, "self");
|
|
192
195
|
},
|
|
193
196
|
300,
|
|
194
197
|
{
|
|
195
198
|
leading: !0
|
|
196
199
|
}
|
|
197
|
-
),
|
|
198
|
-
n.isClickDebounce ?
|
|
199
|
-
},
|
|
200
|
-
n.isClickDebounce ?
|
|
201
|
-
},
|
|
202
|
-
n.isClickDebounce ?
|
|
203
|
-
},
|
|
204
|
-
e ?
|
|
200
|
+
), A = (e) => {
|
|
201
|
+
n.isClickDebounce ? $(e) : p(e, "self");
|
|
202
|
+
}, N = (e) => {
|
|
203
|
+
n.isClickDebounce ? C(e) : p(e, "button-click");
|
|
204
|
+
}, S = (e) => {
|
|
205
|
+
n.isClickDebounce ? k(e) : (r.value = n.icon, p(e, "menu-click"));
|
|
206
|
+
}, T = (e) => {
|
|
207
|
+
e ? r.value = n.activeIcon ? n.activeIcon : n.icon : r.value = n.icon;
|
|
205
208
|
};
|
|
206
|
-
return (e,
|
|
207
|
-
const
|
|
208
|
-
return
|
|
209
|
-
class:
|
|
209
|
+
return (e, h) => {
|
|
210
|
+
const R = le;
|
|
211
|
+
return u(), I("div", {
|
|
212
|
+
class: fe(v.value),
|
|
213
|
+
style: be(g.value)
|
|
210
214
|
}, [
|
|
211
|
-
|
|
212
|
-
default:
|
|
213
|
-
e.btnType === "default-sameset" || e.btnType === "primary-sameset" ? (
|
|
215
|
+
D(R, { autoInsertSpaceInButton: !1 }, {
|
|
216
|
+
default: s(() => [
|
|
217
|
+
e.btnType === "default-sameset" || e.btnType === "primary-sameset" ? (u(), m(l(pe), B({ key: 0 }, e.$attrs, {
|
|
214
218
|
tabindex: "-1",
|
|
215
219
|
trigger: e.trigger,
|
|
216
220
|
disabled: e.disabled,
|
|
217
221
|
getPopupContainer: e.getPopupContainer,
|
|
218
|
-
onVisibleChange:
|
|
219
|
-
onClick:
|
|
222
|
+
onVisibleChange: T,
|
|
223
|
+
onClick: N,
|
|
220
224
|
type: e.btnType === "primary-sameset" ? "primary" : "default",
|
|
221
225
|
class: `${e.block ? "block" : ""} ${e.size}`
|
|
222
|
-
}),
|
|
223
|
-
icon:
|
|
224
|
-
e.icon ? (
|
|
226
|
+
}), X({
|
|
227
|
+
icon: s(() => [
|
|
228
|
+
e.icon ? (u(), m(l(M), {
|
|
225
229
|
key: 0,
|
|
226
|
-
icon:
|
|
227
|
-
size:
|
|
228
|
-
}, null, 8, ["icon", "size"])) :
|
|
230
|
+
icon: l(r),
|
|
231
|
+
size: c.value
|
|
232
|
+
}, null, 8, ["icon", "size"])) : O("", !0)
|
|
229
233
|
]),
|
|
230
|
-
default:
|
|
231
|
-
|
|
234
|
+
default: s(() => [
|
|
235
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
232
236
|
]),
|
|
233
237
|
_: 2
|
|
234
238
|
}, [
|
|
235
239
|
e.menuData && e.menuData.length > 0 ? {
|
|
236
240
|
name: "overlay",
|
|
237
|
-
fn:
|
|
238
|
-
|
|
239
|
-
default:
|
|
240
|
-
(
|
|
241
|
-
key:
|
|
242
|
-
disabled:
|
|
241
|
+
fn: s(() => [
|
|
242
|
+
D(l(q), { onClick: S }, {
|
|
243
|
+
default: s(() => [
|
|
244
|
+
(u(!0), I(w, null, L(e.menuData, (i) => (u(), m(l(J), {
|
|
245
|
+
key: i[e.defaultMenuProps.key],
|
|
246
|
+
disabled: i.disabled
|
|
243
247
|
}, {
|
|
244
|
-
default:
|
|
245
|
-
|
|
248
|
+
default: s(() => [
|
|
249
|
+
G(V(i[e.defaultMenuProps.label]), 1)
|
|
246
250
|
]),
|
|
247
251
|
_: 2
|
|
248
252
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -252,25 +256,25 @@ const V = /* @__PURE__ */ ve(gt), vt = {
|
|
|
252
256
|
]),
|
|
253
257
|
key: "0"
|
|
254
258
|
} : void 0
|
|
255
|
-
]), 1040, ["trigger", "disabled", "getPopupContainer", "type", "class"])) : e.btnType === "default-basicset" || e.btnType === "primary-basicset" ? (
|
|
259
|
+
]), 1040, ["trigger", "disabled", "getPopupContainer", "type", "class"])) : e.btnType === "default-basicset" || e.btnType === "primary-basicset" ? (u(), m(l(ye), B({ key: 1 }, e.$attrs, {
|
|
256
260
|
tabindex: "-1",
|
|
257
261
|
type: e.btnType === "primary-basicset" ? "primary" : "default",
|
|
258
262
|
trigger: e.trigger,
|
|
259
263
|
disabled: e.disabled,
|
|
260
264
|
ref: "basicsetDropdownRef",
|
|
261
265
|
class: `${e.block ? "block" : ""} ${e.btnType === "primary-basicset" ? "primary" : "default"} ${e.size}`,
|
|
262
|
-
onVisibleChange:
|
|
266
|
+
onVisibleChange: T,
|
|
263
267
|
overlayClassName: "basicset-dropdown-wrap"
|
|
264
|
-
}),
|
|
265
|
-
default:
|
|
266
|
-
|
|
267
|
-
default:
|
|
268
|
-
|
|
269
|
-
e.icon ? (
|
|
268
|
+
}), X({
|
|
269
|
+
default: s(() => [
|
|
270
|
+
D(l(Q), null, {
|
|
271
|
+
default: s(() => [
|
|
272
|
+
P(e.$slots, "default", {}, void 0, !0),
|
|
273
|
+
e.icon ? (u(), m(l(M), {
|
|
270
274
|
key: 0,
|
|
271
|
-
icon:
|
|
275
|
+
icon: l(r),
|
|
272
276
|
size: e.size === "small" ? "medium" : e.size === "middle" ? "big" : e.size === "large" ? "large" : "big"
|
|
273
|
-
}, null, 8, ["icon", "size"])) :
|
|
277
|
+
}, null, 8, ["icon", "size"])) : O("", !0)
|
|
274
278
|
]),
|
|
275
279
|
_: 3
|
|
276
280
|
})
|
|
@@ -279,16 +283,16 @@ const V = /* @__PURE__ */ ve(gt), vt = {
|
|
|
279
283
|
}, [
|
|
280
284
|
e.menuData && e.menuData.length > 0 ? {
|
|
281
285
|
name: "overlay",
|
|
282
|
-
fn:
|
|
283
|
-
|
|
284
|
-
default:
|
|
285
|
-
(
|
|
286
|
-
key:
|
|
287
|
-
disabled:
|
|
286
|
+
fn: s(() => [
|
|
287
|
+
D(l(q), { onClick: S }, {
|
|
288
|
+
default: s(() => [
|
|
289
|
+
(u(!0), I(w, null, L(e.menuData, (i) => (u(), m(l(J), {
|
|
290
|
+
key: i[e.defaultMenuProps.key],
|
|
291
|
+
disabled: i.disabled
|
|
288
292
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
|
|
291
|
-
|
|
293
|
+
default: s(() => [
|
|
294
|
+
P(e.$slots, "menu-item", { item: i }, () => [
|
|
295
|
+
G(V(i[e.defaultMenuProps.label]), 1)
|
|
292
296
|
], !0)
|
|
293
297
|
]),
|
|
294
298
|
_: 2
|
|
@@ -299,63 +303,63 @@ const V = /* @__PURE__ */ ve(gt), vt = {
|
|
|
299
303
|
]),
|
|
300
304
|
key: "0"
|
|
301
305
|
} : void 0
|
|
302
|
-
]), 1040, ["type", "trigger", "disabled", "class"])) : e.btnType === "tabs" ? (
|
|
303
|
-
e.menuData && e.menuData.length > 0 ? (
|
|
306
|
+
]), 1040, ["type", "trigger", "disabled", "class"])) : e.btnType === "tabs" ? (u(), I(w, { key: 2 }, [
|
|
307
|
+
e.menuData && e.menuData.length > 0 ? (u(), m(l(ge), B({ key: 0 }, e.$attrs, {
|
|
304
308
|
tabindex: "-1",
|
|
305
309
|
disabled: e.disabled,
|
|
306
|
-
value:
|
|
307
|
-
"onUpdate:value":
|
|
310
|
+
value: l(f),
|
|
311
|
+
"onUpdate:value": h[0] || (h[0] = (i) => ce(f) ? f.value = i : f = i)
|
|
308
312
|
}), {
|
|
309
|
-
default:
|
|
310
|
-
(
|
|
311
|
-
key:
|
|
312
|
-
value:
|
|
313
|
-
disabled:
|
|
313
|
+
default: s(() => [
|
|
314
|
+
(u(!0), I(w, null, L(e.menuData, (i) => (u(), m(l(ve), {
|
|
315
|
+
key: i[e.defaultMenuProps.key],
|
|
316
|
+
value: i[e.defaultMenuProps.key],
|
|
317
|
+
disabled: i.disabled
|
|
314
318
|
}, {
|
|
315
|
-
default:
|
|
316
|
-
|
|
319
|
+
default: s(() => [
|
|
320
|
+
G(V(i[e.defaultMenuProps.label]), 1)
|
|
317
321
|
]),
|
|
318
322
|
_: 2
|
|
319
323
|
}, 1032, ["value", "disabled"]))), 128))
|
|
320
324
|
]),
|
|
321
325
|
_: 1
|
|
322
|
-
}, 16, ["disabled", "value"])) :
|
|
323
|
-
], 64)) : (
|
|
326
|
+
}, 16, ["disabled", "value"])) : O("", !0)
|
|
327
|
+
], 64)) : (u(), m(l(Q), B({ key: 3 }, e.$attrs, {
|
|
324
328
|
tabindex: "-1",
|
|
325
329
|
type: e.btnType && ["primary-text", "default-text"].includes(e.btnType) ? "text" : e.btnType,
|
|
326
330
|
size: e.size,
|
|
327
331
|
disabled: e.disabled,
|
|
328
332
|
block: e.block,
|
|
329
333
|
ghost: e.ghost,
|
|
330
|
-
onClick:
|
|
334
|
+
onClick: A
|
|
331
335
|
}), {
|
|
332
|
-
default:
|
|
333
|
-
e.icon && e.isIconLeft ? (
|
|
336
|
+
default: s(() => [
|
|
337
|
+
e.icon && e.isIconLeft ? (u(), m(l(M), {
|
|
334
338
|
key: 0,
|
|
335
339
|
icon: e.icon,
|
|
336
|
-
size:
|
|
337
|
-
}, null, 8, ["icon", "size"])) :
|
|
338
|
-
|
|
339
|
-
e.icon && !e.isIconLeft ? (
|
|
340
|
+
size: c.value
|
|
341
|
+
}, null, 8, ["icon", "size"])) : O("", !0),
|
|
342
|
+
P(e.$slots, "default", {}, void 0, !0),
|
|
343
|
+
e.icon && !e.isIconLeft ? (u(), m(l(M), {
|
|
340
344
|
key: 1,
|
|
341
345
|
icon: e.icon,
|
|
342
|
-
size:
|
|
343
|
-
}, null, 8, ["icon", "size"])) :
|
|
346
|
+
size: c.value
|
|
347
|
+
}, null, 8, ["icon", "size"])) : O("", !0)
|
|
344
348
|
]),
|
|
345
349
|
_: 3
|
|
346
350
|
}, 16, ["type", "size", "disabled", "block", "ghost"]))
|
|
347
351
|
]),
|
|
348
352
|
_: 3
|
|
349
353
|
})
|
|
350
|
-
],
|
|
354
|
+
], 6);
|
|
351
355
|
};
|
|
352
356
|
}
|
|
353
|
-
}),
|
|
357
|
+
}), Ct = (t, a) => {
|
|
354
358
|
const n = t.__vccOpts || t;
|
|
355
|
-
for (const [
|
|
356
|
-
n[
|
|
359
|
+
for (const [d, b] of a)
|
|
360
|
+
n[d] = b;
|
|
357
361
|
return n;
|
|
358
|
-
},
|
|
362
|
+
}, $t = /* @__PURE__ */ Ct(ht, [["__scopeId", "data-v-721c200b"]]), St = {
|
|
359
363
|
"--demo-alert-bg": {
|
|
360
364
|
light: "#fff",
|
|
361
365
|
dark: "rgba(255,255,255,.2)"
|
|
@@ -375,9 +379,9 @@ const V = /* @__PURE__ */ ve(gt), vt = {
|
|
|
375
379
|
"--das-ui-button-set-active": "#3B5AA9",
|
|
376
380
|
"--das-ui-button-set-disabled": "#95A4C8"
|
|
377
381
|
};
|
|
378
|
-
|
|
379
|
-
const
|
|
382
|
+
ke(St);
|
|
383
|
+
const At = oe($t);
|
|
380
384
|
export {
|
|
381
|
-
|
|
382
|
-
|
|
385
|
+
At as DasButton,
|
|
386
|
+
At as default
|
|
383
387
|
};
|
|
Binary file
|