@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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "2.10.0",
4
+ "version": "2.10.1-alpha.1682526037541",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "2.10.0",
4
+ "version": "2.10.1-alpha.1682526037541",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
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.0";
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.0",
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.0",
50
- "@varlet/shared": "2.10.0",
51
- "@varlet/use": "2.10.0"
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.0",
67
- "@varlet/touch-emulator": "2.10.0"
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",