st-comp 0.0.178 → 0.0.180
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +3 -3
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -33
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +25 -30
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +457 -419
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +13 -16
- package/es/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +140 -142
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +274 -276
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +21 -23
- package/es/User.cjs +1 -1
- package/es/User.js +472 -482
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +440 -2878
- package/es/VarietySearch.cjs +12 -12
- package/es/VarietySearch.js +1199 -1176
- package/es/VirtualTable.cjs +1 -13
- package/es/VirtualTable.js +1547 -1567
- package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
- package/es/_initCloneObject-e2f0deb9.cjs +1 -0
- package/es/base-62a70f61.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/config-provider-178bb43c.cjs +1 -0
- package/es/config-provider-2e733cae.js +58 -0
- package/es/dayjs.min-2c20abe6.cjs +1 -0
- package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
- package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
- package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
- package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
- package/es/dropdown-f2fec683.cjs +1 -0
- package/es/el-button-5b08c08a.js +272 -0
- package/es/el-button-fc46a173.cjs +1 -0
- package/es/el-dialog-0b7166c9.cjs +1 -0
- package/es/el-dialog-d8d0da7a.js +276 -0
- package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
- package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
- package/es/el-empty-bb2b0235.cjs +1 -0
- package/es/el-form-item-caffd133.cjs +12 -0
- package/es/el-form-item-ff9c7d98.js +1267 -0
- package/es/el-input-6db30c8c.js +531 -0
- package/es/el-input-9c912678.cjs +1 -0
- package/es/el-input-number-05f150e5.js +311 -0
- package/es/el-input-number-6fe73563.cjs +1 -0
- package/es/el-loading-8514feaa.cjs +1 -0
- package/es/el-loading-93842445.js +203 -0
- package/es/el-menu-item-7a57c1be.cjs +1 -0
- package/es/el-menu-item-a886fbdd.js +768 -0
- package/es/el-message-8aa674f2.js +406 -0
- package/es/el-message-aad5b42b.cjs +1 -0
- package/es/el-message-box-2b6b2b68.js +550 -0
- package/es/el-message-box-53f355d7.cjs +1 -0
- package/es/el-overlay-540b2a02.js +324 -0
- package/es/el-overlay-96630a2e.cjs +1 -0
- package/es/el-popconfirm-2afdf6fb.cjs +1 -0
- package/es/el-popconfirm-c18d8035.js +162 -0
- package/es/el-popper-544fd77e.js +2412 -0
- package/es/el-popper-73466d7a.cjs +1 -0
- package/es/el-scrollbar-691cfc11.cjs +1 -0
- package/es/el-scrollbar-fae984e3.js +763 -0
- package/es/el-segmented-a7493831.js +142 -0
- package/es/el-segmented-b6bd3c0e.cjs +1 -0
- package/es/el-select-5959e837.cjs +1 -0
- package/es/el-select-ea8feecf.js +1251 -0
- package/es/el-table-column-9ef52443.js +3878 -0
- package/es/el-table-column-b824ac5c.cjs +14 -0
- package/es/el-tag-2fc9b9eb.js +116 -0
- package/es/el-tag-ecad6d02.cjs +1 -0
- package/es/index-2e331d74.js +10 -0
- package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
- package/es/index-3a74eae4.cjs +1 -0
- package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
- package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
- package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
- package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
- package/es/index-a9095b4a.js +163 -0
- package/es/index-a93dd9c4.cjs +1 -0
- package/es/index-ebd2fd7e.cjs +1 -0
- package/es/index-f1c702f6.cjs +1 -0
- package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
- package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
- package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
- package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-global-config-03735617.cjs +1 -0
- package/es/use-global-config-4b185eb5.js +71 -0
- package/es/validator-0e688e4e.cjs +1 -0
- package/es/validator-d12a8f8c.js +5 -0
- package/es/vnode-4db20540.cjs +1 -0
- package/es/vnode-a0795a4b.js +70 -0
- package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
- package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +226 -245
- package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
- package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlinePlus/index.vue +2 -1
- package/packages/VarSelectDialog/index.vue +43 -67
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
- package/packages/index.ts +0 -2
- package/src/pages/VarSelectDialog/index.vue +1 -1
- package/src/router/routes.ts +0 -5
- package/es/Dialog.cjs +0 -1
- package/es/Dialog.js +0 -95
- package/es/_commonjsHelpers-10dfc225.js +0 -8
- package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
- package/es/_initCloneObject-9ccbb113.cjs +0 -1
- package/es/base-bdc10baa.cjs +0 -5
- package/es/base-d9284bf0.js +0 -304
- package/es/castArray-37eb9980.cjs +0 -1
- package/es/castArray-b0ab0165.js +0 -10
- package/es/config-provider-ec6b09df.cjs +0 -1
- package/es/config-provider-f0151e9f.js +0 -47
- package/es/dayjs.min-19fb125f.cjs +0 -1
- package/es/dropdown-b2dab5bb.cjs +0 -1
- package/es/el-button-34665425.js +0 -237
- package/es/el-button-960edd49.cjs +0 -1
- package/es/el-dialog-a412484e.js +0 -267
- package/es/el-dialog-cd484c1f.cjs +0 -1
- package/es/el-empty-627ec09e.cjs +0 -1
- package/es/el-form-item-668ba024.js +0 -1263
- package/es/el-form-item-e1c3104b.cjs +0 -12
- package/es/el-input-22e66e37.js +0 -523
- package/es/el-input-5163bda3.cjs +0 -1
- package/es/el-input-number-481e21c5.js +0 -284
- package/es/el-input-number-eb54cde4.cjs +0 -1
- package/es/el-loading-15a5501c.cjs +0 -1
- package/es/el-loading-d4e403ab.js +0 -187
- package/es/el-menu-item-404c10e5.js +0 -772
- package/es/el-menu-item-ac89e804.cjs +0 -1
- package/es/el-message-ad87b9dd.cjs +0 -1
- package/es/el-message-box-41f39f6d.js +0 -558
- package/es/el-message-box-6694f827.cjs +0 -1
- package/es/el-message-ef506caa.js +0 -375
- package/es/el-overlay-4a9fa4e1.js +0 -269
- package/es/el-overlay-e5d318c3.cjs +0 -1
- package/es/el-popconfirm-7b9183aa.js +0 -140
- package/es/el-popconfirm-a497b279.cjs +0 -1
- package/es/el-popper-14a9d493.cjs +0 -1
- package/es/el-popper-e73466eb.js +0 -2263
- package/es/el-scrollbar-45318df0.js +0 -201
- package/es/el-scrollbar-8bf765f2.cjs +0 -1
- package/es/el-segmented-3ba6d664.cjs +0 -1
- package/es/el-segmented-41820018.js +0 -135
- package/es/el-select-1d2309a1.cjs +0 -1
- package/es/el-select-d7a00294.js +0 -1130
- package/es/el-table-column-a2d0c635.js +0 -3805
- package/es/el-table-column-be9a76bb.cjs +0 -14
- package/es/el-tag-7f391090.js +0 -280
- package/es/el-tag-8d49d4d2.cjs +0 -1
- package/es/index-02ca0096.cjs +0 -5
- package/es/index-3120be08.js +0 -14
- package/es/index-5b81f4da.cjs +0 -1
- package/es/index-85a32a00.js +0 -59
- package/es/index-8d3c5e96.cjs +0 -3
- package/es/index-94f38460.js +0 -306
- package/es/index-a99a5307.cjs +0 -1
- package/es/index-b90c746b.cjs +0 -1
- package/es/index-d94bae37.cjs +0 -1
- package/es/index-d99fdc6d.js +0 -159
- package/es/use-form-common-props-592797e2.cjs +0 -2
- package/es/use-form-common-props-cc347a83.js +0 -171
- package/es/use-global-config-584b62f1.cjs +0 -1
- package/es/use-global-config-c7f0a7e3.js +0 -73
- package/es/validator-10fa54fe.js +0 -5
- package/es/validator-af488a9a.cjs +0 -1
- package/es/vnode-1b827c99.cjs +0 -1
- package/es/vnode-6be33bb1.js +0 -14
- package/packages/Dialog/index.ts +0 -8
- package/packages/Dialog/index.vue +0 -54
- package/src/pages/Dialog/index.vue +0 -16
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { computed as u, inject as M, ref as O, useSlots as R, Text as q, defineComponent as B, openBlock as m, createBlock as y, resolveDynamicComponent as N, mergeProps as H, unref as d, withCtx as V, createElementBlock as $, Fragment as J, renderSlot as k, normalizeClass as w, createCommentVNode as T, provide as L, reactive as Q, toRef as P } from "vue";
|
|
2
|
+
import { l as W, E as G } from "./index-74fb90c7.js";
|
|
3
|
+
import { u as X } from "./index-2e331d74.js";
|
|
4
|
+
import { a as Y } from "./use-global-config-4b185eb5.js";
|
|
5
|
+
import { d as Z, e as tt, g as F, h as et, i as D } from "./el-scrollbar-fae984e3.js";
|
|
6
|
+
import { b as ot, e as lt, u as I, _ as K, w as nt, l as at } from "./base-62a70f61.js";
|
|
7
|
+
import { T as rt } from "./index-657047bb.js";
|
|
8
|
+
const j = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
9
|
+
X({
|
|
10
|
+
from: "type.text",
|
|
11
|
+
replacement: "link",
|
|
12
|
+
version: "3.0.0",
|
|
13
|
+
scope: "props",
|
|
14
|
+
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
15
|
+
}, u(() => t.type === "text"));
|
|
16
|
+
const n = M(j, void 0), l = Y("button"), { form: s } = Z(), a = tt(u(() => n == null ? void 0 : n.size)), o = F(), b = O(), v = R(), p = u(() => {
|
|
17
|
+
var e;
|
|
18
|
+
return t.type || (n == null ? void 0 : n.type) || ((e = l.value) == null ? void 0 : e.type) || "";
|
|
19
|
+
}), g = u(() => {
|
|
20
|
+
var e, r, i;
|
|
21
|
+
return (i = (r = t.autoInsertSpace) != null ? r : (e = l.value) == null ? void 0 : e.autoInsertSpace) != null ? i : !1;
|
|
22
|
+
}), h = u(() => {
|
|
23
|
+
var e, r, i;
|
|
24
|
+
return (i = (r = t.plain) != null ? r : (e = l.value) == null ? void 0 : e.plain) != null ? i : !1;
|
|
25
|
+
}), S = u(() => {
|
|
26
|
+
var e, r, i;
|
|
27
|
+
return (i = (r = t.round) != null ? r : (e = l.value) == null ? void 0 : e.round) != null ? i : !1;
|
|
28
|
+
}), C = u(() => {
|
|
29
|
+
var e, r, i;
|
|
30
|
+
return (i = (r = t.text) != null ? r : (e = l.value) == null ? void 0 : e.text) != null ? i : !1;
|
|
31
|
+
}), _ = u(() => t.tag === "button" ? {
|
|
32
|
+
ariaDisabled: o.value || t.loading,
|
|
33
|
+
disabled: o.value || t.loading,
|
|
34
|
+
autofocus: t.autofocus,
|
|
35
|
+
type: t.nativeType
|
|
36
|
+
} : {}), x = u(() => {
|
|
37
|
+
var e;
|
|
38
|
+
const r = (e = v.default) == null ? void 0 : e.call(v);
|
|
39
|
+
if (g.value && (r == null ? void 0 : r.length) === 1) {
|
|
40
|
+
const i = r[0];
|
|
41
|
+
if ((i == null ? void 0 : i.type) === q) {
|
|
42
|
+
const U = i.children;
|
|
43
|
+
return /^\p{Unified_Ideograph}{2}$/u.test(U.trim());
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return !1;
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
_disabled: o,
|
|
50
|
+
_size: a,
|
|
51
|
+
_type: p,
|
|
52
|
+
_ref: b,
|
|
53
|
+
_props: _,
|
|
54
|
+
_plain: h,
|
|
55
|
+
_round: S,
|
|
56
|
+
_text: C,
|
|
57
|
+
shouldAddSpace: x,
|
|
58
|
+
handleClick: (e) => {
|
|
59
|
+
if (o.value || t.loading) {
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
t.nativeType === "reset" && (s == null || s.resetFields()), c("click", e);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}, it = [
|
|
67
|
+
"default",
|
|
68
|
+
"primary",
|
|
69
|
+
"success",
|
|
70
|
+
"warning",
|
|
71
|
+
"info",
|
|
72
|
+
"danger",
|
|
73
|
+
"text",
|
|
74
|
+
""
|
|
75
|
+
], ct = ["button", "submit", "reset"], z = ot({
|
|
76
|
+
size: et,
|
|
77
|
+
disabled: Boolean,
|
|
78
|
+
type: {
|
|
79
|
+
type: String,
|
|
80
|
+
values: it,
|
|
81
|
+
default: ""
|
|
82
|
+
},
|
|
83
|
+
icon: {
|
|
84
|
+
type: D
|
|
85
|
+
},
|
|
86
|
+
nativeType: {
|
|
87
|
+
type: String,
|
|
88
|
+
values: ct,
|
|
89
|
+
default: "button"
|
|
90
|
+
},
|
|
91
|
+
loading: Boolean,
|
|
92
|
+
loadingIcon: {
|
|
93
|
+
type: D,
|
|
94
|
+
default: () => W
|
|
95
|
+
},
|
|
96
|
+
plain: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: void 0
|
|
99
|
+
},
|
|
100
|
+
text: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: void 0
|
|
103
|
+
},
|
|
104
|
+
link: Boolean,
|
|
105
|
+
bg: Boolean,
|
|
106
|
+
autofocus: Boolean,
|
|
107
|
+
round: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: void 0
|
|
110
|
+
},
|
|
111
|
+
circle: Boolean,
|
|
112
|
+
color: String,
|
|
113
|
+
dark: Boolean,
|
|
114
|
+
autoInsertSpace: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: void 0
|
|
117
|
+
},
|
|
118
|
+
tag: {
|
|
119
|
+
type: lt([String, Object]),
|
|
120
|
+
default: "button"
|
|
121
|
+
}
|
|
122
|
+
}), ut = {
|
|
123
|
+
click: (t) => t instanceof MouseEvent
|
|
124
|
+
};
|
|
125
|
+
function f(t, c = 20) {
|
|
126
|
+
return t.mix("#141414", c).toString();
|
|
127
|
+
}
|
|
128
|
+
function dt(t) {
|
|
129
|
+
const c = F(), n = I("button");
|
|
130
|
+
return u(() => {
|
|
131
|
+
let l = {}, s = t.color;
|
|
132
|
+
if (s) {
|
|
133
|
+
const a = s.match(/var\((.*?)\)/);
|
|
134
|
+
a && (s = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
|
|
135
|
+
const o = new rt(s), b = t.dark ? o.tint(20).toString() : f(o, 20);
|
|
136
|
+
if (t.plain)
|
|
137
|
+
l = n.cssVarBlock({
|
|
138
|
+
"bg-color": t.dark ? f(o, 90) : o.tint(90).toString(),
|
|
139
|
+
"text-color": s,
|
|
140
|
+
"border-color": t.dark ? f(o, 50) : o.tint(50).toString(),
|
|
141
|
+
"hover-text-color": `var(${n.cssVarName("color-white")})`,
|
|
142
|
+
"hover-bg-color": s,
|
|
143
|
+
"hover-border-color": s,
|
|
144
|
+
"active-bg-color": b,
|
|
145
|
+
"active-text-color": `var(${n.cssVarName("color-white")})`,
|
|
146
|
+
"active-border-color": b
|
|
147
|
+
}), c.value && (l[n.cssVarBlockName("disabled-bg-color")] = t.dark ? f(o, 90) : o.tint(90).toString(), l[n.cssVarBlockName("disabled-text-color")] = t.dark ? f(o, 50) : o.tint(50).toString(), l[n.cssVarBlockName("disabled-border-color")] = t.dark ? f(o, 80) : o.tint(80).toString());
|
|
148
|
+
else {
|
|
149
|
+
const v = t.dark ? f(o, 30) : o.tint(30).toString(), p = o.isDark() ? `var(${n.cssVarName("color-white")})` : `var(${n.cssVarName("color-black")})`;
|
|
150
|
+
if (l = n.cssVarBlock({
|
|
151
|
+
"bg-color": s,
|
|
152
|
+
"text-color": p,
|
|
153
|
+
"border-color": s,
|
|
154
|
+
"hover-bg-color": v,
|
|
155
|
+
"hover-text-color": p,
|
|
156
|
+
"hover-border-color": v,
|
|
157
|
+
"active-bg-color": b,
|
|
158
|
+
"active-border-color": b
|
|
159
|
+
}), c.value) {
|
|
160
|
+
const g = t.dark ? f(o, 50) : o.tint(50).toString();
|
|
161
|
+
l[n.cssVarBlockName("disabled-bg-color")] = g, l[n.cssVarBlockName("disabled-text-color")] = t.dark ? "rgba(255, 255, 255, 0.5)" : `var(${n.cssVarName("color-white")})`, l[n.cssVarBlockName("disabled-border-color")] = g;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return l;
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
const bt = B({
|
|
169
|
+
name: "ElButton"
|
|
170
|
+
}), vt = /* @__PURE__ */ B({
|
|
171
|
+
...bt,
|
|
172
|
+
props: z,
|
|
173
|
+
emits: ut,
|
|
174
|
+
setup(t, { expose: c, emit: n }) {
|
|
175
|
+
const l = t, s = dt(l), a = I("button"), {
|
|
176
|
+
_ref: o,
|
|
177
|
+
_size: b,
|
|
178
|
+
_type: v,
|
|
179
|
+
_disabled: p,
|
|
180
|
+
_props: g,
|
|
181
|
+
_plain: h,
|
|
182
|
+
_round: S,
|
|
183
|
+
_text: C,
|
|
184
|
+
shouldAddSpace: _,
|
|
185
|
+
handleClick: x
|
|
186
|
+
} = st(l, n), E = u(() => [
|
|
187
|
+
a.b(),
|
|
188
|
+
a.m(v.value),
|
|
189
|
+
a.m(b.value),
|
|
190
|
+
a.is("disabled", p.value),
|
|
191
|
+
a.is("loading", l.loading),
|
|
192
|
+
a.is("plain", h.value),
|
|
193
|
+
a.is("round", S.value),
|
|
194
|
+
a.is("circle", l.circle),
|
|
195
|
+
a.is("text", C.value),
|
|
196
|
+
a.is("link", l.link),
|
|
197
|
+
a.is("has-bg", l.bg)
|
|
198
|
+
]);
|
|
199
|
+
return c({
|
|
200
|
+
ref: o,
|
|
201
|
+
size: b,
|
|
202
|
+
type: v,
|
|
203
|
+
disabled: p,
|
|
204
|
+
shouldAddSpace: _
|
|
205
|
+
}), (e, r) => (m(), y(N(e.tag), H({
|
|
206
|
+
ref_key: "_ref",
|
|
207
|
+
ref: o
|
|
208
|
+
}, d(g), {
|
|
209
|
+
class: d(E),
|
|
210
|
+
style: d(s),
|
|
211
|
+
onClick: d(x)
|
|
212
|
+
}), {
|
|
213
|
+
default: V(() => [
|
|
214
|
+
e.loading ? (m(), $(J, { key: 0 }, [
|
|
215
|
+
e.$slots.loading ? k(e.$slots, "loading", { key: 0 }) : (m(), y(d(G), {
|
|
216
|
+
key: 1,
|
|
217
|
+
class: w(d(a).is("loading"))
|
|
218
|
+
}, {
|
|
219
|
+
default: V(() => [
|
|
220
|
+
(m(), y(N(e.loadingIcon)))
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["class"]))
|
|
224
|
+
], 64)) : e.icon || e.$slots.icon ? (m(), y(d(G), { key: 1 }, {
|
|
225
|
+
default: V(() => [
|
|
226
|
+
e.icon ? (m(), y(N(e.icon), { key: 0 })) : k(e.$slots, "icon", { key: 1 })
|
|
227
|
+
]),
|
|
228
|
+
_: 3
|
|
229
|
+
})) : T("v-if", !0),
|
|
230
|
+
e.$slots.default ? (m(), $("span", {
|
|
231
|
+
key: 2,
|
|
232
|
+
class: w({ [d(a).em("text", "expand")]: d(_) })
|
|
233
|
+
}, [
|
|
234
|
+
k(e.$slots, "default")
|
|
235
|
+
], 2)) : T("v-if", !0)
|
|
236
|
+
]),
|
|
237
|
+
_: 3
|
|
238
|
+
}, 16, ["class", "style", "onClick"]));
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
var ft = /* @__PURE__ */ K(vt, [["__file", "button.vue"]]);
|
|
242
|
+
const mt = {
|
|
243
|
+
size: z.size,
|
|
244
|
+
type: z.type
|
|
245
|
+
}, pt = B({
|
|
246
|
+
name: "ElButtonGroup"
|
|
247
|
+
}), gt = /* @__PURE__ */ B({
|
|
248
|
+
...pt,
|
|
249
|
+
props: mt,
|
|
250
|
+
setup(t) {
|
|
251
|
+
const c = t;
|
|
252
|
+
L(j, Q({
|
|
253
|
+
size: P(c, "size"),
|
|
254
|
+
type: P(c, "type")
|
|
255
|
+
}));
|
|
256
|
+
const n = I("button");
|
|
257
|
+
return (l, s) => (m(), $("div", {
|
|
258
|
+
class: w(d(n).b("group"))
|
|
259
|
+
}, [
|
|
260
|
+
k(l.$slots, "default")
|
|
261
|
+
], 2));
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
var A = /* @__PURE__ */ K(gt, [["__file", "button-group.vue"]]);
|
|
265
|
+
const xt = nt(ft, {
|
|
266
|
+
ButtonGroup: A
|
|
267
|
+
});
|
|
268
|
+
at(A);
|
|
269
|
+
export {
|
|
270
|
+
xt as E,
|
|
271
|
+
it as b
|
|
272
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),S=require("./index-f6afafaa.cjs"),z=require("./index-f1c702f6.cjs"),E=require("./use-global-config-03735617.cjs"),v=require("./el-scrollbar-691cfc11.cjs"),p=require("./base-ef747d02.cjs"),I=require("./index-eea0bcb3.cjs"),N=Symbol("buttonGroupContextKey"),T=(t,u)=>{z.useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},e.computed(()=>t.type==="text"));const r=e.inject(N,void 0),l=E.useGlobalConfig("button"),{form:c}=v.useFormItem(),a=v.useFormSize(e.computed(()=>r==null?void 0:r.size)),n=v.useFormDisabled(),d=e.ref(),f=e.useSlots(),b=e.computed(()=>{var o;return t.type||(r==null?void 0:r.type)||((o=l.value)==null?void 0:o.type)||""}),g=e.computed(()=>{var o,s,i;return(i=(s=t.autoInsertSpace)!=null?s:(o=l.value)==null?void 0:o.autoInsertSpace)!=null?i:!1}),y=e.computed(()=>{var o,s,i;return(i=(s=t.plain)!=null?s:(o=l.value)==null?void 0:o.plain)!=null?i:!1}),_=e.computed(()=>{var o,s,i;return(i=(s=t.round)!=null?s:(o=l.value)==null?void 0:o.round)!=null?i:!1}),B=e.computed(()=>{var o,s,i;return(i=(s=t.text)!=null?s:(o=l.value)==null?void 0:o.text)!=null?i:!1}),k=e.computed(()=>t.tag==="button"?{ariaDisabled:n.value||t.loading,disabled:n.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),C=e.computed(()=>{var o;const s=(o=f.default)==null?void 0:o.call(f);if(g.value&&(s==null?void 0:s.length)===1){const i=s[0];if((i==null?void 0:i.type)===e.Text){const w=i.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1});return{_disabled:n,_size:a,_type:b,_ref:d,_props:k,_plain:y,_round:_,_text:B,shouldAddSpace:C,handleClick:o=>{if(n.value||t.loading){o.stopPropagation();return}t.nativeType==="reset"&&(c==null||c.resetFields()),u("click",o)}}},$=["default","primary","success","warning","info","danger","text",""],P=["button","submit","reset"],h=p.buildProps({size:v.useSizeProp,disabled:Boolean,type:{type:String,values:$,default:""},icon:{type:v.iconPropType},nativeType:{type:String,values:P,default:"button"},loading:Boolean,loadingIcon:{type:v.iconPropType,default:()=>S.loading_default},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:p.definePropType([String,Object]),default:"button"}}),D={click:t=>t instanceof MouseEvent};function m(t,u=20){return t.mix("#141414",u).toString()}function G(t){const u=v.useFormDisabled(),r=p.useNamespace("button");return e.computed(()=>{let l={},c=t.color;if(c){const a=c.match(/var\((.*?)\)/);a&&(c=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const n=new I.TinyColor(c),d=t.dark?n.tint(20).toString():m(n,20);if(t.plain)l=r.cssVarBlock({"bg-color":t.dark?m(n,90):n.tint(90).toString(),"text-color":c,"border-color":t.dark?m(n,50):n.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":c,"hover-border-color":c,"active-bg-color":d,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":d}),u.value&&(l[r.cssVarBlockName("disabled-bg-color")]=t.dark?m(n,90):n.tint(90).toString(),l[r.cssVarBlockName("disabled-text-color")]=t.dark?m(n,50):n.tint(50).toString(),l[r.cssVarBlockName("disabled-border-color")]=t.dark?m(n,80):n.tint(80).toString());else{const f=t.dark?m(n,30):n.tint(30).toString(),b=n.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(l=r.cssVarBlock({"bg-color":c,"text-color":b,"border-color":c,"hover-bg-color":f,"hover-text-color":b,"hover-border-color":f,"active-bg-color":d,"active-border-color":d}),u.value){const g=t.dark?m(n,50):n.tint(50).toString();l[r.cssVarBlockName("disabled-bg-color")]=g,l[r.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,l[r.cssVarBlockName("disabled-border-color")]=g}}}return l})}const q=e.defineComponent({name:"ElButton"}),F=e.defineComponent({...q,props:h,emits:D,setup(t,{expose:u,emit:r}){const l=t,c=G(l),a=p.useNamespace("button"),{_ref:n,_size:d,_type:f,_disabled:b,_props:g,_plain:y,_round:_,_text:B,shouldAddSpace:k,handleClick:C}=T(l,r),x=e.computed(()=>[a.b(),a.m(f.value),a.m(d.value),a.is("disabled",b.value),a.is("loading",l.loading),a.is("plain",y.value),a.is("round",_.value),a.is("circle",l.circle),a.is("text",B.value),a.is("link",l.link),a.is("has-bg",l.bg)]);return u({ref:n,size:d,type:f,disabled:b,shouldAddSpace:k}),(o,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),e.mergeProps({ref_key:"_ref",ref:n},e.unref(g),{class:e.unref(x),style:e.unref(c),onClick:e.unref(C)}),{default:e.withCtx(()=>[o.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.$slots.loading?e.renderSlot(o.$slots,"loading",{key:0}):(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:1,class:e.normalizeClass(e.unref(a).is("loading"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.loadingIcon)))]),_:1},8,["class"]))],64)):o.icon||o.$slots.icon?(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:1},{default:e.withCtx(()=>[o.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon),{key:0})):e.renderSlot(o.$slots,"icon",{key:1})]),_:3})):e.createCommentVNode("v-if",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({[e.unref(a).em("text","expand")]:e.unref(k)})},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var K=p._export_sfc(F,[["__file","button.vue"]]);const j={size:h.size,type:h.type},A=e.defineComponent({name:"ElButtonGroup"}),R=e.defineComponent({...A,props:j,setup(t){const u=t;e.provide(N,e.reactive({size:e.toRef(u,"size"),type:e.toRef(u,"type")}));const r=p.useNamespace("button");return(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b("group"))},[e.renderSlot(l.$slots,"default")],2))}});var V=p._export_sfc(R,[["__file","button-group.vue"]]);const U=p.withInstall(K,{ButtonGroup:V});p.withNoopInstall(V);exports.ElButton=U;exports.buttonTypes=$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./el-overlay-96630a2e.cjs"),T=require("./el-popper-73466d7a.cjs"),F=require("./index-f6afafaa.cjs"),E=require("./base-ef747d02.cjs"),R=require("./el-scrollbar-691cfc11.cjs"),q=require("./index-3a74eae4.cjs"),V=require("./index-f1c702f6.cjs"),N=(r,d,s,k)=>{const l={offsetX:0,offsetY:0},c=e.ref(!1),h=(a,i)=>{if(r.value){const{offsetX:g,offsetY:C}=l,u=r.value.getBoundingClientRect(),f=u.left,t=u.top,m=u.width,w=u.height,D=document.documentElement.clientWidth,S=document.documentElement.clientHeight,z=-f+g,B=-t+C,P=D-f-m+g,M=S-t-(w<S?w:0)+C;k!=null&&k.value||(a=Math.min(Math.max(a,z),P),i=Math.min(Math.max(i,B),M)),l.offsetX=a,l.offsetY=i,r.value.style.transform=`translate(${E.addUnit(a)}, ${E.addUnit(i)})`}},v=a=>{const i=a.clientX,g=a.clientY,{offsetX:C,offsetY:u}=l,f=m=>{c.value||(c.value=!0);const w=C+m.clientX-i,D=u+m.clientY-g;h(w,D)},t=()=>{c.value=!1,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",t)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",t)},n=()=>{d.value&&r.value&&(d.value.addEventListener("mousedown",v),window.addEventListener("resize",y))},b=()=>{d.value&&r.value&&(d.value.removeEventListener("mousedown",v),window.removeEventListener("resize",y))},$=()=>{l.offsetX=0,l.offsetY=0,r.value&&(r.value.style.transform="")},y=()=>{const{offsetX:a,offsetY:i}=l;h(a,i)};return e.onMounted(()=>{e.watchEffect(()=>{s.value?n():b()})}),e.onBeforeUnmount(()=>{b()}),{isDragging:c,resetPosition:$,updatePosition:y}},I=(...r)=>d=>{r.forEach(s=>{E.isFunction(s)?s(d):s.value=d})},A=e.defineComponent({name:"ElDialogContent"}),Y=e.defineComponent({...A,props:p.dialogContentProps,emits:p.dialogContentEmits,setup(r,{expose:d}){const s=r,{t:k}=q.useLocale(),{Close:l}=R.CloseComponents,{dialogRef:c,headerRef:h,bodyId:v,ns:n,style:b}=e.inject(p.dialogInjectionKey),{focusTrapRef:$}=e.inject(T.FOCUS_TRAP_INJECTION_KEY),y=I($,c),a=e.computed(()=>!!s.draggable),i=e.computed(()=>!!s.overflow),{resetPosition:g,updatePosition:C,isDragging:u}=N(c,h,a,i),f=e.computed(()=>[n.b(),n.is("fullscreen",s.fullscreen),n.is("draggable",a.value),n.is("dragging",u.value),n.is("align-center",!!s.alignCenter),{[n.m("center")]:s.center}]);return d({resetPosition:g,updatePosition:C}),(t,m)=>(e.openBlock(),e.createElementBlock("div",{ref:e.unref(y),class:e.normalizeClass(e.unref(f)),style:e.normalizeStyle(e.unref(b)),tabindex:"-1"},[e.createElementVNode("header",{ref_key:"headerRef",ref:h,class:e.normalizeClass([e.unref(n).e("header"),t.headerClass,{"show-close":t.showClose}])},[e.renderSlot(t.$slots,"header",{},()=>[e.createElementVNode("span",{role:"heading","aria-level":t.ariaLevel,class:e.normalizeClass(e.unref(n).e("title"))},e.toDisplayString(t.title),11,["aria-level"])]),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":e.unref(k)("el.dialog.close"),class:e.normalizeClass(e.unref(n).e("headerbtn")),type:"button",onClick:w=>t.$emit("close")},[e.createVNode(e.unref(F.ElIcon),{class:e.normalizeClass(e.unref(n).e("close"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.closeIcon||e.unref(l))))]),_:1},8,["class"])],10,["aria-label","onClick"])):e.createCommentVNode("v-if",!0)],2),e.createElementVNode("div",{id:e.unref(v),class:e.normalizeClass([e.unref(n).e("body"),t.bodyClass])},[e.renderSlot(t.$slots,"default")],10,["id"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",{key:0,class:e.normalizeClass([e.unref(n).e("footer"),t.footerClass])},[e.renderSlot(t.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],6))}});var X=E._export_sfc(Y,[["__file","dialog-content.vue"]]);const j=e.defineComponent({name:"ElDialog",inheritAttrs:!1}),O=e.defineComponent({...j,props:p.dialogProps,emits:p.dialogEmits,setup(r,{expose:d}){const s=r,k=e.useSlots();V.useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},e.computed(()=>!!k.title));const l=E.useNamespace("dialog"),c=e.ref(),h=e.ref(),v=e.ref(),{visible:n,titleId:b,bodyId:$,style:y,overlayDialogStyle:a,rendered:i,transitionConfig:g,zIndex:C,_draggable:u,_alignCenter:f,_overflow:t,handleClose:m,onModalClick:w,onOpenAutoFocus:D,onCloseAutoFocus:S,onCloseRequested:z,onFocusoutPrevented:B}=p.useDialog(s,c);e.provide(p.dialogInjectionKey,{dialogRef:c,headerRef:h,bodyId:$,ns:l,rendered:i,style:y});const P=p.useSameTarget(w),M=e.computed(()=>s.modalPenetrable&&!s.modal&&!s.fullscreen);return d({visible:n,dialogContentRef:v,resetPosition:()=>{var o;(o=v.value)==null||o.resetPosition()},handleClose:m}),(o,H)=>(e.openBlock(),e.createBlock(e.unref(T.ElTeleport),{to:o.appendTo,disabled:o.appendTo!=="body"?!1:!o.appendToBody},{default:e.withCtx(()=>[e.createVNode(e.Transition,e.mergeProps(e.unref(g),{persisted:""}),{default:e.withCtx(()=>{var L;return[e.withDirectives(e.createVNode(e.unref(p.ElOverlay),{"custom-mask-event":"",mask:o.modal,"overlay-class":[(L=o.modalClass)!=null?L:"",`${e.unref(l).namespace.value}-modal-dialog`,e.unref(l).is("penetrable",e.unref(M))],"z-index":e.unref(C)},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":o.title||void 0,"aria-labelledby":o.title?void 0:e.unref(b),"aria-describedby":e.unref($),class:e.normalizeClass(`${e.unref(l).namespace.value}-overlay-dialog`),style:e.normalizeStyle(e.unref(a)),onClick:e.unref(P).onClick,onMousedown:e.unref(P).onMousedown,onMouseup:e.unref(P).onMouseup},[e.createVNode(e.unref(T.ElFocusTrap),{loop:"",trapped:e.unref(n),"focus-start-el":"container",onFocusAfterTrapped:e.unref(D),onFocusAfterReleased:e.unref(S),onFocusoutPrevented:e.unref(B),onReleaseRequested:e.unref(z)},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createBlock(X,e.mergeProps({key:0,ref_key:"dialogContentRef",ref:v},o.$attrs,{center:o.center,"align-center":e.unref(f),"close-icon":o.closeIcon,draggable:e.unref(u),overflow:e.unref(t),fullscreen:o.fullscreen,"header-class":o.headerClass,"body-class":o.bodyClass,"footer-class":o.footerClass,"show-close":o.showClose,title:o.title,"aria-level":o.headerAriaLevel,onClose:e.unref(m)}),e.createSlots({header:e.withCtx(()=>[o.$slots.title?e.renderSlot(o.$slots,"title",{key:1}):e.renderSlot(o.$slots,"header",{key:0,close:e.unref(m),titleId:e.unref(b),titleClass:e.unref(l).e("title")})]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:2},[o.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):e.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[e.vShow,e.unref(n)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var U=E._export_sfc(O,[["__file","dialog.vue"]]);const K=E.withInstall(U);exports.ElDialog=K;exports.composeRefs=I;exports.useDraggable=N;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { ref as I, onMounted as _, watchEffect as J, onBeforeUnmount as Q, defineComponent as A, inject as j, computed as L, openBlock as P, createElementBlock as B, unref as e, normalizeClass as h, normalizeStyle as K, createElementVNode as R, renderSlot as k, toDisplayString as G, createVNode as S, withCtx as C, createBlock as N, resolveDynamicComponent as Z, createCommentVNode as O, useSlots as x, provide as ee, Transition as oe, mergeProps as q, withDirectives as se, createSlots as te, vShow as le } from "vue";
|
|
2
|
+
import { e as ae, f as ne, g as V, d as re, a as ie, u as de, E as ce, c as ue } from "./el-overlay-540b2a02.js";
|
|
3
|
+
import { F as fe, c as me, e as ve } from "./el-popper-544fd77e.js";
|
|
4
|
+
import { E as pe } from "./index-74fb90c7.js";
|
|
5
|
+
import { n as H, x as ge, _ as W, u as he, w as Ce } from "./base-62a70f61.js";
|
|
6
|
+
import { Q as be } from "./el-scrollbar-fae984e3.js";
|
|
7
|
+
import { u as ye } from "./index-34592e82.js";
|
|
8
|
+
import { u as Ee } from "./index-2e331d74.js";
|
|
9
|
+
const we = (r, d, l, $) => {
|
|
10
|
+
const a = {
|
|
11
|
+
offsetX: 0,
|
|
12
|
+
offsetY: 0
|
|
13
|
+
}, c = I(!1), b = (n, i) => {
|
|
14
|
+
if (r.value) {
|
|
15
|
+
const { offsetX: p, offsetY: g } = a, u = r.value.getBoundingClientRect(), f = u.left, s = u.top, m = u.width, w = u.height, M = document.documentElement.clientWidth, F = document.documentElement.clientHeight, Y = -f + p, z = -s + g, T = M - f - m + p, X = F - s - (w < F ? w : 0) + g;
|
|
16
|
+
$ != null && $.value || (n = Math.min(Math.max(n, Y), T), i = Math.min(Math.max(i, z), X)), a.offsetX = n, a.offsetY = i, r.value.style.transform = `translate(${H(n)}, ${H(i)})`;
|
|
17
|
+
}
|
|
18
|
+
}, v = (n) => {
|
|
19
|
+
const i = n.clientX, p = n.clientY, { offsetX: g, offsetY: u } = a, f = (m) => {
|
|
20
|
+
c.value || (c.value = !0);
|
|
21
|
+
const w = g + m.clientX - i, M = u + m.clientY - p;
|
|
22
|
+
b(w, M);
|
|
23
|
+
}, s = () => {
|
|
24
|
+
c.value = !1, document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", s);
|
|
25
|
+
};
|
|
26
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", s);
|
|
27
|
+
}, t = () => {
|
|
28
|
+
d.value && r.value && (d.value.addEventListener("mousedown", v), window.addEventListener("resize", E));
|
|
29
|
+
}, y = () => {
|
|
30
|
+
d.value && r.value && (d.value.removeEventListener("mousedown", v), window.removeEventListener("resize", E));
|
|
31
|
+
}, D = () => {
|
|
32
|
+
a.offsetX = 0, a.offsetY = 0, r.value && (r.value.style.transform = "");
|
|
33
|
+
}, E = () => {
|
|
34
|
+
const { offsetX: n, offsetY: i } = a;
|
|
35
|
+
b(n, i);
|
|
36
|
+
};
|
|
37
|
+
return _(() => {
|
|
38
|
+
J(() => {
|
|
39
|
+
l.value ? t() : y();
|
|
40
|
+
});
|
|
41
|
+
}), Q(() => {
|
|
42
|
+
y();
|
|
43
|
+
}), {
|
|
44
|
+
isDragging: c,
|
|
45
|
+
resetPosition: D,
|
|
46
|
+
updatePosition: E
|
|
47
|
+
};
|
|
48
|
+
}, ke = (...r) => (d) => {
|
|
49
|
+
r.forEach((l) => {
|
|
50
|
+
ge(l) ? l(d) : l.value = d;
|
|
51
|
+
});
|
|
52
|
+
}, $e = A({ name: "ElDialogContent" }), De = /* @__PURE__ */ A({
|
|
53
|
+
...$e,
|
|
54
|
+
props: ae,
|
|
55
|
+
emits: ne,
|
|
56
|
+
setup(r, { expose: d }) {
|
|
57
|
+
const l = r, { t: $ } = ye(), { Close: a } = be, { dialogRef: c, headerRef: b, bodyId: v, ns: t, style: y } = j(V), { focusTrapRef: D } = j(fe), E = ke(D, c), n = L(() => !!l.draggable), i = L(() => !!l.overflow), { resetPosition: p, updatePosition: g, isDragging: u } = we(c, b, n, i), f = L(() => [
|
|
58
|
+
t.b(),
|
|
59
|
+
t.is("fullscreen", l.fullscreen),
|
|
60
|
+
t.is("draggable", n.value),
|
|
61
|
+
t.is("dragging", u.value),
|
|
62
|
+
t.is("align-center", !!l.alignCenter),
|
|
63
|
+
{ [t.m("center")]: l.center }
|
|
64
|
+
]);
|
|
65
|
+
return d({
|
|
66
|
+
resetPosition: p,
|
|
67
|
+
updatePosition: g
|
|
68
|
+
}), (s, m) => (P(), B("div", {
|
|
69
|
+
ref: e(E),
|
|
70
|
+
class: h(e(f)),
|
|
71
|
+
style: K(e(y)),
|
|
72
|
+
tabindex: "-1"
|
|
73
|
+
}, [
|
|
74
|
+
R("header", {
|
|
75
|
+
ref_key: "headerRef",
|
|
76
|
+
ref: b,
|
|
77
|
+
class: h([e(t).e("header"), s.headerClass, { "show-close": s.showClose }])
|
|
78
|
+
}, [
|
|
79
|
+
k(s.$slots, "header", {}, () => [
|
|
80
|
+
R("span", {
|
|
81
|
+
role: "heading",
|
|
82
|
+
"aria-level": s.ariaLevel,
|
|
83
|
+
class: h(e(t).e("title"))
|
|
84
|
+
}, G(s.title), 11, ["aria-level"])
|
|
85
|
+
]),
|
|
86
|
+
s.showClose ? (P(), B("button", {
|
|
87
|
+
key: 0,
|
|
88
|
+
"aria-label": e($)("el.dialog.close"),
|
|
89
|
+
class: h(e(t).e("headerbtn")),
|
|
90
|
+
type: "button",
|
|
91
|
+
onClick: (w) => s.$emit("close")
|
|
92
|
+
}, [
|
|
93
|
+
S(e(pe), {
|
|
94
|
+
class: h(e(t).e("close"))
|
|
95
|
+
}, {
|
|
96
|
+
default: C(() => [
|
|
97
|
+
(P(), N(Z(s.closeIcon || e(a))))
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["class"])
|
|
101
|
+
], 10, ["aria-label", "onClick"])) : O("v-if", !0)
|
|
102
|
+
], 2),
|
|
103
|
+
R("div", {
|
|
104
|
+
id: e(v),
|
|
105
|
+
class: h([e(t).e("body"), s.bodyClass])
|
|
106
|
+
}, [
|
|
107
|
+
k(s.$slots, "default")
|
|
108
|
+
], 10, ["id"]),
|
|
109
|
+
s.$slots.footer ? (P(), B("footer", {
|
|
110
|
+
key: 0,
|
|
111
|
+
class: h([e(t).e("footer"), s.footerClass])
|
|
112
|
+
}, [
|
|
113
|
+
k(s.$slots, "footer")
|
|
114
|
+
], 2)) : O("v-if", !0)
|
|
115
|
+
], 6));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
var Pe = /* @__PURE__ */ W(De, [["__file", "dialog-content.vue"]]);
|
|
119
|
+
const Me = A({
|
|
120
|
+
name: "ElDialog",
|
|
121
|
+
inheritAttrs: !1
|
|
122
|
+
}), Te = /* @__PURE__ */ A({
|
|
123
|
+
...Me,
|
|
124
|
+
props: re,
|
|
125
|
+
emits: ie,
|
|
126
|
+
setup(r, { expose: d }) {
|
|
127
|
+
const l = r, $ = x();
|
|
128
|
+
Ee({
|
|
129
|
+
scope: "el-dialog",
|
|
130
|
+
from: "the title slot",
|
|
131
|
+
replacement: "the header slot",
|
|
132
|
+
version: "3.0.0",
|
|
133
|
+
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
134
|
+
}, L(() => !!$.title));
|
|
135
|
+
const a = he("dialog"), c = I(), b = I(), v = I(), {
|
|
136
|
+
visible: t,
|
|
137
|
+
titleId: y,
|
|
138
|
+
bodyId: D,
|
|
139
|
+
style: E,
|
|
140
|
+
overlayDialogStyle: n,
|
|
141
|
+
rendered: i,
|
|
142
|
+
transitionConfig: p,
|
|
143
|
+
zIndex: g,
|
|
144
|
+
_draggable: u,
|
|
145
|
+
_alignCenter: f,
|
|
146
|
+
_overflow: s,
|
|
147
|
+
handleClose: m,
|
|
148
|
+
onModalClick: w,
|
|
149
|
+
onOpenAutoFocus: M,
|
|
150
|
+
onCloseAutoFocus: F,
|
|
151
|
+
onCloseRequested: Y,
|
|
152
|
+
onFocusoutPrevented: z
|
|
153
|
+
} = de(l, c);
|
|
154
|
+
ee(V, {
|
|
155
|
+
dialogRef: c,
|
|
156
|
+
headerRef: b,
|
|
157
|
+
bodyId: D,
|
|
158
|
+
ns: a,
|
|
159
|
+
rendered: i,
|
|
160
|
+
style: E
|
|
161
|
+
});
|
|
162
|
+
const T = ue(w), X = L(() => l.modalPenetrable && !l.modal && !l.fullscreen);
|
|
163
|
+
return d({
|
|
164
|
+
visible: t,
|
|
165
|
+
dialogContentRef: v,
|
|
166
|
+
resetPosition: () => {
|
|
167
|
+
var o;
|
|
168
|
+
(o = v.value) == null || o.resetPosition();
|
|
169
|
+
},
|
|
170
|
+
handleClose: m
|
|
171
|
+
}), (o, Ie) => (P(), N(e(me), {
|
|
172
|
+
to: o.appendTo,
|
|
173
|
+
disabled: o.appendTo !== "body" ? !1 : !o.appendToBody
|
|
174
|
+
}, {
|
|
175
|
+
default: C(() => [
|
|
176
|
+
S(oe, q(e(p), { persisted: "" }), {
|
|
177
|
+
default: C(() => {
|
|
178
|
+
var U;
|
|
179
|
+
return [
|
|
180
|
+
se(S(e(ce), {
|
|
181
|
+
"custom-mask-event": "",
|
|
182
|
+
mask: o.modal,
|
|
183
|
+
"overlay-class": [
|
|
184
|
+
(U = o.modalClass) != null ? U : "",
|
|
185
|
+
`${e(a).namespace.value}-modal-dialog`,
|
|
186
|
+
e(a).is("penetrable", e(X))
|
|
187
|
+
],
|
|
188
|
+
"z-index": e(g)
|
|
189
|
+
}, {
|
|
190
|
+
default: C(() => [
|
|
191
|
+
R("div", {
|
|
192
|
+
role: "dialog",
|
|
193
|
+
"aria-modal": "true",
|
|
194
|
+
"aria-label": o.title || void 0,
|
|
195
|
+
"aria-labelledby": o.title ? void 0 : e(y),
|
|
196
|
+
"aria-describedby": e(D),
|
|
197
|
+
class: h(`${e(a).namespace.value}-overlay-dialog`),
|
|
198
|
+
style: K(e(n)),
|
|
199
|
+
onClick: e(T).onClick,
|
|
200
|
+
onMousedown: e(T).onMousedown,
|
|
201
|
+
onMouseup: e(T).onMouseup
|
|
202
|
+
}, [
|
|
203
|
+
S(e(ve), {
|
|
204
|
+
loop: "",
|
|
205
|
+
trapped: e(t),
|
|
206
|
+
"focus-start-el": "container",
|
|
207
|
+
onFocusAfterTrapped: e(M),
|
|
208
|
+
onFocusAfterReleased: e(F),
|
|
209
|
+
onFocusoutPrevented: e(z),
|
|
210
|
+
onReleaseRequested: e(Y)
|
|
211
|
+
}, {
|
|
212
|
+
default: C(() => [
|
|
213
|
+
e(i) ? (P(), N(Pe, q({
|
|
214
|
+
key: 0,
|
|
215
|
+
ref_key: "dialogContentRef",
|
|
216
|
+
ref: v
|
|
217
|
+
}, o.$attrs, {
|
|
218
|
+
center: o.center,
|
|
219
|
+
"align-center": e(f),
|
|
220
|
+
"close-icon": o.closeIcon,
|
|
221
|
+
draggable: e(u),
|
|
222
|
+
overflow: e(s),
|
|
223
|
+
fullscreen: o.fullscreen,
|
|
224
|
+
"header-class": o.headerClass,
|
|
225
|
+
"body-class": o.bodyClass,
|
|
226
|
+
"footer-class": o.footerClass,
|
|
227
|
+
"show-close": o.showClose,
|
|
228
|
+
title: o.title,
|
|
229
|
+
"aria-level": o.headerAriaLevel,
|
|
230
|
+
onClose: e(m)
|
|
231
|
+
}), te({
|
|
232
|
+
header: C(() => [
|
|
233
|
+
o.$slots.title ? k(o.$slots, "title", { key: 1 }) : k(o.$slots, "header", {
|
|
234
|
+
key: 0,
|
|
235
|
+
close: e(m),
|
|
236
|
+
titleId: e(y),
|
|
237
|
+
titleClass: e(a).e("title")
|
|
238
|
+
})
|
|
239
|
+
]),
|
|
240
|
+
default: C(() => [
|
|
241
|
+
k(o.$slots, "default")
|
|
242
|
+
]),
|
|
243
|
+
_: 2
|
|
244
|
+
}, [
|
|
245
|
+
o.$slots.footer ? {
|
|
246
|
+
name: "footer",
|
|
247
|
+
fn: C(() => [
|
|
248
|
+
k(o.$slots, "footer")
|
|
249
|
+
])
|
|
250
|
+
} : void 0
|
|
251
|
+
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : O("v-if", !0)
|
|
252
|
+
]),
|
|
253
|
+
_: 3
|
|
254
|
+
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
255
|
+
], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
|
|
256
|
+
]),
|
|
257
|
+
_: 3
|
|
258
|
+
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
259
|
+
[le, e(t)]
|
|
260
|
+
])
|
|
261
|
+
];
|
|
262
|
+
}),
|
|
263
|
+
_: 3
|
|
264
|
+
}, 16)
|
|
265
|
+
]),
|
|
266
|
+
_: 3
|
|
267
|
+
}, 8, ["to", "disabled"]));
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
var Le = /* @__PURE__ */ W(Te, [["__file", "dialog.vue"]]);
|
|
271
|
+
const Oe = Ce(Le);
|
|
272
|
+
export {
|
|
273
|
+
Oe as E,
|
|
274
|
+
ke as c,
|
|
275
|
+
we as u
|
|
276
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, computed as c, openBlock as o, createElementBlock as i, normalizeClass as s, unref as r, normalizeStyle as p, renderSlot as u, createCommentVNode as v } from "vue";
|
|
2
|
-
import { b as f,
|
|
2
|
+
import { b as f, e as m, u as y, _ as S, w as _ } from "./base-62a70f61.js";
|
|
3
3
|
const b = f({
|
|
4
4
|
direction: {
|
|
5
5
|
type: String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),i=require("./base-
|
|
1
|
+
"use strict";const e=require("vue"),i=require("./base-ef747d02.cjs"),l=i.buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:i.definePropType(String),default:"solid"}}),d=e.defineComponent({name:"ElDivider"}),a=e.defineComponent({...d,props:l,setup(n){const o=n,t=i.useNamespace("divider"),s=e.computed(()=>t.cssVar({"border-style":o.borderStyle}));return(r,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).b(),e.unref(t).m(r.direction)]),style:e.normalizeStyle(e.unref(s)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t).e("text"),e.unref(t).is(r.contentPosition)])},[e.renderSlot(r.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],6))}});var c=i._export_sfc(a,[["__file","divider.vue"]]);const u=i.withInstall(c);exports.ElDivider=u;
|