@varlet/ui 2.19.3-alpha.1701190302604 → 2.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/badge/Badge.mjs +24 -2
- package/es/badge/badge.css +1 -1
- package/es/badge/props.mjs +9 -1
- package/es/collapse/Collapse.mjs +5 -5
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/varlet.esm.js +2750 -2729
- package/highlight/web-types.en-US.json +19 -1
- package/highlight/web-types.zh-CN.json +19 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +174 -145
- package/package.json +7 -7
- package/types/badge.d.ts +2 -0
- package/umd/varlet.js +5 -5
package/lib/varlet.cjs.js
CHANGED
|
@@ -8,21 +8,21 @@ const context = {
|
|
|
8
8
|
};
|
|
9
9
|
const _ContextComponent = vue.reactive(context);
|
|
10
10
|
var stdin_default$3w = vue.reactive(context);
|
|
11
|
-
var __defProp$
|
|
11
|
+
var __defProp$v = Object.defineProperty;
|
|
12
12
|
var __defProps$a = Object.defineProperties;
|
|
13
13
|
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
14
|
-
var __getOwnPropSymbols$
|
|
15
|
-
var __hasOwnProp$
|
|
16
|
-
var __propIsEnum$
|
|
17
|
-
var __defNormalProp$
|
|
18
|
-
var __spreadValues$
|
|
14
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
15
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
17
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
18
|
+
var __spreadValues$v = (a, b) => {
|
|
19
19
|
for (var prop in b || (b = {}))
|
|
20
|
-
if (__hasOwnProp$
|
|
21
|
-
__defNormalProp$
|
|
22
|
-
if (__getOwnPropSymbols$
|
|
23
|
-
for (var prop of __getOwnPropSymbols$
|
|
24
|
-
if (__propIsEnum$
|
|
25
|
-
__defNormalProp$
|
|
20
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
21
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
22
|
+
if (__getOwnPropSymbols$v)
|
|
23
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
24
|
+
if (__propIsEnum$v.call(b, prop))
|
|
25
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
26
26
|
}
|
|
27
27
|
return a;
|
|
28
28
|
};
|
|
@@ -114,7 +114,7 @@ var getRect = (element) => {
|
|
|
114
114
|
width,
|
|
115
115
|
height
|
|
116
116
|
};
|
|
117
|
-
return __spreadProps$a(__spreadValues$
|
|
117
|
+
return __spreadProps$a(__spreadValues$v({}, rect), {
|
|
118
118
|
toJSON: () => rect
|
|
119
119
|
});
|
|
120
120
|
}
|
|
@@ -217,30 +217,30 @@ function createNamespaceFn(namespace) {
|
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
var __defProp$
|
|
221
|
-
var __getOwnPropSymbols$
|
|
222
|
-
var __hasOwnProp$
|
|
223
|
-
var __propIsEnum$
|
|
224
|
-
var __defNormalProp$
|
|
225
|
-
var __spreadValues$
|
|
220
|
+
var __defProp$u = Object.defineProperty;
|
|
221
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
222
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
223
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
224
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
225
|
+
var __spreadValues$u = (a, b) => {
|
|
226
226
|
for (var prop in b || (b = {}))
|
|
227
|
-
if (__hasOwnProp$
|
|
228
|
-
__defNormalProp$
|
|
229
|
-
if (__getOwnPropSymbols$
|
|
230
|
-
for (var prop of __getOwnPropSymbols$
|
|
231
|
-
if (__propIsEnum$
|
|
232
|
-
__defNormalProp$
|
|
227
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
228
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
229
|
+
if (__getOwnPropSymbols$u)
|
|
230
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
231
|
+
if (__propIsEnum$u.call(b, prop))
|
|
232
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
233
233
|
}
|
|
234
234
|
return a;
|
|
235
235
|
};
|
|
236
236
|
var __objRest = (source, exclude) => {
|
|
237
237
|
var target = {};
|
|
238
238
|
for (var prop in source)
|
|
239
|
-
if (__hasOwnProp$
|
|
239
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
240
240
|
target[prop] = source[prop];
|
|
241
|
-
if (source != null && __getOwnPropSymbols$
|
|
242
|
-
for (var prop of __getOwnPropSymbols$
|
|
243
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
241
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
242
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
243
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
244
244
|
target[prop] = source[prop];
|
|
245
245
|
}
|
|
246
246
|
return target;
|
|
@@ -411,7 +411,7 @@ function useChildren(key) {
|
|
|
411
411
|
removeItem(childProviders, childProvider);
|
|
412
412
|
};
|
|
413
413
|
const bindChildren = (parentProvider) => {
|
|
414
|
-
vue.provide(key, __spreadValues$
|
|
414
|
+
vue.provide(key, __spreadValues$u({
|
|
415
415
|
childInstances,
|
|
416
416
|
collect,
|
|
417
417
|
clear: clear2
|
|
@@ -605,21 +605,21 @@ function useVModel(props2, key, options = {}) {
|
|
|
605
605
|
);
|
|
606
606
|
return proxy;
|
|
607
607
|
}
|
|
608
|
-
var __defProp$
|
|
608
|
+
var __defProp$t = Object.defineProperty;
|
|
609
609
|
var __defProps$9 = Object.defineProperties;
|
|
610
610
|
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
611
|
-
var __getOwnPropSymbols$
|
|
612
|
-
var __hasOwnProp$
|
|
613
|
-
var __propIsEnum$
|
|
614
|
-
var __defNormalProp$
|
|
615
|
-
var __spreadValues$
|
|
611
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
612
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
613
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
614
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
615
|
+
var __spreadValues$t = (a, b) => {
|
|
616
616
|
for (var prop in b || (b = {}))
|
|
617
|
-
if (__hasOwnProp$
|
|
618
|
-
__defNormalProp$
|
|
619
|
-
if (__getOwnPropSymbols$
|
|
620
|
-
for (var prop of __getOwnPropSymbols$
|
|
621
|
-
if (__propIsEnum$
|
|
622
|
-
__defNormalProp$
|
|
617
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
618
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
619
|
+
if (__getOwnPropSymbols$t)
|
|
620
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
621
|
+
if (__propIsEnum$t.call(b, prop))
|
|
622
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
623
623
|
}
|
|
624
624
|
return a;
|
|
625
625
|
};
|
|
@@ -668,7 +668,7 @@ function withPropsDefaultsSetter(target, props2) {
|
|
|
668
668
|
return;
|
|
669
669
|
}
|
|
670
670
|
if (isPlainObject(prop)) {
|
|
671
|
-
props2[key] = __spreadProps$9(__spreadValues$
|
|
671
|
+
props2[key] = __spreadProps$9(__spreadValues$t({}, prop), {
|
|
672
672
|
default: value
|
|
673
673
|
});
|
|
674
674
|
return;
|
|
@@ -695,7 +695,7 @@ function mount$1(component) {
|
|
|
695
695
|
function mountInstance(component, props2 = {}, eventListener = {}) {
|
|
696
696
|
const Host = {
|
|
697
697
|
setup() {
|
|
698
|
-
return () => vue.h(component, __spreadValues$
|
|
698
|
+
return () => vue.h(component, __spreadValues$t(__spreadValues$t({}, props2), eventListener));
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
701
|
const { unmount: unmount2 } = mount$1(Host);
|
|
@@ -779,21 +779,21 @@ function formatElevation(elevation2, defaultLevel) {
|
|
|
779
779
|
}
|
|
780
780
|
return `var-elevation--${elevation2}`;
|
|
781
781
|
}
|
|
782
|
-
var __defProp$
|
|
782
|
+
var __defProp$s = Object.defineProperty;
|
|
783
783
|
var __defProps$8 = Object.defineProperties;
|
|
784
784
|
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
785
|
-
var __getOwnPropSymbols$
|
|
786
|
-
var __hasOwnProp$
|
|
787
|
-
var __propIsEnum$
|
|
788
|
-
var __defNormalProp$
|
|
789
|
-
var __spreadValues$
|
|
785
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
786
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
787
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
788
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
789
|
+
var __spreadValues$s = (a, b) => {
|
|
790
790
|
for (var prop in b || (b = {}))
|
|
791
|
-
if (__hasOwnProp$
|
|
792
|
-
__defNormalProp$
|
|
793
|
-
if (__getOwnPropSymbols$
|
|
794
|
-
for (var prop of __getOwnPropSymbols$
|
|
795
|
-
if (__propIsEnum$
|
|
796
|
-
__defNormalProp$
|
|
791
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
792
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
793
|
+
if (__getOwnPropSymbols$s)
|
|
794
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
795
|
+
if (__propIsEnum$s.call(b, prop))
|
|
796
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
797
797
|
}
|
|
798
798
|
return a;
|
|
799
799
|
};
|
|
@@ -876,7 +876,7 @@ function forbidRippleTask() {
|
|
|
876
876
|
}
|
|
877
877
|
function mounted$2(el, binding) {
|
|
878
878
|
var _a;
|
|
879
|
-
el._ripple = __spreadProps$8(__spreadValues$
|
|
879
|
+
el._ripple = __spreadProps$8(__spreadValues$s({
|
|
880
880
|
tasker: null
|
|
881
881
|
}, (_a = binding.value) != null ? _a : {}), {
|
|
882
882
|
removeRipple: removeRipple.bind(el)
|
|
@@ -904,7 +904,7 @@ function updated$2(el, binding) {
|
|
|
904
904
|
};
|
|
905
905
|
const diff2 = newBinding.color !== ((_c = el._ripple) == null ? void 0 : _c.color) || newBinding.disabled !== ((_d = el._ripple) == null ? void 0 : _d.disabled);
|
|
906
906
|
if (diff2) {
|
|
907
|
-
el._ripple = __spreadValues$
|
|
907
|
+
el._ripple = __spreadValues$s({
|
|
908
908
|
tasker: newBinding.disabled ? null : (_e = el._ripple) == null ? void 0 : _e.tasker,
|
|
909
909
|
removeRipple: (_f = el._ripple) == null ? void 0 : _f.removeRipple
|
|
910
910
|
}, newBinding);
|
|
@@ -1057,19 +1057,19 @@ function usePopupItems() {
|
|
|
1057
1057
|
bindPopupItems: bindChildren
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
|
-
var __defProp$
|
|
1061
|
-
var __getOwnPropSymbols$
|
|
1062
|
-
var __hasOwnProp$
|
|
1063
|
-
var __propIsEnum$
|
|
1064
|
-
var __defNormalProp$
|
|
1065
|
-
var __spreadValues$
|
|
1060
|
+
var __defProp$r = Object.defineProperty;
|
|
1061
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
1062
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
1063
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
1064
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1065
|
+
var __spreadValues$r = (a, b) => {
|
|
1066
1066
|
for (var prop in b || (b = {}))
|
|
1067
|
-
if (__hasOwnProp$
|
|
1068
|
-
__defNormalProp$
|
|
1069
|
-
if (__getOwnPropSymbols$
|
|
1070
|
-
for (var prop of __getOwnPropSymbols$
|
|
1071
|
-
if (__propIsEnum$
|
|
1072
|
-
__defNormalProp$
|
|
1067
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
1068
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1069
|
+
if (__getOwnPropSymbols$r)
|
|
1070
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
1071
|
+
if (__propIsEnum$r.call(b, prop))
|
|
1072
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1073
1073
|
}
|
|
1074
1074
|
return a;
|
|
1075
1075
|
};
|
|
@@ -1122,7 +1122,7 @@ var stdin_default$3u = vue.defineComponent({
|
|
|
1122
1122
|
} = props2;
|
|
1123
1123
|
return vue.createVNode("div", {
|
|
1124
1124
|
"class": classes$19(n$1m("overlay"), overlayClass),
|
|
1125
|
-
"style": __spreadValues$
|
|
1125
|
+
"style": __spreadValues$r({
|
|
1126
1126
|
zIndex: zIndex.value - 1
|
|
1127
1127
|
}, overlayStyle),
|
|
1128
1128
|
"onClick": hidePopup
|
|
@@ -1425,23 +1425,23 @@ withInstall(stdin_default$3s);
|
|
|
1425
1425
|
withPropsDefaultsSetter(stdin_default$3s, props$1e);
|
|
1426
1426
|
const _IconComponent = stdin_default$3s;
|
|
1427
1427
|
var stdin_default$3r = stdin_default$3s;
|
|
1428
|
-
var __defProp$
|
|
1429
|
-
var __getOwnPropSymbols$
|
|
1430
|
-
var __hasOwnProp$
|
|
1431
|
-
var __propIsEnum$
|
|
1432
|
-
var __defNormalProp$
|
|
1433
|
-
var __spreadValues$
|
|
1428
|
+
var __defProp$q = Object.defineProperty;
|
|
1429
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
1430
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
1431
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
1432
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1433
|
+
var __spreadValues$q = (a, b) => {
|
|
1434
1434
|
for (var prop in b || (b = {}))
|
|
1435
|
-
if (__hasOwnProp$
|
|
1436
|
-
__defNormalProp$
|
|
1437
|
-
if (__getOwnPropSymbols$
|
|
1438
|
-
for (var prop of __getOwnPropSymbols$
|
|
1439
|
-
if (__propIsEnum$
|
|
1440
|
-
__defNormalProp$
|
|
1435
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
1436
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
1437
|
+
if (__getOwnPropSymbols$q)
|
|
1438
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
1439
|
+
if (__propIsEnum$q.call(b, prop))
|
|
1440
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
1441
1441
|
}
|
|
1442
1442
|
return a;
|
|
1443
1443
|
};
|
|
1444
|
-
const props$1d = __spreadValues$
|
|
1444
|
+
const props$1d = __spreadValues$q({
|
|
1445
1445
|
show: Boolean,
|
|
1446
1446
|
title: String,
|
|
1447
1447
|
actions: {
|
|
@@ -1783,19 +1783,19 @@ var stdin_default$3o = {
|
|
|
1783
1783
|
paginationJump: "前往"
|
|
1784
1784
|
};
|
|
1785
1785
|
var stdin_default$3n = stdin_default$3o;
|
|
1786
|
-
var __defProp$
|
|
1787
|
-
var __getOwnPropSymbols$
|
|
1788
|
-
var __hasOwnProp$
|
|
1789
|
-
var __propIsEnum$
|
|
1790
|
-
var __defNormalProp$
|
|
1791
|
-
var __spreadValues$
|
|
1786
|
+
var __defProp$p = Object.defineProperty;
|
|
1787
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
1788
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
1789
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
1790
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1791
|
+
var __spreadValues$p = (a, b) => {
|
|
1792
1792
|
for (var prop in b || (b = {}))
|
|
1793
|
-
if (__hasOwnProp$
|
|
1794
|
-
__defNormalProp$
|
|
1795
|
-
if (__getOwnPropSymbols$
|
|
1796
|
-
for (var prop of __getOwnPropSymbols$
|
|
1797
|
-
if (__propIsEnum$
|
|
1798
|
-
__defNormalProp$
|
|
1793
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
1794
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1795
|
+
if (__getOwnPropSymbols$p)
|
|
1796
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
1797
|
+
if (__propIsEnum$p.call(b, prop))
|
|
1798
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1799
1799
|
}
|
|
1800
1800
|
return a;
|
|
1801
1801
|
};
|
|
@@ -1818,7 +1818,7 @@ function useLocale() {
|
|
|
1818
1818
|
console.warn(`The ${lang} does not exist. You can mount a language package using the add method`);
|
|
1819
1819
|
return;
|
|
1820
1820
|
}
|
|
1821
|
-
packs2[lang] = __spreadValues$
|
|
1821
|
+
packs2[lang] = __spreadValues$p(__spreadValues$p({}, packs2[lang]), pack3);
|
|
1822
1822
|
use2(lang);
|
|
1823
1823
|
};
|
|
1824
1824
|
return {
|
|
@@ -1978,26 +1978,26 @@ const __sfc__$1l = vue.defineComponent({
|
|
|
1978
1978
|
});
|
|
1979
1979
|
__sfc__$1l.render = __render__$1k;
|
|
1980
1980
|
var stdin_default$3l = __sfc__$1l;
|
|
1981
|
-
var __defProp$
|
|
1982
|
-
var __getOwnPropSymbols$
|
|
1983
|
-
var __hasOwnProp$
|
|
1984
|
-
var __propIsEnum$
|
|
1985
|
-
var __defNormalProp$
|
|
1986
|
-
var __spreadValues$
|
|
1981
|
+
var __defProp$o = Object.defineProperty;
|
|
1982
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
1983
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
1984
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
1985
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1986
|
+
var __spreadValues$o = (a, b) => {
|
|
1987
1987
|
for (var prop in b || (b = {}))
|
|
1988
|
-
if (__hasOwnProp$
|
|
1989
|
-
__defNormalProp$
|
|
1990
|
-
if (__getOwnPropSymbols$
|
|
1991
|
-
for (var prop of __getOwnPropSymbols$
|
|
1992
|
-
if (__propIsEnum$
|
|
1993
|
-
__defNormalProp$
|
|
1988
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
1989
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
1990
|
+
if (__getOwnPropSymbols$o)
|
|
1991
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
1992
|
+
if (__propIsEnum$o.call(b, prop))
|
|
1993
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
1994
1994
|
}
|
|
1995
1995
|
return a;
|
|
1996
1996
|
};
|
|
1997
1997
|
let singletonOptions$3;
|
|
1998
1998
|
let defaultOptions$3 = {};
|
|
1999
1999
|
function normalizeOptions$3(options = {}) {
|
|
2000
|
-
return __spreadValues$
|
|
2000
|
+
return __spreadValues$o(__spreadValues$o({}, defaultOptions$3), options);
|
|
2001
2001
|
}
|
|
2002
2002
|
function ActionSheet(options) {
|
|
2003
2003
|
if (!inBrowser()) {
|
|
@@ -2269,19 +2269,19 @@ const padStart$1 = (str = "", maxLength, fillString = "") => {
|
|
|
2269
2269
|
const repeatCount = Math.floor(len / fillString.length);
|
|
2270
2270
|
return fillString.repeat(repeatCount) + fillString.slice(0, len % fillString.length) + str;
|
|
2271
2271
|
};
|
|
2272
|
-
var __defProp$
|
|
2273
|
-
var __getOwnPropSymbols$
|
|
2274
|
-
var __hasOwnProp$
|
|
2275
|
-
var __propIsEnum$
|
|
2276
|
-
var __defNormalProp$
|
|
2277
|
-
var __spreadValues$
|
|
2272
|
+
var __defProp$n = Object.defineProperty;
|
|
2273
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2274
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2275
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2276
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2277
|
+
var __spreadValues$n = (a, b) => {
|
|
2278
2278
|
for (var prop in b || (b = {}))
|
|
2279
|
-
if (__hasOwnProp$
|
|
2280
|
-
__defNormalProp$
|
|
2281
|
-
if (__getOwnPropSymbols$
|
|
2282
|
-
for (var prop of __getOwnPropSymbols$
|
|
2283
|
-
if (__propIsEnum$
|
|
2284
|
-
__defNormalProp$
|
|
2279
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2280
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2281
|
+
if (__getOwnPropSymbols$n)
|
|
2282
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2283
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2284
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2285
2285
|
}
|
|
2286
2286
|
return a;
|
|
2287
2287
|
};
|
|
@@ -2371,7 +2371,7 @@ function createLazy(el, binding) {
|
|
|
2371
2371
|
error: (_b = el.getAttribute(LAZY_ERROR)) != null ? _b : defaultLazyOptions.error,
|
|
2372
2372
|
attempt: el.getAttribute(LAZY_ATTEMPT) ? Number(el.getAttribute(LAZY_ATTEMPT)) : defaultLazyOptions.attempt
|
|
2373
2373
|
};
|
|
2374
|
-
el._lazy = __spreadValues$
|
|
2374
|
+
el._lazy = __spreadValues$n({
|
|
2375
2375
|
src: binding.value,
|
|
2376
2376
|
arg: binding.arg,
|
|
2377
2377
|
currentAttempt: 0,
|
|
@@ -3038,21 +3038,21 @@ const Hover = {
|
|
|
3038
3038
|
};
|
|
3039
3039
|
const _HoverComponent = Hover;
|
|
3040
3040
|
var stdin_default$38 = Hover;
|
|
3041
|
-
var __defProp$
|
|
3041
|
+
var __defProp$m = Object.defineProperty;
|
|
3042
3042
|
var __defProps$7 = Object.defineProperties;
|
|
3043
3043
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
3044
|
-
var __getOwnPropSymbols$
|
|
3045
|
-
var __hasOwnProp$
|
|
3046
|
-
var __propIsEnum$
|
|
3047
|
-
var __defNormalProp$
|
|
3048
|
-
var __spreadValues$
|
|
3044
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
3045
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
3046
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
3047
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3048
|
+
var __spreadValues$m = (a, b) => {
|
|
3049
3049
|
for (var prop in b || (b = {}))
|
|
3050
|
-
if (__hasOwnProp$
|
|
3051
|
-
__defNormalProp$
|
|
3052
|
-
if (__getOwnPropSymbols$
|
|
3053
|
-
for (var prop of __getOwnPropSymbols$
|
|
3054
|
-
if (__propIsEnum$
|
|
3055
|
-
__defNormalProp$
|
|
3050
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
3051
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
3052
|
+
if (__getOwnPropSymbols$m)
|
|
3053
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
3054
|
+
if (__propIsEnum$m.call(b, prop))
|
|
3055
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
3056
3056
|
}
|
|
3057
3057
|
return a;
|
|
3058
3058
|
};
|
|
@@ -3084,7 +3084,7 @@ const props$17 = {
|
|
|
3084
3084
|
loadingRadius: [Number, String],
|
|
3085
3085
|
loadingType: pickProps(props$19, "type"),
|
|
3086
3086
|
loadingSize: pickProps(props$19, "size"),
|
|
3087
|
-
loadingColor: __spreadProps$7(__spreadValues$
|
|
3087
|
+
loadingColor: __spreadProps$7(__spreadValues$m({}, pickProps(props$19, "color")), {
|
|
3088
3088
|
default: "currentColor"
|
|
3089
3089
|
}),
|
|
3090
3090
|
onClick: defineListenerProp(),
|
|
@@ -3379,7 +3379,31 @@ const props$15 = {
|
|
|
3379
3379
|
dot: Boolean,
|
|
3380
3380
|
icon: pickProps(props$1e, "name"),
|
|
3381
3381
|
namespace: pickProps(props$1e, "namespace"),
|
|
3382
|
-
color: String
|
|
3382
|
+
color: String,
|
|
3383
|
+
offsetX: {
|
|
3384
|
+
type: [String, Number],
|
|
3385
|
+
default: 0
|
|
3386
|
+
},
|
|
3387
|
+
offsetY: {
|
|
3388
|
+
type: [String, Number],
|
|
3389
|
+
default: 0
|
|
3390
|
+
}
|
|
3391
|
+
};
|
|
3392
|
+
var __defProp$l = Object.defineProperty;
|
|
3393
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
3394
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
3395
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
3396
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3397
|
+
var __spreadValues$l = (a, b) => {
|
|
3398
|
+
for (var prop in b || (b = {}))
|
|
3399
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
3400
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
3401
|
+
if (__getOwnPropSymbols$l)
|
|
3402
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
3403
|
+
if (__propIsEnum$l.call(b, prop))
|
|
3404
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
3405
|
+
}
|
|
3406
|
+
return a;
|
|
3383
3407
|
};
|
|
3384
3408
|
const { name: name$15, n: n$1c, classes: classes$$ } = createNamespace("badge");
|
|
3385
3409
|
const _hoisted_1$q = { key: 0 };
|
|
@@ -3403,11 +3427,11 @@ function __render__$1c(_ctx, _cache) {
|
|
|
3403
3427
|
class: _ctx.classes(
|
|
3404
3428
|
_ctx.n("content"),
|
|
3405
3429
|
_ctx.n(`--${_ctx.type}`),
|
|
3406
|
-
[_ctx.$slots.default, _ctx.n(`--${_ctx.position}`)],
|
|
3430
|
+
[_ctx.$slots.default, _ctx.n(`--${_ctx.position}`), _ctx.n("--offset")],
|
|
3407
3431
|
[_ctx.dot, _ctx.n("--dot")],
|
|
3408
3432
|
[_ctx.icon, _ctx.n("--icon")]
|
|
3409
3433
|
),
|
|
3410
|
-
style: { background: _ctx.color }
|
|
3434
|
+
style: __spreadValues$l({ background: _ctx.color }, _ctx.offsetStyle)
|
|
3411
3435
|
}, _ctx.$attrs),
|
|
3412
3436
|
[
|
|
3413
3437
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_var_icon, {
|
|
@@ -3451,8 +3475,13 @@ const __sfc__$1d = vue.defineComponent({
|
|
|
3451
3475
|
const { value: value2, maxValue } = props2;
|
|
3452
3476
|
return value2 != null && maxValue != null && toNumber(value2) > toNumber(maxValue) ? `${maxValue}+` : value2;
|
|
3453
3477
|
});
|
|
3478
|
+
const offsetStyle = vue.computed(() => ({
|
|
3479
|
+
[`--badge-offset-y`]: toSizeUnit(props2.offsetY),
|
|
3480
|
+
[`--badge-offset-x`]: toSizeUnit(props2.offsetX)
|
|
3481
|
+
}));
|
|
3454
3482
|
return {
|
|
3455
3483
|
value,
|
|
3484
|
+
offsetStyle,
|
|
3456
3485
|
n: n$1c,
|
|
3457
3486
|
classes: classes$$
|
|
3458
3487
|
};
|
|
@@ -5388,12 +5417,12 @@ const __sfc__$10 = vue.defineComponent({
|
|
|
5388
5417
|
bindCollapseItems(collapseProvider);
|
|
5389
5418
|
function updateItem(itemValue, targetExpand) {
|
|
5390
5419
|
if (props2.accordion) {
|
|
5391
|
-
const
|
|
5392
|
-
updateModelValue(
|
|
5420
|
+
const modelValue2 = targetExpand ? itemValue : void 0;
|
|
5421
|
+
updateModelValue(modelValue2);
|
|
5393
5422
|
return;
|
|
5394
5423
|
}
|
|
5395
|
-
const
|
|
5396
|
-
updateModelValue(
|
|
5424
|
+
const modelValue = targetExpand ? [...normalizeValues.value, itemValue] : normalizeValues.value.filter((value) => value !== itemValue);
|
|
5425
|
+
updateModelValue(modelValue);
|
|
5397
5426
|
}
|
|
5398
5427
|
function updateModelValue(modelValue) {
|
|
5399
5428
|
call(props2["onUpdate:modelValue"], modelValue);
|
|
@@ -24991,9 +25020,9 @@ const skeleton = "";
|
|
|
24991
25020
|
const SkeletonSfc = "";
|
|
24992
25021
|
const slider = "";
|
|
24993
25022
|
const SliderSfc = "";
|
|
25023
|
+
const SnackbarSfc = "";
|
|
24994
25024
|
const snackbar = "";
|
|
24995
25025
|
const coreSfc = "";
|
|
24996
|
-
const SnackbarSfc = "";
|
|
24997
25026
|
const space = "";
|
|
24998
25027
|
const step = "";
|
|
24999
25028
|
const StepSfc = "";
|
|
@@ -25020,7 +25049,7 @@ const uploader = "";
|
|
|
25020
25049
|
const UploaderSfc = "";
|
|
25021
25050
|
const watermark = "";
|
|
25022
25051
|
const WatermarkSfc = "";
|
|
25023
|
-
const version = "2.19.3
|
|
25052
|
+
const version = "2.19.3";
|
|
25024
25053
|
function install(app) {
|
|
25025
25054
|
stdin_default$3k.install && app.use(stdin_default$3k);
|
|
25026
25055
|
stdin_default$3i.install && app.use(stdin_default$3i);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.19.3
|
|
3
|
+
"version": "2.19.3",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@popperjs/core": "^2.11.6",
|
|
49
49
|
"dayjs": "^1.10.4",
|
|
50
50
|
"decimal.js": "^10.2.1",
|
|
51
|
-
"@varlet/icons": "2.19.3
|
|
52
|
-
"@varlet/
|
|
53
|
-
"@varlet/
|
|
51
|
+
"@varlet/icons": "2.19.3",
|
|
52
|
+
"@varlet/use": "2.19.3",
|
|
53
|
+
"@varlet/shared": "2.19.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"typescript": "^5.1.5",
|
|
67
67
|
"vue": "3.3.4",
|
|
68
68
|
"vue-router": "4.2.0",
|
|
69
|
-
"@varlet/
|
|
70
|
-
"@varlet/
|
|
71
|
-
"@varlet/
|
|
69
|
+
"@varlet/ui": "2.19.3",
|
|
70
|
+
"@varlet/touch-emulator": "2.19.3",
|
|
71
|
+
"@varlet/cli": "2.19.3"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "varlet-cli dev",
|
package/types/badge.d.ts
CHANGED