@varlet/ui 2.9.4-alpha.1680198474264 → 2.9.4

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.9.4-alpha.1680198474264",
4
+ "version": "2.9.4",
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.9.4-alpha.1680198474264",
4
+ "version": "2.9.4",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
package/lib/varlet.cjs.js CHANGED
@@ -15492,6 +15492,7 @@ var __sfc__$C = vue.defineComponent({
15492
15492
  var stickyOffsetTop = vue.computed(() => toPxNum(props2.stickyOffsetTop));
15493
15493
  var zIndex = vue.computed(() => props2.zIndex);
15494
15494
  var scroller = null;
15495
+ var isDeactivated = false;
15495
15496
  var indexBarProvider = {
15496
15497
  active,
15497
15498
  sticky: sticky2,
@@ -15549,7 +15550,7 @@ var __sfc__$C = vue.defineComponent({
15549
15550
  if (manualCall) {
15550
15551
  call(props2.onClick, anchorName);
15551
15552
  }
15552
- if (anchorName === active.value) {
15553
+ if (anchorName === active.value && !isDeactivated) {
15553
15554
  return;
15554
15555
  }
15555
15556
  var indexAnchor = indexAnchors.find((_ref3) => {
@@ -15618,7 +15619,21 @@ var __sfc__$C = vue.defineComponent({
15618
15619
  addScrollerListener();
15619
15620
  }));
15620
15621
  vue.onBeforeUnmount(removeScrollerListener);
15621
- vue.onDeactivated(removeScrollerListener);
15622
+ vue.onDeactivated(() => {
15623
+ isDeactivated = true;
15624
+ removeScrollerListener();
15625
+ });
15626
+ vue.onActivated(() => {
15627
+ if (!isDeactivated || active.value === void 0)
15628
+ return;
15629
+ anchorClick({
15630
+ anchorName: active.value,
15631
+ options: {
15632
+ event: false
15633
+ }
15634
+ });
15635
+ isDeactivated = false;
15636
+ });
15622
15637
  return {
15623
15638
  n: n$A,
15624
15639
  classes: classes$u,
@@ -25046,9 +25061,9 @@ const skeleton = "";
25046
25061
  const SkeletonSfc = "";
25047
25062
  const slider = "";
25048
25063
  const SliderSfc = "";
25064
+ const SnackbarSfc = "";
25049
25065
  const snackbar = "";
25050
25066
  const coreSfc = "";
25051
- const SnackbarSfc = "";
25052
25067
  const space = "";
25053
25068
  const step = "";
25054
25069
  const StepSfc = "";
@@ -25073,7 +25088,7 @@ const TimePickerSfc = "";
25073
25088
  const TooltipSfc = "";
25074
25089
  const uploader = "";
25075
25090
  const UploaderSfc = "";
25076
- const version = "2.9.4-alpha.1680198474264";
25091
+ const version = "2.9.4";
25077
25092
  function install(app) {
25078
25093
  ActionSheet.install && app.use(ActionSheet);
25079
25094
  AppBar.install && app.use(AppBar);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.9.4-alpha.1680198474264",
3
+ "version": "2.9.4",
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.9.4-alpha.1680198474264",
50
- "@varlet/shared": "2.9.4-alpha.1680198474264",
51
- "@varlet/use": "2.9.4-alpha.1680198474264"
49
+ "@varlet/icons": "2.9.4",
50
+ "@varlet/shared": "2.9.4",
51
+ "@varlet/use": "2.9.4"
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.25",
65
65
  "vue-router": "4.0.12",
66
- "@varlet/cli": "2.9.4-alpha.1680198474264",
67
- "@varlet/touch-emulator": "2.9.4-alpha.1680198474264"
66
+ "@varlet/cli": "2.9.4",
67
+ "@varlet/touch-emulator": "2.9.4"
68
68
  },
69
69
  "browserslist": [
70
70
  "Chrome >= 54",