@das-fed/upf-ui 6.4.0-dev.162 → 6.4.0-dev.164
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 +5 -5
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +2 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +2 -0
- package/packages/components/button/index.js +234 -224
- 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/form/index.d.ts +2 -0
- package/packages/components/form/index.js +24 -23
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form/src/type.d.ts +2 -0
- package/packages/components/form-item/index.js +647 -637
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/hooks/use-form.d.ts +1 -0
- package/packages/components/form-item/src/type.d.ts +5 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +1 -1
- package/packages/components/select/index.js +3 -3
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-ui",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.164",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@antv/x6-plugin-snapline": "^2.1.7",
|
|
27
27
|
"@antv/x6-plugin-transform": "^2.1.8",
|
|
28
28
|
"@antv/x6-vue-shape": "^2.1.2",
|
|
29
|
-
"@das-fed/upf-ui": "6.4.0-dev.
|
|
29
|
+
"@das-fed/upf-ui": "6.4.0-dev.164",
|
|
30
30
|
"@element-plus/icons-vue": "^2.3.1",
|
|
31
31
|
"@types/lodash": "^4.14.194",
|
|
32
32
|
"@types/lodash-es": "^4.17.9",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"vue-tsc": "^2.0.29"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
60
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
61
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
59
|
+
"@das-fed/upf-cli": "6.4.0-dev.164",
|
|
60
|
+
"@das-fed/upf-utils": "6.4.0-dev.164",
|
|
61
|
+
"@das-fed/upf-web": "6.4.0-dev.164",
|
|
62
62
|
"@types/markdown-it": "^14.1.2",
|
|
63
63
|
"@wangeditor-next/editor": "5.6.31",
|
|
64
64
|
"@wangeditor-next/editor-for-vue": "5.1.14",
|
|
@@ -7,6 +7,7 @@ export declare const useChangePwd: (props: Props, emit: Emits) => {
|
|
|
7
7
|
$data: {};
|
|
8
8
|
$props: {
|
|
9
9
|
readonly labelLength?: number | string | undefined;
|
|
10
|
+
readonly labelWidth?: number | string | undefined;
|
|
10
11
|
readonly contentWidth?: number | string | undefined;
|
|
11
12
|
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
12
13
|
readonly alignType?: "vertical" | "horizontal" | undefined;
|
|
@@ -100,6 +101,7 @@ export declare const useChangePwd: (props: Props, emit: Emits) => {
|
|
|
100
101
|
$data: {};
|
|
101
102
|
$props: {
|
|
102
103
|
readonly labelLength?: number | string | undefined;
|
|
104
|
+
readonly labelWidth?: number | string | undefined;
|
|
103
105
|
readonly contentWidth?: number | string | undefined;
|
|
104
106
|
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
105
107
|
readonly alignType?: "vertical" | "horizontal" | undefined;
|
|
@@ -8,6 +8,7 @@ export declare const useForm: (props: any, emits: any, store: any) => {
|
|
|
8
8
|
$data: {};
|
|
9
9
|
$props: {
|
|
10
10
|
readonly labelLength?: number | string | undefined;
|
|
11
|
+
readonly labelWidth?: number | string | undefined;
|
|
11
12
|
readonly contentWidth?: number | string | undefined;
|
|
12
13
|
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
13
14
|
readonly alignType?: "vertical" | "horizontal" | undefined;
|
|
@@ -101,6 +102,7 @@ export declare const useForm: (props: any, emits: any, store: any) => {
|
|
|
101
102
|
$data: {};
|
|
102
103
|
$props: {
|
|
103
104
|
readonly labelLength?: number | string | undefined;
|
|
105
|
+
readonly labelWidth?: number | string | undefined;
|
|
104
106
|
readonly contentWidth?: number | string | undefined;
|
|
105
107
|
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
106
108
|
readonly alignType?: "vertical" | "horizontal" | undefined;
|
|
@@ -1,114 +1,116 @@
|
|
|
1
1
|
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
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
3
|
+
import { ConfigProvider as le } from "ant-design-vue/es";
|
|
4
|
+
import "ant-design-vue/es/config-provider/style/css";
|
|
5
|
+
import { defineComponent as ue, ref as K, computed as U, watchEffect as se, createElementBlock as $, openBlock as l, normalizeClass as de, createVNode as B, withCtx as f, createBlock as m, unref as o, mergeProps as P, createSlots as H, renderSlot as w, createCommentVNode as S, Fragment as M, renderList as R, createTextVNode as F, toDisplayString as L, isRef as fe } from "vue";
|
|
6
|
+
import { DasAutoRegisterIcon as be, DasIcon as E } from "@das-fed/upf-ui/packages/components/icon/index";
|
|
7
|
+
import { DropdownButton as ce, Menu as X, MenuItem as q, Dropdown as me, Button as J, RadioGroup as pe, RadioButton as ye } from "ant-design-vue";
|
|
6
8
|
import "ant-design-vue/es/button/style/css";
|
|
7
9
|
import "ant-design-vue/es/dropdown/style/css";
|
|
8
10
|
import "ant-design-vue/es/radio/style/css";
|
|
9
|
-
import { setThemeRule as
|
|
10
|
-
var
|
|
11
|
-
function
|
|
11
|
+
import { setThemeRule as ge } from "@das-fed/upf-web/packages/theme/index";
|
|
12
|
+
var A = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
13
|
+
function ve(t) {
|
|
12
14
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
13
15
|
}
|
|
14
|
-
function
|
|
16
|
+
function ke(t) {
|
|
15
17
|
var a = typeof t;
|
|
16
18
|
return t != null && (a == "object" || a == "function");
|
|
17
19
|
}
|
|
18
|
-
var
|
|
20
|
+
var te = ke, Te = typeof A == "object" && A && A.Object === Object && A, he = Te, Ce = he, $e = typeof self == "object" && self && self.Object === Object && self, Se = Ce || $e || Function("return this")(), ne = Se, je = ne, Ie = function() {
|
|
19
21
|
return je.Date.now();
|
|
20
|
-
},
|
|
21
|
-
function
|
|
22
|
-
for (var a = t.length; a-- &&
|
|
22
|
+
}, Oe = Ie, De = /\s/;
|
|
23
|
+
function ze(t) {
|
|
24
|
+
for (var a = t.length; a-- && De.test(t.charAt(a)); )
|
|
23
25
|
;
|
|
24
26
|
return a;
|
|
25
27
|
}
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
return t && t.slice(0,
|
|
28
|
+
var Be = ze, Pe = Be, we = /^\s+/;
|
|
29
|
+
function Me(t) {
|
|
30
|
+
return t && t.slice(0, Pe(t) + 1).replace(we, "");
|
|
29
31
|
}
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
var a =
|
|
32
|
+
var Ee = Me, Ae = ne, Ne = Ae.Symbol, ae = Ne, Q = ae, ie = Object.prototype, Re = ie.hasOwnProperty, Fe = ie.toString, j = Q ? Q.toStringTag : void 0;
|
|
33
|
+
function Le(t) {
|
|
34
|
+
var a = Re.call(t, j), n = t[j];
|
|
33
35
|
try {
|
|
34
|
-
t[
|
|
35
|
-
var
|
|
36
|
+
t[j] = void 0;
|
|
37
|
+
var b = !0;
|
|
36
38
|
} catch {
|
|
37
39
|
}
|
|
38
|
-
var u =
|
|
39
|
-
return
|
|
40
|
+
var u = Fe.call(t);
|
|
41
|
+
return b && (a ? t[j] = n : delete t[j]), u;
|
|
40
42
|
}
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
43
|
+
var Ge = Le, Ve = Object.prototype, We = Ve.toString;
|
|
44
|
+
function Ke(t) {
|
|
45
|
+
return We.call(t);
|
|
44
46
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return t == null ? t === void 0 ?
|
|
47
|
+
var Ue = Ke, Y = ae, He = Ge, Xe = Ue, qe = "[object Null]", Je = "[object Undefined]", Z = Y ? Y.toStringTag : void 0;
|
|
48
|
+
function Qe(t) {
|
|
49
|
+
return t == null ? t === void 0 ? Je : qe : Z && Z in Object(t) ? He(t) : Xe(t);
|
|
48
50
|
}
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
+
var Ye = Qe;
|
|
52
|
+
function Ze(t) {
|
|
51
53
|
return t != null && typeof t == "object";
|
|
52
54
|
}
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
return typeof t == "symbol" ||
|
|
55
|
+
var _e = Ze, xe = Ye, et = _e, tt = "[object Symbol]";
|
|
56
|
+
function nt(t) {
|
|
57
|
+
return typeof t == "symbol" || et(t) && xe(t) == tt;
|
|
56
58
|
}
|
|
57
|
-
var
|
|
58
|
-
function
|
|
59
|
+
var at = nt, it = Ee, _ = te, rt = at, x = NaN, ot = /^[-+]0x[0-9a-f]+$/i, lt = /^0b[01]+$/i, ut = /^0o[0-7]+$/i, st = parseInt;
|
|
60
|
+
function dt(t) {
|
|
59
61
|
if (typeof t == "number")
|
|
60
62
|
return t;
|
|
61
|
-
if (
|
|
62
|
-
return
|
|
63
|
-
if (
|
|
63
|
+
if (rt(t))
|
|
64
|
+
return x;
|
|
65
|
+
if (_(t)) {
|
|
64
66
|
var a = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
65
|
-
t =
|
|
67
|
+
t = _(a) ? a + "" : a;
|
|
66
68
|
}
|
|
67
69
|
if (typeof t != "string")
|
|
68
70
|
return t === 0 ? t : +t;
|
|
69
|
-
t =
|
|
70
|
-
var n =
|
|
71
|
-
return n ||
|
|
71
|
+
t = it(t);
|
|
72
|
+
var n = lt.test(t);
|
|
73
|
+
return n || ut.test(t) ? st(t.slice(2), n ? 2 : 8) : ot.test(t) ? x : +t;
|
|
72
74
|
}
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
var
|
|
75
|
+
var ft = dt, bt = te, G = Oe, ee = ft, ct = "Expected a function", mt = Math.max, pt = Math.min;
|
|
76
|
+
function yt(t, a, n) {
|
|
77
|
+
var b, u, c, p, s, d, v = 0, I = !1, k = !1, T = !0;
|
|
76
78
|
if (typeof t != "function")
|
|
77
|
-
throw new TypeError(
|
|
78
|
-
a =
|
|
79
|
-
function h(
|
|
80
|
-
var g =
|
|
81
|
-
return
|
|
79
|
+
throw new TypeError(ct);
|
|
80
|
+
a = ee(a) || 0, bt(n) && (I = !!n.leading, k = "maxWait" in n, c = k ? mt(ee(n.maxWait) || 0, a) : c, T = "trailing" in n ? !!n.trailing : T);
|
|
81
|
+
function h(i) {
|
|
82
|
+
var g = b, C = u;
|
|
83
|
+
return b = u = void 0, v = i, p = t.apply(C, g), p;
|
|
82
84
|
}
|
|
83
|
-
function O(
|
|
84
|
-
return v =
|
|
85
|
+
function O(i) {
|
|
86
|
+
return v = i, s = setTimeout(y, a), I ? h(i) : p;
|
|
85
87
|
}
|
|
86
|
-
function D(
|
|
87
|
-
var g =
|
|
88
|
-
return k ?
|
|
88
|
+
function D(i) {
|
|
89
|
+
var g = i - d, C = i - v, W = a - g;
|
|
90
|
+
return k ? pt(W, c - C) : W;
|
|
89
91
|
}
|
|
90
|
-
function e(
|
|
91
|
-
var g =
|
|
92
|
-
return d === void 0 || g >= a || g < 0 || k &&
|
|
92
|
+
function e(i) {
|
|
93
|
+
var g = i - d, C = i - v;
|
|
94
|
+
return d === void 0 || g >= a || g < 0 || k && C >= c;
|
|
93
95
|
}
|
|
94
96
|
function y() {
|
|
95
|
-
var
|
|
96
|
-
if (e(
|
|
97
|
-
return i
|
|
98
|
-
s = setTimeout(y, D(
|
|
97
|
+
var i = G();
|
|
98
|
+
if (e(i))
|
|
99
|
+
return z(i);
|
|
100
|
+
s = setTimeout(y, D(i));
|
|
99
101
|
}
|
|
100
|
-
function i
|
|
101
|
-
return s = void 0, T &&
|
|
102
|
+
function z(i) {
|
|
103
|
+
return s = void 0, T && b ? h(i) : (b = u = void 0, p);
|
|
102
104
|
}
|
|
103
|
-
function
|
|
104
|
-
s !== void 0 && clearTimeout(s), v = 0,
|
|
105
|
+
function r() {
|
|
106
|
+
s !== void 0 && clearTimeout(s), v = 0, b = d = u = s = void 0;
|
|
105
107
|
}
|
|
106
108
|
function re() {
|
|
107
|
-
return s === void 0 ? p :
|
|
109
|
+
return s === void 0 ? p : z(G());
|
|
108
110
|
}
|
|
109
|
-
function
|
|
110
|
-
var
|
|
111
|
-
if (
|
|
111
|
+
function N() {
|
|
112
|
+
var i = G(), g = e(i);
|
|
113
|
+
if (b = arguments, u = this, d = i, g) {
|
|
112
114
|
if (s === void 0)
|
|
113
115
|
return O(d);
|
|
114
116
|
if (k)
|
|
@@ -116,14 +118,14 @@ function pt(t, a, n) {
|
|
|
116
118
|
}
|
|
117
119
|
return s === void 0 && (s = setTimeout(y, a)), p;
|
|
118
120
|
}
|
|
119
|
-
return
|
|
121
|
+
return N.cancel = r, N.flush = re, N;
|
|
120
122
|
}
|
|
121
|
-
var
|
|
122
|
-
const
|
|
123
|
+
var gt = yt;
|
|
124
|
+
const V = /* @__PURE__ */ ve(gt), vt = {
|
|
123
125
|
inheritAttrs: !1
|
|
124
126
|
// 不希望组件的根元素继承特性
|
|
125
|
-
},
|
|
126
|
-
...
|
|
127
|
+
}, kt = /* @__PURE__ */ ue({
|
|
128
|
+
...vt,
|
|
127
129
|
__name: "Index",
|
|
128
130
|
props: {
|
|
129
131
|
btnType: { default: "primary" },
|
|
@@ -147,13 +149,13 @@ const G = /* @__PURE__ */ ge(yt), gt = {
|
|
|
147
149
|
},
|
|
148
150
|
emits: ["update:activeKey", "click"],
|
|
149
151
|
setup(t, { emit: a }) {
|
|
150
|
-
|
|
152
|
+
be({
|
|
151
153
|
fold: import("@das-fed/upf-ui/packages/icons/fold"),
|
|
152
154
|
unflod: import("@das-fed/upf-ui/packages/icons/unflod")
|
|
153
155
|
});
|
|
154
|
-
const n = t,
|
|
155
|
-
let u =
|
|
156
|
-
const p =
|
|
156
|
+
const n = t, b = a;
|
|
157
|
+
let u = K(n.activeKey), c = K(n.icon);
|
|
158
|
+
const p = U(() => n.size === "small" ? "mini" : n.size === "middle" ? "small" : n.size === "large" ? "medium" : "small"), s = U(() => [
|
|
157
159
|
"das-ui-button",
|
|
158
160
|
`das-ui-button--${n.size}`,
|
|
159
161
|
`das-ui-button--${n.btnType}`,
|
|
@@ -163,12 +165,12 @@ const G = /* @__PURE__ */ ge(yt), gt = {
|
|
|
163
165
|
"das-ui-button--icon": !!n.icon
|
|
164
166
|
}
|
|
165
167
|
]);
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
se(() => {
|
|
169
|
+
b("update:activeKey", u.value);
|
|
168
170
|
});
|
|
169
171
|
const d = (e, y) => {
|
|
170
|
-
document.body.click(),
|
|
171
|
-
}, v =
|
|
172
|
+
document.body.click(), b("click", e, y);
|
|
173
|
+
}, v = V(
|
|
172
174
|
(e) => {
|
|
173
175
|
c.value = n.icon, d(e, "menu-click");
|
|
174
176
|
},
|
|
@@ -176,7 +178,7 @@ const G = /* @__PURE__ */ ge(yt), gt = {
|
|
|
176
178
|
{
|
|
177
179
|
leading: !0
|
|
178
180
|
}
|
|
179
|
-
), I =
|
|
181
|
+
), I = V(
|
|
180
182
|
(e) => {
|
|
181
183
|
d(e, "button-click");
|
|
182
184
|
},
|
|
@@ -184,7 +186,7 @@ const G = /* @__PURE__ */ ge(yt), gt = {
|
|
|
184
186
|
{
|
|
185
187
|
leading: !0
|
|
186
188
|
}
|
|
187
|
-
), k =
|
|
189
|
+
), k = V(
|
|
188
190
|
(e) => {
|
|
189
191
|
d(e, "self");
|
|
190
192
|
},
|
|
@@ -201,151 +203,159 @@ const G = /* @__PURE__ */ ge(yt), gt = {
|
|
|
201
203
|
}, D = (e) => {
|
|
202
204
|
e ? c.value = n.activeIcon ? n.activeIcon : n.icon : c.value = n.icon;
|
|
203
205
|
};
|
|
204
|
-
return (e, y) =>
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
tabindex: "-1",
|
|
209
|
-
trigger: e.trigger,
|
|
210
|
-
disabled: e.disabled,
|
|
211
|
-
getPopupContainer: e.getPopupContainer,
|
|
212
|
-
onVisibleChange: D,
|
|
213
|
-
onClick: h,
|
|
214
|
-
type: e.btnType === "primary-sameset" ? "primary" : "default",
|
|
215
|
-
class: `${e.block ? "block" : ""} ${e.size}`
|
|
216
|
-
}), U({
|
|
217
|
-
icon: b(() => [
|
|
218
|
-
e.icon ? (l(), m(o(P), {
|
|
219
|
-
key: 0,
|
|
220
|
-
icon: o(c),
|
|
221
|
-
size: p.value
|
|
222
|
-
}, null, 8, ["icon", "size"])) : j("", !0)
|
|
223
|
-
]),
|
|
224
|
-
default: b(() => [
|
|
225
|
-
B(e.$slots, "default", {}, void 0, !0)
|
|
226
|
-
]),
|
|
227
|
-
_: 2
|
|
206
|
+
return (e, y) => {
|
|
207
|
+
const z = le;
|
|
208
|
+
return l(), $("div", {
|
|
209
|
+
class: de(s.value)
|
|
228
210
|
}, [
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
211
|
+
B(z, { autoInsertSpaceInButton: !1 }, {
|
|
212
|
+
default: f(() => [
|
|
213
|
+
e.btnType === "default-sameset" || e.btnType === "primary-sameset" ? (l(), m(o(ce), P({ key: 0 }, e.$attrs, {
|
|
214
|
+
tabindex: "-1",
|
|
215
|
+
trigger: e.trigger,
|
|
216
|
+
disabled: e.disabled,
|
|
217
|
+
getPopupContainer: e.getPopupContainer,
|
|
218
|
+
onVisibleChange: D,
|
|
219
|
+
onClick: h,
|
|
220
|
+
type: e.btnType === "primary-sameset" ? "primary" : "default",
|
|
221
|
+
class: `${e.block ? "block" : ""} ${e.size}`
|
|
222
|
+
}), H({
|
|
223
|
+
icon: f(() => [
|
|
224
|
+
e.icon ? (l(), m(o(E), {
|
|
225
|
+
key: 0,
|
|
226
|
+
icon: o(c),
|
|
227
|
+
size: p.value
|
|
228
|
+
}, null, 8, ["icon", "size"])) : S("", !0)
|
|
243
229
|
]),
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
]),
|
|
247
|
-
key: "0"
|
|
248
|
-
} : void 0
|
|
249
|
-
]), 1040, ["trigger", "disabled", "getPopupContainer", "type", "class"])) : e.btnType === "default-basicset" || e.btnType === "primary-basicset" ? (l(), m(o(ce), z({ key: 1 }, e.$attrs, {
|
|
250
|
-
tabindex: "-1",
|
|
251
|
-
type: e.btnType === "primary-basicset" ? "primary" : "default",
|
|
252
|
-
trigger: e.trigger,
|
|
253
|
-
disabled: e.disabled,
|
|
254
|
-
ref: "basicsetDropdownRef",
|
|
255
|
-
class: `${e.block ? "block" : ""} ${e.btnType === "primary-basicset" ? "primary" : "default"} ${e.size}`,
|
|
256
|
-
onVisibleChange: D,
|
|
257
|
-
overlayClassName: "basicset-dropdown-wrap"
|
|
258
|
-
}), U({
|
|
259
|
-
default: b(() => [
|
|
260
|
-
A(o(q), null, {
|
|
261
|
-
default: b(() => [
|
|
262
|
-
B(e.$slots, "default", {}, void 0, !0),
|
|
263
|
-
e.icon ? (l(), m(o(P), {
|
|
264
|
-
key: 0,
|
|
265
|
-
icon: o(c),
|
|
266
|
-
size: e.size === "small" ? "medium" : e.size === "middle" ? "big" : e.size === "large" ? "large" : "big"
|
|
267
|
-
}, null, 8, ["icon", "size"])) : j("", !0)
|
|
268
|
-
]),
|
|
269
|
-
_: 3
|
|
270
|
-
})
|
|
271
|
-
]),
|
|
272
|
-
_: 2
|
|
273
|
-
}, [
|
|
274
|
-
e.menuData && e.menuData.length > 0 ? {
|
|
275
|
-
name: "overlay",
|
|
276
|
-
fn: b(() => [
|
|
277
|
-
A(o(H), { onClick: O }, {
|
|
278
|
-
default: b(() => [
|
|
279
|
-
(l(!0), C(w, null, N(e.menuData, (i) => (l(), m(o(X), {
|
|
280
|
-
key: i[e.defaultMenuProps.key],
|
|
281
|
-
disabled: i.disabled
|
|
282
|
-
}, {
|
|
283
|
-
default: b(() => [
|
|
284
|
-
B(e.$slots, "menu-item", { item: i }, () => [
|
|
285
|
-
R(F(i[e.defaultMenuProps.label]), 1)
|
|
286
|
-
], !0)
|
|
287
|
-
]),
|
|
288
|
-
_: 2
|
|
289
|
-
}, 1032, ["disabled"]))), 128))
|
|
230
|
+
default: f(() => [
|
|
231
|
+
w(e.$slots, "default", {}, void 0, !0)
|
|
290
232
|
]),
|
|
291
|
-
_:
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
233
|
+
_: 2
|
|
234
|
+
}, [
|
|
235
|
+
e.menuData && e.menuData.length > 0 ? {
|
|
236
|
+
name: "overlay",
|
|
237
|
+
fn: f(() => [
|
|
238
|
+
B(o(X), { onClick: O }, {
|
|
239
|
+
default: f(() => [
|
|
240
|
+
(l(!0), $(M, null, R(e.menuData, (r) => (l(), m(o(q), {
|
|
241
|
+
key: r[e.defaultMenuProps.key],
|
|
242
|
+
disabled: r.disabled
|
|
243
|
+
}, {
|
|
244
|
+
default: f(() => [
|
|
245
|
+
F(L(r[e.defaultMenuProps.label]), 1)
|
|
246
|
+
]),
|
|
247
|
+
_: 2
|
|
248
|
+
}, 1032, ["disabled"]))), 128))
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
})
|
|
252
|
+
]),
|
|
253
|
+
key: "0"
|
|
254
|
+
} : void 0
|
|
255
|
+
]), 1040, ["trigger", "disabled", "getPopupContainer", "type", "class"])) : e.btnType === "default-basicset" || e.btnType === "primary-basicset" ? (l(), m(o(me), P({ key: 1 }, e.$attrs, {
|
|
256
|
+
tabindex: "-1",
|
|
257
|
+
type: e.btnType === "primary-basicset" ? "primary" : "default",
|
|
258
|
+
trigger: e.trigger,
|
|
259
|
+
disabled: e.disabled,
|
|
260
|
+
ref: "basicsetDropdownRef",
|
|
261
|
+
class: `${e.block ? "block" : ""} ${e.btnType === "primary-basicset" ? "primary" : "default"} ${e.size}`,
|
|
262
|
+
onVisibleChange: D,
|
|
263
|
+
overlayClassName: "basicset-dropdown-wrap"
|
|
264
|
+
}), H({
|
|
265
|
+
default: f(() => [
|
|
266
|
+
B(o(J), null, {
|
|
267
|
+
default: f(() => [
|
|
268
|
+
w(e.$slots, "default", {}, void 0, !0),
|
|
269
|
+
e.icon ? (l(), m(o(E), {
|
|
270
|
+
key: 0,
|
|
271
|
+
icon: o(c),
|
|
272
|
+
size: e.size === "small" ? "medium" : e.size === "middle" ? "big" : e.size === "large" ? "large" : "big"
|
|
273
|
+
}, null, 8, ["icon", "size"])) : S("", !0)
|
|
274
|
+
]),
|
|
275
|
+
_: 3
|
|
276
|
+
})
|
|
311
277
|
]),
|
|
312
278
|
_: 2
|
|
313
|
-
},
|
|
279
|
+
}, [
|
|
280
|
+
e.menuData && e.menuData.length > 0 ? {
|
|
281
|
+
name: "overlay",
|
|
282
|
+
fn: f(() => [
|
|
283
|
+
B(o(X), { onClick: O }, {
|
|
284
|
+
default: f(() => [
|
|
285
|
+
(l(!0), $(M, null, R(e.menuData, (r) => (l(), m(o(q), {
|
|
286
|
+
key: r[e.defaultMenuProps.key],
|
|
287
|
+
disabled: r.disabled
|
|
288
|
+
}, {
|
|
289
|
+
default: f(() => [
|
|
290
|
+
w(e.$slots, "menu-item", { item: r }, () => [
|
|
291
|
+
F(L(r[e.defaultMenuProps.label]), 1)
|
|
292
|
+
], !0)
|
|
293
|
+
]),
|
|
294
|
+
_: 2
|
|
295
|
+
}, 1032, ["disabled"]))), 128))
|
|
296
|
+
]),
|
|
297
|
+
_: 3
|
|
298
|
+
})
|
|
299
|
+
]),
|
|
300
|
+
key: "0"
|
|
301
|
+
} : void 0
|
|
302
|
+
]), 1040, ["type", "trigger", "disabled", "class"])) : e.btnType === "tabs" ? (l(), $(M, { key: 2 }, [
|
|
303
|
+
e.menuData && e.menuData.length > 0 ? (l(), m(o(pe), P({ key: 0 }, e.$attrs, {
|
|
304
|
+
tabindex: "-1",
|
|
305
|
+
disabled: e.disabled,
|
|
306
|
+
value: o(u),
|
|
307
|
+
"onUpdate:value": y[0] || (y[0] = (r) => fe(u) ? u.value = r : u = r)
|
|
308
|
+
}), {
|
|
309
|
+
default: f(() => [
|
|
310
|
+
(l(!0), $(M, null, R(e.menuData, (r) => (l(), m(o(ye), {
|
|
311
|
+
key: r[e.defaultMenuProps.key],
|
|
312
|
+
value: r[e.defaultMenuProps.key],
|
|
313
|
+
disabled: r.disabled
|
|
314
|
+
}, {
|
|
315
|
+
default: f(() => [
|
|
316
|
+
F(L(r[e.defaultMenuProps.label]), 1)
|
|
317
|
+
]),
|
|
318
|
+
_: 2
|
|
319
|
+
}, 1032, ["value", "disabled"]))), 128))
|
|
320
|
+
]),
|
|
321
|
+
_: 1
|
|
322
|
+
}, 16, ["disabled", "value"])) : S("", !0)
|
|
323
|
+
], 64)) : (l(), m(o(J), P({ key: 3 }, e.$attrs, {
|
|
324
|
+
tabindex: "-1",
|
|
325
|
+
type: e.btnType && ["primary-text", "default-text"].includes(e.btnType) ? "text" : e.btnType,
|
|
326
|
+
size: e.size,
|
|
327
|
+
disabled: e.disabled,
|
|
328
|
+
block: e.block,
|
|
329
|
+
ghost: e.ghost,
|
|
330
|
+
onClick: T
|
|
331
|
+
}), {
|
|
332
|
+
default: f(() => [
|
|
333
|
+
e.icon && e.isIconLeft ? (l(), m(o(E), {
|
|
334
|
+
key: 0,
|
|
335
|
+
icon: e.icon,
|
|
336
|
+
size: p.value
|
|
337
|
+
}, null, 8, ["icon", "size"])) : S("", !0),
|
|
338
|
+
w(e.$slots, "default", {}, void 0, !0),
|
|
339
|
+
e.icon && !e.isIconLeft ? (l(), m(o(E), {
|
|
340
|
+
key: 1,
|
|
341
|
+
icon: e.icon,
|
|
342
|
+
size: p.value
|
|
343
|
+
}, null, 8, ["icon", "size"])) : S("", !0)
|
|
344
|
+
]),
|
|
345
|
+
_: 3
|
|
346
|
+
}, 16, ["type", "size", "disabled", "block", "ghost"]))
|
|
314
347
|
]),
|
|
315
|
-
_:
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
|
|
319
|
-
type: e.btnType && ["primary-text", "default-text"].includes(e.btnType) ? "text" : e.btnType,
|
|
320
|
-
size: e.size,
|
|
321
|
-
disabled: e.disabled,
|
|
322
|
-
block: e.block,
|
|
323
|
-
ghost: e.ghost,
|
|
324
|
-
onClick: T
|
|
325
|
-
}), {
|
|
326
|
-
default: b(() => [
|
|
327
|
-
e.icon && e.isIconLeft ? (l(), m(o(P), {
|
|
328
|
-
key: 0,
|
|
329
|
-
icon: e.icon,
|
|
330
|
-
size: p.value
|
|
331
|
-
}, null, 8, ["icon", "size"])) : j("", !0),
|
|
332
|
-
B(e.$slots, "default", {}, void 0, !0),
|
|
333
|
-
e.icon && !e.isIconLeft ? (l(), m(o(P), {
|
|
334
|
-
key: 1,
|
|
335
|
-
icon: e.icon,
|
|
336
|
-
size: p.value
|
|
337
|
-
}, null, 8, ["icon", "size"])) : j("", !0)
|
|
338
|
-
]),
|
|
339
|
-
_: 3
|
|
340
|
-
}, 16, ["type", "size", "disabled", "block", "ghost"]))
|
|
341
|
-
], 2));
|
|
348
|
+
_: 3
|
|
349
|
+
})
|
|
350
|
+
], 2);
|
|
351
|
+
};
|
|
342
352
|
}
|
|
343
|
-
}),
|
|
353
|
+
}), Tt = (t, a) => {
|
|
344
354
|
const n = t.__vccOpts || t;
|
|
345
|
-
for (const [
|
|
346
|
-
n[
|
|
355
|
+
for (const [b, u] of a)
|
|
356
|
+
n[b] = u;
|
|
347
357
|
return n;
|
|
348
|
-
},
|
|
358
|
+
}, ht = /* @__PURE__ */ Tt(kt, [["__scopeId", "data-v-921381a2"]]), Ct = {
|
|
349
359
|
"--demo-alert-bg": {
|
|
350
360
|
light: "#fff",
|
|
351
361
|
dark: "rgba(255,255,255,.2)"
|
|
@@ -365,9 +375,9 @@ const G = /* @__PURE__ */ ge(yt), gt = {
|
|
|
365
375
|
"--das-ui-button-set-active": "#3B5AA9",
|
|
366
376
|
"--das-ui-button-set-disabled": "#95A4C8"
|
|
367
377
|
};
|
|
368
|
-
|
|
369
|
-
const
|
|
378
|
+
ge(Ct);
|
|
379
|
+
const Mt = oe(ht);
|
|
370
380
|
export {
|
|
371
|
-
|
|
372
|
-
|
|
381
|
+
Mt as DasButton,
|
|
382
|
+
Mt as default
|
|
373
383
|
};
|
|
Binary file
|