@varlet/ui 3.8.5 → 3.8.6
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/action-sheet/style/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/pagination/Pagination.mjs +47 -47
- package/es/pagination/pagination.css +1 -1
- package/es/select/select.css +1 -1
- package/es/style.css +1 -1
- package/es/themes/dark/pagination.mjs +3 -2
- package/es/themes/dark/select.mjs +3 -1
- package/es/themes/md3-dark/pagination.mjs +3 -2
- package/es/themes/md3-dark/select.mjs +3 -1
- package/es/themes/md3-light/pagination.mjs +3 -2
- package/es/themes/md3-light/select.mjs +3 -1
- package/es/varlet.esm.js +64 -55
- 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 +66 -57
- package/package.json +8 -8
- package/types/styleVars.d.ts +5 -0
- package/umd/varlet.js +5 -5
package/lib/varlet.cjs.js
CHANGED
|
@@ -21120,45 +21120,45 @@ function __render__$w(_ctx, _cache) {
|
|
|
21120
21120
|
)), [
|
|
21121
21121
|
[_directive_ripple, { disabled: _ctx.current >= _ctx.pageCount || _ctx.disabled }]
|
|
21122
21122
|
]),
|
|
21123
|
-
_ctx.showSizeChanger ? (vue.openBlock(), vue.
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
|
|
21134
|
-
|
|
21135
|
-
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
|
|
21140
|
-
vue.
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
))
|
|
21160
|
-
|
|
21161
|
-
|
|
21123
|
+
_ctx.showSizeChanger ? (vue.openBlock(), vue.createBlock(_component_var_menu_select, {
|
|
21124
|
+
key: 2,
|
|
21125
|
+
modelValue: _ctx.size,
|
|
21126
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.size = $event),
|
|
21127
|
+
placement: "cover-top",
|
|
21128
|
+
disabled: _ctx.disabled
|
|
21129
|
+
}, {
|
|
21130
|
+
options: vue.withCtx(() => [
|
|
21131
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
21132
|
+
vue.Fragment,
|
|
21133
|
+
null,
|
|
21134
|
+
vue.renderList(_ctx.sizeOption, (option, index) => {
|
|
21135
|
+
return vue.openBlock(), vue.createBlock(_component_var_menu_option, {
|
|
21136
|
+
key: index,
|
|
21137
|
+
value: option,
|
|
21138
|
+
onClick: _ctx.clickSize
|
|
21139
|
+
}, {
|
|
21140
|
+
default: vue.withCtx(() => [
|
|
21141
|
+
vue.createTextVNode(
|
|
21142
|
+
vue.toDisplayString(option) + vue.toDisplayString((_ctx.pt ? _ctx.pt : _ctx.t)("paginationItem")) + " / " + vue.toDisplayString((_ctx.pt ? _ctx.pt : _ctx.t)("paginationPage")),
|
|
21143
|
+
1
|
|
21144
|
+
/* TEXT */
|
|
21145
|
+
)
|
|
21146
|
+
]),
|
|
21147
|
+
_: 2
|
|
21148
|
+
/* DYNAMIC */
|
|
21149
|
+
}, 1032, ["value", "onClick"]);
|
|
21150
|
+
}),
|
|
21151
|
+
128
|
|
21152
|
+
/* KEYED_FRAGMENT */
|
|
21153
|
+
))
|
|
21154
|
+
]),
|
|
21155
|
+
default: vue.withCtx(() => [
|
|
21156
|
+
vue.createElementVNode(
|
|
21157
|
+
"li",
|
|
21158
|
+
{
|
|
21159
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("size"), [_ctx.disabled, _ctx.n("item--disabled")]))
|
|
21160
|
+
},
|
|
21161
|
+
[
|
|
21162
21162
|
vue.createElementVNode(
|
|
21163
21163
|
"div",
|
|
21164
21164
|
{
|
|
@@ -21181,14 +21181,14 @@ function __render__$w(_ctx, _cache) {
|
|
|
21181
21181
|
2
|
|
21182
21182
|
/* CLASS */
|
|
21183
21183
|
)
|
|
21184
|
-
]
|
|
21185
|
-
|
|
21186
|
-
/*
|
|
21187
|
-
|
|
21188
|
-
],
|
|
21189
|
-
|
|
21190
|
-
/*
|
|
21191
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
21184
|
+
],
|
|
21185
|
+
2
|
|
21186
|
+
/* CLASS */
|
|
21187
|
+
)
|
|
21188
|
+
]),
|
|
21189
|
+
_: 1
|
|
21190
|
+
/* STABLE */
|
|
21191
|
+
}, 8, ["modelValue", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
21192
21192
|
_ctx.showQuickJumper && !_ctx.simple ? (vue.openBlock(), vue.createElementBlock(
|
|
21193
21193
|
"li",
|
|
21194
21194
|
{
|
|
@@ -27419,7 +27419,7 @@ var stdin_default$2B = {
|
|
|
27419
27419
|
"--pagination-font-size": "var(--font-size-md)",
|
|
27420
27420
|
"--pagination-active-color": "var(--color-on-primary)",
|
|
27421
27421
|
"--pagination-active-bg-color": "var(--color-primary)",
|
|
27422
|
-
"--pagination-total-margin": "0
|
|
27422
|
+
"--pagination-total-margin": "0 10px",
|
|
27423
27423
|
"--pagination-total-line-height": "24px",
|
|
27424
27424
|
"--pagination-item-width": "32px",
|
|
27425
27425
|
"--pagination-item-height": "32px",
|
|
@@ -27430,7 +27430,8 @@ var stdin_default$2B = {
|
|
|
27430
27430
|
"--pagination-disabled-color": "var(--color-text-disabled)",
|
|
27431
27431
|
"--pagination-bg-disabled-color": "var(--color-disabled)",
|
|
27432
27432
|
"--pagination-size-line-height": "24px",
|
|
27433
|
-
"--pagination-size-padding": "0
|
|
27433
|
+
"--pagination-size-padding": "0 4px",
|
|
27434
|
+
"--pagination-quick-jumper-margin": "0 10px"
|
|
27434
27435
|
};
|
|
27435
27436
|
var stdin_default$2A = {
|
|
27436
27437
|
"--paper-background": "var(--color-surface-container-highest)",
|
|
@@ -27525,7 +27526,9 @@ var stdin_default$2r = {
|
|
|
27525
27526
|
"--select-scroller-padding": "6px 0",
|
|
27526
27527
|
"--select-scroller-max-height": "278px",
|
|
27527
27528
|
"--select-scroller-border-radius": "2px",
|
|
27528
|
-
"--select-
|
|
27529
|
+
"--select-chips-margin": "-5px 0 0 0",
|
|
27530
|
+
"--select-chips-padding": "2px 0",
|
|
27531
|
+
"--select-chip-margin": "5px 5px 0 0",
|
|
27529
27532
|
"--select-arrow-size": "20px",
|
|
27530
27533
|
"--select-standard-menu-margin": `calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0`,
|
|
27531
27534
|
"--select-label-font-size": "16px"
|
|
@@ -28453,7 +28456,7 @@ var stdin_default$1z = {
|
|
|
28453
28456
|
"--pagination-active-color": "var(--color-on-primary)",
|
|
28454
28457
|
"--pagination-active-bg-color": "var(--color-primary)",
|
|
28455
28458
|
"--pagination-hover-bg-color": "rgba(85, 85, 85, 0.15)",
|
|
28456
|
-
"--pagination-total-margin": "0
|
|
28459
|
+
"--pagination-total-margin": "0 10px",
|
|
28457
28460
|
"--pagination-total-line-height": "24px",
|
|
28458
28461
|
"--pagination-item-width": "32px",
|
|
28459
28462
|
"--pagination-item-height": "32px",
|
|
@@ -28464,7 +28467,8 @@ var stdin_default$1z = {
|
|
|
28464
28467
|
"--pagination-disabled-color": "var(--color-text-disabled)",
|
|
28465
28468
|
"--pagination-bg-disabled-color": "var(--color-disabled)",
|
|
28466
28469
|
"--pagination-size-line-height": "24px",
|
|
28467
|
-
"--pagination-size-padding": "0
|
|
28470
|
+
"--pagination-size-padding": "0 4px",
|
|
28471
|
+
"--pagination-quick-jumper-margin": "0 10px"
|
|
28468
28472
|
};
|
|
28469
28473
|
var stdin_default$1y = {
|
|
28470
28474
|
"--paper-background": "var(--color-surface-container-highest)",
|
|
@@ -28559,7 +28563,9 @@ var stdin_default$1p = {
|
|
|
28559
28563
|
"--select-scroller-border-radius": "4px",
|
|
28560
28564
|
"--select-scroller-padding": "6px 0",
|
|
28561
28565
|
"--select-scroller-max-height": "278px",
|
|
28562
|
-
"--select-
|
|
28566
|
+
"--select-chips-margin": "-5px 0 0 0",
|
|
28567
|
+
"--select-chips-padding": "2px 0",
|
|
28568
|
+
"--select-chip-margin": "5px 5px 0 0",
|
|
28563
28569
|
"--select-arrow-size": "20px",
|
|
28564
28570
|
"--select-standard-menu-margin": `calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0`,
|
|
28565
28571
|
"--select-label-font-size": "16px"
|
|
@@ -29471,7 +29477,7 @@ var stdin_default$x = {
|
|
|
29471
29477
|
"--pagination-active-color": "var(--color-on-primary)",
|
|
29472
29478
|
"--pagination-active-bg-color": "var(--color-primary)",
|
|
29473
29479
|
"--pagination-hover-bg-color": "rgba(85, 85, 85, 0.15)",
|
|
29474
|
-
"--pagination-total-margin": "0
|
|
29480
|
+
"--pagination-total-margin": "0 10px",
|
|
29475
29481
|
"--pagination-total-line-height": "24px",
|
|
29476
29482
|
"--pagination-item-width": "32px",
|
|
29477
29483
|
"--pagination-item-height": "32px",
|
|
@@ -29483,7 +29489,8 @@ var stdin_default$x = {
|
|
|
29483
29489
|
"--pagination-disabled-color": "var(--color-text-disabled)",
|
|
29484
29490
|
"--pagination-bg-disabled-color": "var(--color-disabled)",
|
|
29485
29491
|
"--pagination-size-line-height": "24px",
|
|
29486
|
-
"--pagination-size-padding": "0
|
|
29492
|
+
"--pagination-size-padding": "0 4px",
|
|
29493
|
+
"--pagination-quick-jumper-margin": "0 10px"
|
|
29487
29494
|
};
|
|
29488
29495
|
var stdin_default$w = {
|
|
29489
29496
|
"--paper-background": "var(--color-surface-container-low)",
|
|
@@ -29578,7 +29585,9 @@ var stdin_default$n = {
|
|
|
29578
29585
|
"--select-scroller-border-radius": "4px",
|
|
29579
29586
|
"--select-scroller-padding": "6px 0",
|
|
29580
29587
|
"--select-scroller-max-height": "278px",
|
|
29581
|
-
"--select-
|
|
29588
|
+
"--select-chips-margin": "-5px 0 0 0",
|
|
29589
|
+
"--select-chips-padding": "2px 0",
|
|
29590
|
+
"--select-chip-margin": "5px 5px 0 0",
|
|
29582
29591
|
"--select-arrow-size": "20px",
|
|
29583
29592
|
"--select-standard-menu-margin": `calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0`,
|
|
29584
29593
|
"--select-label-font-size": "16px"
|
|
@@ -31715,7 +31724,7 @@ withInstall(stdin_default$1);
|
|
|
31715
31724
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
31716
31725
|
const _WatermarkComponent = stdin_default$1;
|
|
31717
31726
|
var stdin_default = stdin_default$1;
|
|
31718
|
-
const version = "3.8.
|
|
31727
|
+
const version = "3.8.6";
|
|
31719
31728
|
function install(app) {
|
|
31720
31729
|
stdin_default$5X.install && app.use(stdin_default$5X);
|
|
31721
31730
|
stdin_default$5V.install && app.use(stdin_default$5V);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.8.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "3.8.6",
|
|
4
|
+
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
7
7
|
"Mobile",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/
|
|
48
|
-
"@varlet/
|
|
49
|
-
"@varlet/use": "3.8.
|
|
47
|
+
"@varlet/icons": "3.8.6",
|
|
48
|
+
"@varlet/shared": "3.8.6",
|
|
49
|
+
"@varlet/use": "3.8.6"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^18.7.18",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.4.21",
|
|
63
63
|
"vue-router": "4.2.0",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/touch-emulator": "3.8.
|
|
65
|
+
"@varlet/ui": "3.8.6",
|
|
66
|
+
"@varlet/cli": "3.8.6",
|
|
67
|
+
"@varlet/touch-emulator": "3.8.6"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/styleVars.d.ts
CHANGED
|
@@ -482,11 +482,14 @@ interface BaseStyleVars {
|
|
|
482
482
|
'--pagination-item-height'?: string
|
|
483
483
|
'--pagination-item-margin'?: string
|
|
484
484
|
'--pagination-item-border-radius'?: string
|
|
485
|
+
'--pagination-item-background'?: string
|
|
486
|
+
'--pagination-item-simple-border-radius'?: string
|
|
485
487
|
'--pagination-input-width'?: string
|
|
486
488
|
'--pagination-disabled-color'?: string
|
|
487
489
|
'--pagination-bg-disabled-color'?: string
|
|
488
490
|
'--pagination-size-line-height'?: string
|
|
489
491
|
'--pagination-size-padding'?: string
|
|
492
|
+
'--pagination-quick-jumper-margin'?: string
|
|
490
493
|
'--paper-background'?: string
|
|
491
494
|
'--paper-border-radius'?: string
|
|
492
495
|
'--picker-background'?: string
|
|
@@ -562,6 +565,8 @@ interface BaseStyleVars {
|
|
|
562
565
|
'--select-scroller-max-height'?: string
|
|
563
566
|
'--select-scroller-border-radius'?: string
|
|
564
567
|
'--select-label-font-size'?: string
|
|
568
|
+
'--select-chips-margin'?: string
|
|
569
|
+
'--select-chips-padding'?: string
|
|
565
570
|
'--select-chip-margin'?: string
|
|
566
571
|
'--select-arrow-size'?: string
|
|
567
572
|
'--select-standard-menu-margin'?: string
|