@varlet/ui 3.19.0 → 3.19.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.19.0",
4
+ "version": "3.19.1",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -862,6 +862,15 @@
862
862
  "kind": "expression"
863
863
  }
864
864
  },
865
+ {
866
+ "name": "size",
867
+ "description": "BackTop button size",
868
+ "default": "-",
869
+ "value": {
870
+ "type": "string | number",
871
+ "kind": "expression"
872
+ }
873
+ },
865
874
  {
866
875
  "name": "elevation",
867
876
  "description": "Elevation level, options `true` `false` and level of `0-24`",
@@ -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.19.0",
4
+ "version": "3.19.1",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -862,6 +862,15 @@
862
862
  "kind": "expression"
863
863
  }
864
864
  },
865
+ {
866
+ "name": "size",
867
+ "description": "`BackTop` 按钮大小",
868
+ "default": "-",
869
+ "value": {
870
+ "type": "string | number",
871
+ "kind": "expression"
872
+ }
873
+ },
865
874
  {
866
875
  "name": "elevation",
867
876
  "description": "海拔高度,可选值为 `true` `false` 和 `0-24` 的等级",
package/lib/varlet.cjs.js CHANGED
@@ -3406,6 +3406,7 @@ var __sfc__$99 = (0, vue.defineComponent)({
3406
3406
  const { bindSwipeResizeDispatcher } = useSwipeResizeDispatcher();
3407
3407
  const color = (0, vue.computed)(() => !props2.isError ? props2.isFocusing ? props2.focusColor : props2.blurColor : void 0);
3408
3408
  onWindowResize(resize);
3409
+ useResizeObserver(middleEl, resize);
3409
3410
  onSmartMounted(() => {
3410
3411
  resize();
3411
3412
  (0, vue.nextTick)().then(() => {
@@ -3435,6 +3436,7 @@ var __sfc__$99 = (0, vue.defineComponent)({
3435
3436
  call(props2.onClick, e);
3436
3437
  }
3437
3438
  function resize() {
3439
+ if (!middleEl.value) return;
3438
3440
  middleOffsetLeft.value = `${middleEl.value.offsetLeft}px`;
3439
3441
  middleOffsetWidth.value = `${middleEl.value.offsetWidth}px`;
3440
3442
  middleOffsetHeight.value = `${middleEl.value.offsetHeight}px`;
@@ -8484,6 +8486,7 @@ var props$5 = {
8484
8486
  default: true
8485
8487
  },
8486
8488
  bottom: [Number, String],
8489
+ size: [Number, String],
8487
8490
  target: [String, Object],
8488
8491
  onClick: defineListenerProp()
8489
8492
  };
@@ -8501,7 +8504,8 @@ function __render__$87(_ctx, _cache) {
8501
8504
  class: _ctx.classes(_ctx.n(), [_ctx.show, _ctx.n("--active")]),
8502
8505
  style: {
8503
8506
  right: _ctx.toSizeUnit(_ctx.right),
8504
- bottom: _ctx.toSizeUnit(_ctx.bottom)
8507
+ bottom: _ctx.toSizeUnit(_ctx.bottom),
8508
+ "--back-top-button-size": _ctx.toSizeUnit(_ctx.size)
8505
8509
  }
8506
8510
  }, _ctx.$attrs, { onClick: _cache[0] || (_cache[0] = (0, vue.withModifiers)((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])) }), [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, vue.createVNode)(_component_var_button, {
8507
8511
  elevation: _ctx.elevation,
@@ -32698,7 +32702,7 @@ var _WatermarkComponent = stdin_default$107;
32698
32702
  var stdin_default$101 = stdin_default$107;
32699
32703
  //#endregion
32700
32704
  //#region es/index.bundle.mjs
32701
- var version = "3.19.0";
32705
+ var version = "3.19.1";
32702
32706
  function install(app) {
32703
32707
  stdin_default.install && app.use(stdin_default);
32704
32708
  stdin_default$1.install && app.use(stdin_default$1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.19.0",
3
+ "version": "3.19.1",
4
4
  "description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
5
5
  "keywords": [
6
6
  "Vue3",
@@ -44,9 +44,9 @@
44
44
  "@popperjs/core": "^2.11.6",
45
45
  "dayjs": "^1.10.4",
46
46
  "decimal.js": "^10.2.1",
47
- "@varlet/icons": "3.19.0",
48
- "@varlet/shared": "3.19.0",
49
- "@varlet/use": "3.19.0"
47
+ "@varlet/shared": "3.19.1",
48
+ "@varlet/use": "3.19.1",
49
+ "@varlet/icons": "3.19.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^20.19.0",
@@ -62,9 +62,9 @@
62
62
  "vue": "3.5.21",
63
63
  "vue-router": "4.5.1",
64
64
  "zod": "^3.23.8",
65
- "@varlet/cli": "3.19.0",
66
- "@varlet/ui": "3.19.0",
67
- "@varlet/touch-emulator": "3.19.0"
65
+ "@varlet/ui": "3.19.1",
66
+ "@varlet/cli": "3.19.1",
67
+ "@varlet/touch-emulator": "3.19.1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "vue": "^3.2.0"