Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
c14cb221
Commit
c14cb221
authored
Oct 22, 2016
by
baiyaaaaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix input native props
parent
718356a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
30 deletions
+13
-30
packages/input/src/input.vue
packages/input/src/input.vue
+13
-30
No files found.
packages/input/src/input.vue
View file @
c14cb221
...
@@ -22,10 +22,11 @@
...
@@ -22,10 +22,11 @@
:placeholder=
"placeholder"
:placeholder=
"placeholder"
:disabled=
"disabled"
:disabled=
"disabled"
:readonly=
"readonly"
:readonly=
"readonly"
:number=
"number"
:maxlength=
"maxlength"
:maxlength=
"maxlength"
:minlength=
"minlength"
:minlength=
"minlength"
:autocomplete=
"autoComplete"
:autocomplete=
"autoComplete"
:autofocus=
"autofocus"
:form=
"form"
:value=
"value"
:value=
"value"
ref=
"input"
ref=
"input"
@
input=
"handleInput"
@
input=
"handleInput"
...
@@ -49,6 +50,8 @@
...
@@ -49,6 +50,8 @@
:style=
"textareaStyle"
:style=
"textareaStyle"
:readonly=
"readonly"
:readonly=
"readonly"
:rows=
"rows"
:rows=
"rows"
:form=
"form"
:autofocus=
"autofocus"
:maxlength=
"maxlength"
:maxlength=
"maxlength"
:minlength=
"minlength"
:minlength=
"minlength"
@
focus=
"handleFocus"
@
focus=
"handleFocus"
...
@@ -67,38 +70,17 @@
...
@@ -67,38 +70,17 @@
props
:
{
props
:
{
value
:
[
String
,
Number
],
value
:
[
String
,
Number
],
placeholder
:
{
placeholder
:
String
,
type
:
String
,
size
:
String
,
default
:
''
readonly
:
Boolean
,
},
autofocus
:
Boolean
,
size
:
{
icon
:
String
,
type
:
String
,
disabled
:
Boolean
,
default
:
''
},
readonly
:
{
type
:
Boolean
,
default
:
false
},
icon
:
{
type
:
String
,
default
:
''
},
disabled
:
{
type
:
Boolean
,
default
:
false
},
type
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
'
text
'
default
:
'
text
'
},
},
name
:
{
name
:
String
,
type
:
String
,
default
:
''
},
number
:
{
type
:
Boolean
,
default
:
false
},
autosize
:
{
autosize
:
{
type
:
[
Boolean
,
Object
],
type
:
[
Boolean
,
Object
],
default
:
false
default
:
false
...
@@ -111,13 +93,14 @@
...
@@ -111,13 +93,14 @@
type
:
String
,
type
:
String
,
default
:
'
off
'
default
:
'
off
'
},
},
form
:
String
,
maxlength
:
Number
,
maxlength
:
Number
,
minlength
:
Number
minlength
:
Number
},
},
methods
:
{
methods
:
{
handleBlur
(
event
)
{
handleBlur
(
event
)
{
this
.
$emit
(
'
on
blur
'
,
this
.
currentValue
);
this
.
$emit
(
'
blur
'
,
this
.
currentValue
);
this
.
dispatch
(
'
form-item
'
,
'
el.form.blur
'
,
[
this
.
currentValue
]);
this
.
dispatch
(
'
form-item
'
,
'
el.form.blur
'
,
[
this
.
currentValue
]);
},
},
inputSelect
()
{
inputSelect
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment