@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.
- package/es/action-sheet/style/index.mjs +1 -1
- package/es/back-top/BackTop.mjs +2 -1
- package/es/back-top/props.mjs +1 -0
- package/es/field-decorator/FieldDecorator.mjs +5 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/varlet.esm.js +1529 -1527
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/varlet.cjs.js +6 -2
- package/package.json +7 -7
- package/umd/varlet.js +6 -6
package/es/back-top/BackTop.mjs
CHANGED
|
@@ -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"]))
|
package/es/back-top/props.mjs
CHANGED
|
@@ -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`;
|
package/es/index.bundle.mjs
CHANGED
|
@@ -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.
|
|
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.
|
|
207
|
+
const version = '3.19.1'
|
|
208
208
|
|
|
209
209
|
function install(app) {
|
|
210
210
|
ActionSheet.install && app.use(ActionSheet)
|