@wfrog/vc-ui 1.1.1 → 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 +1 -1
- 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/{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/{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/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/cropper/cropper.mjs +42 -32
- 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 +10 -10
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +3 -3
- 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 +2 -2
- 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/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 +153 -159
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +12 -11
- package/dist/es/components/screenfull/screenfull.mjs +4 -4
- 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 +3 -3
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +126 -108
- package/dist/es/components/tinymce/tinymce.mjs +4 -4
- 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 +2 -2
- 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 +165 -21
- 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,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) {
|