@varlet/ui 3.1.2 → 3.1.3
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/back-top/BackTop.mjs +5 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/slider/Slider.mjs +1 -1
- package/es/space/Space.mjs +1 -0
- package/es/space/space.css +1 -1
- package/es/sticky/Sticky.mjs +1 -1
- package/es/style.css +1 -1
- package/es/varlet.esm.js +2183 -2179
- package/highlight/web-types.en-US.json +5 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +9 -4
- package/package.json +7 -7
- package/umd/varlet.js +6 -6
package/es/back-top/BackTop.mjs
CHANGED
|
@@ -62,15 +62,19 @@ const __sfc__ = defineComponent({
|
|
|
62
62
|
const disabled = ref(true);
|
|
63
63
|
let scroller;
|
|
64
64
|
const handleScroll = throttle(() => {
|
|
65
|
-
|
|
65
|
+
setBackTopVisibility();
|
|
66
66
|
}, 200);
|
|
67
67
|
onMounted(() => {
|
|
68
68
|
setScroller();
|
|
69
69
|
addScrollerEventListener();
|
|
70
|
+
setBackTopVisibility();
|
|
70
71
|
disabled.value = false;
|
|
71
72
|
});
|
|
72
73
|
onActivated(addScrollerEventListener);
|
|
73
74
|
onSmartUnmounted(removeScrollerEventListener);
|
|
75
|
+
function setBackTopVisibility() {
|
|
76
|
+
show.value = getScrollTop(scroller) >= toPxNum(props2.visibilityHeight);
|
|
77
|
+
}
|
|
74
78
|
function handleClick(event) {
|
|
75
79
|
call(props2.onClick, event);
|
|
76
80
|
const left = getScrollLeft(scroller);
|
package/es/index.bundle.mjs
CHANGED
|
@@ -262,7 +262,7 @@ import './tooltip/style/index.mjs'
|
|
|
262
262
|
import './uploader/style/index.mjs'
|
|
263
263
|
import './watermark/style/index.mjs'
|
|
264
264
|
|
|
265
|
-
const version = '3.1.
|
|
265
|
+
const version = '3.1.3'
|
|
266
266
|
|
|
267
267
|
function install(app) {
|
|
268
268
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -174,7 +174,7 @@ export * from './tooltip/index.mjs'
|
|
|
174
174
|
export * from './uploader/index.mjs'
|
|
175
175
|
export * from './watermark/index.mjs'
|
|
176
176
|
|
|
177
|
-
const version = '3.1.
|
|
177
|
+
const version = '3.1.3'
|
|
178
178
|
|
|
179
179
|
function install(app) {
|
|
180
180
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/slider/Slider.mjs
CHANGED
|
@@ -353,7 +353,7 @@ const __sfc__ = defineComponent({
|
|
|
353
353
|
}
|
|
354
354
|
function setPercent(moveDistance, type) {
|
|
355
355
|
let rangeValue = [];
|
|
356
|
-
const { step, range, modelValue,
|
|
356
|
+
const { step, range, modelValue, min } = props2;
|
|
357
357
|
const stepNumber = toNumber(step);
|
|
358
358
|
const roundDistance = Math.round(moveDistance / unitWidth.value);
|
|
359
359
|
const curValue = roundDistance * stepNumber + toNumber(min);
|
package/es/space/Space.mjs
CHANGED
package/es/space/space.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --space-size-mini-y: 4px; --space-size-mini-x: 4px; --space-size-small-y: 6px; --space-size-small-x: 6px; --space-size-normal-y: 8px; --space-size-normal-x: 12px; --space-size-large-y: 12px; --space-size-large-x: 20px;}.var-space { display: flex;}.var-space--inline { display: inline-flex;}
|
|
1
|
+
:root { --space-size-mini-y: 4px; --space-size-mini-x: 4px; --space-size-small-y: 6px; --space-size-small-x: 6px; --space-size-normal-y: 8px; --space-size-normal-x: 12px; --space-size-large-y: 12px; --space-size-large-x: 20px;}.var-space { display: flex;}.var-space--inline { display: inline-flex;}.var-space--full { width: 100%;}
|