@varlet/ui 3.12.0 → 3.12.1
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/auto-complete/AutoComplete.mjs +3 -2
- package/es/auto-complete/props.mjs +1 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +4 -2
- package/es/input/props.mjs +1 -0
- package/es/select/Select.mjs +1 -1
- package/es/select/props.mjs +1 -0
- package/es/varlet.esm.js +11 -5
- package/highlight/web-types.en-US.json +28 -1
- package/highlight/web-types.zh-CN.json +28 -1
- package/lib/varlet.cjs.js +12 -6
- package/package.json +7 -7
- package/types/autoComplete.d.ts +1 -0
- package/types/input.d.ts +1 -0
- package/types/select.d.ts +2 -1
- package/umd/varlet.js +3 -3
|
@@ -39,7 +39,7 @@ function __render__(_ctx, _cache) {
|
|
|
39
39
|
return _openBlock(), _createElementBlock("div", {
|
|
40
40
|
ref: "root",
|
|
41
41
|
class: _normalizeClass(_ctx.n()),
|
|
42
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
42
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
43
43
|
onFocusin: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
44
44
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
45
45
|
}, [
|
|
@@ -106,6 +106,7 @@ function __render__(_ctx, _cache) {
|
|
|
106
106
|
"is-force-focusing-effect": _ctx.isFocusing,
|
|
107
107
|
"is-force-error-effect": !!_ctx.errorMessage,
|
|
108
108
|
"is-show-form-details": false,
|
|
109
|
+
tabindex: _ctx.tabindex,
|
|
109
110
|
onInput: _ctx.handleInput,
|
|
110
111
|
onBlur: _ctx.handleBlur,
|
|
111
112
|
onClear: _ctx.handleClear,
|
|
@@ -142,7 +143,7 @@ function __render__(_ctx, _cache) {
|
|
|
142
143
|
]),
|
|
143
144
|
key: "3"
|
|
144
145
|
} : void 0
|
|
145
|
-
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange"])
|
|
146
|
+
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "tabindex", "onInput", "onBlur", "onClear", "onChange"])
|
|
146
147
|
]),
|
|
147
148
|
_: 3
|
|
148
149
|
/* FORWARDED */
|
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.12.
|
|
286
|
+
const version = '3.12.1'
|
|
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.12.
|
|
191
|
+
const version = '3.12.1'
|
|
192
192
|
|
|
193
193
|
function install(app) {
|
|
194
194
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/input/Input.mjs
CHANGED
|
@@ -9,8 +9,8 @@ import { props } from "./props.mjs";
|
|
|
9
9
|
const { name, n, classes } = createNamespace("input");
|
|
10
10
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, createSlots as _createSlots, createVNode as _createVNode, createBlock as _createBlock } from "vue";
|
|
11
11
|
const _hoisted_1 = ["aria-label", "placeholder", "enterkeyhint"];
|
|
12
|
-
const _hoisted_2 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
13
|
-
const _hoisted_3 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
12
|
+
const _hoisted_2 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode", "tabindex"];
|
|
13
|
+
const _hoisted_3 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "tabindex", "inputmode"];
|
|
14
14
|
function __render__(_ctx, _cache) {
|
|
15
15
|
const _component_var_field_decorator = _resolveComponent("var-field-decorator");
|
|
16
16
|
const _component_var_form_details = _resolveComponent("var-form-details");
|
|
@@ -89,6 +89,7 @@ function __render__(_ctx, _cache) {
|
|
|
89
89
|
rows: _ctx.rows,
|
|
90
90
|
enterkeyhint: _ctx.enterkeyhint,
|
|
91
91
|
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
92
|
+
tabindex: _ctx.tabindex,
|
|
92
93
|
style: _normalizeStyle({
|
|
93
94
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
94
95
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -122,6 +123,7 @@ function __render__(_ctx, _cache) {
|
|
|
122
123
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
123
124
|
maxlength: _ctx.maxlength,
|
|
124
125
|
enterkeyhint: _ctx.enterkeyhint,
|
|
126
|
+
tabindex: _ctx.tabindex,
|
|
125
127
|
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
126
128
|
style: _normalizeStyle({
|
|
127
129
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
package/es/input/props.mjs
CHANGED
package/es/select/Select.mjs
CHANGED
|
@@ -27,7 +27,7 @@ function __render__(_ctx, _cache) {
|
|
|
27
27
|
return _openBlock(), _createElementBlock("div", {
|
|
28
28
|
ref: "root",
|
|
29
29
|
class: _normalizeClass(_ctx.n()),
|
|
30
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
30
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
31
31
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
32
32
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.handleRootBlur && _ctx.handleRootBlur(...args))
|
|
33
33
|
}, [
|
package/es/select/props.mjs
CHANGED
package/es/varlet.esm.js
CHANGED
|
@@ -3792,6 +3792,7 @@ const vu = w1(y1({
|
|
|
3792
3792
|
default: !0
|
|
3793
3793
|
},
|
|
3794
3794
|
inputmode: String,
|
|
3795
|
+
tabindex: String,
|
|
3795
3796
|
onFocus: F(),
|
|
3796
3797
|
onBlur: F(),
|
|
3797
3798
|
onInput: F(),
|
|
@@ -3826,7 +3827,7 @@ const vu = w1(y1({
|
|
|
3826
3827
|
default: !0
|
|
3827
3828
|
}
|
|
3828
3829
|
// internal end
|
|
3829
|
-
}), { name: k1, n: $1, classes: C1 } = ne("input"), S1 = ["aria-label", "placeholder", "enterkeyhint"], P1 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"], O1 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
3830
|
+
}), { name: k1, n: $1, classes: C1 } = ne("input"), S1 = ["aria-label", "placeholder", "enterkeyhint"], P1 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode", "tabindex"], O1 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "tabindex", "inputmode"];
|
|
3830
3831
|
function z1(e, n) {
|
|
3831
3832
|
const o = _("var-field-decorator"), t = _("var-form-details");
|
|
3832
3833
|
return g(), P(
|
|
@@ -3904,6 +3905,7 @@ function z1(e, n) {
|
|
|
3904
3905
|
rows: e.rows,
|
|
3905
3906
|
enterkeyhint: e.enterkeyhint,
|
|
3906
3907
|
inputmode: e.inputmode != null ? e.inputmode : e.type === "number" ? "decimal" : void 0,
|
|
3908
|
+
tabindex: e.tabindex,
|
|
3907
3909
|
style: Z({
|
|
3908
3910
|
color: e.errorMessage ? void 0 : e.textColor,
|
|
3909
3911
|
caretColor: e.errorMessage ? void 0 : e.focusColor,
|
|
@@ -3937,6 +3939,7 @@ function z1(e, n) {
|
|
|
3937
3939
|
placeholder: e.hint ? void 0 : e.placeholder,
|
|
3938
3940
|
maxlength: e.maxlength,
|
|
3939
3941
|
enterkeyhint: e.enterkeyhint,
|
|
3942
|
+
tabindex: e.tabindex,
|
|
3940
3943
|
inputmode: e.inputmode != null ? e.inputmode : e.type === "number" ? "decimal" : void 0,
|
|
3941
3944
|
style: Z({
|
|
3942
3945
|
color: e.errorMessage ? void 0 : e.textColor,
|
|
@@ -6437,6 +6440,7 @@ const lv = Bk({
|
|
|
6437
6440
|
"variant",
|
|
6438
6441
|
"placeholder",
|
|
6439
6442
|
"enterkeyhint",
|
|
6443
|
+
"tabindex",
|
|
6440
6444
|
"line",
|
|
6441
6445
|
"hint",
|
|
6442
6446
|
"textColor",
|
|
@@ -6466,7 +6470,7 @@ function Mk(e, n) {
|
|
|
6466
6470
|
return g(), P("div", {
|
|
6467
6471
|
ref: "root",
|
|
6468
6472
|
class: p(e.n()),
|
|
6469
|
-
tabindex: e.disabled || e.formDisabled ? void 0 : "0",
|
|
6473
|
+
tabindex: e.tabindex == null ? e.disabled || e.formDisabled ? void 0 : "0" : e.tabindex,
|
|
6470
6474
|
onFocusin: n[2] || (n[2] = (...i) => e.focus && e.focus(...i)),
|
|
6471
6475
|
onClick: n[3] || (n[3] = (...i) => e.handleClick && e.handleClick(...i))
|
|
6472
6476
|
}, [
|
|
@@ -6531,6 +6535,7 @@ function Mk(e, n) {
|
|
|
6531
6535
|
"is-force-focusing-effect": e.isFocusing,
|
|
6532
6536
|
"is-force-error-effect": !!e.errorMessage,
|
|
6533
6537
|
"is-show-form-details": !1,
|
|
6538
|
+
tabindex: e.tabindex,
|
|
6534
6539
|
onInput: e.handleInput,
|
|
6535
6540
|
onBlur: e.handleBlur,
|
|
6536
6541
|
onClear: e.handleClear,
|
|
@@ -6567,7 +6572,7 @@ function Mk(e, n) {
|
|
|
6567
6572
|
]),
|
|
6568
6573
|
key: "3"
|
|
6569
6574
|
} : void 0
|
|
6570
|
-
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange"])
|
|
6575
|
+
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "tabindex", "onInput", "onBlur", "onClear", "onChange"])
|
|
6571
6576
|
]),
|
|
6572
6577
|
_: 3
|
|
6573
6578
|
/* FORWARDED */
|
|
@@ -18258,6 +18263,7 @@ const og = l3({
|
|
|
18258
18263
|
default: () => ["onChange", "onClear", "onClose"]
|
|
18259
18264
|
},
|
|
18260
18265
|
rules: [Array, Function, Object],
|
|
18266
|
+
tabindex: String,
|
|
18261
18267
|
onFocus: F(),
|
|
18262
18268
|
onBlur: F(),
|
|
18263
18269
|
onClose: F(),
|
|
@@ -18282,7 +18288,7 @@ function f3(e, n) {
|
|
|
18282
18288
|
return g(), P("div", {
|
|
18283
18289
|
ref: "root",
|
|
18284
18290
|
class: p(e.n()),
|
|
18285
|
-
tabindex: e.disabled || e.formDisabled ? void 0 : "0",
|
|
18291
|
+
tabindex: e.tabindex == null ? e.disabled || e.formDisabled ? void 0 : "0" : e.tabindex,
|
|
18286
18292
|
onFocus: n[3] || (n[3] = (...u) => e.handleFocus && e.handleFocus(...u)),
|
|
18287
18293
|
onBlur: n[4] || (n[4] = (...u) => e.handleRootBlur && e.handleRootBlur(...u))
|
|
18288
18294
|
}, [
|
|
@@ -25263,7 +25269,7 @@ re(xi);
|
|
|
25263
25269
|
ie(xi, Kg);
|
|
25264
25270
|
const lI = xi;
|
|
25265
25271
|
var js = xi;
|
|
25266
|
-
const yB = "3.12.
|
|
25272
|
+
const yB = "3.12.1";
|
|
25267
25273
|
function wB(e) {
|
|
25268
25274
|
ml.install && e.use(ml), hl.install && e.use(hl), gl.install && e.use(gl), wl.install && e.use(wl), Cl.install && e.use(Cl), Sl.install && e.use(Sl), Pl.install && e.use(Pl), _r.install && e.use(_r), Ol.install && e.use(Ol), zl.install && e.use(zl), El.install && e.use(El), Tl.install && e.use(Tl), Dn.install && e.use(Dn), Bl.install && e.use(Bl), Dl.install && e.use(Dl), Il.install && e.use(Il), dt.install && e.use(dt), Al.install && e.use(Al), xr.install && e.use(xr), Nl.install && e.use(Nl), Vl.install && e.use(Vl), Rl.install && e.use(Rl), Ll.install && e.use(Ll), Fl.install && e.use(Fl), Rn.install && e.use(Rn), Ul.install && e.use(Ul), Wl.install && e.use(Wl), Jl.install && e.use(Jl), _l.install && e.use(_l), xl.install && e.use(xl), es.install && e.use(es), aa.install && e.use(aa), ns.install && e.use(ns), os.install && e.use(os), Lt.install && e.use(Lt), ts.install && e.use(ts), rs.install && e.use(rs), Bn.install && e.use(Bn), as.install && e.use(as), An.install && e.use(An), Hn.install && e.use(Hn), Ge.install && e.use(Ge), is.install && e.use(is), Gt.install && e.use(Gt), ls.install && e.use(ls), ss.install && e.use(ss), Ft.install && e.use(Ft), Wt.install && e.use(Wt), us.install && e.use(us), cs.install && e.use(cs), ht.install && e.use(ht), ds.install && e.use(ds), pl.install && e.use(pl), fs.install && e.use(fs), jt.install && e.use(jt), ft.install && e.use(ft), Yt.install && e.use(Yt), la.install && e.use(la), 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), sa.install && e.use(sa), 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), yt.install && e.use(yt), Is.install && e.use(Is), qt.install && e.use(qt), Xt.install && e.use(Xt), 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), ia.install && e.use(ia), Hs.install && e.use(Hs), js.install && e.use(js);
|
|
25269
25275
|
}
|
|
@@ -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.12.
|
|
4
|
+
"version": "3.12.1",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -578,6 +578,15 @@
|
|
|
578
578
|
"type": "(v: string) => boolean",
|
|
579
579
|
"kind": "expression"
|
|
580
580
|
}
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "tabindex",
|
|
584
|
+
"description": "Consistent with the tabindex property of native input",
|
|
585
|
+
"default": "-",
|
|
586
|
+
"value": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"kind": "expression"
|
|
589
|
+
}
|
|
581
590
|
}
|
|
582
591
|
],
|
|
583
592
|
"events": [
|
|
@@ -4536,6 +4545,15 @@
|
|
|
4536
4545
|
"type": "string",
|
|
4537
4546
|
"kind": "expression"
|
|
4538
4547
|
}
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
"name": "tabindex",
|
|
4551
|
+
"description": "Consistent with the tabindex property of native input",
|
|
4552
|
+
"default": "-",
|
|
4553
|
+
"value": {
|
|
4554
|
+
"type": "string",
|
|
4555
|
+
"kind": "expression"
|
|
4556
|
+
}
|
|
4539
4557
|
}
|
|
4540
4558
|
],
|
|
4541
4559
|
"events": [
|
|
@@ -6797,6 +6815,15 @@
|
|
|
6797
6815
|
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
6798
6816
|
"kind": "expression"
|
|
6799
6817
|
}
|
|
6818
|
+
},
|
|
6819
|
+
{
|
|
6820
|
+
"name": "tabindex",
|
|
6821
|
+
"description": "Consistent with the tabindex property of native select",
|
|
6822
|
+
"default": "-",
|
|
6823
|
+
"value": {
|
|
6824
|
+
"type": "string",
|
|
6825
|
+
"kind": "expression"
|
|
6826
|
+
}
|
|
6800
6827
|
}
|
|
6801
6828
|
],
|
|
6802
6829
|
"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.12.
|
|
4
|
+
"version": "3.12.1",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -578,6 +578,15 @@
|
|
|
578
578
|
"type": "(v: string) => boolean",
|
|
579
579
|
"kind": "expression"
|
|
580
580
|
}
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "tabindex",
|
|
584
|
+
"description": "与原生 input 的 tabindex 属性一致",
|
|
585
|
+
"default": "-",
|
|
586
|
+
"value": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"kind": "expression"
|
|
589
|
+
}
|
|
581
590
|
}
|
|
582
591
|
],
|
|
583
592
|
"events": [
|
|
@@ -4587,6 +4596,15 @@
|
|
|
4587
4596
|
"type": "string",
|
|
4588
4597
|
"kind": "expression"
|
|
4589
4598
|
}
|
|
4599
|
+
},
|
|
4600
|
+
{
|
|
4601
|
+
"name": "tabindex",
|
|
4602
|
+
"description": "与原生 input 的 tabindex 属性一致",
|
|
4603
|
+
"default": "-",
|
|
4604
|
+
"value": {
|
|
4605
|
+
"type": "string",
|
|
4606
|
+
"kind": "expression"
|
|
4607
|
+
}
|
|
4590
4608
|
}
|
|
4591
4609
|
],
|
|
4592
4610
|
"events": [
|
|
@@ -7011,6 +7029,15 @@
|
|
|
7011
7029
|
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
7012
7030
|
"kind": "expression"
|
|
7013
7031
|
}
|
|
7032
|
+
},
|
|
7033
|
+
{
|
|
7034
|
+
"name": "tabindex",
|
|
7035
|
+
"description": "与原生 select 的 tabindex 属性一致",
|
|
7036
|
+
"default": "-",
|
|
7037
|
+
"value": {
|
|
7038
|
+
"type": "string",
|
|
7039
|
+
"kind": "expression"
|
|
7040
|
+
}
|
|
7014
7041
|
}
|
|
7015
7042
|
],
|
|
7016
7043
|
"events": [
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -4733,6 +4733,7 @@ const props$1e = __spreadProps$a(__spreadValues$s({
|
|
|
4733
4733
|
default: true
|
|
4734
4734
|
},
|
|
4735
4735
|
inputmode: String,
|
|
4736
|
+
tabindex: String,
|
|
4736
4737
|
onFocus: defineListenerProp(),
|
|
4737
4738
|
onBlur: defineListenerProp(),
|
|
4738
4739
|
onInput: defineListenerProp(),
|
|
@@ -4770,8 +4771,8 @@ const props$1e = __spreadProps$a(__spreadValues$s({
|
|
|
4770
4771
|
});
|
|
4771
4772
|
const { name: name$1g, n: n$1n, classes: classes$14 } = createNamespace("input");
|
|
4772
4773
|
const _hoisted_1$A = ["aria-label", "placeholder", "enterkeyhint"];
|
|
4773
|
-
const _hoisted_2$8 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
4774
|
-
const _hoisted_3$4 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
4774
|
+
const _hoisted_2$8 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode", "tabindex"];
|
|
4775
|
+
const _hoisted_3$4 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "tabindex", "inputmode"];
|
|
4775
4776
|
function __render__$1l(_ctx, _cache) {
|
|
4776
4777
|
const _component_var_field_decorator = vue.resolveComponent("var-field-decorator");
|
|
4777
4778
|
const _component_var_form_details = vue.resolveComponent("var-form-details");
|
|
@@ -4850,6 +4851,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4850
4851
|
rows: _ctx.rows,
|
|
4851
4852
|
enterkeyhint: _ctx.enterkeyhint,
|
|
4852
4853
|
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
4854
|
+
tabindex: _ctx.tabindex,
|
|
4853
4855
|
style: vue.normalizeStyle({
|
|
4854
4856
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
4855
4857
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -4883,6 +4885,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4883
4885
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
4884
4886
|
maxlength: _ctx.maxlength,
|
|
4885
4887
|
enterkeyhint: _ctx.enterkeyhint,
|
|
4888
|
+
tabindex: _ctx.tabindex,
|
|
4886
4889
|
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
4887
4890
|
style: vue.normalizeStyle({
|
|
4888
4891
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
@@ -8315,6 +8318,7 @@ const props$19 = __spreadValues$n({
|
|
|
8315
8318
|
"variant",
|
|
8316
8319
|
"placeholder",
|
|
8317
8320
|
"enterkeyhint",
|
|
8321
|
+
"tabindex",
|
|
8318
8322
|
"line",
|
|
8319
8323
|
"hint",
|
|
8320
8324
|
"textColor",
|
|
@@ -8352,7 +8356,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
8352
8356
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
8353
8357
|
ref: "root",
|
|
8354
8358
|
class: vue.normalizeClass(_ctx.n()),
|
|
8355
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
8359
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
8356
8360
|
onFocusin: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
8357
8361
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
8358
8362
|
}, [
|
|
@@ -8419,6 +8423,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
8419
8423
|
"is-force-focusing-effect": _ctx.isFocusing,
|
|
8420
8424
|
"is-force-error-effect": !!_ctx.errorMessage,
|
|
8421
8425
|
"is-show-form-details": false,
|
|
8426
|
+
tabindex: _ctx.tabindex,
|
|
8422
8427
|
onInput: _ctx.handleInput,
|
|
8423
8428
|
onBlur: _ctx.handleBlur,
|
|
8424
8429
|
onClear: _ctx.handleClear,
|
|
@@ -8455,7 +8460,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
8455
8460
|
]),
|
|
8456
8461
|
key: "3"
|
|
8457
8462
|
} : void 0
|
|
8458
|
-
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange"])
|
|
8463
|
+
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "tabindex", "onInput", "onBlur", "onClear", "onChange"])
|
|
8459
8464
|
]),
|
|
8460
8465
|
_: 3
|
|
8461
8466
|
/* FORWARDED */
|
|
@@ -23898,6 +23903,7 @@ const props$h = __spreadValues$6({
|
|
|
23898
23903
|
default: () => ["onChange", "onClear", "onClose"]
|
|
23899
23904
|
},
|
|
23900
23905
|
rules: [Array, Function, Object],
|
|
23906
|
+
tabindex: String,
|
|
23901
23907
|
onFocus: defineListenerProp(),
|
|
23902
23908
|
onBlur: defineListenerProp(),
|
|
23903
23909
|
onClose: defineListenerProp(),
|
|
@@ -23930,7 +23936,7 @@ function __render__$h(_ctx, _cache) {
|
|
|
23930
23936
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
23931
23937
|
ref: "root",
|
|
23932
23938
|
class: vue.normalizeClass(_ctx.n()),
|
|
23933
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
23939
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
23934
23940
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
23935
23941
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.handleRootBlur && _ctx.handleRootBlur(...args))
|
|
23936
23942
|
}, [
|
|
@@ -32048,7 +32054,7 @@ withInstall(stdin_default$1);
|
|
|
32048
32054
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32049
32055
|
const _WatermarkComponent = stdin_default$1;
|
|
32050
32056
|
var stdin_default = stdin_default$1;
|
|
32051
|
-
const version = "3.12.
|
|
32057
|
+
const version = "3.12.1";
|
|
32052
32058
|
function install(app) {
|
|
32053
32059
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32054
32060
|
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.12.
|
|
3
|
+
"version": "3.12.1",
|
|
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/
|
|
48
|
-
"@varlet/
|
|
49
|
-
"@varlet/use": "3.12.
|
|
47
|
+
"@varlet/shared": "3.12.1",
|
|
48
|
+
"@varlet/icons": "3.12.1",
|
|
49
|
+
"@varlet/use": "3.12.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^18.7.20",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.21",
|
|
63
63
|
"vue-router": "4.5.1",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/
|
|
66
|
-
"@varlet/ui": "3.12.
|
|
67
|
-
"@varlet/
|
|
65
|
+
"@varlet/cli": "3.12.1",
|
|
66
|
+
"@varlet/ui": "3.12.1",
|
|
67
|
+
"@varlet/touch-emulator": "3.12.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/autoComplete.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface AutoCompleteProps extends BasicAttributes {
|
|
|
47
47
|
getShow?: (v: string) => boolean
|
|
48
48
|
rules?: AutoCompleteRules
|
|
49
49
|
enterkeyhint?: InputHTMLAttributes['enterKeyHint']
|
|
50
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
50
51
|
onFocus?: ListenerProp<() => void>
|
|
51
52
|
onBlur?: ListenerProp<() => void>
|
|
52
53
|
onClick?: ListenerProp<(e: Event) => void>
|
package/types/input.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface InputProps extends BasicAttributes {
|
|
|
38
38
|
autofocus?: boolean
|
|
39
39
|
preventAutoFill?: boolean
|
|
40
40
|
inputmode?: InputHTMLAttributes['inputmode']
|
|
41
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
41
42
|
validateTrigger?: InputValidateTrigger[]
|
|
42
43
|
rules?: InputRules
|
|
43
44
|
enterkeyhint?: InputHTMLAttributes['enterKeyHint']
|
package/types/select.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from 'vue'
|
|
1
|
+
import { SelectHTMLAttributes, VNode } from 'vue'
|
|
2
2
|
import {
|
|
3
3
|
BasicAttributes,
|
|
4
4
|
ListenerProp,
|
|
@@ -51,6 +51,7 @@ export interface SelectProps extends BasicAttributes {
|
|
|
51
51
|
textAlign?: SelectTextAlign
|
|
52
52
|
validateTrigger?: Array<SelectValidateTrigger>
|
|
53
53
|
rules?: SelectRules
|
|
54
|
+
tabindex?: SelectHTMLAttributes['tabindex']
|
|
54
55
|
onFocus?: ListenerProp<(e: Event) => void>
|
|
55
56
|
onBlur?: ListenerProp<(e: Event) => void>
|
|
56
57
|
onClick?: ListenerProp<(e: Event) => void>
|