@varlet/ui 2.9.4-alpha.1680182061982 → 2.9.4-alpha.1680198474264
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.mjs +1 -1
- package/es/bottom-navigation/bottomNavigation.css +1 -1
- package/es/bottom-navigation-item/BottomNavigationItem.mjs +1 -1
- package/es/collapse/Collapse.mjs +4 -1
- package/es/collapse/props.mjs +4 -0
- package/es/collapse-item/CollapseItem.mjs +7 -4
- package/es/collapse-item/collapseItem.css +1 -1
- package/es/index-bar/IndexBar.mjs +1 -1
- package/es/index-bar/props.mjs +6 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/varlet.esm.js +1900 -1882
- package/highlight/web-types.en-US.json +20 -2
- package/highlight/web-types.zh-CN.json +20 -2
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +29 -10
- package/package.json +6 -6
- package/types/appBar.d.ts +1 -0
- package/types/collapse.d.ts +1 -0
- package/types/indexBar.d.ts +4 -1
- package/umd/varlet.js +5 -5
package/es/app-bar/AppBar.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createT
|
|
|
10
10
|
|
|
11
11
|
function __render__(_ctx, _cache) {
|
|
12
12
|
return _openBlock(), _createElementBlock("div", {
|
|
13
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.round, _ctx.n('--round')], _ctx.formatElevation(_ctx.elevation, 3))),
|
|
13
|
+
class: _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))),
|
|
14
14
|
style: _normalizeStyle(_ctx.rootStyles)
|
|
15
15
|
}, [_createElementVNode("div", {
|
|
16
16
|
class: _normalizeClass(_ctx.n('toolbar'))
|
package/es/app-bar/appBar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --app-bar-color: var(--color-primary); --app-bar-title-padding: 0 12px; --app-bar-title-font-size: var(--font-size-lg); --app-bar-text-color: #fff; --app-bar-height: 54px; --app-bar-left-gap: 6px; --app-bar-right-gap: 6px; --app-bar-border-radius: 4px; --app-bar-font-size: var(--font-size-lg);}.var-app-bar { position: relative; z-index: 0; width: 100%; font-size: var(--app-bar-font-size); background: var(--app-bar-color); color: var(--app-bar-text-color); transition: background-color 0.25s;}.var-app-bar__toolbar { position: relative; display: flex; justify-content: center; align-items: center; height: var(--app-bar-height);}.var-app-bar__title { font-size: var(--app-bar-title-font-size); flex: 1; display: flex; justify-content: center; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; padding: var(--app-bar-title-padding);}.var-app-bar__left,.var-app-bar__right { display: flex; align-items: center; height: 100%; z-index: 2;}.var-app-bar__left { position: absolute; top: 0; left: var(--app-bar-left-gap);}.var-app-bar__right { position: absolute; top: 0; right: var(--app-bar-right-gap);}.var-app-bar--round { border-radius: var(--app-bar-border-radius);}
|
|
1
|
+
:root { --app-bar-color: var(--color-primary); --app-bar-title-padding: 0 12px; --app-bar-title-font-size: var(--font-size-lg); --app-bar-text-color: #fff; --app-bar-height: 54px; --app-bar-left-gap: 6px; --app-bar-right-gap: 6px; --app-bar-border-radius: 4px; --app-bar-font-size: var(--font-size-lg);}.var-app-bar { position: relative; z-index: 0; width: 100%; font-size: var(--app-bar-font-size); background: var(--app-bar-color); color: var(--app-bar-text-color); transition: background-color 0.25s;}.var-app-bar__toolbar { position: relative; display: flex; justify-content: center; align-items: center; height: var(--app-bar-height);}.var-app-bar__title { font-size: var(--app-bar-title-font-size); flex: 1; display: flex; justify-content: center; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; padding: var(--app-bar-title-padding);}.var-app-bar__left,.var-app-bar__right { display: flex; align-items: center; height: 100%; z-index: 2;}.var-app-bar__left { position: absolute; top: 0; left: var(--app-bar-left-gap);}.var-app-bar__right { position: absolute; top: 0; right: var(--app-bar-right-gap);}.var-app-bar--round { border-radius: var(--app-bar-border-radius);}.var-app-bar--safe-area-top { padding-top: constant(safe-area-inset-top); padding-top: env(safe-area-inset-top); box-sizing: content-box !important;}
|
package/es/app-bar/props.mjs
CHANGED
|
@@ -26,7 +26,7 @@ function __render__(_ctx, _cache) {
|
|
|
26
26
|
var _component_var_button = _resolveComponent("var-button");
|
|
27
27
|
|
|
28
28
|
return _openBlock(), _createElementBlock("div", {
|
|
29
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.fixed, _ctx.n('--fixed')], [_ctx.border, _ctx.n('--border')], [_ctx.safeArea, _ctx.n('--safe-area')])),
|
|
29
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.fixed, _ctx.n('--fixed')], [_ctx.border, _ctx.n('--border')], [_ctx.safeArea, _ctx.n('--safe-area')])),
|
|
30
30
|
ref: "bottomNavigationDom",
|
|
31
31
|
style: _normalizeStyle("z-index:" + _ctx.zIndex)
|
|
32
32
|
}, [_renderSlot(_ctx.$slots, "default"), _ctx.$slots.fab ? (_openBlock(), _createBlock(_component_var_button, _mergeProps({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --bottom-navigation-height: 50px; --bottom-navigation-z-index: 1; --bottom-navigation-background-color: #fff; --bottom-navigation-border-color: #e3e3e3; --bottom-navigation-fab-offset: 4px;}.var-bottom-navigation { width: 100%; height: var(--bottom-navigation-height); display: flex; position: relative; background-color: var(--bottom-navigation-background-color); transition: background-color 250ms, border-color 250ms; -webkit-tap-highlight-color: transparent;}.var-bottom-navigation--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);}.var-bottom-navigation--fixed { position: fixed; left: 0; bottom: 0;}.var-bottom-navigation--border { border-top: 1px solid var(--bottom-navigation-border-color);}.var-bottom-navigation__fab[var-bottom-navigation__fab] { width: var(--bottom-navigation-height); height: var(--bottom-navigation-height); position: absolute; z-index: 2; transform: translateY(-50%); overflow: hidden; transition: right 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.var-bottom-navigation--fab-center { right: calc(50% - var(--bottom-navigation-height) / 2);}.var-bottom-navigation--fab-right { right: var(--bottom-navigation-fab-offset);}
|
|
1
|
+
:root { --bottom-navigation-height: 50px; --bottom-navigation-z-index: 1; --bottom-navigation-background-color: #fff; --bottom-navigation-border-color: #e3e3e3; --bottom-navigation-fab-offset: 4px;}.var-bottom-navigation { width: 100%; height: var(--bottom-navigation-height); display: flex; position: relative; background-color: var(--bottom-navigation-background-color); transition: background-color 250ms, border-color 250ms; -webkit-tap-highlight-color: transparent;}.var-bottom-navigation--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box !important;}.var-bottom-navigation--fixed { position: fixed; left: 0; bottom: 0;}.var-bottom-navigation--border { border-top: 1px solid var(--bottom-navigation-border-color);}.var-bottom-navigation__fab[var-bottom-navigation__fab] { width: var(--bottom-navigation-height); height: var(--bottom-navigation-height); position: absolute; z-index: 2; transform: translateY(-50%); overflow: hidden; transition: right 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.var-bottom-navigation--fab-center { right: calc(50% - var(--bottom-navigation-height) / 2);}.var-bottom-navigation--fab-right { right: var(--bottom-navigation-fab-offset);}
|
|
@@ -23,7 +23,7 @@ function __render__(_ctx, _cache) {
|
|
|
23
23
|
var _directive_ripple = _resolveDirective("ripple");
|
|
24
24
|
|
|
25
25
|
return _withDirectives((_openBlock(), _createElementBlock("button", {
|
|
26
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.active === _ctx.index || _ctx.active === _ctx.name, _ctx.n('--active')])),
|
|
26
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.active === _ctx.index || _ctx.active === _ctx.name, _ctx.n('--active')])),
|
|
27
27
|
style: _normalizeStyle({
|
|
28
28
|
color: _ctx.computeColorStyle()
|
|
29
29
|
}),
|
package/es/collapse/Collapse.mjs
CHANGED
|
@@ -28,6 +28,7 @@ var __sfc__ = defineComponent({
|
|
|
28
28
|
} = useCollapseItem();
|
|
29
29
|
var active = computed(() => props.modelValue);
|
|
30
30
|
var offset = computed(() => props.offset);
|
|
31
|
+
var divider = computed(() => props.divider);
|
|
31
32
|
var elevation = computed(() => props.elevation);
|
|
32
33
|
|
|
33
34
|
var checkValue = () => {
|
|
@@ -116,6 +117,7 @@ var __sfc__ = defineComponent({
|
|
|
116
117
|
var collapseProvider = {
|
|
117
118
|
active,
|
|
118
119
|
offset,
|
|
120
|
+
divider,
|
|
119
121
|
elevation,
|
|
120
122
|
updateItem
|
|
121
123
|
};
|
|
@@ -123,7 +125,8 @@ var __sfc__ = defineComponent({
|
|
|
123
125
|
watch(() => length.value, () => nextTick().then(resize));
|
|
124
126
|
watch(() => props.modelValue, () => nextTick().then(resize));
|
|
125
127
|
return {
|
|
126
|
-
n
|
|
128
|
+
n,
|
|
129
|
+
divider
|
|
127
130
|
};
|
|
128
131
|
}
|
|
129
132
|
|
package/es/collapse/props.mjs
CHANGED
|
@@ -9,13 +9,14 @@ var {
|
|
|
9
9
|
n,
|
|
10
10
|
classes
|
|
11
11
|
} = createNamespace('collapse-item');
|
|
12
|
-
import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
12
|
+
import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
13
13
|
|
|
14
14
|
function __render__(_ctx, _cache) {
|
|
15
15
|
var _component_var_icon = _resolveComponent("var-icon");
|
|
16
16
|
|
|
17
17
|
return _openBlock(), _createElementBlock("div", {
|
|
18
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.offset && _ctx.isShow, _ctx.n('--active')], [_ctx.disabled, _ctx.n('--disable')]))
|
|
18
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.offset && _ctx.isShow, _ctx.n('--active')], [_ctx.disabled, _ctx.n('--disable')])),
|
|
19
|
+
style: _normalizeStyle("--collapse-divider-top: " + (_ctx.divider ? 'var(--collapse-border-top)' : 'none'))
|
|
19
20
|
}, [_createElementVNode("div", {
|
|
20
21
|
class: _normalizeClass(_ctx.classes(_ctx.n('shadow'), _ctx.formatElevation(_ctx.elevation, 2)))
|
|
21
22
|
}, null, 2
|
|
@@ -56,8 +57,8 @@ function __render__(_ctx, _cache) {
|
|
|
56
57
|
/* CLASS */
|
|
57
58
|
)], 34
|
|
58
59
|
/* CLASS, HYDRATE_EVENTS */
|
|
59
|
-
), [[_vShow, _ctx.showContent]])],
|
|
60
|
-
/* CLASS */
|
|
60
|
+
), [[_vShow, _ctx.showContent]])], 6
|
|
61
|
+
/* CLASS, STYLE */
|
|
61
62
|
);
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -82,6 +83,7 @@ var __sfc__ = defineComponent({
|
|
|
82
83
|
var {
|
|
83
84
|
active,
|
|
84
85
|
offset,
|
|
86
|
+
divider,
|
|
85
87
|
elevation,
|
|
86
88
|
updateItem
|
|
87
89
|
} = collapse;
|
|
@@ -162,6 +164,7 @@ var __sfc__ = defineComponent({
|
|
|
162
164
|
showContent,
|
|
163
165
|
isShow,
|
|
164
166
|
offset,
|
|
167
|
+
divider,
|
|
165
168
|
elevation,
|
|
166
169
|
toggle,
|
|
167
170
|
contentEl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --collapse-background: #fff; --collapse-text-color: #232222; --collapse-header-font-size: var(--font-size-lg); --collapse-header-padding: 10px 12px; --collapse-content-font-size: var(--font-size-md); --collapse-content-padding: 0 12px 10px; --collapse-item-margin-top: 16px; --collapse-disable-color: #bdbdbd; --collapse-border-top: thin solid rgba(0, 0, 0, 0.12);}.var-collapse-item { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; position: relative; margin-top: 0; background: var(--collapse-background); color: var(--collapse-text-color); transition: margin-top 0.25s, background-color 0.25s;}.var-collapse-item__shadow { bottom: 0; content: ''; left: 0; position: absolute; right: 0; top: 0; z-index: -1;}.var-collapse-item:not(:first-child)::after { border-top: var(--collapse-
|
|
1
|
+
:root { --collapse-background: #fff; --collapse-text-color: #232222; --collapse-header-font-size: var(--font-size-lg); --collapse-header-padding: 10px 12px; --collapse-content-font-size: var(--font-size-md); --collapse-content-padding: 0 12px 10px; --collapse-item-margin-top: 16px; --collapse-disable-color: #bdbdbd; --collapse-border-top: thin solid rgba(0, 0, 0, 0.12);}.var-collapse-item { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; position: relative; margin-top: 0; background: var(--collapse-background); color: var(--collapse-text-color); transition: margin-top 0.25s, background-color 0.25s;}.var-collapse-item__shadow { bottom: 0; content: ''; left: 0; position: absolute; right: 0; top: 0; z-index: -1;}.var-collapse-item:not(:first-child)::after { border-top: var(--collapse-divider-top); content: ''; left: 0; position: absolute; right: 0; top: 0;}.var-collapse-item__header { align-items: center; display: flex; font-size: var(--collapse-header-font-size); outline: none; padding: var(--collapse-header-padding); justify-content: space-between; position: relative;}.var-collapse-item__header-title { transition: color 0.25s;}.var-collapse-item__header-icon { transform: rotate(0deg); opacity: 1;}.var-collapse-item__header-open { transform: rotate(-180deg);}.var-collapse-item__header--disable { opacity: 0;}.var-collapse-item__content { display: flex; font-size: var(--collapse-content-font-size); overflow: hidden; transition: all 0.25s;}.var-collapse-item__content-wrap { padding: var(--collapse-content-padding); word-break: break-all; flex: 1;}.var-collapse-item--active + .var-collapse-item,.var-collapse-item--active:not(:first-child) { margin-top: var(--collapse-item-margin-top);}.var-collapse-item--active + .var-collapse-item::after,.var-collapse-item--active:not(:first-child)::after { border-top: none;}.var-collapse-item--disable { color: var(--collapse-disable-color); cursor: not-allowed;}
|
|
@@ -68,7 +68,7 @@ var __sfc__ = defineComponent({
|
|
|
68
68
|
var anchorNameList = ref([]);
|
|
69
69
|
var active = ref();
|
|
70
70
|
var sticky = computed(() => props.sticky);
|
|
71
|
-
var cssMode = computed(() => props.cssMode);
|
|
71
|
+
var cssMode = computed(() => props.stickyCssMode || props.cssMode);
|
|
72
72
|
var stickyOffsetTop = computed(() => toPxNum(props.stickyOffsetTop));
|
|
73
73
|
var zIndex = computed(() => props.zIndex);
|
|
74
74
|
var scroller = null;
|
package/es/index-bar/props.mjs
CHANGED
|
@@ -8,10 +8,16 @@ export var props = {
|
|
|
8
8
|
type: [String, Number],
|
|
9
9
|
default: 0
|
|
10
10
|
},
|
|
11
|
+
|
|
12
|
+
/** @deprecated Use stickyCssMode to instead. */
|
|
11
13
|
cssMode: {
|
|
12
14
|
type: Boolean,
|
|
13
15
|
default: false
|
|
14
16
|
},
|
|
17
|
+
stickyCssMode: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
15
21
|
hideList: {
|
|
16
22
|
type: Boolean,
|
|
17
23
|
default: false
|
package/es/index.bundle.mjs
CHANGED
|
@@ -241,7 +241,7 @@ import './time-picker/style/index.mjs'
|
|
|
241
241
|
import './tooltip/style/index.mjs'
|
|
242
242
|
import './uploader/style/index.mjs'
|
|
243
243
|
|
|
244
|
-
const version = '2.9.4-alpha.
|
|
244
|
+
const version = '2.9.4-alpha.1680198474264'
|
|
245
245
|
|
|
246
246
|
function install(app) {
|
|
247
247
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -160,7 +160,7 @@ export * from './time-picker/index.mjs'
|
|
|
160
160
|
export * from './tooltip/index.mjs'
|
|
161
161
|
export * from './uploader/index.mjs'
|
|
162
162
|
|
|
163
|
-
const version = '2.9.4-alpha.
|
|
163
|
+
const version = '2.9.4-alpha.1680198474264'
|
|
164
164
|
|
|
165
165
|
function install(app) {
|
|
166
166
|
ActionSheet.install && app.use(ActionSheet)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
-
import '../SnackbarSfc.css'
|
|
3
2
|
import '../../styles/elevation.css'
|
|
4
3
|
import '../../loading/loading.css'
|
|
5
4
|
import '../../button/button.css'
|
|
6
5
|
import '../../icon/icon.css'
|
|
7
6
|
import '../snackbar.css'
|
|
8
7
|
import '../coreSfc.css'
|
|
8
|
+
import '../SnackbarSfc.css'
|