@varlet/ui 3.13.0 → 3.13.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.
@@ -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": "3.13.0",
4
+ "version": "3.13.1",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -1075,6 +1075,15 @@
1075
1075
  "type": "boolean",
1076
1076
  "kind": "expression"
1077
1077
  }
1078
+ },
1079
+ {
1080
+ "name": "animated",
1081
+ "description": "Whether to enable content switching animation",
1082
+ "default": "true",
1083
+ "value": {
1084
+ "type": "boolean",
1085
+ "kind": "expression"
1086
+ }
1078
1087
  }
1079
1088
  ],
1080
1089
  "events": [
@@ -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": "3.13.0",
4
+ "version": "3.13.1",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -1075,6 +1075,15 @@
1075
1075
  "type": "boolean",
1076
1076
  "kind": "expression"
1077
1077
  }
1078
+ },
1079
+ {
1080
+ "name": "animated",
1081
+ "description": "是否启用内容切换动画",
1082
+ "default": "true",
1083
+ "value": {
1084
+ "type": "boolean",
1085
+ "kind": "expression"
1086
+ }
1078
1087
  }
1079
1088
  ],
1080
1089
  "events": [
package/lib/varlet.cjs.js CHANGED
@@ -9822,6 +9822,10 @@ const props$12 = {
9822
9822
  type: [Number, String],
9823
9823
  default: 1
9824
9824
  },
9825
+ animated: {
9826
+ type: Boolean,
9827
+ default: true
9828
+ },
9825
9829
  fixed: Boolean,
9826
9830
  border: Boolean,
9827
9831
  variant: Boolean,
@@ -9931,6 +9935,7 @@ const __sfc__$1b = vue.defineComponent({
9931
9935
  props: props$12,
9932
9936
  setup(props2, { slots }) {
9933
9937
  const bottomNavigationDom = vue.ref(null);
9938
+ const animated = vue.computed(() => props2.animated);
9934
9939
  const active = vue.computed(() => props2.active);
9935
9940
  const activeColor = vue.computed(() => props2.activeColor);
9936
9941
  const inactiveColor = vue.computed(() => props2.inactiveColor);
@@ -9939,6 +9944,7 @@ const __sfc__$1b = vue.defineComponent({
9939
9944
  const fabProps = vue.ref({});
9940
9945
  const { length, bottomNavigationItems, bindBottomNavigationItem } = useBottomNavigationItems();
9941
9946
  const bottomNavigationProvider = {
9947
+ animated,
9942
9948
  active,
9943
9949
  activeColor,
9944
9950
  inactiveColor,
@@ -10101,7 +10107,15 @@ function __render__$17(_ctx, _cache) {
10101
10107
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
10102
10108
  "button",
10103
10109
  {
10104
- class: vue.normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"), [_ctx.variant, _ctx.n("--variant-padding")], [_ctx.isActive && !_ctx.variant, _ctx.n("--active")])),
10110
+ class: vue.normalizeClass(
10111
+ _ctx.classes(
10112
+ _ctx.n(),
10113
+ _ctx.n("$--box"),
10114
+ [_ctx.variant, _ctx.n("--variant-padding")],
10115
+ [_ctx.isActive && !_ctx.variant, _ctx.n("--active")],
10116
+ [_ctx.animated, _ctx.n("--animated")]
10117
+ )
10118
+ ),
10105
10119
  style: vue.normalizeStyle({
10106
10120
  color: _ctx.isActive ? _ctx.activeColor : _ctx.inactiveColor
10107
10121
  }),
@@ -10190,7 +10204,7 @@ const __sfc__$1a = vue.defineComponent({
10190
10204
  const isActive = vue.computed(() => [name2.value, index.value].includes(active.value));
10191
10205
  const badgeProps = vue.computed(() => props2.badge === true ? defaultBadgeProps : props2.badge);
10192
10206
  const { index, bottomNavigation, bindBottomNavigation } = useBottomNavigation();
10193
- const { active, activeColor, inactiveColor, variant } = bottomNavigation;
10207
+ const { animated, active, activeColor, inactiveColor, variant } = bottomNavigation;
10194
10208
  const bottomNavigationItemProvider = {
10195
10209
  name: name2,
10196
10210
  index
@@ -10203,6 +10217,7 @@ const __sfc__$1a = vue.defineComponent({
10203
10217
  call(bottomNavigation.onToggle, active2);
10204
10218
  }
10205
10219
  return {
10220
+ animated,
10206
10221
  activeColor,
10207
10222
  inactiveColor,
10208
10223
  badgeProps,
@@ -32141,7 +32156,7 @@ withInstall(stdin_default$1);
32141
32156
  withPropsDefaultsSetter(stdin_default$1, props);
32142
32157
  const _WatermarkComponent = stdin_default$1;
32143
32158
  var stdin_default = stdin_default$1;
32144
- const version = "3.13.0";
32159
+ const version = "3.13.1";
32145
32160
  function install(app) {
32146
32161
  stdin_default$60.install && app.use(stdin_default$60);
32147
32162
  stdin_default$5_.install && app.use(stdin_default$5_);