@varlet/ui 2.10.2-alpha.1683283732565 → 2.10.2-alpha.1683284670321
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/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +14 -9
- package/es/input/props.mjs +4 -1
- package/es/varlet.esm.js +16 -8
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/varlet.cjs.js +19 -11
- package/package.json +6 -6
- package/types/input.d.ts +1 -0
- package/umd/varlet.js +3 -3
package/es/index.bundle.mjs
CHANGED
|
@@ -241,7 +241,7 @@ import './time-picker/style/index.mjs'
|
|
|
241
241
|
import './tooltip/style/index.mjs'
|
|
242
242
|
import './uploader/style/index.mjs'
|
|
243
243
|
|
|
244
|
-
const version = '2.10.2-alpha.
|
|
244
|
+
const version = '2.10.2-alpha.1683284670321'
|
|
245
245
|
|
|
246
246
|
function install(app) {
|
|
247
247
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -160,7 +160,7 @@ export * from './time-picker/index.mjs'
|
|
|
160
160
|
export * from './tooltip/index.mjs'
|
|
161
161
|
export * from './uploader/index.mjs'
|
|
162
162
|
|
|
163
|
-
const version = '2.10.2-alpha.
|
|
163
|
+
const version = '2.10.2-alpha.1683284670321'
|
|
164
164
|
|
|
165
165
|
function install(app) {
|
|
166
166
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/input/Input.mjs
CHANGED
|
@@ -14,9 +14,9 @@ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalize
|
|
|
14
14
|
|
|
15
15
|
var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
|
|
16
16
|
|
|
17
|
-
var _hoisted_1 = ["placeholder"];
|
|
18
|
-
var _hoisted_2 = ["id", "disabled", "type", "value", "placeholder", "maxlength", "rows"];
|
|
19
|
-
var _hoisted_3 = ["id", "disabled", "type", "value", "placeholder", "maxlength"];
|
|
17
|
+
var _hoisted_1 = ["placeholder", "enterkeyhint"];
|
|
18
|
+
var _hoisted_2 = ["id", "disabled", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
19
|
+
var _hoisted_3 = ["id", "disabled", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
20
20
|
|
|
21
21
|
function __render__(_ctx, _cache) {
|
|
22
22
|
var _component_var_field_decorator = _resolveComponent("var-field-decorator");
|
|
@@ -52,13 +52,14 @@ function __render__(_ctx, _cache) {
|
|
|
52
52
|
})), {
|
|
53
53
|
"prepend-icon": _withCtx(() => [_renderSlot(_ctx.$slots, "prepend-icon")]),
|
|
54
54
|
"append-icon": _withCtx(() => [_renderSlot(_ctx.$slots, "append-icon")]),
|
|
55
|
-
default: _withCtx(() => [_ctx.
|
|
55
|
+
default: _withCtx(() => [_ctx.normalizedType === 'password' ? (_openBlock(), _createElementBlock("input", {
|
|
56
56
|
key: 0,
|
|
57
57
|
class: _normalizeClass(_ctx.n('autocomplete')),
|
|
58
58
|
placeholder: !_ctx.hint ? _ctx.placeholder : undefined,
|
|
59
59
|
style: _normalizeStyle({
|
|
60
60
|
'--input-placeholder-color': _ctx.placeholderColor
|
|
61
|
-
})
|
|
61
|
+
}),
|
|
62
|
+
enterkeyhint: _ctx.enterkeyhint
|
|
62
63
|
}, null, 14
|
|
63
64
|
/* CLASS, STYLE, PROPS */
|
|
64
65
|
, _hoisted_1)) : _createCommentVNode("v-if", true), _ctx.textarea ? (_openBlock(), _createElementBlock("textarea", {
|
|
@@ -68,11 +69,13 @@ function __render__(_ctx, _cache) {
|
|
|
68
69
|
autocomplete: "new-password",
|
|
69
70
|
id: _ctx.id,
|
|
70
71
|
disabled: _ctx.formDisabled || _ctx.disabled || _ctx.formReadonly || _ctx.readonly,
|
|
71
|
-
type: _ctx.
|
|
72
|
+
type: _ctx.normalizedType,
|
|
72
73
|
value: _ctx.modelValue,
|
|
73
74
|
placeholder: !_ctx.hint ? _ctx.placeholder : undefined,
|
|
74
75
|
maxlength: _ctx.maxlength,
|
|
75
76
|
rows: _ctx.rows,
|
|
77
|
+
enterkeyhint: _ctx.enterkeyhint,
|
|
78
|
+
inputmode: _ctx.type === 'number' ? 'numeric' : undefined,
|
|
76
79
|
style: _normalizeStyle({
|
|
77
80
|
color: !_ctx.errorMessage ? _ctx.textColor : undefined,
|
|
78
81
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : undefined,
|
|
@@ -109,10 +112,12 @@ function __render__(_ctx, _cache) {
|
|
|
109
112
|
autocomplete: "new-password",
|
|
110
113
|
id: _ctx.id,
|
|
111
114
|
disabled: _ctx.formDisabled || _ctx.disabled || _ctx.formReadonly || _ctx.readonly,
|
|
112
|
-
type: _ctx.
|
|
115
|
+
type: _ctx.normalizedType,
|
|
113
116
|
value: _ctx.modelValue,
|
|
114
117
|
placeholder: !_ctx.hint ? _ctx.placeholder : undefined,
|
|
115
118
|
maxlength: _ctx.maxlength,
|
|
119
|
+
enterkeyhint: _ctx.enterkeyhint,
|
|
120
|
+
inputmode: _ctx.type === 'number' ? 'numeric' : undefined,
|
|
116
121
|
style: _normalizeStyle({
|
|
117
122
|
color: !_ctx.errorMessage ? _ctx.textColor : undefined,
|
|
118
123
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : undefined,
|
|
@@ -171,7 +176,7 @@ var __sfc__ = defineComponent({
|
|
|
171
176
|
var el = ref(null);
|
|
172
177
|
var isFocus = ref(false);
|
|
173
178
|
var isComposing = ref(false);
|
|
174
|
-
var
|
|
179
|
+
var normalizedType = computed(() => {
|
|
175
180
|
if (props.type === 'number') {
|
|
176
181
|
return 'text';
|
|
177
182
|
}
|
|
@@ -411,7 +416,7 @@ var __sfc__ = defineComponent({
|
|
|
411
416
|
isComposing,
|
|
412
417
|
errorMessage,
|
|
413
418
|
placeholderColor,
|
|
414
|
-
|
|
419
|
+
normalizedType,
|
|
415
420
|
cursor,
|
|
416
421
|
maxlengthText,
|
|
417
422
|
formDisabled: form == null ? void 0 : form.disabled,
|
package/es/input/props.mjs
CHANGED
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import { defineListenerProp, pickProps } from '../utils/components.mjs';
|
|
4
4
|
import { props as fieldDecoratorProps } from '../field-decorator/props.mjs';
|
|
5
5
|
export function typeValidator(type) {
|
|
6
|
-
return ['text', 'password', 'number'].includes(type);
|
|
6
|
+
return ['text', 'password', 'number', 'tel', 'email'].includes(type);
|
|
7
7
|
}
|
|
8
8
|
export var props = _extends({
|
|
9
9
|
modelValue: {
|
|
@@ -48,6 +48,9 @@ export var props = _extends({
|
|
|
48
48
|
rules: {
|
|
49
49
|
type: Array
|
|
50
50
|
},
|
|
51
|
+
enterkeyhint: {
|
|
52
|
+
type: String
|
|
53
|
+
},
|
|
51
54
|
onFocus: defineListenerProp(),
|
|
52
55
|
onBlur: defineListenerProp(),
|
|
53
56
|
onInput: defineListenerProp(),
|
package/es/varlet.esm.js
CHANGED
|
@@ -12022,7 +12022,7 @@ function di() {
|
|
|
12022
12022
|
}, di.apply(this, arguments);
|
|
12023
12023
|
}
|
|
12024
12024
|
function ub(e) {
|
|
12025
|
-
return ["text", "password", "number"].includes(e);
|
|
12025
|
+
return ["text", "password", "number", "tel", "email"].includes(e);
|
|
12026
12026
|
}
|
|
12027
12027
|
var db = di({
|
|
12028
12028
|
modelValue: {
|
|
@@ -12067,6 +12067,9 @@ var db = di({
|
|
|
12067
12067
|
rules: {
|
|
12068
12068
|
type: Array
|
|
12069
12069
|
},
|
|
12070
|
+
enterkeyhint: {
|
|
12071
|
+
type: String
|
|
12072
|
+
},
|
|
12070
12073
|
onFocus: U(),
|
|
12071
12074
|
onBlur: U(),
|
|
12072
12075
|
onInput: U(),
|
|
@@ -12076,7 +12079,7 @@ var db = di({
|
|
|
12076
12079
|
}, qe(Ui, ["size", "variant", "placeholder", "line", "hint", "textColor", "focusColor", "blurColor", "disabled", "clearable", "onClick"])), {
|
|
12077
12080
|
n: vb,
|
|
12078
12081
|
classes: fb
|
|
12079
|
-
} = x("input"), cb = ["placeholder"], mb = ["id", "disabled", "type", "value", "placeholder", "maxlength", "rows"], pb = ["id", "disabled", "type", "value", "placeholder", "maxlength"];
|
|
12082
|
+
} = x("input"), cb = ["placeholder", "enterkeyhint"], mb = ["id", "disabled", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"], pb = ["id", "disabled", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
12080
12083
|
function hb(e, n) {
|
|
12081
12084
|
var r = te("var-field-decorator"), a = te("var-form-details");
|
|
12082
12085
|
return h(), O(
|
|
@@ -12114,7 +12117,7 @@ function hb(e, n) {
|
|
|
12114
12117
|
{
|
|
12115
12118
|
"prepend-icon": ve(() => [F(e.$slots, "prepend-icon")]),
|
|
12116
12119
|
"append-icon": ve(() => [F(e.$slots, "append-icon")]),
|
|
12117
|
-
default: ve(() => [e.
|
|
12120
|
+
default: ve(() => [e.normalizedType === "password" ? (h(), O(
|
|
12118
12121
|
"input",
|
|
12119
12122
|
{
|
|
12120
12123
|
key: 0,
|
|
@@ -12122,7 +12125,8 @@ function hb(e, n) {
|
|
|
12122
12125
|
placeholder: e.hint ? void 0 : e.placeholder,
|
|
12123
12126
|
style: W({
|
|
12124
12127
|
"--input-placeholder-color": e.placeholderColor
|
|
12125
|
-
})
|
|
12128
|
+
}),
|
|
12129
|
+
enterkeyhint: e.enterkeyhint
|
|
12126
12130
|
},
|
|
12127
12131
|
null,
|
|
12128
12132
|
14,
|
|
@@ -12136,11 +12140,13 @@ function hb(e, n) {
|
|
|
12136
12140
|
autocomplete: "new-password",
|
|
12137
12141
|
id: e.id,
|
|
12138
12142
|
disabled: e.formDisabled || e.disabled || e.formReadonly || e.readonly,
|
|
12139
|
-
type: e.
|
|
12143
|
+
type: e.normalizedType,
|
|
12140
12144
|
value: e.modelValue,
|
|
12141
12145
|
placeholder: e.hint ? void 0 : e.placeholder,
|
|
12142
12146
|
maxlength: e.maxlength,
|
|
12143
12147
|
rows: e.rows,
|
|
12148
|
+
enterkeyhint: e.enterkeyhint,
|
|
12149
|
+
inputmode: e.type === "number" ? "numeric" : void 0,
|
|
12144
12150
|
style: W({
|
|
12145
12151
|
color: e.errorMessage ? void 0 : e.textColor,
|
|
12146
12152
|
caretColor: e.errorMessage ? void 0 : e.focusColor,
|
|
@@ -12182,10 +12188,12 @@ function hb(e, n) {
|
|
|
12182
12188
|
autocomplete: "new-password",
|
|
12183
12189
|
id: e.id,
|
|
12184
12190
|
disabled: e.formDisabled || e.disabled || e.formReadonly || e.readonly,
|
|
12185
|
-
type: e.
|
|
12191
|
+
type: e.normalizedType,
|
|
12186
12192
|
value: e.modelValue,
|
|
12187
12193
|
placeholder: e.hint ? void 0 : e.placeholder,
|
|
12188
12194
|
maxlength: e.maxlength,
|
|
12195
|
+
enterkeyhint: e.enterkeyhint,
|
|
12196
|
+
inputmode: e.type === "number" ? "numeric" : void 0,
|
|
12189
12197
|
style: W({
|
|
12190
12198
|
color: e.errorMessage ? void 0 : e.textColor,
|
|
12191
12199
|
caretColor: e.errorMessage ? void 0 : e.focusColor,
|
|
@@ -12350,7 +12358,7 @@ var kd = _({
|
|
|
12350
12358
|
isComposing: t,
|
|
12351
12359
|
errorMessage: v,
|
|
12352
12360
|
placeholderColor: s,
|
|
12353
|
-
|
|
12361
|
+
normalizedType: o,
|
|
12354
12362
|
cursor: i,
|
|
12355
12363
|
maxlengthText: l,
|
|
12356
12364
|
formDisabled: d == null ? void 0 : d.disabled,
|
|
@@ -19723,7 +19731,7 @@ Ma.install = function(e) {
|
|
|
19723
19731
|
e.component(Ma.name, Ma);
|
|
19724
19732
|
};
|
|
19725
19733
|
var Dk = Ma;
|
|
19726
|
-
const iS = "2.10.2-alpha.
|
|
19734
|
+
const iS = "2.10.2-alpha.1683284670321";
|
|
19727
19735
|
function lS(e) {
|
|
19728
19736
|
Zn.install && e.use(Zn), Er.install && e.use(Er), Ir.install && e.use(Ir), Nr.install && e.use(Nr), Dr.install && e.use(Dr), vr.install && e.use(vr), Ar.install && e.use(Ar), zr.install && e.use(zr), Lr.install && e.use(Lr), Rr.install && e.use(Rr), Qe.install && e.use(Qe), Ur.install && e.use(Ur), Hr.install && e.use(Hr), fr.install && e.use(fr), cr.install && e.use(cr), Fr.install && e.use(Fr), mr.install && e.use(mr), Yr.install && e.use(Yr), jr.install && e.use(jr), Wr.install && e.use(Wr), hn.install && e.use(hn), Gr.install && e.use(Gr), qr.install && e.use(qr), Kr.install && e.use(Kr), Jn.install && e.use(Jn), Zr.install && e.use(Zr), Jr.install && e.use(Jr), Qr.install && e.use(Qr), jn.install && e.use(jn), Ke.install && e.use(Ke), zn.install && e.use(zn), un.install && e.use(un), Pe.install && e.use(Pe), _r.install && e.use(_r), Dn.install && e.use(Dn), xr.install && e.use(xr), ea.install && e.use(ea), br.install && e.use(br), ft.install && e.use(ft), na.install && e.use(na), ra.install && e.use(ra), En.install && e.use(En), vi.install && e.use(vi), Ao.install && e.use(Ao), Xn.install && e.use(Xn), aa.install && e.use(aa), ta.install && e.use(ta), oa.install && e.use(oa), ia.install && e.use(ia), Na.install && e.use(Na), Cn.install && e.use(Cn), la.install && e.use(la), sa.install && e.use(sa), ua.install && e.use(ua), da.install && e.use(da), va.install && e.use(va), fa.install && e.use(fa), He.install && e.use(He), ca.install && e.use(ca), ma.install && e.use(ma), pa.install && e.use(pa), ha.install && e.use(ha), hi.install && e.use(hi), ya.install && e.use(ya), ba.install && e.use(ba), wa.install && e.use(wa), qn.install && e.use(qn), gt.install && e.use(gt), Wn.install && e.use(Wn), Gn.install && e.use(Gn), Sa.install && e.use(Sa), ka.install && e.use(ka), $a.install && e.use($a), Ta.install && e.use(Ta), Pa.install && e.use(Pa), Oa.install && e.use(Oa), yi.install && e.use(yi), Va.install && e.use(Va), gr.install && e.use(gr), Ma.install && e.use(Ma);
|
|
19729
19737
|
}
|
|
@@ -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": "2.10.2-alpha.
|
|
4
|
+
"version": "2.10.2-alpha.1683284670321",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -3313,6 +3313,15 @@
|
|
|
3313
3313
|
"type": "Array<(v: string) => any>",
|
|
3314
3314
|
"kind": "expression"
|
|
3315
3315
|
}
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
"name": "enterkeyhint",
|
|
3319
|
+
"description": "Customize the enter key style, See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)",
|
|
3320
|
+
"default": "-",
|
|
3321
|
+
"value": {
|
|
3322
|
+
"type": "string",
|
|
3323
|
+
"kind": "expression"
|
|
3324
|
+
}
|
|
3316
3325
|
}
|
|
3317
3326
|
],
|
|
3318
3327
|
"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": "2.10.2-alpha.
|
|
4
|
+
"version": "2.10.2-alpha.1683284670321",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -3485,6 +3485,15 @@
|
|
|
3485
3485
|
"type": "Array<(v: string) => any>",
|
|
3486
3486
|
"kind": "expression"
|
|
3487
3487
|
}
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
"name": "enterkeyhint",
|
|
3491
|
+
"description": "定制回车键样式,参见 [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)",
|
|
3492
|
+
"default": "-",
|
|
3493
|
+
"value": {
|
|
3494
|
+
"type": "string",
|
|
3495
|
+
"kind": "expression"
|
|
3496
|
+
}
|
|
3488
3497
|
}
|
|
3489
3498
|
],
|
|
3490
3499
|
"events": [
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -16008,7 +16008,7 @@ function _extends$5() {
|
|
|
16008
16008
|
return _extends$5.apply(this, arguments);
|
|
16009
16009
|
}
|
|
16010
16010
|
function typeValidator$3(type) {
|
|
16011
|
-
return ["text", "password", "number"].includes(type);
|
|
16011
|
+
return ["text", "password", "number", "tel", "email"].includes(type);
|
|
16012
16012
|
}
|
|
16013
16013
|
var props$x = _extends$5({
|
|
16014
16014
|
modelValue: {
|
|
@@ -16053,6 +16053,9 @@ var props$x = _extends$5({
|
|
|
16053
16053
|
rules: {
|
|
16054
16054
|
type: Array
|
|
16055
16055
|
},
|
|
16056
|
+
enterkeyhint: {
|
|
16057
|
+
type: String
|
|
16058
|
+
},
|
|
16056
16059
|
onFocus: defineListenerProp(),
|
|
16057
16060
|
onBlur: defineListenerProp(),
|
|
16058
16061
|
onInput: defineListenerProp(),
|
|
@@ -16064,9 +16067,9 @@ var {
|
|
|
16064
16067
|
n: n$z,
|
|
16065
16068
|
classes: classes$t
|
|
16066
16069
|
} = createNamespace("input");
|
|
16067
|
-
var _hoisted_1$e = ["placeholder"];
|
|
16068
|
-
var _hoisted_2$9 = ["id", "disabled", "type", "value", "placeholder", "maxlength", "rows"];
|
|
16069
|
-
var _hoisted_3$7 = ["id", "disabled", "type", "value", "placeholder", "maxlength"];
|
|
16070
|
+
var _hoisted_1$e = ["placeholder", "enterkeyhint"];
|
|
16071
|
+
var _hoisted_2$9 = ["id", "disabled", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
16072
|
+
var _hoisted_3$7 = ["id", "disabled", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
16070
16073
|
function __render__$A(_ctx, _cache) {
|
|
16071
16074
|
var _component_var_field_decorator = vue.resolveComponent("var-field-decorator");
|
|
16072
16075
|
var _component_var_form_details = vue.resolveComponent("var-form-details");
|
|
@@ -16105,7 +16108,7 @@ function __render__$A(_ctx, _cache) {
|
|
|
16105
16108
|
{
|
|
16106
16109
|
"prepend-icon": vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "prepend-icon")]),
|
|
16107
16110
|
"append-icon": vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "append-icon")]),
|
|
16108
|
-
default: vue.withCtx(() => [_ctx.
|
|
16111
|
+
default: vue.withCtx(() => [_ctx.normalizedType === "password" ? (vue.openBlock(), vue.createElementBlock(
|
|
16109
16112
|
"input",
|
|
16110
16113
|
{
|
|
16111
16114
|
key: 0,
|
|
@@ -16113,7 +16116,8 @@ function __render__$A(_ctx, _cache) {
|
|
|
16113
16116
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
16114
16117
|
style: vue.normalizeStyle({
|
|
16115
16118
|
"--input-placeholder-color": _ctx.placeholderColor
|
|
16116
|
-
})
|
|
16119
|
+
}),
|
|
16120
|
+
enterkeyhint: _ctx.enterkeyhint
|
|
16117
16121
|
},
|
|
16118
16122
|
null,
|
|
16119
16123
|
14,
|
|
@@ -16127,11 +16131,13 @@ function __render__$A(_ctx, _cache) {
|
|
|
16127
16131
|
autocomplete: "new-password",
|
|
16128
16132
|
id: _ctx.id,
|
|
16129
16133
|
disabled: _ctx.formDisabled || _ctx.disabled || _ctx.formReadonly || _ctx.readonly,
|
|
16130
|
-
type: _ctx.
|
|
16134
|
+
type: _ctx.normalizedType,
|
|
16131
16135
|
value: _ctx.modelValue,
|
|
16132
16136
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
16133
16137
|
maxlength: _ctx.maxlength,
|
|
16134
16138
|
rows: _ctx.rows,
|
|
16139
|
+
enterkeyhint: _ctx.enterkeyhint,
|
|
16140
|
+
inputmode: _ctx.type === "number" ? "numeric" : void 0,
|
|
16135
16141
|
style: vue.normalizeStyle({
|
|
16136
16142
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
16137
16143
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -16172,10 +16178,12 @@ function __render__$A(_ctx, _cache) {
|
|
|
16172
16178
|
autocomplete: "new-password",
|
|
16173
16179
|
id: _ctx.id,
|
|
16174
16180
|
disabled: _ctx.formDisabled || _ctx.disabled || _ctx.formReadonly || _ctx.readonly,
|
|
16175
|
-
type: _ctx.
|
|
16181
|
+
type: _ctx.normalizedType,
|
|
16176
16182
|
value: _ctx.modelValue,
|
|
16177
16183
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
16178
16184
|
maxlength: _ctx.maxlength,
|
|
16185
|
+
enterkeyhint: _ctx.enterkeyhint,
|
|
16186
|
+
inputmode: _ctx.type === "number" ? "numeric" : void 0,
|
|
16179
16187
|
style: vue.normalizeStyle({
|
|
16180
16188
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
16181
16189
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -16240,7 +16248,7 @@ var __sfc__$B = vue.defineComponent({
|
|
|
16240
16248
|
var el = vue.ref(null);
|
|
16241
16249
|
var isFocus = vue.ref(false);
|
|
16242
16250
|
var isComposing = vue.ref(false);
|
|
16243
|
-
var
|
|
16251
|
+
var normalizedType = vue.computed(() => {
|
|
16244
16252
|
if (props2.type === "number") {
|
|
16245
16253
|
return "text";
|
|
16246
16254
|
}
|
|
@@ -16430,7 +16438,7 @@ var __sfc__$B = vue.defineComponent({
|
|
|
16430
16438
|
isComposing,
|
|
16431
16439
|
errorMessage,
|
|
16432
16440
|
placeholderColor,
|
|
16433
|
-
|
|
16441
|
+
normalizedType,
|
|
16434
16442
|
cursor,
|
|
16435
16443
|
maxlengthText,
|
|
16436
16444
|
formDisabled: form == null ? void 0 : form.disabled,
|
|
@@ -25394,7 +25402,7 @@ const TimePickerSfc = "";
|
|
|
25394
25402
|
const TooltipSfc = "";
|
|
25395
25403
|
const uploader = "";
|
|
25396
25404
|
const UploaderSfc = "";
|
|
25397
|
-
const version = "2.10.2-alpha.
|
|
25405
|
+
const version = "2.10.2-alpha.1683284670321";
|
|
25398
25406
|
function install(app) {
|
|
25399
25407
|
ActionSheet.install && app.use(ActionSheet);
|
|
25400
25408
|
AppBar.install && app.use(AppBar);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.10.2-alpha.
|
|
3
|
+
"version": "2.10.2-alpha.1683284670321",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@popperjs/core": "^2.11.6",
|
|
47
47
|
"dayjs": "^1.10.4",
|
|
48
48
|
"decimal.js": "^10.2.1",
|
|
49
|
-
"@varlet/
|
|
50
|
-
"@varlet/
|
|
51
|
-
"@varlet/
|
|
49
|
+
"@varlet/icons": "2.10.2-alpha.1683284670321",
|
|
50
|
+
"@varlet/shared": "2.10.2-alpha.1683284670321",
|
|
51
|
+
"@varlet/use": "2.10.2-alpha.1683284670321"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/jest": "^26.0.15",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^4.4.4",
|
|
64
64
|
"vue": "3.2.47",
|
|
65
65
|
"vue-router": "4.1.6",
|
|
66
|
-
"@varlet/cli": "2.10.2-alpha.
|
|
67
|
-
"@varlet/touch-emulator": "2.10.2-alpha.
|
|
66
|
+
"@varlet/cli": "2.10.2-alpha.1683284670321",
|
|
67
|
+
"@varlet/touch-emulator": "2.10.2-alpha.1683284670321"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|
package/types/input.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface InputProps extends BasicAttributes {
|
|
|
29
29
|
autofocus?: boolean
|
|
30
30
|
validateTrigger?: InputValidateTrigger[]
|
|
31
31
|
rules?: Array<(v: string) => any>
|
|
32
|
+
enterkeyhint?: string
|
|
32
33
|
onFocus?: ListenerProp<(e: Event) => void>
|
|
33
34
|
onBlur?: ListenerProp<(e: Event) => void>
|
|
34
35
|
onClick?: ListenerProp<(e: Event) => void>
|