@varlet/ui 3.12.1 → 3.12.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/action-sheet/style/index.mjs +1 -1
- package/es/checkbox/Checkbox.mjs +1 -1
- package/es/checkbox/props.mjs +1 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/radio/Radio.mjs +3 -0
- package/es/radio/props.mjs +1 -0
- package/es/snackbar/style/index.mjs +1 -1
- package/es/switch/Switch.mjs +1 -1
- package/es/switch/props.mjs +1 -0
- package/es/varlet.esm.js +8 -3
- package/highlight/web-types.en-US.json +28 -1
- package/highlight/web-types.zh-CN.json +28 -1
- package/lib/varlet.cjs.js +9 -3
- package/package.json +7 -7
- package/types/checkbox.d.ts +2 -1
- package/types/radio.d.ts +2 -1
- package/types/switch.d.ts +2 -0
- package/umd/varlet.js +4 -4
package/es/checkbox/Checkbox.mjs
CHANGED
|
@@ -31,7 +31,7 @@ function __render__(_ctx, _cache) {
|
|
|
31
31
|
"aria-checked": _ctx.isIndeterminate ? "mixed" : _ctx.checked,
|
|
32
32
|
"aria-disabled": _ctx.formDisabled || _ctx.disabled,
|
|
33
33
|
class: _normalizeClass(_ctx.n()),
|
|
34
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
34
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
35
35
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = true),
|
|
36
36
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.isFocusing = false),
|
|
37
37
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
package/es/checkbox/props.mjs
CHANGED
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.3'
|
|
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.3'
|
|
192
192
|
|
|
193
193
|
function install(app) {
|
|
194
194
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/radio/Radio.mjs
CHANGED
|
@@ -125,6 +125,9 @@ const __sfc__ = defineComponent({
|
|
|
125
125
|
const disabled = (form == null ? void 0 : form.disabled.value) || props2.disabled;
|
|
126
126
|
const isChecked = checked.value;
|
|
127
127
|
const hasCheckedInRadioGroup = radioGroup == null ? void 0 : radioGroup.hasChecked.value;
|
|
128
|
+
if (props2.tabindex != null) {
|
|
129
|
+
return props2.tabindex;
|
|
130
|
+
}
|
|
128
131
|
if (disabled) {
|
|
129
132
|
return;
|
|
130
133
|
}
|
package/es/radio/props.mjs
CHANGED
package/es/switch/Switch.mjs
CHANGED
|
@@ -45,7 +45,7 @@ function __render__(_ctx, _cache) {
|
|
|
45
45
|
_withDirectives((_openBlock(), _createElementBlock("div", {
|
|
46
46
|
class: _normalizeClass(_ctx.classes(_ctx.n("ripple"), [_ctx.isActive, _ctx.n("ripple--active")])),
|
|
47
47
|
style: _normalizeStyle(_ctx.styleComputed.ripple),
|
|
48
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
48
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
49
49
|
onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.isFocusing = true),
|
|
50
50
|
onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = false)
|
|
51
51
|
}, [
|
package/es/switch/props.mjs
CHANGED
package/es/varlet.esm.js
CHANGED
|
@@ -4148,6 +4148,7 @@ const Yp = {
|
|
|
4148
4148
|
disabled: Boolean,
|
|
4149
4149
|
readonly: Boolean,
|
|
4150
4150
|
indeterminate: Boolean,
|
|
4151
|
+
tabindex: String,
|
|
4151
4152
|
iconSize: [String, Number],
|
|
4152
4153
|
ripple: {
|
|
4153
4154
|
type: Boolean,
|
|
@@ -4198,7 +4199,7 @@ function M1(e, n) {
|
|
|
4198
4199
|
"aria-checked": e.isIndeterminate ? "mixed" : e.checked,
|
|
4199
4200
|
"aria-disabled": e.formDisabled || e.disabled,
|
|
4200
4201
|
class: p(e.n()),
|
|
4201
|
-
tabindex: e.disabled || e.formDisabled ? void 0 : "0",
|
|
4202
|
+
tabindex: e.tabindex == null ? e.disabled || e.formDisabled ? void 0 : "0" : e.tabindex,
|
|
4202
4203
|
onFocus: n[1] || (n[1] = (l) => e.isFocusing = !0),
|
|
4203
4204
|
onBlur: n[2] || (n[2] = (l) => e.isFocusing = !1),
|
|
4204
4205
|
onClick: n[3] || (n[3] = (...l) => e.handleClick && e.handleClick(...l))
|
|
@@ -17281,6 +17282,7 @@ const Fh = {
|
|
|
17281
17282
|
readonly: Boolean,
|
|
17282
17283
|
checkedColor: String,
|
|
17283
17284
|
uncheckedColor: String,
|
|
17285
|
+
tabindex: String,
|
|
17284
17286
|
iconSize: [String, Number],
|
|
17285
17287
|
ripple: {
|
|
17286
17288
|
type: Boolean,
|
|
@@ -17413,6 +17415,8 @@ const Hh = ee({
|
|
|
17413
17415
|
setup(e) {
|
|
17414
17416
|
const n = w(), o = w(!1), t = Pn(e, "modelValue"), r = B(() => t.value === e.checkedValue), { radioGroup: a, bindRadioGroup: i } = gz(), { hovering: l, handleHovering: s } = no(), { form: u, bindForm: c } = Yn(), d = B(() => {
|
|
17415
17417
|
const Y = u?.disabled.value || e.disabled, z = r.value, I = a?.hasChecked.value;
|
|
17418
|
+
if (e.tabindex != null)
|
|
17419
|
+
return e.tabindex;
|
|
17416
17420
|
if (!Y)
|
|
17417
17421
|
return a && I && !z ? "-1" : "0";
|
|
17418
17422
|
}), {
|
|
@@ -20182,6 +20186,7 @@ const Sg = {
|
|
|
20182
20186
|
size: [String, Number],
|
|
20183
20187
|
variant: Boolean,
|
|
20184
20188
|
rules: [Array, Function, Object],
|
|
20189
|
+
tabindex: String,
|
|
20185
20190
|
ripple: {
|
|
20186
20191
|
type: Boolean,
|
|
20187
20192
|
default: !0
|
|
@@ -20228,7 +20233,7 @@ function y2(e, n) {
|
|
|
20228
20233
|
Ne((g(), P("div", {
|
|
20229
20234
|
class: p(e.classes(e.n("ripple"), [e.isActive, e.n("ripple--active")])),
|
|
20230
20235
|
style: Z(e.styleComputed.ripple),
|
|
20231
|
-
tabindex: e.disabled || e.formDisabled ? void 0 : "0",
|
|
20236
|
+
tabindex: e.tabindex == null ? e.disabled || e.formDisabled ? void 0 : "0" : e.tabindex,
|
|
20232
20237
|
onFocus: n[0] || (n[0] = (i) => e.isFocusing = !0),
|
|
20233
20238
|
onBlur: n[1] || (n[1] = (i) => e.isFocusing = !1)
|
|
20234
20239
|
}, [
|
|
@@ -25269,7 +25274,7 @@ re(xi);
|
|
|
25269
25274
|
ie(xi, Kg);
|
|
25270
25275
|
const lI = xi;
|
|
25271
25276
|
var js = xi;
|
|
25272
|
-
const yB = "3.12.
|
|
25277
|
+
const yB = "3.12.3";
|
|
25273
25278
|
function wB(e) {
|
|
25274
25279
|
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);
|
|
25275
25280
|
}
|
|
@@ -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.3",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1849,6 +1849,15 @@
|
|
|
1849
1849
|
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
1850
1850
|
"kind": "expression"
|
|
1851
1851
|
}
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"name": "tabindex",
|
|
1855
|
+
"description": "Consistent with the tabindex property of native input",
|
|
1856
|
+
"default": "-",
|
|
1857
|
+
"value": {
|
|
1858
|
+
"type": "string",
|
|
1859
|
+
"kind": "expression"
|
|
1860
|
+
}
|
|
1852
1861
|
}
|
|
1853
1862
|
],
|
|
1854
1863
|
"events": [
|
|
@@ -6396,6 +6405,15 @@
|
|
|
6396
6405
|
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
6397
6406
|
"kind": "expression"
|
|
6398
6407
|
}
|
|
6408
|
+
},
|
|
6409
|
+
{
|
|
6410
|
+
"name": "tabindex",
|
|
6411
|
+
"description": "Consistent with the tabindex property of native input",
|
|
6412
|
+
"default": "-",
|
|
6413
|
+
"value": {
|
|
6414
|
+
"type": "string",
|
|
6415
|
+
"kind": "expression"
|
|
6416
|
+
}
|
|
6399
6417
|
}
|
|
6400
6418
|
],
|
|
6401
6419
|
"events": [
|
|
@@ -7924,6 +7942,15 @@
|
|
|
7924
7942
|
"type": "boolean",
|
|
7925
7943
|
"kind": "expression"
|
|
7926
7944
|
}
|
|
7945
|
+
},
|
|
7946
|
+
{
|
|
7947
|
+
"name": "tabindex",
|
|
7948
|
+
"description": "Consistent with the tabindex property of native input",
|
|
7949
|
+
"default": "-",
|
|
7950
|
+
"value": {
|
|
7951
|
+
"type": "string",
|
|
7952
|
+
"kind": "expression"
|
|
7953
|
+
}
|
|
7927
7954
|
}
|
|
7928
7955
|
],
|
|
7929
7956
|
"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.3",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1900,6 +1900,15 @@
|
|
|
1900
1900
|
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
1901
1901
|
"kind": "expression"
|
|
1902
1902
|
}
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
"name": "tabindex",
|
|
1906
|
+
"description": "与原生 input 的 tabindex 属性一致",
|
|
1907
|
+
"default": "-",
|
|
1908
|
+
"value": {
|
|
1909
|
+
"type": "string",
|
|
1910
|
+
"kind": "expression"
|
|
1911
|
+
}
|
|
1903
1912
|
}
|
|
1904
1913
|
],
|
|
1905
1914
|
"events": [
|
|
@@ -6438,6 +6447,15 @@
|
|
|
6438
6447
|
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
6439
6448
|
"kind": "expression"
|
|
6440
6449
|
}
|
|
6450
|
+
},
|
|
6451
|
+
{
|
|
6452
|
+
"name": "tabindex",
|
|
6453
|
+
"description": "与原生 input 的 tabindex 属性一致",
|
|
6454
|
+
"default": "-",
|
|
6455
|
+
"value": {
|
|
6456
|
+
"type": "string",
|
|
6457
|
+
"kind": "expression"
|
|
6458
|
+
}
|
|
6441
6459
|
}
|
|
6442
6460
|
],
|
|
6443
6461
|
"events": [
|
|
@@ -8138,6 +8156,15 @@
|
|
|
8138
8156
|
"type": "boolean",
|
|
8139
8157
|
"kind": "expression"
|
|
8140
8158
|
}
|
|
8159
|
+
},
|
|
8160
|
+
{
|
|
8161
|
+
"name": "tabindex",
|
|
8162
|
+
"description": "与原生 input 的 tabindex 属性一致",
|
|
8163
|
+
"default": "-",
|
|
8164
|
+
"value": {
|
|
8165
|
+
"type": "string",
|
|
8166
|
+
"kind": "expression"
|
|
8167
|
+
}
|
|
8141
8168
|
}
|
|
8142
8169
|
],
|
|
8143
8170
|
"events": [
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -5167,6 +5167,7 @@ const props$1d = {
|
|
|
5167
5167
|
disabled: Boolean,
|
|
5168
5168
|
readonly: Boolean,
|
|
5169
5169
|
indeterminate: Boolean,
|
|
5170
|
+
tabindex: String,
|
|
5170
5171
|
iconSize: [String, Number],
|
|
5171
5172
|
ripple: {
|
|
5172
5173
|
type: Boolean,
|
|
@@ -5223,7 +5224,7 @@ function __render__$1k(_ctx, _cache) {
|
|
|
5223
5224
|
"aria-checked": _ctx.isIndeterminate ? "mixed" : _ctx.checked,
|
|
5224
5225
|
"aria-disabled": _ctx.formDisabled || _ctx.disabled,
|
|
5225
5226
|
class: vue.normalizeClass(_ctx.n()),
|
|
5226
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
5227
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
5227
5228
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = true),
|
|
5228
5229
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.isFocusing = false),
|
|
5229
5230
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
@@ -22771,6 +22772,7 @@ const props$m = {
|
|
|
22771
22772
|
readonly: Boolean,
|
|
22772
22773
|
checkedColor: String,
|
|
22773
22774
|
uncheckedColor: String,
|
|
22775
|
+
tabindex: String,
|
|
22774
22776
|
iconSize: [String, Number],
|
|
22775
22777
|
ripple: {
|
|
22776
22778
|
type: Boolean,
|
|
@@ -22918,6 +22920,9 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22918
22920
|
const disabled = (form == null ? void 0 : form.disabled.value) || props2.disabled;
|
|
22919
22921
|
const isChecked = checked.value;
|
|
22920
22922
|
const hasCheckedInRadioGroup = radioGroup == null ? void 0 : radioGroup.hasChecked.value;
|
|
22923
|
+
if (props2.tabindex != null) {
|
|
22924
|
+
return props2.tabindex;
|
|
22925
|
+
}
|
|
22921
22926
|
if (disabled) {
|
|
22922
22927
|
return;
|
|
22923
22928
|
}
|
|
@@ -26277,6 +26282,7 @@ const props$8 = {
|
|
|
26277
26282
|
size: [String, Number],
|
|
26278
26283
|
variant: Boolean,
|
|
26279
26284
|
rules: [Array, Function, Object],
|
|
26285
|
+
tabindex: String,
|
|
26280
26286
|
ripple: {
|
|
26281
26287
|
type: Boolean,
|
|
26282
26288
|
default: true
|
|
@@ -26329,7 +26335,7 @@ function __render__$9(_ctx, _cache) {
|
|
|
26329
26335
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
26330
26336
|
class: vue.normalizeClass(_ctx.classes(_ctx.n("ripple"), [_ctx.isActive, _ctx.n("ripple--active")])),
|
|
26331
26337
|
style: vue.normalizeStyle(_ctx.styleComputed.ripple),
|
|
26332
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
26338
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
26333
26339
|
onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.isFocusing = true),
|
|
26334
26340
|
onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = false)
|
|
26335
26341
|
}, [
|
|
@@ -32054,7 +32060,7 @@ withInstall(stdin_default$1);
|
|
|
32054
32060
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32055
32061
|
const _WatermarkComponent = stdin_default$1;
|
|
32056
32062
|
var stdin_default = stdin_default$1;
|
|
32057
|
-
const version = "3.12.
|
|
32063
|
+
const version = "3.12.3";
|
|
32058
32064
|
function install(app) {
|
|
32059
32065
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32060
32066
|
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.3",
|
|
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/shared": "3.12.
|
|
48
|
-
"@varlet/icons": "3.12.
|
|
49
|
-
"@varlet/use": "3.12.
|
|
47
|
+
"@varlet/shared": "3.12.3",
|
|
48
|
+
"@varlet/icons": "3.12.3",
|
|
49
|
+
"@varlet/use": "3.12.3"
|
|
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/cli": "3.12.
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
65
|
+
"@varlet/cli": "3.12.3",
|
|
66
|
+
"@varlet/touch-emulator": "3.12.3",
|
|
67
|
+
"@varlet/ui": "3.12.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from 'vue'
|
|
1
|
+
import { InputHTMLAttributes, VNode } from 'vue'
|
|
2
2
|
import { BasicAttributes, Rules as CheckboxRules, ListenerProp, SetPropsDefaults, VarComponent } from './varComponent'
|
|
3
3
|
|
|
4
4
|
export declare const checkboxProps: Record<keyof CheckboxProps, any>
|
|
@@ -18,6 +18,7 @@ export interface CheckboxProps extends BasicAttributes {
|
|
|
18
18
|
ripple?: boolean
|
|
19
19
|
validateTrigger?: Array<CheckboxValidateTrigger>
|
|
20
20
|
rules?: CheckboxRules
|
|
21
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
21
22
|
onClick?: ListenerProp<(e: Event) => void>
|
|
22
23
|
onChange?: ListenerProp<(value: any, indeterminate: boolean) => void>
|
|
23
24
|
'onUpdate:modelValue'?: ListenerProp<(value: any) => void>
|
package/types/radio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from 'vue'
|
|
1
|
+
import { InputHTMLAttributes, VNode } from 'vue'
|
|
2
2
|
import { BasicAttributes, ListenerProp, Rules as RadioRules, SetPropsDefaults, VarComponent } from './varComponent'
|
|
3
3
|
|
|
4
4
|
export declare const radioProps: Record<keyof RadioProps, any>
|
|
@@ -16,6 +16,7 @@ export interface RadioProps extends BasicAttributes {
|
|
|
16
16
|
iconSize?: string | number
|
|
17
17
|
ripple?: boolean
|
|
18
18
|
validateTrigger?: Array<RadioValidateTrigger>
|
|
19
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
19
20
|
rules?: RadioRules
|
|
20
21
|
onClick?: ListenerProp<(e: Event) => void>
|
|
21
22
|
onChange?: ListenerProp<(value: any) => void>
|
package/types/switch.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'vue'
|
|
1
2
|
import { BasicAttributes, ListenerProp, SetPropsDefaults, Rules as SwitchRules, VarComponent } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export declare const switchProps: Record<keyof SwitchProps, any>
|
|
@@ -21,6 +22,7 @@ export interface SwitchProps extends BasicAttributes {
|
|
|
21
22
|
validateTrigger?: Array<SwitchValidateTrigger>
|
|
22
23
|
variant?: boolean
|
|
23
24
|
rules?: SwitchRules
|
|
25
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
24
26
|
onClick?: ListenerProp<(event: Event) => void>
|
|
25
27
|
onChange?: ListenerProp<(value: any) => void>
|
|
26
28
|
'onUpdate:modelValue'?: ListenerProp<(value: any) => void>
|