@varlet/ui 1.27.1 → 1.27.2
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/bottom-navigation/BottomNavigation.js +1 -1
- package/es/bottom-navigation/bottomNavigation.css +1 -1
- package/es/bottom-navigation/bottomNavigation.less +5 -0
- package/es/bottom-navigation/props.js +4 -0
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/es/style.css +1 -1
- package/es/tabs/Tabs.js +1 -1
- package/es/tabs/props.js +4 -0
- package/es/tabs/tabs.css +1 -1
- package/es/tabs/tabs.less +6 -0
- package/es/varlet.esm.js +11 -3
- package/highlight/attributes.json +8 -0
- package/highlight/tags.json +2 -0
- package/highlight/web-types.json +19 -1
- package/lib/bottom-navigation/BottomNavigation.js +1 -1
- package/lib/bottom-navigation/bottomNavigation.css +1 -1
- package/lib/bottom-navigation/bottomNavigation.less +5 -0
- package/lib/bottom-navigation/props.js +4 -0
- package/lib/snackbar/style/index.js +1 -1
- package/lib/snackbar/style/less.js +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/Tabs.js +1 -1
- package/lib/tabs/props.js +4 -0
- package/lib/tabs/tabs.css +1 -1
- package/lib/tabs/tabs.less +6 -0
- package/package.json +4 -4
- package/types/bottomNavigation.d.ts +2 -1
- package/types/tabs.d.ts +1 -0
- package/umd/varlet.js +3 -3
package/lib/tabs/Tabs.js
CHANGED
|
@@ -34,7 +34,7 @@ function render(_ctx, _cache) {
|
|
|
34
34
|
"offset-top": _ctx.sticky ? _ctx.offsetTop : null
|
|
35
35
|
}, {
|
|
36
36
|
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", (0, _vue.mergeProps)({
|
|
37
|
-
class: _ctx.classes(_ctx.n(), 'var--box', _ctx.n("--item-" + _ctx.itemDirection), _ctx.n("--layout-" + _ctx.layoutDirection + "-padding"), [_ctx.elevation, 'var-elevation--4'], [_ctx.fixedBottom, _ctx.n('--fixed-bottom')]),
|
|
37
|
+
class: _ctx.classes(_ctx.n(), 'var--box', _ctx.n("--item-" + _ctx.itemDirection), _ctx.n("--layout-" + _ctx.layoutDirection + "-padding"), [_ctx.elevation, 'var-elevation--4'], [_ctx.fixedBottom, _ctx.n('--fixed-bottom')], [_ctx.safeArea, _ctx.n('--safe-area')]),
|
|
38
38
|
style: {
|
|
39
39
|
background: _ctx.color
|
|
40
40
|
}
|
package/lib/tabs/props.js
CHANGED
package/lib/tabs/tabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --tabs-item-horizontal-height: 44px; --tabs-item-vertical-height: 66px; --tabs-radius: 2px; --tabs-padding: 12px; --tabs-indicator-size: 2px; --tabs-indicator-background: var(--color-primary); --tabs-background: #fff;}.var-tabs { border-radius: var(--tabs-radius); background: var(--tabs-background); overflow: hidden; transition: background-color 0.25s;}.var-tabs__tab-wrap { position: relative; display: flex; height: 100%;}.var-tabs__indicator { position: absolute; z-index: 10; transition-property: width, transform; transition-duration: 0.3s;}.var-tabs--layout-horizontal { flex-direction: row;}.var-tabs--layout-horizontal-scrollable { overflow-x: auto; overflow-y: hidden;}.var-tabs--layout-horizontal-padding { padding: 0 var(--tabs-padding);}.var-tabs--layout-horizontal-indicator { left: 0; bottom: 0; height: var(--tabs-indicator-size); background: var(--tabs-indicator-background);}.var-tabs--layout-vertical { flex-direction: column;}.var-tabs--layout-vertical-scrollable { overflow-x: hidden; overflow-y: auto;}.var-tabs--layout-vertical-padding { padding: 0;}.var-tabs--layout-vertical-indicator { left: 0; top: 0; width: var(--tabs-indicator-size); background: var(--tabs-indicator-background);}.var-tabs--item-horizontal { height: var(--tabs-item-horizontal-height);}.var-tabs--item-vertical { height: var(--tabs-item-vertical-height);}.var-tabs--fixed-bottom { position: fixed; width: 100%; left: 0; bottom: 0; z-index: 99;}
|
|
1
|
+
:root { --tabs-item-horizontal-height: 44px; --tabs-item-vertical-height: 66px; --tabs-radius: 2px; --tabs-padding: 12px; --tabs-indicator-size: 2px; --tabs-indicator-background: var(--color-primary); --tabs-background: #fff;}.var-tabs { border-radius: var(--tabs-radius); background: var(--tabs-background); overflow: hidden; transition: background-color 0.25s;}.var-tabs__tab-wrap { position: relative; display: flex; height: 100%;}.var-tabs__indicator { position: absolute; z-index: 10; transition-property: width, transform; transition-duration: 0.3s;}.var-tabs--layout-horizontal { flex-direction: row;}.var-tabs--layout-horizontal-scrollable { overflow-x: auto; overflow-y: hidden;}.var-tabs--layout-horizontal-padding { padding: 0 var(--tabs-padding);}.var-tabs--layout-horizontal-indicator { left: 0; bottom: 0; height: var(--tabs-indicator-size); background: var(--tabs-indicator-background);}.var-tabs--layout-vertical { flex-direction: column;}.var-tabs--layout-vertical-scrollable { overflow-x: hidden; overflow-y: auto;}.var-tabs--layout-vertical-padding { padding: 0;}.var-tabs--layout-vertical-indicator { left: 0; top: 0; width: var(--tabs-indicator-size); background: var(--tabs-indicator-background);}.var-tabs--item-horizontal { height: var(--tabs-item-horizontal-height);}.var-tabs--item-vertical { height: var(--tabs-item-vertical-height);}.var-tabs--fixed-bottom { position: fixed; width: 100%; left: 0; bottom: 0; z-index: 99;}.var-tabs--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box !important;}
|
package/lib/tabs/tabs.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.2",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@varlet/icons": "1.27.
|
|
42
|
+
"@varlet/icons": "1.27.2",
|
|
43
43
|
"dayjs": "^1.10.4",
|
|
44
44
|
"decimal.js": "^10.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@varlet/cli": "1.27.
|
|
48
|
-
"@varlet/touch-emulator": "1.27.
|
|
47
|
+
"@varlet/cli": "1.27.2",
|
|
48
|
+
"@varlet/touch-emulator": "1.27.2",
|
|
49
49
|
"@vue/test-utils": "2.0.0-rc.6",
|
|
50
50
|
"@vue/runtime-core": "3.2.25",
|
|
51
51
|
"typescript": "^4.4.4",
|
|
@@ -5,14 +5,15 @@ export interface BottomNavigationProps {
|
|
|
5
5
|
active?: number | string
|
|
6
6
|
fixed?: boolean
|
|
7
7
|
border?: boolean
|
|
8
|
+
safeArea?: boolean
|
|
8
9
|
zIndex?: number | string
|
|
9
10
|
activeColor?: string
|
|
10
11
|
inactiveColor?: string
|
|
12
|
+
fabProps?: Partial<ButtonProps>
|
|
11
13
|
onChange?: (active: string | number) => void
|
|
12
14
|
'onUpdate:active'?: (active: string | number) => void
|
|
13
15
|
onBeforeChange?: (active: string | number) => boolean | Promise<any>
|
|
14
16
|
onFabClick?: () => void
|
|
15
|
-
fabProps?: ButtonProps
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export class BottomNavigation extends VarComponent {
|
package/types/tabs.d.ts
CHANGED