@wfrog/vc-ui 1.1.0 → 1.2.0
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/README.md +3 -3
- package/dist/es/chunk/{OEa4tYPF.mjs → -ga82G_B.mjs} +1 -1
- package/dist/es/chunk/B1BnPYNG.mjs +163 -0
- package/dist/es/chunk/{DFOLES4O.mjs → BA2yoAwy.mjs} +403 -502
- package/dist/es/chunk/{BpqBBo4z.mjs → BDyXj_90.mjs} +2 -2
- package/dist/es/chunk/{BI0vrXwX.mjs → BI-fNJhk.mjs} +6 -3
- package/dist/es/chunk/{BsGCX4td.mjs → BK4T_2ha.mjs} +1 -1
- package/dist/es/chunk/{73YgKz3H.mjs → BLLKi_0v.mjs} +1 -1
- package/dist/es/chunk/{DTLPXrjb.mjs → BTsEMnf_.mjs} +1 -1
- package/dist/es/chunk/{B5UQmWXg.mjs → BUf50Y7Y.mjs} +41 -21
- package/dist/es/chunk/{BzedaLtg.mjs → BYVaz5Or.mjs} +2 -2
- package/dist/es/chunk/BaJ7k5Lg.mjs +209 -0
- package/dist/es/chunk/{Bp9jXKX0.mjs → BambM7zX.mjs} +2 -2
- package/dist/es/chunk/{CizMbf5K.mjs → Bl0WQiki.mjs} +1 -1
- package/dist/es/chunk/{CLbj8G-F.mjs → Bnot0Gwc.mjs} +12 -4
- package/dist/es/chunk/{4eyJqDa9.mjs → BoGGHTrJ.mjs} +4 -2
- package/dist/es/chunk/C7Dgjpd1.mjs +242 -0
- package/dist/es/chunk/{D0LB3gF-.mjs → CKbkzlkO.mjs} +104 -72
- package/dist/es/chunk/{DrgvuOYH.mjs → CL5WTCB3.mjs} +4 -2
- package/dist/es/chunk/{XwSiBVsA.mjs → CM_I1FoA.mjs} +2 -2
- package/dist/es/chunk/{DouIsSPi.mjs → CNILa-hz.mjs} +1 -1
- package/dist/es/chunk/{DRoyW749.mjs → CcKUdl3e.mjs} +12 -6
- package/dist/es/chunk/CidLkmft.mjs +188 -0
- package/dist/es/chunk/{HAog8AWU.mjs → CitH0taR.mjs} +816 -539
- package/dist/es/chunk/{Cu6erWl4.mjs → CzqeSQn4.mjs} +73 -38
- package/dist/es/chunk/{CLCfXfvv.mjs → D7JQbDFE.mjs} +154 -118
- package/dist/es/chunk/{DaCDeO95.mjs → D9iEroQw.mjs} +1 -207
- package/dist/es/chunk/{cPBw23yt.mjs → DEPZhJ0Z.mjs} +21 -16
- package/dist/es/chunk/{CPERtDRX.mjs → DHpbQMGk.mjs} +32 -22
- package/dist/es/chunk/{BHsNc7jl.mjs → DKpRXDRE.mjs} +82 -55
- package/dist/es/chunk/{CLMc8GzD.mjs → DMYHOxhk.mjs} +462 -311
- package/dist/es/chunk/{CBSopeeE.mjs → DQHGjqG5.mjs} +9 -4
- package/dist/es/chunk/DTEM_vYZ.mjs +23 -0
- package/dist/es/chunk/{NQBKROII.mjs → DWcIzeMM.mjs} +1 -1
- package/dist/es/chunk/{FHvLvzEB.mjs → DX38FfmL.mjs} +1088 -697
- package/dist/es/chunk/{DZD-YnCt.mjs → Dcm-lOj8.mjs} +4 -4
- package/dist/es/chunk/{09Ec85_u.mjs → DdmNdV7I.mjs} +398 -278
- package/dist/es/chunk/{f0-vIQGp.mjs → DfHTA5LW.mjs} +3 -3
- package/dist/es/chunk/DgFT6snA.mjs +835 -0
- package/dist/es/chunk/{DwKWIlzw.mjs → DgSzI6Fw.mjs} +106 -71
- package/dist/es/chunk/{BcTuAX8r.mjs → Dsye5ZEp.mjs} +5 -3
- package/dist/es/chunk/{BsLJxiSC.mjs → Dw-yyl2m.mjs} +1 -1
- package/dist/es/chunk/{DXPWe_a5.mjs → U13Qpiki.mjs} +19 -13
- package/dist/es/chunk/{axpwSky6.mjs → _8u_XVHh.mjs} +168 -120
- package/dist/es/chunk/egk9EEzo.mjs +66 -0
- package/dist/es/chunk/{BUEEWLrd.mjs → ezK_XQQd.mjs} +15 -6
- package/dist/es/chunk/{Bl2KlMdP.mjs → oW98L-44.mjs} +8 -3
- package/dist/es/chunk/{Dk6Bx0KT.mjs → plK2vnjp.mjs} +8 -5
- package/dist/es/components/awesome-icon/awesome-icon.mjs +2 -1
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.mjs +105 -76
- package/dist/es/components/choice/choice.mjs +2 -2
- package/dist/es/components/config-provider/config-provider.d.ts +1 -0
- package/dist/es/components/config-provider/config-provider.mjs +13 -5
- package/dist/es/components/cropper/cropper.mjs +44 -33
- package/dist/es/components/currency/currency.mjs +5 -5
- package/dist/es/components/daterange-picker/daterange-picker.mjs +2267 -1522
- package/dist/es/components/dialog/dialog.mjs +213 -172
- package/dist/es/components/dialog/index.css +1 -1
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +11 -11
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +5 -4
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +495 -314
- package/dist/es/components/dialog-upload-images/index.css +1 -1
- package/dist/es/components/drag-verify/drag-verify.mjs +3 -3
- package/dist/es/components/drawer/drawer.mjs +136 -94
- package/dist/es/components/drawer/index.css +1 -1
- package/dist/es/components/easy-pagination/easy-pagination.mjs +2 -2
- package/dist/es/components/el-icon/el-icon.mjs +1 -1
- package/dist/es/components/el-icon/index.css +3 -2
- package/dist/es/components/flag/flag.mjs +2 -1
- package/dist/es/components/icon/icon.mjs +10 -31
- package/dist/es/components/icon/icon.vue.d.ts +1 -1
- package/dist/es/components/icon/icon2.mjs +1 -1
- package/dist/es/components/icon/index.mjs +2 -2
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +625 -0
- package/dist/es/components/icon-picker/components/panel.vue.d.ts +9 -0
- package/dist/es/components/icon-picker/icon-picker.d.ts +40 -0
- package/dist/es/components/icon-picker/icon-picker.mjs +1375 -0
- package/dist/es/components/icon-picker/icon-picker.vue.d.ts +9 -0
- package/dist/es/components/icon-picker/index.css +121 -0
- package/dist/es/components/icon-picker/index.d.ts +4 -0
- package/dist/es/components/icon-picker/index.mjs +6 -0
- package/dist/es/components/iconify-icon/iconify-icon.d.ts +5 -0
- package/dist/es/components/iconify-icon/iconify-icon.mjs +1860 -0
- package/dist/es/components/iconify-icon/iconify-icon.vue.d.ts +6 -0
- package/dist/es/components/iconify-icon/index.css +11 -0
- package/dist/es/components/iconify-icon/index.d.ts +4 -0
- package/dist/es/components/iconify-icon/index.mjs +6 -0
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/input/input.mjs +4 -4
- package/dist/es/components/input/input.vue.d.ts +63 -54
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/components/c.vue.d.ts +4 -4
- package/dist/es/components/pca-picker/index.css +1 -1
- package/dist/es/components/pca-picker/pca-picker.mjs +154 -160
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +12 -11
- package/dist/es/components/qr-code/qr-code.mjs +2 -1
- package/dist/es/components/screenfull/screenfull.mjs +6 -5
- package/dist/es/components/scrollbar/index.css +18 -0
- package/dist/es/components/scrollbar/index.d.ts +4 -0
- package/dist/es/components/scrollbar/index.mjs +6 -0
- package/dist/es/components/scrollbar/scrollbar.d.ts +4 -0
- package/dist/es/components/scrollbar/scrollbar.mjs +65 -0
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +588 -0
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/index.css +1 -1
- package/dist/es/components/single-player/single-player.mjs +265 -166
- package/dist/es/components/svg-icon/index.css +3 -2
- package/dist/es/components/svg-icon/svg-icon.mjs +3 -3
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
- package/dist/es/components/tags/tags.mjs +9 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/thousand-input/thousand-input.mjs +5 -4
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +126 -108
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.mjs +9 -8
- package/dist/es/components/tree-picker/components/popover-cascader.vue.d.ts +179 -141
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +10 -10
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +12 -11
- package/dist/es/components/upload-file/upload-file.mjs +3 -3
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.mjs +41 -31
- package/dist/global.d.ts +3 -0
- package/dist/index.css +166 -22
- package/package.json +8 -2
- package/dist/es/chunk/BtTIs3tG.mjs +0 -138
- package/dist/es/chunk/C7wQNvSS.mjs +0 -728
- package/dist/es/chunk/Cbhe4I9Z.mjs +0 -16
- package/dist/es/chunk/DihosKp1.mjs +0 -140
- package/dist/es/components/icon/index.css +0 -9
|
@@ -1,209 +1,3 @@
|
|
|
1
|
-
const isClient = typeof window !== "undefined";
|
|
2
|
-
const defaultWindow = isClient ? window : void 0;
|
|
3
|
-
|
|
4
|
-
const baseCdnUrl = {
|
|
5
|
-
jsdelivr: "//cdn.jsdelivr.net/npm",
|
|
6
|
-
// jsdelivr.net
|
|
7
|
-
defaultBase: defaultWindow?.vc?.cdn?.host || "//cdn.staticfile.org",
|
|
8
|
-
localCDN: defaultWindow?.vc?.cdn?.path || "/local-cdn"
|
|
9
|
-
};
|
|
10
|
-
const cdnMapping = {
|
|
11
|
-
// 全屏
|
|
12
|
-
screenfull: (version = "5.2.0") => ({
|
|
13
|
-
version,
|
|
14
|
-
instance: () => defaultWindow && defaultWindow.screenfull,
|
|
15
|
-
source: {
|
|
16
|
-
jsdelivr: { js: [`${baseCdnUrl.jsdelivr}/screenfull@${version}`] },
|
|
17
|
-
defaultBase: { js: [`${baseCdnUrl.defaultBase}/screenfull.js/${version}/screenfull.min.js`] },
|
|
18
|
-
localCDN: { js: [`${baseCdnUrl.localCDN}/screenfull/${version}/screenfull.min.js`] }
|
|
19
|
-
}
|
|
20
|
-
}),
|
|
21
|
-
// 复制黏贴
|
|
22
|
-
clipboard: (version = "2.0.8") => ({
|
|
23
|
-
version,
|
|
24
|
-
instance: () => defaultWindow && defaultWindow.ClipboardJS,
|
|
25
|
-
source: {
|
|
26
|
-
jsdelivr: { js: [`${baseCdnUrl.jsdelivr}/clipboard@${version}`] },
|
|
27
|
-
defaultBase: { js: [`${baseCdnUrl.defaultBase}/clipboard.js/${version}/clipboard.min.js`] },
|
|
28
|
-
localCDN: { js: [`${baseCdnUrl.localCDN}/clipboard/${version}/clipboard.min.js`] }
|
|
29
|
-
}
|
|
30
|
-
}),
|
|
31
|
-
// 富文本编辑器
|
|
32
|
-
tinymce: (version = "5.8.1") => ({
|
|
33
|
-
version,
|
|
34
|
-
instance: () => defaultWindow && defaultWindow.tinyMCE,
|
|
35
|
-
source: {
|
|
36
|
-
jsdelivr: { js: [`${baseCdnUrl.jsdelivr}/tinymce@${version}`] },
|
|
37
|
-
defaultBase: { js: [`${baseCdnUrl.defaultBase}/tinymce/${version}/tinymce.min.js`] },
|
|
38
|
-
localCDN: { js: [`${baseCdnUrl.localCDN}/tinymce/${version}/tinymce.min.js`] }
|
|
39
|
-
}
|
|
40
|
-
}),
|
|
41
|
-
// 二维码生成
|
|
42
|
-
QRCode: (version = "1.5.1") => ({
|
|
43
|
-
version,
|
|
44
|
-
instance: () => defaultWindow && defaultWindow.QRCode,
|
|
45
|
-
source: {
|
|
46
|
-
jsdelivr: { js: [`${baseCdnUrl.jsdelivr}/qrcode@${version}/build/qrcode.min.js`] },
|
|
47
|
-
defaultBase: { js: [`${baseCdnUrl.defaultBase}/qrcodejs/${version}/qrcode.min.js`] },
|
|
48
|
-
localCDN: { js: [`${baseCdnUrl.localCDN}/qrcode/${version}/qrcode.min.js`] }
|
|
49
|
-
}
|
|
50
|
-
}),
|
|
51
|
-
// 千分位
|
|
52
|
-
cleave: (version = "1.6.0") => ({
|
|
53
|
-
version,
|
|
54
|
-
instance: () => defaultWindow && defaultWindow.Cleave,
|
|
55
|
-
source: {
|
|
56
|
-
jsdelivr: { js: [`${baseCdnUrl.jsdelivr}/cleave.js@${version}`] },
|
|
57
|
-
defaultBase: { js: [`${baseCdnUrl.defaultBase}/cleave.js/${version}/cleave.min.js`] },
|
|
58
|
-
localCDN: { js: [`${baseCdnUrl.localCDN}/cleave/${version}/cleave.min.js`] }
|
|
59
|
-
}
|
|
60
|
-
}),
|
|
61
|
-
// fontawesome 全量css版本
|
|
62
|
-
fontawesomeCss: (version = "6.1.2") => ({
|
|
63
|
-
version,
|
|
64
|
-
instance: () => window,
|
|
65
|
-
source: {
|
|
66
|
-
jsdelivr: { js: [], css: [`${baseCdnUrl.jsdelivr}/@fortawesome/fontawesome-free@${version}/css/all.min.css`] },
|
|
67
|
-
defaultBase: { js: [], css: [`${baseCdnUrl.defaultBase}/font-awesome/${version}/css/all.min.css`] },
|
|
68
|
-
localCDN: { js: [], css: [`${baseCdnUrl.localCDN}/font-awesome/${version}/css/all.min.css`] }
|
|
69
|
-
}
|
|
70
|
-
}),
|
|
71
|
-
// fontawesome 全量js版本
|
|
72
|
-
fontawesomeJs: (version = "6.1.2") => ({
|
|
73
|
-
version,
|
|
74
|
-
instance: () => window,
|
|
75
|
-
source: {
|
|
76
|
-
jsdelivr: { js: [`${baseCdnUrl.jsdelivr}/@fortawesome/fontawesome-free@${version}/js/all.min.js`] },
|
|
77
|
-
defaultBase: { js: [`${baseCdnUrl.defaultBase}/font-awesome/${version}/js/all.min.js`] },
|
|
78
|
-
localCDN: { js: [`${baseCdnUrl.localCDN}/font-awesome/${version}/js/all.min.js`] }
|
|
79
|
-
}
|
|
80
|
-
}),
|
|
81
|
-
cropper: (version = "1.5.12") => ({
|
|
82
|
-
version,
|
|
83
|
-
instance: () => defaultWindow && defaultWindow.Cropper,
|
|
84
|
-
source: {
|
|
85
|
-
jsdelivr: { js: [`${baseCdnUrl.jsdelivr}/cropperjs@${version}`], css: [`${baseCdnUrl.jsdelivr}/cropperjs@${version}/dist/cropper.min.css`] },
|
|
86
|
-
defaultBase: { js: [`${baseCdnUrl.defaultBase}/cropperjs/${version}/cropper.min.js`], css: [`${baseCdnUrl.defaultBase}/cropperjs/${version}/cropper.min.css`] },
|
|
87
|
-
localCDN: { js: [`${baseCdnUrl.localCDN}/cropperjs/${version}/cropper.min.js`], css: [`${baseCdnUrl.localCDN}/cropperjs/${version}/cropper.min.css`] }
|
|
88
|
-
}
|
|
89
|
-
}),
|
|
90
|
-
// flagIcons
|
|
91
|
-
flagIcons: (version = "6.6.6") => ({
|
|
92
|
-
version,
|
|
93
|
-
instance: () => window,
|
|
94
|
-
source: {
|
|
95
|
-
jsdelivr: { js: [], css: [`${baseCdnUrl.jsdelivr}/flag-icons@${version}/css/flag-icons.min.css`] },
|
|
96
|
-
defaultBase: { js: [], css: [`${baseCdnUrl.defaultBase}/flag-icons/${version}/css/flag-icons.min.css`] },
|
|
97
|
-
localCDN: { js: [], css: [`${baseCdnUrl.localCDN}/flag-icons/${version}/css/flag-icons.min.css`] }
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
};
|
|
101
|
-
function cdnSource(name, version) {
|
|
102
|
-
const cdnName = defaultWindow?.vc?.cdn?.name || "jsdelivr";
|
|
103
|
-
const resource = cdnMapping[name];
|
|
104
|
-
if (!resource) {
|
|
105
|
-
const defaultResource = {
|
|
106
|
-
instance: () => ({}),
|
|
107
|
-
js: [`${baseCdnUrl.defaultBase}/${cdnName}.js/${version}/${cdnName}.min.js`],
|
|
108
|
-
css: [`${baseCdnUrl.defaultBase}/${cdnName}/${version}/${cdnName}.min.css`]
|
|
109
|
-
};
|
|
110
|
-
return defaultResource;
|
|
111
|
-
}
|
|
112
|
-
const item = resource(version);
|
|
113
|
-
return Object.assign({ instance: void 0, js: [], css: [], version: "" }, { ...item.source[cdnName], instance: item.instance, version: item.version });
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
const FLAG_LOADEED = "yes";
|
|
117
|
-
function isScriptLoaded(url) {
|
|
118
|
-
const script = url && document.querySelector(`script[src="${url}"]`);
|
|
119
|
-
return !!(script && script.dataset.loader === FLAG_LOADEED);
|
|
120
|
-
}
|
|
121
|
-
function getScript(url) {
|
|
122
|
-
const script = url && document.querySelector(`script[src="${url}"]`);
|
|
123
|
-
return script && !script.dataset.loader ? script : null;
|
|
124
|
-
}
|
|
125
|
-
const isCssLoaded = (url) => !!(url && document.querySelector(`link[href="${url}"]`));
|
|
126
|
-
function loadScriptSingle(url) {
|
|
127
|
-
return new Promise((resolve, reject) => {
|
|
128
|
-
if (isScriptLoaded(url)) {
|
|
129
|
-
resolve(true);
|
|
130
|
-
} else {
|
|
131
|
-
const myScript = getScript(url);
|
|
132
|
-
if (!myScript) {
|
|
133
|
-
const head = document.getElementsByTagName("head")[0];
|
|
134
|
-
const script = document.createElement("script");
|
|
135
|
-
script.type = "text/javascript";
|
|
136
|
-
script.src = url;
|
|
137
|
-
script.onload = () => {
|
|
138
|
-
script.dataset.loaded = FLAG_LOADEED;
|
|
139
|
-
resolve(true);
|
|
140
|
-
};
|
|
141
|
-
script.onerror = () => {
|
|
142
|
-
head.removeChild(script);
|
|
143
|
-
reject(new Error("load failed"));
|
|
144
|
-
};
|
|
145
|
-
head.appendChild(script);
|
|
146
|
-
} else {
|
|
147
|
-
const timeout = 1e4;
|
|
148
|
-
const interval = 10;
|
|
149
|
-
let times = 0;
|
|
150
|
-
const timer = setInterval(() => {
|
|
151
|
-
times += interval;
|
|
152
|
-
if (times >= timeout) {
|
|
153
|
-
clearInterval(timer);
|
|
154
|
-
reject(new Error("time out!"));
|
|
155
|
-
}
|
|
156
|
-
if (myScript.dataset.loaded === FLAG_LOADEED) {
|
|
157
|
-
clearInterval(timer);
|
|
158
|
-
resolve(true);
|
|
159
|
-
}
|
|
160
|
-
}, interval);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
async function loadScript(urls, options = { sequence: true }) {
|
|
166
|
-
if (options.sequence) {
|
|
167
|
-
try {
|
|
168
|
-
for (let i = 0; i < urls.length; i += 1) {
|
|
169
|
-
await loadScriptSingle(urls[i]);
|
|
170
|
-
}
|
|
171
|
-
return Promise.resolve(true);
|
|
172
|
-
} catch (e) {
|
|
173
|
-
return Promise.reject(e);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
return Promise.all(urls.map((url) => loadScriptSingle(url)));
|
|
177
|
-
}
|
|
178
|
-
function loadCss(urls) {
|
|
179
|
-
const head = document.getElementsByTagName("head")[0];
|
|
180
|
-
urls.filter((url) => !isCssLoaded(url)).forEach((url) => {
|
|
181
|
-
const link = document.createElement("link");
|
|
182
|
-
link.type = "text/css";
|
|
183
|
-
link.rel = "stylesheet";
|
|
184
|
-
link.href = url;
|
|
185
|
-
head.appendChild(link);
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
function loadCdnSingle(name, version) {
|
|
189
|
-
const { js = [], css, instance } = cdnSource(name, version) || {};
|
|
190
|
-
Array.isArray(css) && css.length > 0 && loadCss(css);
|
|
191
|
-
return new Promise((resolve, reject) => {
|
|
192
|
-
loadScript(js).then(() => resolve(instance?.())).catch(() => reject(new Error(`加载 ${name} 失败`)));
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
const loadCdn = (names) => Promise.all(names.map((name) => loadCdnSingle(name)));
|
|
196
|
-
const index$1 = {
|
|
197
|
-
loadScriptSingle,
|
|
198
|
-
loadScript,
|
|
199
|
-
loadCss,
|
|
200
|
-
loadCdnSingle,
|
|
201
|
-
loadCdn,
|
|
202
|
-
baseCdnUrl,
|
|
203
|
-
cdnMapping,
|
|
204
|
-
cdnSource
|
|
205
|
-
};
|
|
206
|
-
|
|
207
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
208
2
|
|
|
209
3
|
function getDefaultExportFromCjs (x) {
|
|
@@ -3446,4 +3240,4 @@ const index = {
|
|
|
3446
3240
|
info
|
|
3447
3241
|
};
|
|
3448
3242
|
|
|
3449
|
-
export { index as
|
|
3243
|
+
export { index as i };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, mergeProps, unref, renderSlot } from 'vue';
|
|
2
|
-
import { c as buildProps, d as definePropType, u as useNamespace } from './
|
|
3
|
-
import { _ as _export_sfc, w as withInstall } from './
|
|
4
|
-
import { a as addUnit } from './
|
|
2
|
+
import { c as buildProps, d as definePropType, u as useNamespace } from './CcKUdl3e.mjs';
|
|
3
|
+
import { _ as _export_sfc, w as withInstall } from './BTsEMnf_.mjs';
|
|
4
|
+
import { a as addUnit } from './Bl0WQiki.mjs';
|
|
5
5
|
|
|
6
6
|
const iconProps = buildProps({
|
|
7
7
|
size: {
|
|
@@ -12,12 +12,12 @@ const iconProps = buildProps({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const _sfc_main = defineComponent({
|
|
16
|
+
...{
|
|
17
|
+
name: "ElIcon",
|
|
18
|
+
inheritAttrs: false
|
|
19
|
+
},
|
|
20
|
+
__name: "icon",
|
|
21
21
|
props: iconProps,
|
|
22
22
|
setup(__props) {
|
|
23
23
|
const props = __props;
|
|
@@ -33,16 +33,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
return (_ctx, _cache) => {
|
|
36
|
-
return openBlock(), createElementBlock(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
return openBlock(), createElementBlock(
|
|
37
|
+
"i",
|
|
38
|
+
mergeProps({
|
|
39
|
+
class: unref(ns).b(),
|
|
40
|
+
style: style.value
|
|
41
|
+
}, _ctx.$attrs),
|
|
42
|
+
[
|
|
43
|
+
renderSlot(_ctx.$slots, "default")
|
|
44
|
+
],
|
|
45
|
+
16
|
|
46
|
+
);
|
|
42
47
|
};
|
|
43
48
|
}
|
|
44
49
|
});
|
|
45
|
-
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "icon.vue"]]);
|
|
50
|
+
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);
|
|
46
51
|
|
|
47
52
|
const ElIcon = withInstall(Icon);
|
|
48
53
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, unref, createBlock, openBlock, mergeProps, withCtx, renderSlot, createCommentVNode, createElementBlock, normalizeClass, toDisplayString, createTextVNode } from 'vue';
|
|
2
|
-
import { u as useTooltipContentProps, r as roleTypes, f as useTooltipTriggerProps, a as ElTooltip } from './
|
|
3
|
-
import { c as buildProps, d as definePropType, q as isBoolean, u as useNamespace } from './
|
|
2
|
+
import { u as useTooltipContentProps, r as roleTypes, f as useTooltipTriggerProps, a as ElTooltip } from './DMYHOxhk.mjs';
|
|
3
|
+
import { c as buildProps, d as definePropType, q as isBoolean, u as useNamespace } from './CcKUdl3e.mjs';
|
|
4
4
|
import { E as EVENT_CODE } from './BTpNRPQW.mjs';
|
|
5
5
|
import { i as iconPropType } from '../components/icon/icon2.mjs';
|
|
6
|
-
import { _ as _export_sfc, w as withInstall, b as withInstallDirective } from './
|
|
7
|
-
import { a as addUnit } from './
|
|
6
|
+
import { _ as _export_sfc, w as withInstall, b as withInstallDirective } from './BTsEMnf_.mjs';
|
|
7
|
+
import { a as addUnit } from './Bl0WQiki.mjs';
|
|
8
8
|
|
|
9
9
|
const dropdownProps = buildProps({
|
|
10
10
|
trigger: {
|
|
@@ -86,6 +86,7 @@ const dropdownProps = buildProps({
|
|
|
86
86
|
type: definePropType(Object)
|
|
87
87
|
},
|
|
88
88
|
teleported: useTooltipContentProps.teleported,
|
|
89
|
+
appendTo: useTooltipContentProps.appendTo,
|
|
89
90
|
persistent: {
|
|
90
91
|
type: Boolean,
|
|
91
92
|
default: true
|
|
@@ -171,15 +172,16 @@ const popoverEmits = {
|
|
|
171
172
|
};
|
|
172
173
|
|
|
173
174
|
const updateEventKeyRaw = `onUpdate:visible`;
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
const _sfc_main = defineComponent({
|
|
176
|
+
...{
|
|
177
|
+
name: "ElPopover"
|
|
178
|
+
},
|
|
179
|
+
__name: "popover",
|
|
179
180
|
props: popoverProps,
|
|
180
181
|
emits: popoverEmits,
|
|
181
|
-
setup(__props, { expose, emit }) {
|
|
182
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
182
183
|
const props = __props;
|
|
184
|
+
const emit = __emit;
|
|
183
185
|
const onUpdateVisible = computed(() => {
|
|
184
186
|
return props[updateEventKeyRaw];
|
|
185
187
|
});
|
|
@@ -220,7 +222,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
222
|
emit("update:visible", false);
|
|
221
223
|
emit("after-leave");
|
|
222
224
|
};
|
|
223
|
-
|
|
225
|
+
__expose({
|
|
224
226
|
popperRef,
|
|
225
227
|
hide
|
|
226
228
|
});
|
|
@@ -246,26 +248,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
246
248
|
"aria-label": _ctx.title,
|
|
247
249
|
effect: _ctx.effect,
|
|
248
250
|
enterable: _ctx.enterable,
|
|
249
|
-
"popper-class":
|
|
250
|
-
"popper-style":
|
|
251
|
+
"popper-class": kls.value,
|
|
252
|
+
"popper-style": style.value,
|
|
251
253
|
teleported: _ctx.teleported,
|
|
252
254
|
"append-to": _ctx.appendTo,
|
|
253
255
|
persistent: _ctx.persistent,
|
|
254
|
-
"gpu-acceleration":
|
|
255
|
-
"onUpdate:visible":
|
|
256
|
+
"gpu-acceleration": gpuAcceleration.value,
|
|
257
|
+
"onUpdate:visible": onUpdateVisible.value,
|
|
256
258
|
onBeforeShow: beforeEnter,
|
|
257
259
|
onBeforeHide: beforeLeave,
|
|
258
260
|
onShow: afterEnter,
|
|
259
261
|
onHide: afterLeave
|
|
260
262
|
}), {
|
|
261
263
|
content: withCtx(() => [
|
|
262
|
-
_ctx.title ? (openBlock(), createElementBlock(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
_ctx.title ? (openBlock(), createElementBlock(
|
|
265
|
+
"div",
|
|
266
|
+
{
|
|
267
|
+
key: 0,
|
|
268
|
+
class: normalizeClass(unref(ns).e("title")),
|
|
269
|
+
role: "title"
|
|
270
|
+
},
|
|
271
|
+
toDisplayString(_ctx.title),
|
|
272
|
+
3
|
|
273
|
+
)) : createCommentVNode("v-if", true),
|
|
267
274
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
268
|
-
createTextVNode(
|
|
275
|
+
createTextVNode(
|
|
276
|
+
toDisplayString(_ctx.content),
|
|
277
|
+
1
|
|
278
|
+
)
|
|
269
279
|
])
|
|
270
280
|
]),
|
|
271
281
|
default: withCtx(() => [
|
|
@@ -276,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
276
286
|
};
|
|
277
287
|
}
|
|
278
288
|
});
|
|
279
|
-
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "popover.vue"]]);
|
|
289
|
+
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
|
|
280
290
|
|
|
281
291
|
const attachEvents = (el, binding) => {
|
|
282
292
|
const popperComponent = binding.arg || binding.value;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, reactive, defineComponent, h, Transition, withCtx, withDirectives, createVNode, vShow, createApp, toRefs, nextTick, isRef } from 'vue';
|
|
2
|
-
import { a as useGlobalComponentSettings } from './
|
|
3
|
-
import { r as removeClass, g as getStyle, b as addClass } from './
|
|
2
|
+
import { a as useGlobalComponentSettings } from './BUf50Y7Y.mjs';
|
|
3
|
+
import { r as removeClass, g as getStyle, b as addClass } from './Bl0WQiki.mjs';
|
|
4
4
|
import { isClient } from '@vueuse/core';
|
|
5
|
-
import { h as isString, p as isObject, w as hyphenate } from './
|
|
5
|
+
import { h as isString, p as isObject, w as hyphenate } from './CcKUdl3e.mjs';
|
|
6
6
|
|
|
7
7
|
function createLoadingComponent(options, appContext) {
|
|
8
8
|
let afterLeaveTimer;
|
|
@@ -65,41 +65,60 @@ function createLoadingComponent(options, appContext) {
|
|
|
65
65
|
});
|
|
66
66
|
return () => {
|
|
67
67
|
const svg = data.spinner || data.svg;
|
|
68
|
-
const spinner = h(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
68
|
+
const spinner = h(
|
|
69
|
+
"svg",
|
|
70
|
+
{
|
|
71
|
+
class: "circular",
|
|
72
|
+
viewBox: data.svgViewBox ? data.svgViewBox : "0 0 50 50",
|
|
73
|
+
...svg ? { innerHTML: svg } : {}
|
|
74
|
+
},
|
|
75
|
+
[
|
|
76
|
+
h("circle", {
|
|
77
|
+
class: "path",
|
|
78
|
+
cx: "25",
|
|
79
|
+
cy: "25",
|
|
80
|
+
r: "20",
|
|
81
|
+
fill: "none"
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
);
|
|
81
85
|
const spinnerText = data.text ? h("p", { class: ns.b("text") }, [data.text]) : void 0;
|
|
82
|
-
return h(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
86
|
+
return h(
|
|
87
|
+
Transition,
|
|
88
|
+
{
|
|
89
|
+
name: ns.b("fade"),
|
|
90
|
+
onAfterLeave: handleAfterLeave
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
withDirectives(
|
|
95
|
+
createVNode(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
style: {
|
|
99
|
+
backgroundColor: data.background || ""
|
|
100
|
+
},
|
|
101
|
+
class: [
|
|
102
|
+
ns.b("mask"),
|
|
103
|
+
data.customClass,
|
|
104
|
+
ns.is("fullscreen", data.fullscreen)
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
[
|
|
108
|
+
h(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
class: ns.b("spinner")
|
|
112
|
+
},
|
|
113
|
+
[spinner, spinnerText]
|
|
114
|
+
)
|
|
115
|
+
]
|
|
116
|
+
),
|
|
117
|
+
[[vShow, data.visible]]
|
|
118
|
+
)
|
|
119
|
+
])
|
|
120
|
+
}
|
|
121
|
+
);
|
|
103
122
|
};
|
|
104
123
|
}
|
|
105
124
|
});
|
|
@@ -127,15 +146,18 @@ const Loading = function(options = {}, context) {
|
|
|
127
146
|
if (resolved.fullscreen && fullscreenInstance) {
|
|
128
147
|
return fullscreenInstance;
|
|
129
148
|
}
|
|
130
|
-
const instance = createLoadingComponent(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
149
|
+
const instance = createLoadingComponent(
|
|
150
|
+
{
|
|
151
|
+
...resolved,
|
|
152
|
+
closed: () => {
|
|
153
|
+
var _a;
|
|
154
|
+
(_a = resolved.closed) == null ? void 0 : _a.call(resolved);
|
|
155
|
+
if (resolved.fullscreen)
|
|
156
|
+
fullscreenInstance = void 0;
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
context != null ? context : Loading._context
|
|
160
|
+
);
|
|
139
161
|
addStyle(resolved, resolved.parent, instance);
|
|
140
162
|
addClassList(resolved, resolved.parent, instance);
|
|
141
163
|
resolved.parent.vLoadingAddClassList = () => addClassList(resolved, resolved.parent, instance);
|
|
@@ -228,7 +250,9 @@ const createInstance = (el, binding) => {
|
|
|
228
250
|
const data = isString(key) && (vm == null ? void 0 : vm[key]) || key;
|
|
229
251
|
return ref(data);
|
|
230
252
|
};
|
|
231
|
-
const getProp = (name) => resolveExpression(
|
|
253
|
+
const getProp = (name) => resolveExpression(
|
|
254
|
+
getBindingProp(name) || el.getAttribute(getAttributeName(name))
|
|
255
|
+
);
|
|
232
256
|
const fullscreen = (_a = getBindingProp("fullscreen")) != null ? _a : binding.modifiers.fullscreen;
|
|
233
257
|
const options = {
|
|
234
258
|
text: getProp("text"),
|
|
@@ -271,14 +295,17 @@ const vLoading = {
|
|
|
271
295
|
if (!instance)
|
|
272
296
|
createInstance(el, binding);
|
|
273
297
|
else {
|
|
274
|
-
updateOptions(
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
298
|
+
updateOptions(
|
|
299
|
+
instance.options,
|
|
300
|
+
isObject(binding.value) ? binding.value : {
|
|
301
|
+
text: el.getAttribute(getAttributeName("text")),
|
|
302
|
+
svg: el.getAttribute(getAttributeName("svg")),
|
|
303
|
+
svgViewBox: el.getAttribute(getAttributeName("svgViewBox")),
|
|
304
|
+
spinner: el.getAttribute(getAttributeName("spinner")),
|
|
305
|
+
background: el.getAttribute(getAttributeName("background")),
|
|
306
|
+
customClass: el.getAttribute(getAttributeName("customClass"))
|
|
307
|
+
}
|
|
308
|
+
);
|
|
282
309
|
}
|
|
283
310
|
},
|
|
284
311
|
unmounted(el) {
|