@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.
Files changed (132) hide show
  1. package/README.md +3 -3
  2. package/dist/es/chunk/{OEa4tYPF.mjs → -ga82G_B.mjs} +1 -1
  3. package/dist/es/chunk/B1BnPYNG.mjs +163 -0
  4. package/dist/es/chunk/{DFOLES4O.mjs → BA2yoAwy.mjs} +403 -502
  5. package/dist/es/chunk/{BpqBBo4z.mjs → BDyXj_90.mjs} +2 -2
  6. package/dist/es/chunk/{BI0vrXwX.mjs → BI-fNJhk.mjs} +6 -3
  7. package/dist/es/chunk/{BsGCX4td.mjs → BK4T_2ha.mjs} +1 -1
  8. package/dist/es/chunk/{73YgKz3H.mjs → BLLKi_0v.mjs} +1 -1
  9. package/dist/es/chunk/{DTLPXrjb.mjs → BTsEMnf_.mjs} +1 -1
  10. package/dist/es/chunk/{B5UQmWXg.mjs → BUf50Y7Y.mjs} +41 -21
  11. package/dist/es/chunk/{BzedaLtg.mjs → BYVaz5Or.mjs} +2 -2
  12. package/dist/es/chunk/BaJ7k5Lg.mjs +209 -0
  13. package/dist/es/chunk/{Bp9jXKX0.mjs → BambM7zX.mjs} +2 -2
  14. package/dist/es/chunk/{CizMbf5K.mjs → Bl0WQiki.mjs} +1 -1
  15. package/dist/es/chunk/{CLbj8G-F.mjs → Bnot0Gwc.mjs} +12 -4
  16. package/dist/es/chunk/{4eyJqDa9.mjs → BoGGHTrJ.mjs} +4 -2
  17. package/dist/es/chunk/C7Dgjpd1.mjs +242 -0
  18. package/dist/es/chunk/{D0LB3gF-.mjs → CKbkzlkO.mjs} +104 -72
  19. package/dist/es/chunk/{DrgvuOYH.mjs → CL5WTCB3.mjs} +4 -2
  20. package/dist/es/chunk/{XwSiBVsA.mjs → CM_I1FoA.mjs} +2 -2
  21. package/dist/es/chunk/{DouIsSPi.mjs → CNILa-hz.mjs} +1 -1
  22. package/dist/es/chunk/{DRoyW749.mjs → CcKUdl3e.mjs} +12 -6
  23. package/dist/es/chunk/CidLkmft.mjs +188 -0
  24. package/dist/es/chunk/{HAog8AWU.mjs → CitH0taR.mjs} +816 -539
  25. package/dist/es/chunk/{Cu6erWl4.mjs → CzqeSQn4.mjs} +73 -38
  26. package/dist/es/chunk/{CLCfXfvv.mjs → D7JQbDFE.mjs} +154 -118
  27. package/dist/es/chunk/{DaCDeO95.mjs → D9iEroQw.mjs} +1 -207
  28. package/dist/es/chunk/{cPBw23yt.mjs → DEPZhJ0Z.mjs} +21 -16
  29. package/dist/es/chunk/{CPERtDRX.mjs → DHpbQMGk.mjs} +32 -22
  30. package/dist/es/chunk/{BHsNc7jl.mjs → DKpRXDRE.mjs} +82 -55
  31. package/dist/es/chunk/{CLMc8GzD.mjs → DMYHOxhk.mjs} +462 -311
  32. package/dist/es/chunk/{CBSopeeE.mjs → DQHGjqG5.mjs} +9 -4
  33. package/dist/es/chunk/DTEM_vYZ.mjs +23 -0
  34. package/dist/es/chunk/{NQBKROII.mjs → DWcIzeMM.mjs} +1 -1
  35. package/dist/es/chunk/{FHvLvzEB.mjs → DX38FfmL.mjs} +1088 -697
  36. package/dist/es/chunk/{DZD-YnCt.mjs → Dcm-lOj8.mjs} +4 -4
  37. package/dist/es/chunk/{09Ec85_u.mjs → DdmNdV7I.mjs} +398 -278
  38. package/dist/es/chunk/{f0-vIQGp.mjs → DfHTA5LW.mjs} +3 -3
  39. package/dist/es/chunk/DgFT6snA.mjs +835 -0
  40. package/dist/es/chunk/{DwKWIlzw.mjs → DgSzI6Fw.mjs} +106 -71
  41. package/dist/es/chunk/{BcTuAX8r.mjs → Dsye5ZEp.mjs} +5 -3
  42. package/dist/es/chunk/{BsLJxiSC.mjs → Dw-yyl2m.mjs} +1 -1
  43. package/dist/es/chunk/{DXPWe_a5.mjs → U13Qpiki.mjs} +19 -13
  44. package/dist/es/chunk/{axpwSky6.mjs → _8u_XVHh.mjs} +168 -120
  45. package/dist/es/chunk/egk9EEzo.mjs +66 -0
  46. package/dist/es/chunk/{BUEEWLrd.mjs → ezK_XQQd.mjs} +15 -6
  47. package/dist/es/chunk/{Bl2KlMdP.mjs → oW98L-44.mjs} +8 -3
  48. package/dist/es/chunk/{Dk6Bx0KT.mjs → plK2vnjp.mjs} +8 -5
  49. package/dist/es/components/awesome-icon/awesome-icon.mjs +2 -1
  50. package/dist/es/components/backbottom/backbottom.mjs +2 -2
  51. package/dist/es/components/button/button.mjs +105 -76
  52. package/dist/es/components/choice/choice.mjs +2 -2
  53. package/dist/es/components/config-provider/config-provider.d.ts +1 -0
  54. package/dist/es/components/config-provider/config-provider.mjs +13 -5
  55. package/dist/es/components/cropper/cropper.mjs +44 -33
  56. package/dist/es/components/currency/currency.mjs +5 -5
  57. package/dist/es/components/daterange-picker/daterange-picker.mjs +2267 -1522
  58. package/dist/es/components/dialog/dialog.mjs +213 -172
  59. package/dist/es/components/dialog/index.css +1 -1
  60. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +11 -11
  61. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +5 -4
  62. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +495 -314
  63. package/dist/es/components/dialog-upload-images/index.css +1 -1
  64. package/dist/es/components/drag-verify/drag-verify.mjs +3 -3
  65. package/dist/es/components/drawer/drawer.mjs +136 -94
  66. package/dist/es/components/drawer/index.css +1 -1
  67. package/dist/es/components/easy-pagination/easy-pagination.mjs +2 -2
  68. package/dist/es/components/el-icon/el-icon.mjs +1 -1
  69. package/dist/es/components/el-icon/index.css +3 -2
  70. package/dist/es/components/flag/flag.mjs +2 -1
  71. package/dist/es/components/icon/icon.mjs +10 -31
  72. package/dist/es/components/icon/icon.vue.d.ts +1 -1
  73. package/dist/es/components/icon/icon2.mjs +1 -1
  74. package/dist/es/components/icon/index.mjs +2 -2
  75. package/dist/es/components/icon-picker/components/collections.vue.d.ts +625 -0
  76. package/dist/es/components/icon-picker/components/panel.vue.d.ts +9 -0
  77. package/dist/es/components/icon-picker/icon-picker.d.ts +40 -0
  78. package/dist/es/components/icon-picker/icon-picker.mjs +1375 -0
  79. package/dist/es/components/icon-picker/icon-picker.vue.d.ts +9 -0
  80. package/dist/es/components/icon-picker/index.css +121 -0
  81. package/dist/es/components/icon-picker/index.d.ts +4 -0
  82. package/dist/es/components/icon-picker/index.mjs +6 -0
  83. package/dist/es/components/iconify-icon/iconify-icon.d.ts +5 -0
  84. package/dist/es/components/iconify-icon/iconify-icon.mjs +1860 -0
  85. package/dist/es/components/iconify-icon/iconify-icon.vue.d.ts +6 -0
  86. package/dist/es/components/iconify-icon/index.css +11 -0
  87. package/dist/es/components/iconify-icon/index.d.ts +4 -0
  88. package/dist/es/components/iconify-icon/index.mjs +6 -0
  89. package/dist/es/components/image/image.mjs +5 -5
  90. package/dist/es/components/input/input.mjs +4 -4
  91. package/dist/es/components/input/input.vue.d.ts +63 -54
  92. package/dist/es/components/input-number/input-number.mjs +5 -5
  93. package/dist/es/components/pca-picker/components/c.vue.d.ts +4 -4
  94. package/dist/es/components/pca-picker/index.css +1 -1
  95. package/dist/es/components/pca-picker/pca-picker.mjs +154 -160
  96. package/dist/es/components/pca-picker/pca-picker.vue.d.ts +12 -11
  97. package/dist/es/components/qr-code/qr-code.mjs +2 -1
  98. package/dist/es/components/screenfull/screenfull.mjs +6 -5
  99. package/dist/es/components/scrollbar/index.css +18 -0
  100. package/dist/es/components/scrollbar/index.d.ts +4 -0
  101. package/dist/es/components/scrollbar/index.mjs +6 -0
  102. package/dist/es/components/scrollbar/scrollbar.d.ts +4 -0
  103. package/dist/es/components/scrollbar/scrollbar.mjs +65 -0
  104. package/dist/es/components/scrollbar/scrollbar.vue.d.ts +588 -0
  105. package/dist/es/components/select/select.mjs +7 -7
  106. package/dist/es/components/single-player/index.css +1 -1
  107. package/dist/es/components/single-player/single-player.mjs +265 -166
  108. package/dist/es/components/svg-icon/index.css +3 -2
  109. package/dist/es/components/svg-icon/svg-icon.mjs +3 -3
  110. package/dist/es/components/switch/switch.mjs +2 -2
  111. package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
  112. package/dist/es/components/tags/tags.mjs +9 -9
  113. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
  114. package/dist/es/components/thousand-input/thousand-input.mjs +5 -4
  115. package/dist/es/components/thousand-input/thousand-input.vue.d.ts +126 -108
  116. package/dist/es/components/tinymce/index.css +1 -1
  117. package/dist/es/components/tinymce/tinymce.mjs +9 -8
  118. package/dist/es/components/tree-picker/components/popover-cascader.vue.d.ts +179 -141
  119. package/dist/es/components/tree-picker/popover-cascader.css +1 -1
  120. package/dist/es/components/tree-picker/tree-picker.mjs +10 -10
  121. package/dist/es/components/tree-picker/tree-picker.vue.d.ts +12 -11
  122. package/dist/es/components/upload-file/upload-file.mjs +3 -3
  123. package/dist/es/index.d.ts +3 -0
  124. package/dist/es/index.mjs +41 -31
  125. package/dist/global.d.ts +3 -0
  126. package/dist/index.css +166 -22
  127. package/package.json +8 -2
  128. package/dist/es/chunk/BtTIs3tG.mjs +0 -138
  129. package/dist/es/chunk/C7wQNvSS.mjs +0 -728
  130. package/dist/es/chunk/Cbhe4I9Z.mjs +0 -16
  131. package/dist/es/chunk/DihosKp1.mjs +0 -140
  132. 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 a, index$1 as i };
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 './DRoyW749.mjs';
3
- import { _ as _export_sfc, w as withInstall } from './DTLPXrjb.mjs';
4
- import { a as addUnit } from './CizMbf5K.mjs';
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 __default__ = defineComponent({
16
- name: "ElIcon",
17
- inheritAttrs: false
18
- });
19
- const _sfc_main = /* @__PURE__ */ defineComponent({
20
- ...__default__,
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("i", mergeProps({
37
- class: unref(ns).b(),
38
- style: unref(style)
39
- }, _ctx.$attrs), [
40
- renderSlot(_ctx.$slots, "default")
41
- ], 16);
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 './CLMc8GzD.mjs';
3
- import { c as buildProps, d as definePropType, q as isBoolean, u as useNamespace } from './DRoyW749.mjs';
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 './DTLPXrjb.mjs';
7
- import { a as addUnit } from './CizMbf5K.mjs';
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 __default__ = defineComponent({
175
- name: "ElPopover"
176
- });
177
- const _sfc_main = /* @__PURE__ */ defineComponent({
178
- ...__default__,
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
- expose({
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": unref(kls),
250
- "popper-style": unref(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": unref(gpuAcceleration),
255
- "onUpdate:visible": unref(onUpdateVisible),
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("div", {
263
- key: 0,
264
- class: normalizeClass(unref(ns).e("title")),
265
- role: "title"
266
- }, toDisplayString(_ctx.title), 3)) : createCommentVNode("v-if", true),
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(toDisplayString(_ctx.content), 1)
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 './B5UQmWXg.mjs';
3
- import { r as removeClass, g as getStyle, b as addClass } from './CizMbf5K.mjs';
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 './DRoyW749.mjs';
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("svg", {
69
- class: "circular",
70
- viewBox: data.svgViewBox ? data.svgViewBox : "0 0 50 50",
71
- ...svg ? { innerHTML: svg } : {}
72
- }, [
73
- h("circle", {
74
- class: "path",
75
- cx: "25",
76
- cy: "25",
77
- r: "20",
78
- fill: "none"
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(Transition, {
83
- name: ns.b("fade"),
84
- onAfterLeave: handleAfterLeave
85
- }, {
86
- default: withCtx(() => [
87
- withDirectives(createVNode("div", {
88
- style: {
89
- backgroundColor: data.background || ""
90
- },
91
- class: [
92
- ns.b("mask"),
93
- data.customClass,
94
- ns.is("fullscreen", data.fullscreen)
95
- ]
96
- }, [
97
- h("div", {
98
- class: ns.b("spinner")
99
- }, [spinner, spinnerText])
100
- ]), [[vShow, data.visible]])
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
- ...resolved,
132
- closed: () => {
133
- var _a;
134
- (_a = resolved.closed) == null ? void 0 : _a.call(resolved);
135
- if (resolved.fullscreen)
136
- fullscreenInstance = void 0;
137
- }
138
- }, context != null ? context : Loading._context);
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(getBindingProp(name) || el.getAttribute(getAttributeName(name)));
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(instance.options, isObject(binding.value) ? binding.value : {
275
- text: el.getAttribute(getAttributeName("text")),
276
- svg: el.getAttribute(getAttributeName("svg")),
277
- svgViewBox: el.getAttribute(getAttributeName("svgViewBox")),
278
- spinner: el.getAttribute(getAttributeName("spinner")),
279
- background: el.getAttribute(getAttributeName("background")),
280
- customClass: el.getAttribute(getAttributeName("customClass"))
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) {