@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,19 +1,19 @@
1
1
  import './index.css'
2
- import { c as buildProps, u as useNamespace } from '../../chunk/DRoyW749.mjs';
3
- import { f as useTooltipTriggerProps, u as useTooltipContentProps, a as ElTooltip } from '../../chunk/CLMc8GzD.mjs';
2
+ import { c as buildProps, u as useNamespace } from '../../chunk/CcKUdl3e.mjs';
3
+ import { f as useTooltipTriggerProps, u as useTooltipContentProps, a as ElTooltip } from '../../chunk/DMYHOxhk.mjs';
4
4
  /* empty css */
5
- import { b as buttonTypes, E as ElButton } from '../../chunk/D0LB3gF-.mjs';
5
+ import { b as buttonTypes, E as ElButton } from '../../chunk/CKbkzlkO.mjs';
6
6
  import { defineComponent, ref, computed, unref, createBlock, openBlock, mergeProps, withCtx, renderSlot, createCommentVNode, createElementVNode, normalizeClass, createTextVNode, normalizeStyle, resolveDynamicComponent, toDisplayString, createVNode, createElementBlock } from 'vue';
7
7
  import { ElMessageBox } from 'element-plus';
8
8
  import { i as injectConfig } from '../config-provider/config-provider2.mjs';
9
- import { C as Component$1 } from '../icon/icon.mjs';
9
+ import { _ as _sfc_main$2 } from '../icon/icon.mjs';
10
10
  import { useThrottleFn } from '@vueuse/core';
11
- import { E as ElIcon } from '../../chunk/cPBw23yt.mjs';
11
+ import { E as ElIcon } from '../../chunk/DEPZhJ0Z.mjs';
12
12
  import { QuestionFilled } from '@element-plus/icons-vue';
13
13
  import { i as iconPropType } from '../icon/icon2.mjs';
14
- import { _ as _export_sfc, w as withInstall } from '../../chunk/DTLPXrjb.mjs';
15
- import { u as useLocale } from '../../chunk/Dk6Bx0KT.mjs';
16
- import { a as addUnit } from '../../chunk/CizMbf5K.mjs';
14
+ import { _ as _export_sfc, w as withInstall } from '../../chunk/BTsEMnf_.mjs';
15
+ import { u as useLocale } from '../../chunk/plK2vnjp.mjs';
16
+ import { a as addUnit } from '../../chunk/Bl0WQiki.mjs';
17
17
  import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
18
18
 
19
19
  const popconfirmProps = buildProps({
@@ -61,15 +61,16 @@ const popconfirmEmits = {
61
61
  cancel: (e) => e instanceof MouseEvent
62
62
  };
63
63
 
64
- const __default__ = defineComponent({
65
- name: "ElPopconfirm"
66
- });
67
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
68
- ...__default__,
64
+ const _sfc_main$1 = defineComponent({
65
+ ...{
66
+ name: "ElPopconfirm"
67
+ },
68
+ __name: "popconfirm",
69
69
  props: popconfirmProps,
70
70
  emits: popconfirmEmits,
71
- setup(__props, { expose, emit }) {
71
+ setup(__props, { expose: __expose, emit: __emit }) {
72
72
  const props = __props;
73
+ const emit = __emit;
73
74
  const { t } = useLocale();
74
75
  const ns = useNamespace("popconfirm");
75
76
  const tooltipRef = ref();
@@ -99,9 +100,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
99
100
  emit("cancel", e);
100
101
  hidePopper();
101
102
  };
102
- const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
103
- const finalCancelButtonText = computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
104
- expose({
103
+ const finalConfirmButtonText = computed(
104
+ () => props.confirmButtonText || t("el.popconfirm.confirmButtonText")
105
+ );
106
+ const finalCancelButtonText = computed(
107
+ () => props.cancelButtonText || t("el.popconfirm.cancelButtonText")
108
+ );
109
+ __expose({
105
110
  popperRef,
106
111
  hide: hidePopper
107
112
  });
@@ -115,7 +120,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
115
120
  "virtual-triggering": _ctx.virtualTriggering,
116
121
  "virtual-ref": _ctx.virtualRef,
117
122
  "popper-class": `${unref(ns).namespace.value}-popover`,
118
- "popper-style": unref(style),
123
+ "popper-style": style.value,
119
124
  teleported: _ctx.teleported,
120
125
  "fallback-placements": ["bottom", "top", "right", "left"],
121
126
  "hide-after": _ctx.hideAfter,
@@ -124,59 +129,83 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
124
129
  onShow: showPopper
125
130
  }), {
126
131
  content: withCtx(() => [
127
- createElementVNode("div", {
128
- ref_key: "rootRef",
129
- ref: rootRef,
130
- tabindex: "-1",
131
- class: normalizeClass(unref(ns).b())
132
- }, [
133
- createElementVNode("div", {
134
- class: normalizeClass(unref(ns).e("main"))
135
- }, [
136
- !_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
137
- key: 0,
138
- class: normalizeClass(unref(ns).e("icon")),
139
- style: normalizeStyle({ color: _ctx.iconColor })
140
- }, {
141
- default: withCtx(() => [
142
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
143
- ]),
144
- _: 1
145
- }, 8, ["class", "style"])) : createCommentVNode("v-if", true),
146
- createTextVNode(" " + toDisplayString(_ctx.title), 1)
147
- ], 2),
148
- createElementVNode("div", {
149
- class: normalizeClass(unref(ns).e("action"))
150
- }, [
151
- renderSlot(_ctx.$slots, "actions", {
152
- confirm,
153
- cancel
154
- }, () => [
155
- createVNode(unref(ElButton), {
156
- size: "small",
157
- type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
158
- text: _ctx.cancelButtonType === "text",
159
- onClick: cancel
160
- }, {
161
- default: withCtx(() => [
162
- createTextVNode(toDisplayString(unref(finalCancelButtonText)), 1)
163
- ]),
164
- _: 1
165
- }, 8, ["type", "text"]),
166
- createVNode(unref(ElButton), {
167
- size: "small",
168
- type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
169
- text: _ctx.confirmButtonType === "text",
170
- onClick: confirm
171
- }, {
172
- default: withCtx(() => [
173
- createTextVNode(toDisplayString(unref(finalConfirmButtonText)), 1)
174
- ]),
175
- _: 1
176
- }, 8, ["type", "text"])
177
- ])
178
- ], 2)
179
- ], 2)
132
+ createElementVNode(
133
+ "div",
134
+ {
135
+ ref_key: "rootRef",
136
+ ref: rootRef,
137
+ tabindex: "-1",
138
+ class: normalizeClass(unref(ns).b())
139
+ },
140
+ [
141
+ createElementVNode(
142
+ "div",
143
+ {
144
+ class: normalizeClass(unref(ns).e("main"))
145
+ },
146
+ [
147
+ !_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
148
+ key: 0,
149
+ class: normalizeClass(unref(ns).e("icon")),
150
+ style: normalizeStyle({ color: _ctx.iconColor })
151
+ }, {
152
+ default: withCtx(() => [
153
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
154
+ ]),
155
+ _: 1
156
+ }, 8, ["class", "style"])) : createCommentVNode("v-if", true),
157
+ createTextVNode(
158
+ " " + toDisplayString(_ctx.title),
159
+ 1
160
+ )
161
+ ],
162
+ 2
163
+ ),
164
+ createElementVNode(
165
+ "div",
166
+ {
167
+ class: normalizeClass(unref(ns).e("action"))
168
+ },
169
+ [
170
+ renderSlot(_ctx.$slots, "actions", {
171
+ confirm,
172
+ cancel
173
+ }, () => [
174
+ createVNode(unref(ElButton), {
175
+ size: "small",
176
+ type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
177
+ text: _ctx.cancelButtonType === "text",
178
+ onClick: cancel
179
+ }, {
180
+ default: withCtx(() => [
181
+ createTextVNode(
182
+ toDisplayString(finalCancelButtonText.value),
183
+ 1
184
+ )
185
+ ]),
186
+ _: 1
187
+ }, 8, ["type", "text"]),
188
+ createVNode(unref(ElButton), {
189
+ size: "small",
190
+ type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
191
+ text: _ctx.confirmButtonType === "text",
192
+ onClick: confirm
193
+ }, {
194
+ default: withCtx(() => [
195
+ createTextVNode(
196
+ toDisplayString(finalConfirmButtonText.value),
197
+ 1
198
+ )
199
+ ]),
200
+ _: 1
201
+ }, 8, ["type", "text"])
202
+ ])
203
+ ],
204
+ 2
205
+ )
206
+ ],
207
+ 2
208
+ )
180
209
  ]),
181
210
  default: withCtx(() => [
182
211
  _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
@@ -186,7 +215,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
186
215
  };
187
216
  }
188
217
  });
189
- var Popconfirm = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "popconfirm.vue"]]);
218
+ var Popconfirm = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);
190
219
 
191
220
  const ElPopconfirm = withInstall(Popconfirm);
192
221
 
@@ -249,7 +278,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
249
278
  onClick: unref(handleClick)
250
279
  }), {
251
280
  default: withCtx(() => [
252
- unref(position) === "left" && unref(name) ? (openBlock(), createBlock(Component$1, {
281
+ unref(position) === "left" && unref(name) ? (openBlock(), createBlock(_sfc_main$2, {
253
282
  key: 0,
254
283
  type: unref(iconType),
255
284
  name: unref(name)
@@ -257,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
257
286
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1, [
258
287
  renderSlot(_ctx.$slots, "default")
259
288
  ])) : createCommentVNode("", true),
260
- unref(position) === "right" && unref(name) ? (openBlock(), createBlock(Component$1, {
289
+ unref(position) === "right" && unref(name) ? (openBlock(), createBlock(_sfc_main$2, {
261
290
  key: 2,
262
291
  type: unref(iconType),
263
292
  name: unref(name)
@@ -273,7 +302,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
273
302
  onClick: unref(handleClick)
274
303
  }), {
275
304
  default: withCtx(() => [
276
- unref(position) === "left" && unref(name) ? (openBlock(), createBlock(Component$1, {
305
+ unref(position) === "left" && unref(name) ? (openBlock(), createBlock(_sfc_main$2, {
277
306
  key: 0,
278
307
  type: unref(iconType),
279
308
  name: unref(name)
@@ -281,7 +310,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
281
310
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2, [
282
311
  renderSlot(_ctx.$slots, "default")
283
312
  ])) : createCommentVNode("", true),
284
- unref(position) === "right" && unref(name) ? (openBlock(), createBlock(Component$1, {
313
+ unref(position) === "right" && unref(name) ? (openBlock(), createBlock(_sfc_main$2, {
285
314
  key: 2,
286
315
  type: unref(iconType),
287
316
  name: unref(name)
@@ -1,6 +1,6 @@
1
1
  import './index.css'
2
- import '../../chunk/DRoyW749.mjs';
3
- import { E as ElRadioGroup, a as ElCheckboxGroup } from '../../chunk/DFOLES4O.mjs';
2
+ import '../../chunk/CcKUdl3e.mjs';
3
+ import { E as ElRadioGroup, a as ElCheckboxGroup } from '../../chunk/BA2yoAwy.mjs';
4
4
  import { defineComponent, computed, createBlock, openBlock, mergeProps, unref } from 'vue';
5
5
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
6
6
 
@@ -11,6 +11,7 @@ export interface IConfigProviderProps {
11
11
  iconfontUrl?: string;
12
12
  pcaBaseUrl?: string;
13
13
  crosProxy?: string;
14
+ localCdn?: string;
14
15
  }
15
16
  export declare const KEY_NAME: unique symbol;
16
17
  export declare const injectConfig: () => IConfigProviderProps;
@@ -1,5 +1,6 @@
1
- import { defineComponent, onMounted, renderSlot } from 'vue';
2
- import { i as index } from '../../chunk/DaCDeO95.mjs';
1
+ import { defineComponent, onBeforeMount, renderSlot } from 'vue';
2
+ import { i as index } from '../../chunk/BaJ7k5Lg.mjs';
3
+ import '../../chunk/D9iEroQw.mjs';
3
4
  import { useProvide } from '../../use/useStore/index.mjs';
4
5
  import { K as KEY_NAME } from './config-provider2.mjs';
5
6
 
@@ -9,13 +10,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
10
  button: {},
10
11
  iconfontUrl: {},
11
12
  pcaBaseUrl: {},
12
- crosProxy: {}
13
+ crosProxy: {},
14
+ localCdn: {}
13
15
  },
14
16
  setup(__props) {
15
17
  const props = __props;
16
18
  useProvide(KEY_NAME, props);
17
- onMounted(() => {
18
- if (!window.VC?.isSVGIconLock && props.iconfontUrl) {
19
+ onBeforeMount(() => {
20
+ if (!window.VC) {
21
+ window.VC = {};
22
+ }
23
+ if (props.localCdn) {
24
+ window.VC.cdn = { name: "localCDN", path: props.localCdn };
25
+ }
26
+ if (!window.VC.isSVGIconLock && props.iconfontUrl) {
19
27
  window.VC = { ...window.VC, isSVGIconLock: true };
20
28
  index.loadScriptSingle(props.iconfontUrl);
21
29
  }
@@ -1,18 +1,19 @@
1
1
  import './index.css'
2
- import { c as buildProps, q as isBoolean, u as useNamespace } from '../../chunk/DRoyW749.mjs';
3
- import { v as vLoading } from '../../chunk/BHsNc7jl.mjs';
4
- import { E as ElSpace } from '../../chunk/Cu6erWl4.mjs';
5
- import { E as ElButton } from '../../chunk/D0LB3gF-.mjs';
6
- import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, renderSlot, withCtx, resolveDynamicComponent, ref, useTemplateRef, shallowRef, watch, nextTick, onMounted, onUnmounted, withDirectives, isRef, createElementVNode, normalizeStyle, createVNode, createTextVNode } from 'vue';
7
- import { i as index$1 } from '../../chunk/DaCDeO95.mjs';
2
+ import { c as buildProps, q as isBoolean, u as useNamespace } from '../../chunk/CcKUdl3e.mjs';
3
+ import { v as vLoading } from '../../chunk/DKpRXDRE.mjs';
4
+ import { E as ElSpace } from '../../chunk/CzqeSQn4.mjs';
5
+ import { E as ElButton } from '../../chunk/CKbkzlkO.mjs';
6
+ import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, unref, withCtx, resolveDynamicComponent, ref, useTemplateRef, shallowRef, watch, nextTick, onMounted, onUnmounted, withDirectives, isRef, createElementVNode, normalizeStyle, createVNode, createTextVNode } from 'vue';
7
+ import { i as index$1 } from '../../chunk/BaJ7k5Lg.mjs';
8
+ import '../../chunk/D9iEroQw.mjs';
8
9
  import { C as Component$1 } from '../dialog/dialog.mjs';
9
10
  import { defaultWindow } from '@vueuse/core';
10
- import { E as ElIcon } from '../../chunk/cPBw23yt.mjs';
11
+ import { E as ElIcon } from '../../chunk/DEPZhJ0Z.mjs';
11
12
  import { i as iconPropType } from '../icon/icon2.mjs';
12
- import { _ as _export_sfc, w as withInstall } from '../../chunk/DTLPXrjb.mjs';
13
- import { u as useGlobalConfig } from '../../chunk/B5UQmWXg.mjs';
14
- import { u as useDeprecated } from '../../chunk/Cbhe4I9Z.mjs';
15
- import { d as debounce } from '../../chunk/Bp9jXKX0.mjs';
13
+ import { _ as _export_sfc, w as withInstall } from '../../chunk/BTsEMnf_.mjs';
14
+ import { u as useGlobalConfig } from '../../chunk/BUf50Y7Y.mjs';
15
+ import { u as useDeprecated } from '../../chunk/DTEM_vYZ.mjs';
16
+ import { d as debounce } from '../../chunk/BambM7zX.mjs';
16
17
  import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
17
18
 
18
19
  const defaultImageOption = {
@@ -174,23 +175,28 @@ const linkEmits = {
174
175
  click: (evt) => evt instanceof MouseEvent
175
176
  };
176
177
 
177
- const __default__ = defineComponent({
178
- name: "ElLink"
179
- });
180
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
181
- ...__default__,
178
+ const _hoisted_1 = ["href", "target"];
179
+ const _sfc_main$1 = defineComponent({
180
+ ...{
181
+ name: "ElLink"
182
+ },
183
+ __name: "link",
182
184
  props: linkProps,
183
185
  emits: linkEmits,
184
- setup(__props, { emit }) {
186
+ setup(__props, { emit: __emit }) {
185
187
  const props = __props;
188
+ const emit = __emit;
186
189
  const globalConfig = useGlobalConfig("link");
187
- useDeprecated({
188
- scope: "el-link",
189
- from: "The underline option (boolean)",
190
- replacement: "'always' | 'hover' | 'never'",
191
- version: "3.0.0",
192
- ref: "https://element-plus.org/en-US/component/link.html#underline"
193
- }, computed(() => isBoolean(props.underline)));
190
+ useDeprecated(
191
+ {
192
+ scope: "el-link",
193
+ from: "The underline option (boolean)",
194
+ replacement: "'always' | 'hover' | 'never'",
195
+ version: "3.0.0",
196
+ ref: "https://element-plus.org/en-US/component/link.html#underline"
197
+ },
198
+ computed(() => isBoolean(props.underline))
199
+ );
194
200
  const ns = useNamespace("link");
195
201
  const linkKls = computed(() => {
196
202
  var _a, _b, _c;
@@ -215,7 +221,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
215
221
  }
216
222
  return (_ctx, _cache) => {
217
223
  return openBlock(), createElementBlock("a", {
218
- class: normalizeClass(unref(linkKls)),
224
+ class: normalizeClass(linkKls.value),
219
225
  href: _ctx.disabled || !_ctx.href ? void 0 : _ctx.href,
220
226
  target: _ctx.disabled || !_ctx.href ? void 0 : _ctx.target,
221
227
  onClick: handleClick
@@ -226,18 +232,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
226
232
  ]),
227
233
  _: 1
228
234
  })) : createCommentVNode("v-if", true),
229
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
230
- key: 1,
231
- class: normalizeClass(unref(ns).e("inner"))
232
- }, [
233
- renderSlot(_ctx.$slots, "default")
234
- ], 2)) : createCommentVNode("v-if", true),
235
+ _ctx.$slots.default ? (openBlock(), createElementBlock(
236
+ "span",
237
+ {
238
+ key: 1,
239
+ class: normalizeClass(unref(ns).e("inner"))
240
+ },
241
+ [
242
+ renderSlot(_ctx.$slots, "default")
243
+ ],
244
+ 2
245
+ )) : createCommentVNode("v-if", true),
235
246
  _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 2 }) : createCommentVNode("v-if", true)
236
- ], 10, ["href", "target"]);
247
+ ], 10, _hoisted_1);
237
248
  };
238
249
  }
239
250
  });
240
- var Link = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "link.vue"]]);
251
+ var Link = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);
241
252
 
242
253
  const ElLink = withInstall(Link);
243
254
 
@@ -1,9 +1,9 @@
1
1
  import './index.css'
2
- import '../../chunk/DRoyW749.mjs';
3
- import '../../chunk/DihosKp1.mjs';
4
- import { E as ElSelect, a as ElOption } from '../../chunk/HAog8AWU.mjs';
5
- import '../../chunk/axpwSky6.mjs';
6
- import '../../chunk/CLMc8GzD.mjs';
2
+ import '../../chunk/CcKUdl3e.mjs';
3
+ import '../../chunk/B1BnPYNG.mjs';
4
+ import { E as ElSelect, a as ElOption } from '../../chunk/CitH0taR.mjs';
5
+ import '../../chunk/_8u_XVHh.mjs';
6
+ import '../../chunk/DMYHOxhk.mjs';
7
7
  import { defineComponent, computed, ref, onBeforeMount, createBlock, openBlock, mergeProps, unref, isRef, createSlots, withCtx, createElementBlock, normalizeStyle, Fragment, renderList, createCommentVNode, createTextVNode, normalizeClass, toDisplayString } from 'vue';
8
8
  import { _ as _sfc_main$1 } from '../flag/flag.mjs';
9
9
  import { C as Component$1 } from '../thousand-input/thousand-input.mjs';