@varlet/ui 3.11.2 → 3.11.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/action-sheet/style/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +3 -3
- package/es/input/props.mjs +5 -0
- package/es/snackbar/style/index.mjs +1 -1
- package/es/varlet.esm.js +9 -4
- package/highlight/web-types.en-US.json +19 -1
- package/highlight/web-types.zh-CN.json +19 -1
- package/lib/varlet.cjs.js +9 -4
- package/package.json +7 -7
- package/types/input.d.ts +2 -0
- package/types/skeleton.d.ts +18 -21
- package/umd/varlet.js +2 -2
package/es/index.bundle.mjs
CHANGED
|
@@ -283,7 +283,7 @@ import './tooltip/style/index.mjs'
|
|
|
283
283
|
import './uploader/style/index.mjs'
|
|
284
284
|
import './watermark/style/index.mjs'
|
|
285
285
|
|
|
286
|
-
const version = '3.11.
|
|
286
|
+
const version = '3.11.4'
|
|
287
287
|
|
|
288
288
|
function install(app) {
|
|
289
289
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -188,7 +188,7 @@ export * from './tooltip/index.mjs'
|
|
|
188
188
|
export * from './uploader/index.mjs'
|
|
189
189
|
export * from './watermark/index.mjs'
|
|
190
190
|
|
|
191
|
-
const version = '3.11.
|
|
191
|
+
const version = '3.11.4'
|
|
192
192
|
|
|
193
193
|
function install(app) {
|
|
194
194
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/input/Input.mjs
CHANGED
|
@@ -54,7 +54,7 @@ function __render__(_ctx, _cache) {
|
|
|
54
54
|
_renderSlot(_ctx.$slots, "append-icon")
|
|
55
55
|
]),
|
|
56
56
|
default: _withCtx(() => [
|
|
57
|
-
_ctx.normalizedType === "password" ? (_openBlock(), _createElementBlock("input", {
|
|
57
|
+
_ctx.normalizedType === "password" && _ctx.preventAutoFill ? (_openBlock(), _createElementBlock("input", {
|
|
58
58
|
key: 0,
|
|
59
59
|
tabindex: "-1",
|
|
60
60
|
"aria-label": _ctx.ariaLabel,
|
|
@@ -88,7 +88,7 @@ function __render__(_ctx, _cache) {
|
|
|
88
88
|
maxlength: _ctx.maxlength,
|
|
89
89
|
rows: _ctx.rows,
|
|
90
90
|
enterkeyhint: _ctx.enterkeyhint,
|
|
91
|
-
inputmode: _ctx.type === "number" ? "decimal" : void 0,
|
|
91
|
+
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
92
92
|
style: _normalizeStyle({
|
|
93
93
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
94
94
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -122,7 +122,7 @@ function __render__(_ctx, _cache) {
|
|
|
122
122
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
123
123
|
maxlength: _ctx.maxlength,
|
|
124
124
|
enterkeyhint: _ctx.enterkeyhint,
|
|
125
|
-
inputmode: _ctx.type === "number" ? "decimal" : void 0,
|
|
125
|
+
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
126
126
|
style: _normalizeStyle({
|
|
127
127
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
128
128
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
package/es/input/props.mjs
CHANGED
|
@@ -45,6 +45,11 @@ const props = __spreadProps(__spreadValues({
|
|
|
45
45
|
},
|
|
46
46
|
rules: [Array, Function, Object],
|
|
47
47
|
enterkeyhint: String,
|
|
48
|
+
preventAutoFill: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: true
|
|
51
|
+
},
|
|
52
|
+
inputmode: String,
|
|
48
53
|
onFocus: defineListenerProp(),
|
|
49
54
|
onBlur: defineListenerProp(),
|
|
50
55
|
onInput: defineListenerProp(),
|
package/es/varlet.esm.js
CHANGED
|
@@ -3789,6 +3789,11 @@ const pu = w1(y1({
|
|
|
3789
3789
|
},
|
|
3790
3790
|
rules: [Array, Function, Object],
|
|
3791
3791
|
enterkeyhint: String,
|
|
3792
|
+
preventAutoFill: {
|
|
3793
|
+
type: Boolean,
|
|
3794
|
+
default: !0
|
|
3795
|
+
},
|
|
3796
|
+
inputmode: String,
|
|
3792
3797
|
onFocus: F(),
|
|
3793
3798
|
onBlur: F(),
|
|
3794
3799
|
onInput: F(),
|
|
@@ -3866,7 +3871,7 @@ function z1(e, n) {
|
|
|
3866
3871
|
H(e.$slots, "append-icon")
|
|
3867
3872
|
]),
|
|
3868
3873
|
default: ue(() => [
|
|
3869
|
-
e.normalizedType === "password" ? (g(), P("input", {
|
|
3874
|
+
e.normalizedType === "password" && e.preventAutoFill ? (g(), P("input", {
|
|
3870
3875
|
key: 0,
|
|
3871
3876
|
tabindex: "-1",
|
|
3872
3877
|
"aria-label": e.ariaLabel,
|
|
@@ -3900,7 +3905,7 @@ function z1(e, n) {
|
|
|
3900
3905
|
maxlength: e.maxlength,
|
|
3901
3906
|
rows: e.rows,
|
|
3902
3907
|
enterkeyhint: e.enterkeyhint,
|
|
3903
|
-
inputmode: e.type === "number" ? "decimal" : void 0,
|
|
3908
|
+
inputmode: e.inputmode != null ? e.inputmode : e.type === "number" ? "decimal" : void 0,
|
|
3904
3909
|
style: Z({
|
|
3905
3910
|
color: e.errorMessage ? void 0 : e.textColor,
|
|
3906
3911
|
caretColor: e.errorMessage ? void 0 : e.focusColor,
|
|
@@ -3934,7 +3939,7 @@ function z1(e, n) {
|
|
|
3934
3939
|
placeholder: e.hint ? void 0 : e.placeholder,
|
|
3935
3940
|
maxlength: e.maxlength,
|
|
3936
3941
|
enterkeyhint: e.enterkeyhint,
|
|
3937
|
-
inputmode: e.type === "number" ? "decimal" : void 0,
|
|
3942
|
+
inputmode: e.inputmode != null ? e.inputmode : e.type === "number" ? "decimal" : void 0,
|
|
3938
3943
|
style: Z({
|
|
3939
3944
|
color: e.errorMessage ? void 0 : e.textColor,
|
|
3940
3945
|
caretColor: e.errorMessage ? void 0 : e.focusColor,
|
|
@@ -25246,7 +25251,7 @@ re(_i);
|
|
|
25246
25251
|
ie(_i, Kg);
|
|
25247
25252
|
const lI = _i;
|
|
25248
25253
|
var js = _i;
|
|
25249
|
-
const yB = "3.11.
|
|
25254
|
+
const yB = "3.11.4";
|
|
25250
25255
|
function wB(e) {
|
|
25251
25256
|
vl.install && e.use(vl), ml.install && e.use(ml), hl.install && e.use(hl), yl.install && e.use(yl), $l.install && e.use($l), Cl.install && e.use(Cl), Sl.install && e.use(Sl), Qr.install && e.use(Qr), Pl.install && e.use(Pl), Ol.install && e.use(Ol), zl.install && e.use(zl), El.install && e.use(El), Bn.install && e.use(Bn), Tl.install && e.use(Tl), Bl.install && e.use(Bl), Dl.install && e.use(Dl), ct.install && e.use(ct), Il.install && e.use(Il), _r.install && e.use(_r), Ml.install && e.use(Ml), Nl.install && e.use(Nl), Vl.install && e.use(Vl), Rl.install && e.use(Rl), Ll.install && e.use(Ll), Vn.install && e.use(Vn), Fl.install && e.use(Fl), Yl.install && e.use(Yl), Jl.install && e.use(Jl), _l.install && e.use(_l), xl.install && e.use(xl), es.install && e.use(es), ra.install && e.use(ra), ns.install && e.use(ns), os.install && e.use(os), Rt.install && e.use(Rt), ts.install && e.use(ts), rs.install && e.use(rs), Tn.install && e.use(Tn), as.install && e.use(as), In.install && e.use(In), Un.install && e.use(Un), Ge.install && e.use(Ge), is.install && e.use(is), Xt.install && e.use(Xt), ls.install && e.use(ls), ss.install && e.use(ss), Lt.install && e.use(Lt), Yt.install && e.use(Yt), us.install && e.use(us), cs.install && e.use(cs), mt.install && e.use(mt), ds.install && e.use(ds), fl.install && e.use(fl), fs.install && e.use(fs), Ht.install && e.use(Ht), dt.install && e.use(dt), jt.install && e.use(jt), ia.install && e.use(ia), ps.install && e.use(ps), vs.install && e.use(vs), ms.install && e.use(ms), hs.install && e.use(hs), Mo.install && e.use(Mo), gs.install && e.use(gs), bs.install && e.use(bs), la.install && e.use(la), ys.install && e.use(ys), ws.install && e.use(ws), ks.install && e.use(ks), rn.install && e.use(rn), $s.install && e.use($s), Cs.install && e.use(Cs), Ss.install && e.use(Ss), Ps.install && e.use(Ps), Os.install && e.use(Os), Es.install && e.use(Es), Ts.install && e.use(Ts), Bs.install && e.use(Bs), Ds.install && e.use(Ds), bt.install && e.use(bt), Is.install && e.use(Is), Kt.install && e.use(Kt), qt.install && e.use(qt), As.install && e.use(As), Ms.install && e.use(Ms), Ns.install && e.use(Ns), Vs.install && e.use(Vs), Rs.install && e.use(Rs), Ls.install && e.use(Ls), Fs.install && e.use(Fs), Us.install && e.use(Us), aa.install && e.use(aa), Hs.install && e.use(Hs), js.install && e.use(js);
|
|
25252
25257
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.11.
|
|
4
|
+
"version": "3.11.4",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -4482,6 +4482,24 @@
|
|
|
4482
4482
|
"type": "string",
|
|
4483
4483
|
"kind": "expression"
|
|
4484
4484
|
}
|
|
4485
|
+
},
|
|
4486
|
+
{
|
|
4487
|
+
"name": "prevent-auto-fill",
|
|
4488
|
+
"description": "Prevent browser autofill behavior",
|
|
4489
|
+
"default": "true",
|
|
4490
|
+
"value": {
|
|
4491
|
+
"type": "boolean",
|
|
4492
|
+
"kind": "expression"
|
|
4493
|
+
}
|
|
4494
|
+
},
|
|
4495
|
+
{
|
|
4496
|
+
"name": "inputmode",
|
|
4497
|
+
"description": "Consistent with the inputmode property of native input",
|
|
4498
|
+
"default": "-",
|
|
4499
|
+
"value": {
|
|
4500
|
+
"type": "string",
|
|
4501
|
+
"kind": "expression"
|
|
4502
|
+
}
|
|
4485
4503
|
}
|
|
4486
4504
|
],
|
|
4487
4505
|
"events": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.11.
|
|
4
|
+
"version": "3.11.4",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -4533,6 +4533,24 @@
|
|
|
4533
4533
|
"type": "string",
|
|
4534
4534
|
"kind": "expression"
|
|
4535
4535
|
}
|
|
4536
|
+
},
|
|
4537
|
+
{
|
|
4538
|
+
"name": "prevent-auto-fill",
|
|
4539
|
+
"description": "阻止浏览器的自动填充行为",
|
|
4540
|
+
"default": "true",
|
|
4541
|
+
"value": {
|
|
4542
|
+
"type": "boolean",
|
|
4543
|
+
"kind": "expression"
|
|
4544
|
+
}
|
|
4545
|
+
},
|
|
4546
|
+
{
|
|
4547
|
+
"name": "inputmode",
|
|
4548
|
+
"description": "与原生 input 的 inputmode 属性一致",
|
|
4549
|
+
"default": "-",
|
|
4550
|
+
"value": {
|
|
4551
|
+
"type": "string",
|
|
4552
|
+
"kind": "expression"
|
|
4553
|
+
}
|
|
4536
4554
|
}
|
|
4537
4555
|
],
|
|
4538
4556
|
"events": [
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -4730,6 +4730,11 @@ const props$1e = __spreadProps$a(__spreadValues$s({
|
|
|
4730
4730
|
},
|
|
4731
4731
|
rules: [Array, Function, Object],
|
|
4732
4732
|
enterkeyhint: String,
|
|
4733
|
+
preventAutoFill: {
|
|
4734
|
+
type: Boolean,
|
|
4735
|
+
default: true
|
|
4736
|
+
},
|
|
4737
|
+
inputmode: String,
|
|
4733
4738
|
onFocus: defineListenerProp(),
|
|
4734
4739
|
onBlur: defineListenerProp(),
|
|
4735
4740
|
onInput: defineListenerProp(),
|
|
@@ -4812,7 +4817,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4812
4817
|
vue.renderSlot(_ctx.$slots, "append-icon")
|
|
4813
4818
|
]),
|
|
4814
4819
|
default: vue.withCtx(() => [
|
|
4815
|
-
_ctx.normalizedType === "password" ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
4820
|
+
_ctx.normalizedType === "password" && _ctx.preventAutoFill ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
4816
4821
|
key: 0,
|
|
4817
4822
|
tabindex: "-1",
|
|
4818
4823
|
"aria-label": _ctx.ariaLabel,
|
|
@@ -4846,7 +4851,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4846
4851
|
maxlength: _ctx.maxlength,
|
|
4847
4852
|
rows: _ctx.rows,
|
|
4848
4853
|
enterkeyhint: _ctx.enterkeyhint,
|
|
4849
|
-
inputmode: _ctx.type === "number" ? "decimal" : void 0,
|
|
4854
|
+
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
4850
4855
|
style: vue.normalizeStyle({
|
|
4851
4856
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
4852
4857
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -4880,7 +4885,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4880
4885
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
4881
4886
|
maxlength: _ctx.maxlength,
|
|
4882
4887
|
enterkeyhint: _ctx.enterkeyhint,
|
|
4883
|
-
inputmode: _ctx.type === "number" ? "decimal" : void 0,
|
|
4888
|
+
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
4884
4889
|
style: vue.normalizeStyle({
|
|
4885
4890
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
4886
4891
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -32026,7 +32031,7 @@ withInstall(stdin_default$1);
|
|
|
32026
32031
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32027
32032
|
const _WatermarkComponent = stdin_default$1;
|
|
32028
32033
|
var stdin_default = stdin_default$1;
|
|
32029
|
-
const version = "3.11.
|
|
32034
|
+
const version = "3.11.4";
|
|
32030
32035
|
function install(app) {
|
|
32031
32036
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32032
32037
|
stdin_default$5_.install && app.use(stdin_default$5_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.4",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -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/icons": "3.11.
|
|
48
|
-
"@varlet/shared": "3.11.
|
|
49
|
-
"@varlet/use": "3.11.
|
|
47
|
+
"@varlet/icons": "3.11.4",
|
|
48
|
+
"@varlet/shared": "3.11.4",
|
|
49
|
+
"@varlet/use": "3.11.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^18.7.20",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.13",
|
|
63
63
|
"vue-router": "4.5.0",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/touch-emulator": "3.11.
|
|
65
|
+
"@varlet/ui": "3.11.4",
|
|
66
|
+
"@varlet/cli": "3.11.4",
|
|
67
|
+
"@varlet/touch-emulator": "3.11.4"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/input.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export interface InputProps extends BasicAttributes {
|
|
|
36
36
|
clearable?: boolean
|
|
37
37
|
resize?: boolean
|
|
38
38
|
autofocus?: boolean
|
|
39
|
+
preventAutoFill?: boolean
|
|
40
|
+
inputmode?: InputHTMLAttributes['inputmode']
|
|
39
41
|
validateTrigger?: InputValidateTrigger[]
|
|
40
42
|
rules?: InputRules
|
|
41
43
|
enterkeyhint?: InputHTMLAttributes['enterKeyHint']
|
package/types/skeleton.d.ts
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
import { VNode } from 'vue'
|
|
2
2
|
import { BasicAttributes, SetPropsDefaults, VarComponent } from './varComponent'
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
export declare const skeletonProps: Record<keyof SkeletonProps, any>
|
|
5
|
+
|
|
6
|
+
export interface SkeletonProps extends BasicAttributes {
|
|
7
|
+
loading?: boolean
|
|
8
|
+
title?: boolean
|
|
9
|
+
avatar?: boolean
|
|
10
|
+
card?: boolean
|
|
11
|
+
fullscreen?: boolean
|
|
12
|
+
fullscreenZIndex?: string | number
|
|
13
|
+
titleWidth?: string | number
|
|
14
|
+
avatarSize?: string | number
|
|
15
|
+
cardHeight?: string | number
|
|
16
|
+
rows?: string | number
|
|
17
|
+
rowsWidth?: (string | number)[]
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export class
|
|
21
|
-
static setPropsDefaults: SetPropsDefaults<
|
|
20
|
+
export class Skeleton extends VarComponent {
|
|
21
|
+
static setPropsDefaults: SetPropsDefaults<SkeletonProps>
|
|
22
22
|
|
|
23
|
-
$props:
|
|
23
|
+
$props: SkeletonProps
|
|
24
24
|
|
|
25
25
|
$slots: {
|
|
26
26
|
default(): VNode[]
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
clear(): void
|
|
30
|
-
confirm(): void
|
|
31
28
|
}
|
|
32
29
|
|
|
33
|
-
export class
|
|
30
|
+
export class _SkeletonComponent extends Skeleton {}
|