@varlet/ui 2.9.4-alpha.1680196009841 → 2.9.4
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/app-bar/AppBar.mjs +1 -1
- package/es/app-bar/appBar.css +1 -1
- package/es/app-bar/props.mjs +4 -0
- package/es/bottom-navigation/bottomNavigation.css +1 -1
- package/es/index-bar/IndexBar.mjs +17 -3
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/varlet.esm.js +1237 -1224
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +23 -4
- package/package.json +6 -6
- package/types/appBar.d.ts +1 -0
- package/umd/varlet.js +5 -5
package/lib/varlet.cjs.js
CHANGED
|
@@ -1944,6 +1944,10 @@ var props$16 = {
|
|
|
1944
1944
|
},
|
|
1945
1945
|
imageLinearGradient: {
|
|
1946
1946
|
type: String
|
|
1947
|
+
},
|
|
1948
|
+
safeAreaTop: {
|
|
1949
|
+
type: Boolean,
|
|
1950
|
+
default: false
|
|
1947
1951
|
}
|
|
1948
1952
|
};
|
|
1949
1953
|
var {
|
|
@@ -1954,7 +1958,7 @@ function __render__$1d(_ctx, _cache) {
|
|
|
1954
1958
|
return vue.openBlock(), vue.createElementBlock(
|
|
1955
1959
|
"div",
|
|
1956
1960
|
{
|
|
1957
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.round, _ctx.n("--round")], _ctx.formatElevation(_ctx.elevation, 3))),
|
|
1961
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"), [_ctx.safeAreaTop, _ctx.n("--safe-area-top")], [_ctx.round, _ctx.n("--round")], _ctx.formatElevation(_ctx.elevation, 3))),
|
|
1958
1962
|
style: vue.normalizeStyle(_ctx.rootStyles)
|
|
1959
1963
|
},
|
|
1960
1964
|
[vue.createElementVNode(
|
|
@@ -15488,6 +15492,7 @@ var __sfc__$C = vue.defineComponent({
|
|
|
15488
15492
|
var stickyOffsetTop = vue.computed(() => toPxNum(props2.stickyOffsetTop));
|
|
15489
15493
|
var zIndex = vue.computed(() => props2.zIndex);
|
|
15490
15494
|
var scroller = null;
|
|
15495
|
+
var isDeactivated = false;
|
|
15491
15496
|
var indexBarProvider = {
|
|
15492
15497
|
active,
|
|
15493
15498
|
sticky: sticky2,
|
|
@@ -15545,7 +15550,7 @@ var __sfc__$C = vue.defineComponent({
|
|
|
15545
15550
|
if (manualCall) {
|
|
15546
15551
|
call(props2.onClick, anchorName);
|
|
15547
15552
|
}
|
|
15548
|
-
if (anchorName === active.value) {
|
|
15553
|
+
if (anchorName === active.value && !isDeactivated) {
|
|
15549
15554
|
return;
|
|
15550
15555
|
}
|
|
15551
15556
|
var indexAnchor = indexAnchors.find((_ref3) => {
|
|
@@ -15614,7 +15619,21 @@ var __sfc__$C = vue.defineComponent({
|
|
|
15614
15619
|
addScrollerListener();
|
|
15615
15620
|
}));
|
|
15616
15621
|
vue.onBeforeUnmount(removeScrollerListener);
|
|
15617
|
-
vue.onDeactivated(
|
|
15622
|
+
vue.onDeactivated(() => {
|
|
15623
|
+
isDeactivated = true;
|
|
15624
|
+
removeScrollerListener();
|
|
15625
|
+
});
|
|
15626
|
+
vue.onActivated(() => {
|
|
15627
|
+
if (!isDeactivated || active.value === void 0)
|
|
15628
|
+
return;
|
|
15629
|
+
anchorClick({
|
|
15630
|
+
anchorName: active.value,
|
|
15631
|
+
options: {
|
|
15632
|
+
event: false
|
|
15633
|
+
}
|
|
15634
|
+
});
|
|
15635
|
+
isDeactivated = false;
|
|
15636
|
+
});
|
|
15618
15637
|
return {
|
|
15619
15638
|
n: n$A,
|
|
15620
15639
|
classes: classes$u,
|
|
@@ -25069,7 +25088,7 @@ const TimePickerSfc = "";
|
|
|
25069
25088
|
const TooltipSfc = "";
|
|
25070
25089
|
const uploader = "";
|
|
25071
25090
|
const UploaderSfc = "";
|
|
25072
|
-
const version = "2.9.4
|
|
25091
|
+
const version = "2.9.4";
|
|
25073
25092
|
function install(app) {
|
|
25074
25093
|
ActionSheet.install && app.use(ActionSheet);
|
|
25075
25094
|
AppBar.install && app.use(AppBar);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.9.4
|
|
3
|
+
"version": "2.9.4",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@popperjs/core": "^2.11.6",
|
|
47
47
|
"dayjs": "^1.10.4",
|
|
48
48
|
"decimal.js": "^10.2.1",
|
|
49
|
-
"@varlet/icons": "2.9.4
|
|
50
|
-
"@varlet/shared": "2.9.4
|
|
51
|
-
"@varlet/use": "2.9.4
|
|
49
|
+
"@varlet/icons": "2.9.4",
|
|
50
|
+
"@varlet/shared": "2.9.4",
|
|
51
|
+
"@varlet/use": "2.9.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/jest": "^26.0.15",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^4.4.4",
|
|
64
64
|
"vue": "3.2.25",
|
|
65
65
|
"vue-router": "4.0.12",
|
|
66
|
-
"@varlet/cli": "2.9.4
|
|
67
|
-
"@varlet/touch-emulator": "2.9.4
|
|
66
|
+
"@varlet/cli": "2.9.4",
|
|
67
|
+
"@varlet/touch-emulator": "2.9.4"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|