@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.
@@ -3,5 +3,5 @@ import '../../icon/icon.css'
3
3
  import '../../ripple/ripple.css'
4
4
  import '../../popup/popup.css'
5
5
  import '../actionSheet.css'
6
- import '../ActionSheetSfc.css'
7
6
  import '../ActionItemSfc.css'
7
+ import '../ActionSheetSfc.css'
@@ -23,7 +23,8 @@ function __render__(_ctx, _cache) {
23
23
  class: _ctx.classes(_ctx.n(), [_ctx.show, _ctx.n("--active")]),
24
24
  style: {
25
25
  right: _ctx.toSizeUnit(_ctx.right),
26
- bottom: _ctx.toSizeUnit(_ctx.bottom)
26
+ bottom: _ctx.toSizeUnit(_ctx.bottom),
27
+ "--back-top-button-size": _ctx.toSizeUnit(_ctx.size)
27
28
  }
28
29
  }, _ctx.$attrs, {
29
30
  onClick: _cache[0] || (_cache[0] = _withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
@@ -14,6 +14,7 @@ const props = {
14
14
  default: true
15
15
  },
16
16
  bottom: [Number, String],
17
+ size: [Number, String],
17
18
  target: [String, Object],
18
19
  onClick: defineListenerProp()
19
20
  };
@@ -19,7 +19,7 @@ var __async = (__this, __arguments, generator) => {
19
19
  });
20
20
  };
21
21
  import { call, doubleRaf, getStyle, isEmpty } from "@varlet/shared";
22
- import { onSmartMounted, onWindowResize } from "@varlet/use";
22
+ import { onSmartMounted, onWindowResize, useResizeObserver } from "@varlet/use";
23
23
  import { computed, defineComponent, nextTick, onUpdated, ref, watch } from "vue";
24
24
  import VarIcon from "../icon/index.mjs";
25
25
  import { usePopup } from "../popup/provide.mjs";
@@ -241,6 +241,7 @@ const __sfc__ = defineComponent({
241
241
  () => !props2.isError ? props2.isFocusing ? props2.focusColor : props2.blurColor : void 0
242
242
  );
243
243
  onWindowResize(resize);
244
+ useResizeObserver(middleEl, resize);
244
245
  onSmartMounted(() => {
245
246
  resize();
246
247
  nextTick().then(() => {
@@ -281,6 +282,9 @@ const __sfc__ = defineComponent({
281
282
  call(props2.onClick, e);
282
283
  }
283
284
  function resize() {
285
+ if (!middleEl.value) {
286
+ return;
287
+ }
284
288
  middleOffsetLeft.value = `${middleEl.value.offsetLeft}px`;
285
289
  middleOffsetWidth.value = `${middleEl.value.offsetWidth}px`;
286
290
  middleOffsetHeight.value = `${middleEl.value.offsetHeight}px`;
@@ -307,7 +307,7 @@ import './tree-menu/style/index.mjs'
307
307
  import './uploader/style/index.mjs'
308
308
  import './watermark/style/index.mjs'
309
309
 
310
- const version = '3.19.0'
310
+ const version = '3.19.1'
311
311
 
312
312
  function install(app) {
313
313
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -204,7 +204,7 @@ export * from './tree-menu/index.mjs'
204
204
  export * from './uploader/index.mjs'
205
205
  export * from './watermark/index.mjs'
206
206
 
207
- const version = '3.19.0'
207
+ const version = '3.19.1'
208
208
 
209
209
  function install(app) {
210
210
  ActionSheet.install && app.use(ActionSheet)
@@ -1,7 +1,7 @@
1
1
  import '../../styles/common.css'
2
- import '../SnackbarSfc.css'
3
2
  import '../../styles/elevation.css'
4
3
  import '../../loading/loading.css'
5
4
  import '../../icon/icon.css'
6
5
  import '../snackbar.css'
7
6
  import '../coreSfc.css'
7
+ import '../SnackbarSfc.css'