@varlet/ui 2.10.0 → 2.10.1-alpha.1682526037541
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/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/swipe/Swipe.mjs +8 -3
- package/es/varlet.esm.js +2567 -2565
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +6 -2
- package/package.json +6 -6
- package/umd/varlet.js +4 -4
package/lib/varlet.cjs.js
CHANGED
|
@@ -14171,6 +14171,7 @@ var __sfc__$I = vue.defineComponent({
|
|
|
14171
14171
|
bindSwipeItems,
|
|
14172
14172
|
length
|
|
14173
14173
|
} = useSwipeItems();
|
|
14174
|
+
var isCalledPrevOrNext = false;
|
|
14174
14175
|
var touching = false;
|
|
14175
14176
|
var timer = -1;
|
|
14176
14177
|
var startX;
|
|
@@ -14365,6 +14366,7 @@ var __sfc__$I = vue.defineComponent({
|
|
|
14365
14366
|
if (length.value <= 1) {
|
|
14366
14367
|
return;
|
|
14367
14368
|
}
|
|
14369
|
+
isCalledPrevOrNext = true;
|
|
14368
14370
|
var {
|
|
14369
14371
|
loop,
|
|
14370
14372
|
onChange
|
|
@@ -14389,6 +14391,7 @@ var __sfc__$I = vue.defineComponent({
|
|
|
14389
14391
|
if (length.value <= 1) {
|
|
14390
14392
|
return;
|
|
14391
14393
|
}
|
|
14394
|
+
isCalledPrevOrNext = true;
|
|
14392
14395
|
var {
|
|
14393
14396
|
loop,
|
|
14394
14397
|
onChange
|
|
@@ -14431,8 +14434,9 @@ var __sfc__$I = vue.defineComponent({
|
|
|
14431
14434
|
};
|
|
14432
14435
|
bindSwipeItems(swipeProvider);
|
|
14433
14436
|
vue.watch(() => length.value, /* @__PURE__ */ _asyncToGenerator$7(function* () {
|
|
14437
|
+
isCalledPrevOrNext = false;
|
|
14434
14438
|
yield doubleRaf();
|
|
14435
|
-
initialIndex();
|
|
14439
|
+
!isCalledPrevOrNext && initialIndex();
|
|
14436
14440
|
resize();
|
|
14437
14441
|
}));
|
|
14438
14442
|
vue.onActivated(resize);
|
|
@@ -25311,7 +25315,7 @@ const TimePickerSfc = "";
|
|
|
25311
25315
|
const TooltipSfc = "";
|
|
25312
25316
|
const uploader = "";
|
|
25313
25317
|
const UploaderSfc = "";
|
|
25314
|
-
const version = "2.10.
|
|
25318
|
+
const version = "2.10.1-alpha.1682526037541";
|
|
25315
25319
|
function install(app) {
|
|
25316
25320
|
ActionSheet.install && app.use(ActionSheet);
|
|
25317
25321
|
AppBar.install && app.use(AppBar);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.1-alpha.1682526037541",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@popperjs/core": "^2.11.6",
|
|
47
47
|
"dayjs": "^1.10.4",
|
|
48
48
|
"decimal.js": "^10.2.1",
|
|
49
|
-
"@varlet/icons": "2.10.
|
|
50
|
-
"@varlet/shared": "2.10.
|
|
51
|
-
"@varlet/use": "2.10.
|
|
49
|
+
"@varlet/icons": "2.10.1-alpha.1682526037541",
|
|
50
|
+
"@varlet/shared": "2.10.1-alpha.1682526037541",
|
|
51
|
+
"@varlet/use": "2.10.1-alpha.1682526037541"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/jest": "^26.0.15",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^4.4.4",
|
|
64
64
|
"vue": "3.2.47",
|
|
65
65
|
"vue-router": "4.1.6",
|
|
66
|
-
"@varlet/cli": "2.10.
|
|
67
|
-
"@varlet/touch-emulator": "2.10.
|
|
66
|
+
"@varlet/cli": "2.10.1-alpha.1682526037541",
|
|
67
|
+
"@varlet/touch-emulator": "2.10.1-alpha.1682526037541"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|