@varlet/ui 3.19.2 → 3.19.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/button/Button.mjs +5 -5
- package/es/button/button.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +1342 -1343
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +6 -7
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/umd/varlet.js +5 -5
package/lib/varlet.cjs.js
CHANGED
|
@@ -8348,7 +8348,7 @@ function __render__$88(_ctx, _cache) {
|
|
|
8348
8348
|
_ctx.block,
|
|
8349
8349
|
`${_ctx.n("$--flex")} ${_ctx.n("--block")}`,
|
|
8350
8350
|
_ctx.n("$--inline-flex")
|
|
8351
|
-
], [!_ctx.states.text, _ctx.states.elevation], [!_ctx.states.iconContainer && !_ctx.states.text, _ctx.n(`--${_ctx.states.type}`)], [_ctx.states.text, `${_ctx.n("--text")} ${_ctx.n(`--text-${_ctx.states.type}`)}`], [_ctx.states.iconContainer, _ctx.n(`--icon-container-${_ctx.states.type}`)], [_ctx.states.filledDefault, _ctx.n("--filled-default")], [_ctx.round, _ctx.n("--round")], [_ctx.fab, _ctx.n("--fab")], [_ctx.states.outline, _ctx.n("--outline")], [_ctx.loading || _ctx.pending, _ctx.n("--loading")], [_ctx.disabled, _ctx.n("--disabled")], [_ctx.states.text && _ctx.disabled, _ctx.n("--text-disabled")])),
|
|
8351
|
+
], [!_ctx.states.text, _ctx.states.elevation], [!_ctx.states.iconContainer && !_ctx.states.text, _ctx.n(`--${_ctx.states.type}`)], [_ctx.states.text, `${_ctx.n("--text")} ${_ctx.n(`--text-${_ctx.states.type}`)}`], [_ctx.states.iconContainer, _ctx.n(`--icon-container-${_ctx.states.type}`)], [_ctx.states.filledDefault, _ctx.n("--filled-default")], [_ctx.states.elevationDisabled, _ctx.n("--elevation-disabled")], [_ctx.round, _ctx.n("--round")], [_ctx.fab, _ctx.n("--fab")], [_ctx.states.outline, _ctx.n("--outline")], [_ctx.loading || _ctx.pending, _ctx.n("--loading")], [_ctx.disabled, _ctx.n("--disabled")], [_ctx.states.text && _ctx.disabled, _ctx.n("--text-disabled")])),
|
|
8352
8352
|
tabindex: _ctx.focusable ? void 0 : "-1",
|
|
8353
8353
|
style: (0, vue.normalizeStyle)({
|
|
8354
8354
|
color: _ctx.states.textColor,
|
|
@@ -8414,7 +8414,8 @@ var __sfc__$88 = (0, vue.defineComponent)({
|
|
|
8414
8414
|
textColor: props2.textColor,
|
|
8415
8415
|
outline: props2.outline,
|
|
8416
8416
|
iconContainer: props2.tonal || props2.iconContainer,
|
|
8417
|
-
|
|
8417
|
+
elevationDisabled: props2.tonal || props2.elevation === false || toNumber(props2.elevation) === 0,
|
|
8418
|
+
filledDefault: (props2.type == null || props2.type === "default") && (props2.elevation === false || toNumber(props2.elevation) === 0) && !props2.text && !props2.outline && !props2.tonal && !props2.iconContainer
|
|
8418
8419
|
};
|
|
8419
8420
|
const { type, size, color, textColor, mode, elevation } = buttonGroup;
|
|
8420
8421
|
return {
|
|
@@ -8426,7 +8427,8 @@ var __sfc__$88 = (0, vue.defineComponent)({
|
|
|
8426
8427
|
text: mode.value === "text" || mode.value === "outline",
|
|
8427
8428
|
outline: mode.value === "outline",
|
|
8428
8429
|
iconContainer: mode.value === "tonal" || mode.value === "icon-container",
|
|
8429
|
-
|
|
8430
|
+
elevationDisabled: mode.value === "tonal",
|
|
8431
|
+
filledDefault: mode.value === "normal" && ((_g = props2.type) != null ? _g : type.value) === "default" && (elevation.value === false || toNumber(elevation.value) === 0)
|
|
8430
8432
|
};
|
|
8431
8433
|
});
|
|
8432
8434
|
function attemptAutoLoading(result) {
|
|
@@ -8453,9 +8455,6 @@ var __sfc__$88 = (0, vue.defineComponent)({
|
|
|
8453
8455
|
if (!props2.focusable) return;
|
|
8454
8456
|
isFocusing.value = true;
|
|
8455
8457
|
}
|
|
8456
|
-
function isFilledElevation(elevation) {
|
|
8457
|
-
return elevation === false || toNumber(elevation) === 0;
|
|
8458
|
-
}
|
|
8459
8458
|
return {
|
|
8460
8459
|
pending,
|
|
8461
8460
|
states,
|
|
@@ -32715,7 +32714,7 @@ var _WatermarkComponent = stdin_default$107;
|
|
|
32715
32714
|
var stdin_default$101 = stdin_default$107;
|
|
32716
32715
|
//#endregion
|
|
32717
32716
|
//#region es/index.bundle.mjs
|
|
32718
|
-
var version = "3.19.
|
|
32717
|
+
var version = "3.19.3";
|
|
32719
32718
|
function install(app) {
|
|
32720
32719
|
stdin_default.install && app.use(stdin_default);
|
|
32721
32720
|
stdin_default$1.install && app.use(stdin_default$1);
|