@vueuse/components 10.3.0 → 10.4.1
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/index.cjs +73 -354
- package/index.d.cts +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.iife.js +73 -354
- package/index.iife.min.js +1 -1
- package/index.mjs +74 -355
- package/package.json +5 -5
package/index.iife.js
CHANGED
|
@@ -173,9 +173,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
173
173
|
cleanup();
|
|
174
174
|
if (!el)
|
|
175
175
|
return;
|
|
176
|
+
const optionsClone = shared.isObject(options2) ? { ...options2 } : options2;
|
|
176
177
|
cleanups.push(
|
|
177
178
|
...events.flatMap((event) => {
|
|
178
|
-
return listeners.map((listener) => register(el, event, listener,
|
|
179
|
+
return listeners.map((listener) => register(el, event, listener, optionsClone));
|
|
179
180
|
})
|
|
180
181
|
);
|
|
181
182
|
},
|
|
@@ -303,22 +304,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
303
304
|
return useEventListener(target, eventName, listener, passive);
|
|
304
305
|
}
|
|
305
306
|
|
|
306
|
-
var __defProp$e = Object.defineProperty;
|
|
307
|
-
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
308
|
-
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
309
|
-
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
310
|
-
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
311
|
-
var __spreadValues$e = (a, b) => {
|
|
312
|
-
for (var prop in b || (b = {}))
|
|
313
|
-
if (__hasOwnProp$g.call(b, prop))
|
|
314
|
-
__defNormalProp$e(a, prop, b[prop]);
|
|
315
|
-
if (__getOwnPropSymbols$g)
|
|
316
|
-
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
317
|
-
if (__propIsEnum$g.call(b, prop))
|
|
318
|
-
__defNormalProp$e(a, prop, b[prop]);
|
|
319
|
-
}
|
|
320
|
-
return a;
|
|
321
|
-
};
|
|
322
307
|
const vOnKeyStroke = {
|
|
323
308
|
[shared.directiveHooks.mounted](el, binding) {
|
|
324
309
|
var _a, _b;
|
|
@@ -329,9 +314,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
329
314
|
});
|
|
330
315
|
} else {
|
|
331
316
|
const [handler, options] = binding.value;
|
|
332
|
-
onKeyStroke(keys, handler,
|
|
333
|
-
target: el
|
|
334
|
-
|
|
317
|
+
onKeyStroke(keys, handler, {
|
|
318
|
+
target: el,
|
|
319
|
+
...options
|
|
320
|
+
});
|
|
335
321
|
}
|
|
336
322
|
}
|
|
337
323
|
};
|
|
@@ -449,22 +435,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
449
435
|
return rawInit == null ? "any" : rawInit instanceof Set ? "set" : rawInit instanceof Map ? "map" : rawInit instanceof Date ? "date" : typeof rawInit === "boolean" ? "boolean" : typeof rawInit === "string" ? "string" : typeof rawInit === "object" ? "object" : !Number.isNaN(rawInit) ? "number" : "any";
|
|
450
436
|
}
|
|
451
437
|
|
|
452
|
-
var __defProp$d = Object.defineProperty;
|
|
453
|
-
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
454
|
-
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
455
|
-
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
456
|
-
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
457
|
-
var __spreadValues$d = (a, b) => {
|
|
458
|
-
for (var prop in b || (b = {}))
|
|
459
|
-
if (__hasOwnProp$f.call(b, prop))
|
|
460
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
461
|
-
if (__getOwnPropSymbols$f)
|
|
462
|
-
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
463
|
-
if (__propIsEnum$f.call(b, prop))
|
|
464
|
-
__defNormalProp$d(a, prop, b[prop]);
|
|
465
|
-
}
|
|
466
|
-
return a;
|
|
467
|
-
};
|
|
468
438
|
const StorageSerializers = {
|
|
469
439
|
boolean: {
|
|
470
440
|
read: (v) => v === "true",
|
|
@@ -578,7 +548,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
578
548
|
if (typeof mergeDefaults === "function")
|
|
579
549
|
return mergeDefaults(value, rawInit);
|
|
580
550
|
else if (type === "object" && !Array.isArray(value))
|
|
581
|
-
return
|
|
551
|
+
return { ...rawInit, ...value };
|
|
582
552
|
return value;
|
|
583
553
|
} else if (typeof rawValue !== "string") {
|
|
584
554
|
return rawValue;
|
|
@@ -600,7 +570,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
600
570
|
return;
|
|
601
571
|
pauseWatch();
|
|
602
572
|
try {
|
|
603
|
-
|
|
573
|
+
if ((event == null ? void 0 : event.newValue) !== serializer.write(data.value))
|
|
574
|
+
data.value = read(event);
|
|
604
575
|
} catch (e) {
|
|
605
576
|
onError(e);
|
|
606
577
|
} finally {
|
|
@@ -669,22 +640,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
669
640
|
return useMediaQuery("(prefers-color-scheme: dark)", options);
|
|
670
641
|
}
|
|
671
642
|
|
|
672
|
-
var __defProp$c = Object.defineProperty;
|
|
673
|
-
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
674
|
-
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
675
|
-
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
676
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
677
|
-
var __spreadValues$c = (a, b) => {
|
|
678
|
-
for (var prop in b || (b = {}))
|
|
679
|
-
if (__hasOwnProp$e.call(b, prop))
|
|
680
|
-
__defNormalProp$c(a, prop, b[prop]);
|
|
681
|
-
if (__getOwnPropSymbols$e)
|
|
682
|
-
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
683
|
-
if (__propIsEnum$e.call(b, prop))
|
|
684
|
-
__defNormalProp$c(a, prop, b[prop]);
|
|
685
|
-
}
|
|
686
|
-
return a;
|
|
687
|
-
};
|
|
688
643
|
function useColorMode(options = {}) {
|
|
689
644
|
const {
|
|
690
645
|
selector = "html",
|
|
@@ -698,11 +653,12 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
698
653
|
emitAuto,
|
|
699
654
|
disableTransition = true
|
|
700
655
|
} = options;
|
|
701
|
-
const modes =
|
|
656
|
+
const modes = {
|
|
702
657
|
auto: "",
|
|
703
658
|
light: "light",
|
|
704
|
-
dark: "dark"
|
|
705
|
-
|
|
659
|
+
dark: "dark",
|
|
660
|
+
...options.modes || {}
|
|
661
|
+
};
|
|
706
662
|
const preferredDark = usePreferredDark({ window });
|
|
707
663
|
const system = vueDemi.computed(() => preferredDark.value ? "dark" : "light");
|
|
708
664
|
const store = storageRef || (storageKey == null ? shared.toRef(initialValue) : useStorage(storageKey, initialValue, storage, { window, listenToStorageChanges }));
|
|
@@ -859,25 +815,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
859
815
|
}
|
|
860
816
|
});
|
|
861
817
|
|
|
862
|
-
var __defProp$b = Object.defineProperty;
|
|
863
|
-
var __defProps$9 = Object.defineProperties;
|
|
864
|
-
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
865
|
-
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
866
|
-
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
867
|
-
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
868
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
869
|
-
var __spreadValues$b = (a, b) => {
|
|
870
|
-
for (var prop in b || (b = {}))
|
|
871
|
-
if (__hasOwnProp$d.call(b, prop))
|
|
872
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
873
|
-
if (__getOwnPropSymbols$d)
|
|
874
|
-
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
875
|
-
if (__propIsEnum$d.call(b, prop))
|
|
876
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
877
|
-
}
|
|
878
|
-
return a;
|
|
879
|
-
};
|
|
880
|
-
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
881
818
|
const UseDraggable = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
882
819
|
name: "UseDraggable",
|
|
883
820
|
props: [
|
|
@@ -915,11 +852,12 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
915
852
|
storageValue.value.x = position.x;
|
|
916
853
|
storageValue.value.y = position.y;
|
|
917
854
|
};
|
|
918
|
-
const data = vueDemi.reactive(core.useDraggable(target,
|
|
855
|
+
const data = vueDemi.reactive(core.useDraggable(target, {
|
|
856
|
+
...props,
|
|
919
857
|
handle,
|
|
920
858
|
initialValue,
|
|
921
859
|
onEnd
|
|
922
|
-
}))
|
|
860
|
+
}));
|
|
923
861
|
return () => {
|
|
924
862
|
if (slots.default)
|
|
925
863
|
return vueDemi.h(props.as || "div", { ref: target, style: `touch-action:none;${data.style}` }, slots.default(data));
|
|
@@ -977,7 +915,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
977
915
|
|
|
978
916
|
const UseElementSize = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
979
917
|
name: "UseElementSize",
|
|
980
|
-
props: ["width", "height", "box"],
|
|
918
|
+
props: ["width", "height", "box", "as"],
|
|
981
919
|
setup(props, { slots }) {
|
|
982
920
|
const target = vueDemi.ref();
|
|
983
921
|
const data = vueDemi.reactive(core.useElementSize(target, { width: props.width, height: props.height }, { box: props.box }));
|
|
@@ -988,23 +926,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
988
926
|
}
|
|
989
927
|
});
|
|
990
928
|
|
|
991
|
-
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
992
|
-
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
993
|
-
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
994
|
-
var __objRest$1 = (source, exclude) => {
|
|
995
|
-
var target = {};
|
|
996
|
-
for (var prop in source)
|
|
997
|
-
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
998
|
-
target[prop] = source[prop];
|
|
999
|
-
if (source != null && __getOwnPropSymbols$c)
|
|
1000
|
-
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
1001
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
1002
|
-
target[prop] = source[prop];
|
|
1003
|
-
}
|
|
1004
|
-
return target;
|
|
1005
|
-
};
|
|
1006
929
|
function useResizeObserver(target, callback, options = {}) {
|
|
1007
|
-
const
|
|
930
|
+
const { window = defaultWindow, ...observerOptions } = options;
|
|
1008
931
|
let observer;
|
|
1009
932
|
const isSupported = useSupported(() => window && "ResizeObserver" in window);
|
|
1010
933
|
const cleanup = () => {
|
|
@@ -1177,7 +1100,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1177
1100
|
},
|
|
1178
1101
|
{
|
|
1179
1102
|
root: scrollTarget,
|
|
1180
|
-
window
|
|
1103
|
+
window,
|
|
1104
|
+
threshold: 0
|
|
1181
1105
|
}
|
|
1182
1106
|
);
|
|
1183
1107
|
return elementIsVisible;
|
|
@@ -1248,25 +1172,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1248
1172
|
}
|
|
1249
1173
|
});
|
|
1250
1174
|
|
|
1251
|
-
var __defProp$a = Object.defineProperty;
|
|
1252
|
-
var __defProps$8 = Object.defineProperties;
|
|
1253
|
-
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
1254
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
1255
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
1256
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
1257
|
-
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1258
|
-
var __spreadValues$a = (a, b) => {
|
|
1259
|
-
for (var prop in b || (b = {}))
|
|
1260
|
-
if (__hasOwnProp$b.call(b, prop))
|
|
1261
|
-
__defNormalProp$a(a, prop, b[prop]);
|
|
1262
|
-
if (__getOwnPropSymbols$b)
|
|
1263
|
-
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
1264
|
-
if (__propIsEnum$b.call(b, prop))
|
|
1265
|
-
__defNormalProp$a(a, prop, b[prop]);
|
|
1266
|
-
}
|
|
1267
|
-
return a;
|
|
1268
|
-
};
|
|
1269
|
-
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
1270
1175
|
function useAsyncState(promise, initialState, options) {
|
|
1271
1176
|
const {
|
|
1272
1177
|
immediate = true,
|
|
@@ -1319,29 +1224,14 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1319
1224
|
shared.until(isLoading).toBe(false).then(() => resolve(shell)).catch(reject);
|
|
1320
1225
|
});
|
|
1321
1226
|
}
|
|
1322
|
-
return
|
|
1227
|
+
return {
|
|
1228
|
+
...shell,
|
|
1323
1229
|
then(onFulfilled, onRejected) {
|
|
1324
1230
|
return waitUntilIsLoaded().then(onFulfilled, onRejected);
|
|
1325
1231
|
}
|
|
1326
|
-
}
|
|
1232
|
+
};
|
|
1327
1233
|
}
|
|
1328
1234
|
|
|
1329
|
-
var __defProp$9 = Object.defineProperty;
|
|
1330
|
-
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
1331
|
-
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
1332
|
-
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
1333
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1334
|
-
var __spreadValues$9 = (a, b) => {
|
|
1335
|
-
for (var prop in b || (b = {}))
|
|
1336
|
-
if (__hasOwnProp$a.call(b, prop))
|
|
1337
|
-
__defNormalProp$9(a, prop, b[prop]);
|
|
1338
|
-
if (__getOwnPropSymbols$a)
|
|
1339
|
-
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
1340
|
-
if (__propIsEnum$a.call(b, prop))
|
|
1341
|
-
__defNormalProp$9(a, prop, b[prop]);
|
|
1342
|
-
}
|
|
1343
|
-
return a;
|
|
1344
|
-
};
|
|
1345
1235
|
async function loadImage(options) {
|
|
1346
1236
|
return new Promise((resolve, reject) => {
|
|
1347
1237
|
const img = new Image();
|
|
@@ -1367,9 +1257,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1367
1257
|
const state = useAsyncState(
|
|
1368
1258
|
() => loadImage(shared.toValue(options)),
|
|
1369
1259
|
void 0,
|
|
1370
|
-
|
|
1371
|
-
resetOnExecute: true
|
|
1372
|
-
|
|
1260
|
+
{
|
|
1261
|
+
resetOnExecute: true,
|
|
1262
|
+
...asyncStateOptions
|
|
1263
|
+
}
|
|
1373
1264
|
);
|
|
1374
1265
|
vueDemi.watch(
|
|
1375
1266
|
() => shared.toValue(options),
|
|
@@ -1482,9 +1373,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1482
1373
|
};
|
|
1483
1374
|
const onScrollEndDebounced = shared.useDebounceFn(onScrollEnd, throttle + idle);
|
|
1484
1375
|
const setArrivedState = (target) => {
|
|
1376
|
+
var _a;
|
|
1485
1377
|
if (!window)
|
|
1486
1378
|
return;
|
|
1487
|
-
const el = target
|
|
1379
|
+
const el = target.document ? target.document.documentElement : (_a = target.documentElement) != null ? _a : target;
|
|
1488
1380
|
const { display, flexDirection } = getComputedStyle(el);
|
|
1489
1381
|
const scrollLeft = el.scrollLeft;
|
|
1490
1382
|
directions.left = scrollLeft < internalX.value;
|
|
@@ -1516,9 +1408,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1516
1408
|
internalY.value = scrollTop;
|
|
1517
1409
|
};
|
|
1518
1410
|
const onScrollHandler = (e) => {
|
|
1411
|
+
var _a;
|
|
1519
1412
|
if (!window)
|
|
1520
1413
|
return;
|
|
1521
|
-
const eventTarget = e.target
|
|
1414
|
+
const eventTarget = (_a = e.target.documentElement) != null ? _a : e.target;
|
|
1522
1415
|
setArrivedState(eventTarget);
|
|
1523
1416
|
isScrolling.value = true;
|
|
1524
1417
|
onScrollEndDebounced(e);
|
|
@@ -1550,25 +1443,14 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1550
1443
|
};
|
|
1551
1444
|
}
|
|
1552
1445
|
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
for (var prop in b || (b = {}))
|
|
1562
|
-
if (__hasOwnProp$9.call(b, prop))
|
|
1563
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
1564
|
-
if (__getOwnPropSymbols$9)
|
|
1565
|
-
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
1566
|
-
if (__propIsEnum$9.call(b, prop))
|
|
1567
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
1568
|
-
}
|
|
1569
|
-
return a;
|
|
1570
|
-
};
|
|
1571
|
-
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
1446
|
+
function resolveElement(el) {
|
|
1447
|
+
if (typeof Window !== "undefined" && el instanceof Window)
|
|
1448
|
+
return el.document.documentElement;
|
|
1449
|
+
if (typeof Document !== "undefined" && el instanceof Document)
|
|
1450
|
+
return el.documentElement;
|
|
1451
|
+
return el;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1572
1454
|
function useInfiniteScroll(element, onLoadMore, options = {}) {
|
|
1573
1455
|
var _a;
|
|
1574
1456
|
const {
|
|
@@ -1577,21 +1459,18 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1577
1459
|
} = options;
|
|
1578
1460
|
const state = vueDemi.reactive(useScroll(
|
|
1579
1461
|
element,
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1462
|
+
{
|
|
1463
|
+
...options,
|
|
1464
|
+
offset: {
|
|
1465
|
+
[direction]: (_a = options.distance) != null ? _a : 0,
|
|
1466
|
+
...options.offset
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1585
1469
|
));
|
|
1586
1470
|
const promise = vueDemi.ref();
|
|
1587
1471
|
const isLoading = vueDemi.computed(() => !!promise.value);
|
|
1588
1472
|
const observedElement = vueDemi.computed(() => {
|
|
1589
|
-
|
|
1590
|
-
if (el instanceof Window)
|
|
1591
|
-
return window.document.documentElement;
|
|
1592
|
-
if (el instanceof Document)
|
|
1593
|
-
return document.documentElement;
|
|
1594
|
-
return el;
|
|
1473
|
+
return resolveElement(shared.toValue(element));
|
|
1595
1474
|
});
|
|
1596
1475
|
const isElementVisible = useElementVisibility(observedElement);
|
|
1597
1476
|
function checkAndLoad() {
|
|
@@ -1665,31 +1544,12 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1665
1544
|
}
|
|
1666
1545
|
});
|
|
1667
1546
|
|
|
1668
|
-
var __defProp$7 = Object.defineProperty;
|
|
1669
|
-
var __defProps$6 = Object.defineProperties;
|
|
1670
|
-
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
1671
|
-
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
1672
|
-
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
1673
|
-
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
1674
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1675
|
-
var __spreadValues$7 = (a, b) => {
|
|
1676
|
-
for (var prop in b || (b = {}))
|
|
1677
|
-
if (__hasOwnProp$8.call(b, prop))
|
|
1678
|
-
__defNormalProp$7(a, prop, b[prop]);
|
|
1679
|
-
if (__getOwnPropSymbols$8)
|
|
1680
|
-
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
1681
|
-
if (__propIsEnum$8.call(b, prop))
|
|
1682
|
-
__defNormalProp$7(a, prop, b[prop]);
|
|
1683
|
-
}
|
|
1684
|
-
return a;
|
|
1685
|
-
};
|
|
1686
|
-
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
1687
1547
|
const UseMousePressed = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
1688
1548
|
name: "UseMousePressed",
|
|
1689
1549
|
props: ["touch", "initialValue", "as"],
|
|
1690
1550
|
setup(props, { slots }) {
|
|
1691
1551
|
const target = vueDemi.ref();
|
|
1692
|
-
const data = vueDemi.reactive(core.useMousePressed(
|
|
1552
|
+
const data = vueDemi.reactive(core.useMousePressed({ ...props, target }));
|
|
1693
1553
|
return () => {
|
|
1694
1554
|
if (slots.default)
|
|
1695
1555
|
return vueDemi.h(props.as || "div", { ref: target }, slots.default(data));
|
|
@@ -1708,30 +1568,11 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1708
1568
|
}
|
|
1709
1569
|
});
|
|
1710
1570
|
|
|
1711
|
-
var __defProp$6 = Object.defineProperty;
|
|
1712
|
-
var __defProps$5 = Object.defineProperties;
|
|
1713
|
-
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
1714
|
-
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
1715
|
-
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
1716
|
-
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
1717
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1718
|
-
var __spreadValues$6 = (a, b) => {
|
|
1719
|
-
for (var prop in b || (b = {}))
|
|
1720
|
-
if (__hasOwnProp$7.call(b, prop))
|
|
1721
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
1722
|
-
if (__getOwnPropSymbols$7)
|
|
1723
|
-
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
1724
|
-
if (__propIsEnum$7.call(b, prop))
|
|
1725
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
1726
|
-
}
|
|
1727
|
-
return a;
|
|
1728
|
-
};
|
|
1729
|
-
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
1730
1571
|
const UseNow = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
1731
1572
|
name: "UseNow",
|
|
1732
1573
|
props: ["interval"],
|
|
1733
1574
|
setup(props, { slots }) {
|
|
1734
|
-
const data = vueDemi.reactive(core.useNow(
|
|
1575
|
+
const data = vueDemi.reactive(core.useNow({ ...props, controls: true }));
|
|
1735
1576
|
return () => {
|
|
1736
1577
|
if (slots.default)
|
|
1737
1578
|
return slots.default(data);
|
|
@@ -1754,25 +1595,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1754
1595
|
}
|
|
1755
1596
|
});
|
|
1756
1597
|
|
|
1757
|
-
var __defProp$5 = Object.defineProperty;
|
|
1758
|
-
var __defProps$4 = Object.defineProperties;
|
|
1759
|
-
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
1760
|
-
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
1761
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
1762
|
-
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
1763
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1764
|
-
var __spreadValues$5 = (a, b) => {
|
|
1765
|
-
for (var prop in b || (b = {}))
|
|
1766
|
-
if (__hasOwnProp$6.call(b, prop))
|
|
1767
|
-
__defNormalProp$5(a, prop, b[prop]);
|
|
1768
|
-
if (__getOwnPropSymbols$6)
|
|
1769
|
-
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
1770
|
-
if (__propIsEnum$6.call(b, prop))
|
|
1771
|
-
__defNormalProp$5(a, prop, b[prop]);
|
|
1772
|
-
}
|
|
1773
|
-
return a;
|
|
1774
|
-
};
|
|
1775
|
-
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
1776
1598
|
const UseOffsetPagination = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
1777
1599
|
name: "UseOffsetPagination",
|
|
1778
1600
|
props: [
|
|
@@ -1789,7 +1611,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1789
1611
|
"page-count-change"
|
|
1790
1612
|
],
|
|
1791
1613
|
setup(props, { slots, emit }) {
|
|
1792
|
-
const data = vueDemi.reactive(core.useOffsetPagination(
|
|
1614
|
+
const data = vueDemi.reactive(core.useOffsetPagination({
|
|
1615
|
+
...props,
|
|
1793
1616
|
onPageChange(...args) {
|
|
1794
1617
|
var _a;
|
|
1795
1618
|
(_a = props.onPageChange) == null ? void 0 : _a.call(props, ...args);
|
|
@@ -1805,7 +1628,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1805
1628
|
(_a = props.onPageCountChange) == null ? void 0 : _a.call(props, ...args);
|
|
1806
1629
|
emit("page-count-change", ...args);
|
|
1807
1630
|
}
|
|
1808
|
-
}))
|
|
1631
|
+
}));
|
|
1809
1632
|
return () => {
|
|
1810
1633
|
if (slots.default)
|
|
1811
1634
|
return slots.default(data);
|
|
@@ -1839,25 +1662,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1839
1662
|
}
|
|
1840
1663
|
});
|
|
1841
1664
|
|
|
1842
|
-
var __defProp$4 = Object.defineProperty;
|
|
1843
|
-
var __defProps$3 = Object.defineProperties;
|
|
1844
|
-
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
1845
|
-
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
1846
|
-
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
1847
|
-
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
1848
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1849
|
-
var __spreadValues$4 = (a, b) => {
|
|
1850
|
-
for (var prop in b || (b = {}))
|
|
1851
|
-
if (__hasOwnProp$5.call(b, prop))
|
|
1852
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
1853
|
-
if (__getOwnPropSymbols$5)
|
|
1854
|
-
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
1855
|
-
if (__propIsEnum$5.call(b, prop))
|
|
1856
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
1857
|
-
}
|
|
1858
|
-
return a;
|
|
1859
|
-
};
|
|
1860
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
1861
1665
|
const UsePointer = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
1862
1666
|
name: "UsePointer",
|
|
1863
1667
|
props: [
|
|
@@ -1867,9 +1671,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1867
1671
|
],
|
|
1868
1672
|
setup(props, { slots }) {
|
|
1869
1673
|
const el = vueDemi.ref(null);
|
|
1870
|
-
const data = vueDemi.reactive(core.usePointer(
|
|
1674
|
+
const data = vueDemi.reactive(core.usePointer({
|
|
1675
|
+
...props,
|
|
1871
1676
|
target: props.target === "self" ? el : defaultWindow
|
|
1872
|
-
}))
|
|
1677
|
+
}));
|
|
1873
1678
|
return () => {
|
|
1874
1679
|
if (slots.default)
|
|
1875
1680
|
return slots.default(data, { ref: el });
|
|
@@ -1955,23 +1760,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1955
1760
|
}
|
|
1956
1761
|
});
|
|
1957
1762
|
|
|
1958
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
1959
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
1960
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
1961
|
-
var __objRest = (source, exclude) => {
|
|
1962
|
-
var target = {};
|
|
1963
|
-
for (var prop in source)
|
|
1964
|
-
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1965
|
-
target[prop] = source[prop];
|
|
1966
|
-
if (source != null && __getOwnPropSymbols$4)
|
|
1967
|
-
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
1968
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
1969
|
-
target[prop] = source[prop];
|
|
1970
|
-
}
|
|
1971
|
-
return target;
|
|
1972
|
-
};
|
|
1973
1763
|
function useMutationObserver(target, callback, options = {}) {
|
|
1974
|
-
const
|
|
1764
|
+
const { window = defaultWindow, ...mutationOptions } = options;
|
|
1975
1765
|
let observer;
|
|
1976
1766
|
const isSupported = useSupported(() => window && "MutationObserver" in window);
|
|
1977
1767
|
const cleanup = () => {
|
|
@@ -2113,25 +1903,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2113
1903
|
}
|
|
2114
1904
|
});
|
|
2115
1905
|
|
|
2116
|
-
var __defProp$3 = Object.defineProperty;
|
|
2117
|
-
var __defProps$2 = Object.defineProperties;
|
|
2118
|
-
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
2119
|
-
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
2120
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
2121
|
-
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
2122
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2123
|
-
var __spreadValues$3 = (a, b) => {
|
|
2124
|
-
for (var prop in b || (b = {}))
|
|
2125
|
-
if (__hasOwnProp$3.call(b, prop))
|
|
2126
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
2127
|
-
if (__getOwnPropSymbols$3)
|
|
2128
|
-
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
2129
|
-
if (__propIsEnum$3.call(b, prop))
|
|
2130
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
2131
|
-
}
|
|
2132
|
-
return a;
|
|
2133
|
-
};
|
|
2134
|
-
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
2135
1906
|
const vScroll = {
|
|
2136
1907
|
[shared.directiveHooks.mounted](el, binding) {
|
|
2137
1908
|
if (typeof binding.value === "function") {
|
|
@@ -2146,7 +1917,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2146
1917
|
});
|
|
2147
1918
|
} else {
|
|
2148
1919
|
const [handler, options] = binding.value;
|
|
2149
|
-
const state = useScroll(el,
|
|
1920
|
+
const state = useScroll(el, {
|
|
1921
|
+
...options,
|
|
2150
1922
|
onScroll(e) {
|
|
2151
1923
|
var _a;
|
|
2152
1924
|
(_a = options.onScroll) == null ? void 0 : _a.call(options, e);
|
|
@@ -2157,7 +1929,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2157
1929
|
(_a = options.onStop) == null ? void 0 : _a.call(options, e);
|
|
2158
1930
|
handler(state);
|
|
2159
1931
|
}
|
|
2160
|
-
})
|
|
1932
|
+
});
|
|
2161
1933
|
}
|
|
2162
1934
|
}
|
|
2163
1935
|
};
|
|
@@ -2189,8 +1961,9 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2189
1961
|
let stopTouchMoveListener = null;
|
|
2190
1962
|
let initialOverflow;
|
|
2191
1963
|
vueDemi.watch(shared.toRef(element), (el) => {
|
|
2192
|
-
|
|
2193
|
-
|
|
1964
|
+
const target = resolveElement(shared.toValue(el));
|
|
1965
|
+
if (target) {
|
|
1966
|
+
const ele = target;
|
|
2194
1967
|
initialOverflow = ele.style.overflow;
|
|
2195
1968
|
if (isLocked.value)
|
|
2196
1969
|
ele.style.overflow = "hidden";
|
|
@@ -2199,12 +1972,12 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2199
1972
|
immediate: true
|
|
2200
1973
|
});
|
|
2201
1974
|
const lock = () => {
|
|
2202
|
-
const
|
|
2203
|
-
if (!
|
|
1975
|
+
const el = resolveElement(shared.toValue(element));
|
|
1976
|
+
if (!el || isLocked.value)
|
|
2204
1977
|
return;
|
|
2205
1978
|
if (shared.isIOS) {
|
|
2206
1979
|
stopTouchMoveListener = useEventListener(
|
|
2207
|
-
|
|
1980
|
+
el,
|
|
2208
1981
|
"touchmove",
|
|
2209
1982
|
(e) => {
|
|
2210
1983
|
preventDefault(e);
|
|
@@ -2212,15 +1985,15 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2212
1985
|
{ passive: false }
|
|
2213
1986
|
);
|
|
2214
1987
|
}
|
|
2215
|
-
|
|
1988
|
+
el.style.overflow = "hidden";
|
|
2216
1989
|
isLocked.value = true;
|
|
2217
1990
|
};
|
|
2218
1991
|
const unlock = () => {
|
|
2219
|
-
const
|
|
2220
|
-
if (!
|
|
1992
|
+
const el = resolveElement(shared.toValue(element));
|
|
1993
|
+
if (!el || !isLocked.value)
|
|
2221
1994
|
return;
|
|
2222
1995
|
shared.isIOS && (stopTouchMoveListener == null ? void 0 : stopTouchMoveListener());
|
|
2223
|
-
|
|
1996
|
+
el.style.overflow = initialOverflow;
|
|
2224
1997
|
isLocked.value = false;
|
|
2225
1998
|
};
|
|
2226
1999
|
shared.tryOnScopeDispose(unlock);
|
|
@@ -2251,30 +2024,11 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2251
2024
|
}
|
|
2252
2025
|
const vScrollLock = onScrollLock();
|
|
2253
2026
|
|
|
2254
|
-
var __defProp$2 = Object.defineProperty;
|
|
2255
|
-
var __defProps$1 = Object.defineProperties;
|
|
2256
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
2257
|
-
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
2258
|
-
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
2259
|
-
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
2260
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2261
|
-
var __spreadValues$2 = (a, b) => {
|
|
2262
|
-
for (var prop in b || (b = {}))
|
|
2263
|
-
if (__hasOwnProp$2.call(b, prop))
|
|
2264
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
2265
|
-
if (__getOwnPropSymbols$2)
|
|
2266
|
-
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
2267
|
-
if (__propIsEnum$2.call(b, prop))
|
|
2268
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
2269
|
-
}
|
|
2270
|
-
return a;
|
|
2271
|
-
};
|
|
2272
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
2273
2027
|
const UseTimeAgo = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
2274
2028
|
name: "UseTimeAgo",
|
|
2275
2029
|
props: ["time", "updateInterval", "max", "fullDateFormatter", "messages", "showSecond"],
|
|
2276
2030
|
setup(props, { slots }) {
|
|
2277
|
-
const data = vueDemi.reactive(core.useTimeAgo(() => props.time,
|
|
2031
|
+
const data = vueDemi.reactive(core.useTimeAgo(() => props.time, { ...props, controls: true }));
|
|
2278
2032
|
return () => {
|
|
2279
2033
|
if (slots.default)
|
|
2280
2034
|
return slots.default(data);
|
|
@@ -2282,30 +2036,11 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2282
2036
|
}
|
|
2283
2037
|
});
|
|
2284
2038
|
|
|
2285
|
-
var __defProp$1 = Object.defineProperty;
|
|
2286
|
-
var __defProps = Object.defineProperties;
|
|
2287
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2288
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
2289
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
2290
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
2291
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2292
|
-
var __spreadValues$1 = (a, b) => {
|
|
2293
|
-
for (var prop in b || (b = {}))
|
|
2294
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
2295
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
2296
|
-
if (__getOwnPropSymbols$1)
|
|
2297
|
-
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
2298
|
-
if (__propIsEnum$1.call(b, prop))
|
|
2299
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
2300
|
-
}
|
|
2301
|
-
return a;
|
|
2302
|
-
};
|
|
2303
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
2304
2039
|
const UseTimestamp = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
2305
2040
|
name: "UseTimestamp",
|
|
2306
2041
|
props: ["immediate", "interval", "offset"],
|
|
2307
2042
|
setup(props, { slots }) {
|
|
2308
|
-
const data = vueDemi.reactive(core.useTimestamp(
|
|
2043
|
+
const data = vueDemi.reactive(core.useTimestamp({ ...props, controls: true }));
|
|
2309
2044
|
return () => {
|
|
2310
2045
|
if (slots.default)
|
|
2311
2046
|
return slots.default(data);
|
|
@@ -2313,22 +2048,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2313
2048
|
}
|
|
2314
2049
|
});
|
|
2315
2050
|
|
|
2316
|
-
var __defProp = Object.defineProperty;
|
|
2317
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2318
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2319
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
2320
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2321
|
-
var __spreadValues = (a, b) => {
|
|
2322
|
-
for (var prop in b || (b = {}))
|
|
2323
|
-
if (__hasOwnProp.call(b, prop))
|
|
2324
|
-
__defNormalProp(a, prop, b[prop]);
|
|
2325
|
-
if (__getOwnPropSymbols)
|
|
2326
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
2327
|
-
if (__propIsEnum.call(b, prop))
|
|
2328
|
-
__defNormalProp(a, prop, b[prop]);
|
|
2329
|
-
}
|
|
2330
|
-
return a;
|
|
2331
|
-
};
|
|
2332
2051
|
const UseVirtualList = /* @__PURE__ */ /* #__PURE__ */ vueDemi.defineComponent({
|
|
2333
2052
|
name: "UseVirtualList",
|
|
2334
2053
|
props: [
|
|
@@ -2343,11 +2062,11 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
2343
2062
|
typeof containerProps.style === "object" && !Array.isArray(containerProps.style) && (containerProps.style.height = props.height || "300px");
|
|
2344
2063
|
return () => vueDemi.h(
|
|
2345
2064
|
"div",
|
|
2346
|
-
|
|
2065
|
+
{ ...containerProps },
|
|
2347
2066
|
[
|
|
2348
2067
|
vueDemi.h(
|
|
2349
2068
|
"div",
|
|
2350
|
-
|
|
2069
|
+
{ ...wrapperProps.value },
|
|
2351
2070
|
list.value.map((item) => vueDemi.h(
|
|
2352
2071
|
"div",
|
|
2353
2072
|
{ style: { overFlow: "hidden", height: item.height } },
|