@varlet/ui 2.22.2 → 2.22.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 +3 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/provide.mjs +0 -0
- package/es/list/List.mjs +3 -0
- package/es/locale/index.mjs +5 -2
- package/es/locale/zh-HK.d.ts +2 -2
- package/es/locale/zh-TW.d.ts +2 -2
- package/es/popup/popup.css +1 -1
- package/es/rate/provide.mjs +0 -0
- package/es/ripple/index.mjs +3 -0
- package/es/slider/provide.mjs +0 -0
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/switch/provide.mjs +0 -0
- package/es/uploader/provide.mjs +0 -0
- package/es/varlet.esm.js +1263 -1260
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +14 -2
- package/package.json +9 -9
- package/umd/varlet.js +5 -5
- package/es/counter/provide.ts +0 -3
- package/es/input/provide.ts +0 -3
- package/es/rate/provide.ts +0 -3
- package/es/slider/provide.ts +0 -3
- package/es/switch/provide.ts +0 -3
- package/es/uploader/provide.ts +0 -3
- /package/es/{test/style/index.mjs → counter/provide.mjs} +0 -0
package/es/back-top/BackTop.mjs
CHANGED
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 = '2.22.
|
|
265
|
+
const version = '2.22.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 = '2.22.
|
|
177
|
+
const version = '2.22.3'
|
|
178
178
|
|
|
179
179
|
function install(app) {
|
|
180
180
|
ActionSheet.install && app.use(ActionSheet)
|
|
File without changes
|
package/es/list/List.mjs
CHANGED
|
@@ -155,6 +155,9 @@ const __sfc__ = defineComponent({
|
|
|
155
155
|
return Math.floor(detectorBottom) - toPxNum(props2.offset) <= containerBottom;
|
|
156
156
|
}
|
|
157
157
|
function removeScrollerListener() {
|
|
158
|
+
if (!scroller) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
158
161
|
scroller.removeEventListener("scroll", check);
|
|
159
162
|
}
|
|
160
163
|
function check() {
|
package/es/locale/index.mjs
CHANGED
|
@@ -53,7 +53,7 @@ function useLocale() {
|
|
|
53
53
|
const { packs, pack, add, use, merge } = useLocale();
|
|
54
54
|
add("zh-CN", zhCN);
|
|
55
55
|
use("zh-CN");
|
|
56
|
-
const _LocaleComponent = { zhCN, enUS, packs, pack, add, use, merge, useLocale };
|
|
56
|
+
const _LocaleComponent = { zhCN, enUS, zhTW, zhHK, faIR, packs, pack, add, use, merge, useLocale };
|
|
57
57
|
var stdin_default = {
|
|
58
58
|
zhCN,
|
|
59
59
|
enUS,
|
|
@@ -72,10 +72,13 @@ export {
|
|
|
72
72
|
add,
|
|
73
73
|
stdin_default as default,
|
|
74
74
|
enUS,
|
|
75
|
+
faIR,
|
|
75
76
|
merge,
|
|
76
77
|
pack,
|
|
77
78
|
packs,
|
|
78
79
|
use,
|
|
79
80
|
useLocale,
|
|
80
|
-
zhCN
|
|
81
|
+
zhCN,
|
|
82
|
+
zhHK,
|
|
83
|
+
zhTW
|
|
81
84
|
};
|
package/es/locale/zh-HK.d.ts
CHANGED
package/es/locale/zh-TW.d.ts
CHANGED
package/es/popup/popup.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --popup-content-background-color: #fff; --popup-overlay-background-color: rgba(0, 0, 0, 0.6);}.var-fade-enter-from,.var-fade-leave-to { opacity: 0;}.var-fade-enter-active,.var-fade-leave-active { transition: opacity 0.25s;}.var-pop-center-enter-from,.var-pop-center-leave-to { transform: scale(0.3);}.var-pop-center-enter-active,.var-pop-center-leave-active { transition: all 0.25s;}.var-pop-bottom-enter-from,.var-pop-bottom-leave-to { transform: translateY(100%);}.var-pop-bottom-enter-active,.var-pop-bottom-leave-active { transition: all 0.25s;}.var-pop-top-enter-from,.var-pop-top-leave-to { transform: translateY(-100%);}.var-pop-top-enter-active,.var-pop-top-leave-active { transition: all 0.25s;}.var-pop-left-enter-from,.var-pop-left-leave-to { transform: translateX(-100%);}.var-pop-left-enter-active,.var-pop-left-leave-active { transition: all 0.25s;}.var-pop-right-enter-from,.var-pop-right-leave-to { transform: translateX(100%);}.var-pop-right-enter-active,.var-pop-right-leave-active { transition: all 0.25s;}.var-popup { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto;}.var-popup__overlay { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--popup-overlay-background-color); transition: all 0.25s;}.var-popup__content { overflow: auto; transition: all 0.25s; pointer-events: auto;}.var-popup--content-background-color { background-color: var(--popup-content-background-color);}.var-popup--center { position: relative;}.var-popup--bottom { width: 100%; position: absolute; left: 0; bottom: 0;}.var-popup--top { width: 100%; position: absolute; left: 0; top: 0;}.var-popup--left { height: 100%; position: absolute; left: 0; top: 0;}.var-popup--right { height: 100%; position: absolute; right: 0; top: 0;}.var-popup--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);}.var-popup--safe-area-top { padding-top: constant(safe-area-inset-top); padding-top: env(safe-area-inset-top);}.var-popup--pointer-events-none { pointer-events: none;}
|
|
1
|
+
:root { --popup-content-background-color: #fff; --popup-overlay-background-color: rgba(0, 0, 0, 0.6);}.var-fade-enter-from,.var-fade-leave-to { opacity: 0;}.var-fade-enter-active,.var-fade-leave-active { transition: opacity 0.25s;}.var-pop-center-enter-from,.var-pop-center-leave-to { transform: scale(0.3);}.var-pop-center-enter-active,.var-pop-center-leave-active { transition: all 0.25s;}.var-pop-bottom-enter-from,.var-pop-bottom-leave-to { transform: translateY(100%);}.var-pop-bottom-enter-active,.var-pop-bottom-leave-active { transition: all 0.25s;}.var-pop-top-enter-from,.var-pop-top-leave-to { transform: translateY(-100%);}.var-pop-top-enter-active,.var-pop-top-leave-active { transition: all 0.25s;}.var-pop-left-enter-from,.var-pop-left-leave-to { transform: translateX(-100%);}.var-pop-left-enter-active,.var-pop-left-leave-active { transition: all 0.25s;}.var-pop-right-enter-from,.var-pop-right-leave-to { transform: translateX(100%);}.var-pop-right-enter-active,.var-pop-right-leave-active { transition: all 0.25s;}.var-popup { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; scrollbar-width: none;}.var-popup__overlay { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--popup-overlay-background-color); transition: all 0.25s;}.var-popup__content { overflow: auto; transition: all 0.25s; pointer-events: auto;}.var-popup--content-background-color { background-color: var(--popup-content-background-color);}.var-popup--center { position: relative;}.var-popup--bottom { width: 100%; position: absolute; left: 0; bottom: 0;}.var-popup--top { width: 100%; position: absolute; left: 0; top: 0;}.var-popup--left { height: 100%; position: absolute; left: 0; top: 0;}.var-popup--right { height: 100%; position: absolute; right: 0; top: 0;}.var-popup--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);}.var-popup--safe-area-top { padding-top: constant(safe-area-inset-top); padding-top: env(safe-area-inset-top);}.var-popup--pointer-events-none { pointer-events: none;}
|
|
File without changes
|
package/es/ripple/index.mjs
CHANGED
|
@@ -116,6 +116,9 @@ function unmounted(el) {
|
|
|
116
116
|
el.removeEventListener("touchstart", createRipple);
|
|
117
117
|
el.removeEventListener("touchmove", forbidRippleTask);
|
|
118
118
|
el.removeEventListener("dragstart", removeRipple);
|
|
119
|
+
if (!el._ripple || !el._ripple.removeRipple) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
119
122
|
document.removeEventListener("touchend", el._ripple.removeRipple);
|
|
120
123
|
document.removeEventListener("touchcancel", el._ripple.removeRipple);
|
|
121
124
|
document.removeEventListener("dragend", el._ripple.removeRipple);
|
|
File without changes
|