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
b4190041
Commit
b4190041
authored
Apr 12, 2019
by
刘鹏龙
Committed by
hetech
Apr 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs:rename variable name in docs (#15094)
parent
60e3e3b1
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
308 additions
and
308 deletions
+308
-308
examples/docs/en-US/checkbox.md
examples/docs/en-US/checkbox.md
+14
-14
examples/docs/en-US/color-picker.md
examples/docs/en-US/color-picker.md
+9
-9
examples/docs/en-US/date-picker.md
examples/docs/en-US/date-picker.md
+37
-37
examples/docs/en-US/input-number.md
examples/docs/en-US/input-number.md
+18
-18
examples/docs/es/checkbox.md
examples/docs/es/checkbox.md
+14
-14
examples/docs/es/color-picker.md
examples/docs/es/color-picker.md
+9
-9
examples/docs/es/date-picker.md
examples/docs/es/date-picker.md
+37
-37
examples/docs/es/input-number.md
examples/docs/es/input-number.md
+18
-18
examples/docs/fr-FR/checkbox.md
examples/docs/fr-FR/checkbox.md
+14
-14
examples/docs/fr-FR/color-picker.md
examples/docs/fr-FR/color-picker.md
+9
-9
examples/docs/fr-FR/date-picker.md
examples/docs/fr-FR/date-picker.md
+37
-37
examples/docs/fr-FR/input-number.md
examples/docs/fr-FR/input-number.md
+18
-18
examples/docs/zh-CN/checkbox.md
examples/docs/zh-CN/checkbox.md
+14
-14
examples/docs/zh-CN/color-picker.md
examples/docs/zh-CN/color-picker.md
+9
-9
examples/docs/zh-CN/date-picker.md
examples/docs/zh-CN/date-picker.md
+33
-33
examples/docs/zh-CN/input-number.md
examples/docs/zh-CN/input-number.md
+18
-18
No files found.
examples/docs/en-US/checkbox.md
View file @
b4190041
...
@@ -128,7 +128,7 @@ The `min` and `max` properties can help you to limit the number of checked items
...
@@ -128,7 +128,7 @@ The `min` and `max` properties can help you to limit the number of checked items
```
html
```
html
<template>
<template>
<el-checkbox-group
<el-checkbox-group
v-model=
"checkedCities
1
"
v-model=
"checkedCities"
:min=
"1"
:min=
"1"
:max=
"2"
>
:max=
"2"
>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
...
@@ -139,7 +139,7 @@ The `min` and `max` properties can help you to limit the number of checked items
...
@@ -139,7 +139,7 @@ The `min` and `max` properties can help you to limit the number of checked items
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checkedCities
1
:
[
'
Shanghai
'
,
'
Beijing
'
],
checkedCities
:
[
'
Shanghai
'
,
'
Beijing
'
],
cities
:
cityOptions
cities
:
cityOptions
};
};
}
}
...
@@ -200,21 +200,21 @@ Checkbox with button styles.
...
@@ -200,21 +200,21 @@ Checkbox with button styles.
```
html
```
html
<template>
<template>
<div>
<div>
<el-checkbox
v-model=
"checked
3
"
label=
"Option1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
1
"
label=
"Option1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"Option2"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
2
"
label=
"Option2"
border
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox
v-model=
"checked
5
"
label=
"Option1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
3
"
label=
"Option1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
6
"
label=
"Option2"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"Option2"
border
size=
"medium"
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
5
"
size=
"small"
>
<el-checkbox-group
v-model=
"checkboxGroup
1
"
size=
"small"
>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option2"
border
disabled
></el-checkbox>
<el-checkbox
label=
"Option2"
border
disabled
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
6
"
size=
"mini"
disabled
>
<el-checkbox-group
v-model=
"checkboxGroup
2
"
size=
"mini"
disabled
>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option2"
border
></el-checkbox>
<el-checkbox
label=
"Option2"
border
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
...
@@ -225,12 +225,12 @@ Checkbox with button styles.
...
@@ -225,12 +225,12 @@ Checkbox with button styles.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checked
3
:
true
,
checked
1
:
true
,
checked
4
:
false
,
checked
2
:
false
,
checked
5
:
false
,
checked
3
:
false
,
checked
6
:
true
,
checked
4
:
true
,
checkboxGroup
5
:
[],
checkboxGroup
1
:
[],
checkboxGroup
6
:
[]
checkboxGroup
2
:
[]
};
};
}
}
}
}
...
...
examples/docs/en-US/color-picker.md
View file @
b4190041
...
@@ -32,13 +32,13 @@ ColorPicker is a color selector supporting multiple color formats.
...
@@ -32,13 +32,13 @@ ColorPicker is a color selector supporting multiple color formats.
:::demo ColorPicker supports alpha channel selecting. To activate alpha selecting, just add the
`show-alpha`
attribute.
:::demo ColorPicker supports alpha channel selecting. To activate alpha selecting, just add the
`show-alpha`
attribute.
```
html
```
html
<el-color-picker
v-model=
"color
3
"
show-alpha
></el-color-picker>
<el-color-picker
v-model=
"color"
show-alpha
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
3
:
'
rgba(19, 206, 102, 0.8)
'
color
:
'
rgba(19, 206, 102, 0.8)
'
}
}
}
}
};
};
...
@@ -51,7 +51,7 @@ ColorPicker is a color selector supporting multiple color formats.
...
@@ -51,7 +51,7 @@ ColorPicker is a color selector supporting multiple color formats.
:::demo ColorPicker supports predefined color options
:::demo ColorPicker supports predefined color options
```
html
```
html
<el-color-picker
<el-color-picker
v-model=
"color
5
"
v-model=
"color"
show-alpha
show-alpha
:predefine=
"predefineColors"
>
:predefine=
"predefineColors"
>
</el-color-picker>
</el-color-picker>
...
@@ -60,7 +60,7 @@ ColorPicker is a color selector supporting multiple color formats.
...
@@ -60,7 +60,7 @@ ColorPicker is a color selector supporting multiple color formats.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
5
:
'
rgba(255, 69, 0, 0.68)
'
,
color
:
'
rgba(255, 69, 0, 0.68)
'
,
predefineColors
:
[
predefineColors
:
[
'
#ff4500
'
,
'
#ff4500
'
,
'
#ff8c00
'
,
'
#ff8c00
'
,
...
@@ -89,16 +89,16 @@ ColorPicker is a color selector supporting multiple color formats.
...
@@ -89,16 +89,16 @@ ColorPicker is a color selector supporting multiple color formats.
:::demo
:::demo
```
html
```
html
<el-color-picker
v-model=
"color
4
"
></el-color-picker>
<el-color-picker
v-model=
"color"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"mini"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"mini"
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
4
:
'
#409EFF
'
color
:
'
#409EFF
'
}
}
}
}
};
};
...
...
examples/docs/en-US/date-picker.md
View file @
b4190041
...
@@ -25,7 +25,7 @@ Basic date picker measured by 'day'.
...
@@ -25,7 +25,7 @@ Basic date picker measured by 'day'.
v-model=
"value2"
v-model=
"value2"
type=
"date"
type=
"date"
placeholder=
"Pick a day"
placeholder=
"Pick a day"
:picker-options=
"pickerOptions
1
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -34,7 +34,7 @@ Basic date picker measured by 'day'.
...
@@ -34,7 +34,7 @@ Basic date picker measured by 'day'.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
1
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
return
time
.
getTime
()
>
Date
.
now
();
},
},
...
@@ -79,7 +79,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
...
@@ -79,7 +79,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Week
</span>
<span
class=
"demonstration"
>
Week
</span>
<el-date-picker
<el-date-picker
v-model=
"value
3
"
v-model=
"value
1
"
type=
"week"
type=
"week"
format=
"Week WW"
format=
"Week WW"
placeholder=
"Pick a week"
>
placeholder=
"Pick a week"
>
...
@@ -88,7 +88,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
...
@@ -88,7 +88,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Month
</span>
<span
class=
"demonstration"
>
Month
</span>
<el-date-picker
<el-date-picker
v-model=
"value
4
"
v-model=
"value
2
"
type=
"month"
type=
"month"
placeholder=
"Pick a month"
>
placeholder=
"Pick a month"
>
</el-date-picker>
</el-date-picker>
...
@@ -98,7 +98,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
...
@@ -98,7 +98,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Year
</span>
<span
class=
"demonstration"
>
Year
</span>
<el-date-picker
<el-date-picker
v-model=
"value
5
"
v-model=
"value
3
"
type=
"year"
type=
"year"
placeholder=
"Pick a year"
>
placeholder=
"Pick a year"
>
</el-date-picker>
</el-date-picker>
...
@@ -107,7 +107,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
...
@@ -107,7 +107,7 @@ You can choose week, month, year or multiple dates by extending the standard dat
<span
class=
"demonstration"
>
Dates
</span>
<span
class=
"demonstration"
>
Dates
</span>
<el-date-picker
<el-date-picker
type=
"dates"
type=
"dates"
v-model=
"value
1
4"
v-model=
"value4"
placeholder=
"Pick one or more dates"
>
placeholder=
"Pick one or more dates"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
...
@@ -117,10 +117,10 @@ You can choose week, month, year or multiple dates by extending the standard dat
...
@@ -117,10 +117,10 @@ You can choose week, month, year or multiple dates by extending the standard dat
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
:
''
,
value2
:
''
,
value3
:
''
,
value3
:
''
,
value4
:
''
,
value4
:
''
value5
:
''
,
value14
:
''
};
};
}
}
};
};
...
@@ -140,7 +140,7 @@ Picking a date range is supported.
...
@@ -140,7 +140,7 @@ Picking a date range is supported.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Default
</span>
<span
class=
"demonstration"
>
Default
</span>
<el-date-picker
<el-date-picker
v-model=
"value
6
"
v-model=
"value
1
"
type=
"daterange"
type=
"daterange"
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start date"
start-placeholder=
"Start date"
...
@@ -150,14 +150,14 @@ Picking a date range is supported.
...
@@ -150,14 +150,14 @@ Picking a date range is supported.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
With quick options
</span>
<span
class=
"demonstration"
>
With quick options
</span>
<el-date-picker
<el-date-picker
v-model=
"value
7
"
v-model=
"value
2
"
type=
"daterange"
type=
"daterange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start date"
start-placeholder=
"Start date"
end-placeholder=
"End date"
end-placeholder=
"End date"
:picker-options=
"pickerOptions
2
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -166,7 +166,7 @@ Picking a date range is supported.
...
@@ -166,7 +166,7 @@ Picking a date range is supported.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
2
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
Last week
'
,
text
:
'
Last week
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -193,8 +193,8 @@ Picking a date range is supported.
...
@@ -193,8 +193,8 @@ Picking a date range is supported.
}
}
}]
}]
},
},
value
6
:
''
,
value
1
:
''
,
value
7
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -213,7 +213,7 @@ Picking a month range is supported.
...
@@ -213,7 +213,7 @@ Picking a month range is supported.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Default
</span>
<span
class=
"demonstration"
>
Default
</span>
<el-date-picker
<el-date-picker
v-model=
"value1
5
"
v-model=
"value1"
type=
"monthrange"
type=
"monthrange"
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start month"
start-placeholder=
"Start month"
...
@@ -223,14 +223,14 @@ Picking a month range is supported.
...
@@ -223,14 +223,14 @@ Picking a month range is supported.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
With quick options
</span>
<span
class=
"demonstration"
>
With quick options
</span>
<el-date-picker
<el-date-picker
v-model=
"value
16
"
v-model=
"value
2
"
type=
"monthrange"
type=
"monthrange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start month"
start-placeholder=
"Start month"
end-placeholder=
"End month"
end-placeholder=
"End month"
:picker-options=
"pickerOptions
3
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -239,7 +239,7 @@ Picking a month range is supported.
...
@@ -239,7 +239,7 @@ Picking a month range is supported.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
3
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
This month
'
,
text
:
'
This month
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -262,8 +262,8 @@ Picking a month range is supported.
...
@@ -262,8 +262,8 @@ Picking a month range is supported.
}
}
}]
}]
},
},
value1
5
:
''
,
value1
:
''
,
value
16
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -283,7 +283,7 @@ If type is `daterange`, `default-value` sets the left side calendar.
...
@@ -283,7 +283,7 @@ If type is `daterange`, `default-value` sets the left side calendar.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
date
</span>
<span
class=
"demonstration"
>
date
</span>
<el-date-picker
<el-date-picker
v-model=
"value
8
"
v-model=
"value
1
"
type=
"date"
type=
"date"
placeholder=
"Pick a date"
placeholder=
"Pick a date"
default-value=
"2010-10-01"
>
default-value=
"2010-10-01"
>
...
@@ -292,7 +292,7 @@ If type is `daterange`, `default-value` sets the left side calendar.
...
@@ -292,7 +292,7 @@ If type is `daterange`, `default-value` sets the left side calendar.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
daterange
</span>
<span
class=
"demonstration"
>
daterange
</span>
<el-date-picker
<el-date-picker
v-model=
"value
9
"
v-model=
"value
2
"
type=
"daterange"
type=
"daterange"
align=
"right"
align=
"right"
start-placeholder=
"Start Date"
start-placeholder=
"Start Date"
...
@@ -306,8 +306,8 @@ If type is `daterange`, `default-value` sets the left side calendar.
...
@@ -306,8 +306,8 @@ If type is `daterange`, `default-value` sets the left side calendar.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
8
:
''
,
value
1
:
''
,
value
9
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -352,9 +352,9 @@ Pay attention to capitalization
...
@@ -352,9 +352,9 @@ Pay attention to capitalization
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Emits Date object
</span>
<span
class=
"demonstration"
>
Emits Date object
</span>
<div
class=
"demonstration"
>
Value: {{ value1
0
}}
</div>
<div
class=
"demonstration"
>
Value: {{ value1 }}
</div>
<el-date-picker
<el-date-picker
v-model=
"value1
0
"
v-model=
"value1"
type=
"date"
type=
"date"
placeholder=
"Pick a Date"
placeholder=
"Pick a Date"
format=
"yyyy/MM/dd"
>
format=
"yyyy/MM/dd"
>
...
@@ -362,9 +362,9 @@ Pay attention to capitalization
...
@@ -362,9 +362,9 @@ Pay attention to capitalization
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Use value-format
</span>
<span
class=
"demonstration"
>
Use value-format
</span>
<div
class=
"demonstration"
>
Value: {{ value
11
}}
</div>
<div
class=
"demonstration"
>
Value: {{ value
2
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
11
"
v-model=
"value
2
"
type=
"date"
type=
"date"
placeholder=
"Pick a Date"
placeholder=
"Pick a Date"
format=
"yyyy/MM/dd"
format=
"yyyy/MM/dd"
...
@@ -373,9 +373,9 @@ Pay attention to capitalization
...
@@ -373,9 +373,9 @@ Pay attention to capitalization
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Timestamp
</span>
<span
class=
"demonstration"
>
Timestamp
</span>
<div
class=
"demonstration"
>
Value:{{ value
12
}}
</div>
<div
class=
"demonstration"
>
Value:{{ value
3
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
12
"
v-model=
"value
3
"
type=
"date"
type=
"date"
placeholder=
"Pick a Date"
placeholder=
"Pick a Date"
format=
"yyyy/MM/dd"
format=
"yyyy/MM/dd"
...
@@ -388,9 +388,9 @@ Pay attention to capitalization
...
@@ -388,9 +388,9 @@ Pay attention to capitalization
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
0
:
''
,
value1
:
''
,
value
11
:
''
,
value
2
:
''
,
value
12
:
''
value
3
:
''
};
};
}
}
};
};
...
@@ -406,9 +406,9 @@ When picking a date range, you can assign the time part for start date and end d
...
@@ -406,9 +406,9 @@ When picking a date range, you can assign the time part for start date and end d
```
html
```
html
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<p>
Component value:{{ value
13
}}
</p>
<p>
Component value:{{ value }}
</p>
<el-date-picker
<el-date-picker
v-model=
"value
13
"
v-model=
"value"
type=
"daterange"
type=
"daterange"
start-placeholder=
"Start date"
start-placeholder=
"Start date"
end-placeholder=
"End date"
end-placeholder=
"End date"
...
@@ -421,7 +421,7 @@ When picking a date range, you can assign the time part for start date and end d
...
@@ -421,7 +421,7 @@ When picking a date range, you can assign the time part for start date and end d
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
13
:
''
value
:
''
};
};
}
}
};
};
...
...
examples/docs/en-US/input-number.md
View file @
b4190041
...
@@ -8,13 +8,13 @@ Input numerical values with a customizable range.
...
@@ -8,13 +8,13 @@ Input numerical values with a customizable range.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
1
"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
1
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
@@ -33,13 +33,13 @@ Input numerical values with a customizable range.
...
@@ -33,13 +33,13 @@ Input numerical values with a customizable range.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
2
"
:disabled=
"true"
></el-input-number>
<el-input-number
v-model=
"num"
:disabled=
"true"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
2
:
1
num
:
1
}
}
}
}
};
};
...
@@ -55,13 +55,13 @@ Allows you to define incremental steps.
...
@@ -55,13 +55,13 @@ Allows you to define incremental steps.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
3
"
:step=
"2"
></el-input-number>
<el-input-number
v-model=
"num"
:step=
"2"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
3
:
5
num
:
5
}
}
}
}
};
};
...
@@ -75,13 +75,13 @@ Allows you to define incremental steps.
...
@@ -75,13 +75,13 @@ Allows you to define incremental steps.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
9
"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
9
:
1
num
:
1
}
}
}
}
};
};
...
@@ -102,19 +102,19 @@ Use attribute `size` to set additional sizes with `medium`, `small` or `mini`.
...
@@ -102,19 +102,19 @@ Use attribute `size` to set additional sizes with `medium`, `small` or `mini`.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
4
"
></el-input-number>
<el-input-number
v-model=
"num
1
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
5
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
2
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
6
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
3
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
7
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
4
"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
4
:
1
,
num
1
:
1
,
num
5
:
1
,
num
2
:
1
,
num
6
:
1
,
num
3
:
1
,
num
7
:
1
num
4
:
1
}
}
}
}
};
};
...
@@ -127,13 +127,13 @@ Use attribute `size` to set additional sizes with `medium`, `small` or `mini`.
...
@@ -127,13 +127,13 @@ Use attribute `size` to set additional sizes with `medium`, `small` or `mini`.
:::demo Set
`controls-position`
to decide the position of control buttons.
:::demo Set
`controls-position`
to decide the position of control buttons.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
8
"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
8
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
...
examples/docs/es/checkbox.md
View file @
b4190041
...
@@ -128,7 +128,7 @@ Las propiedades `min` y `max` pueden limitar la cantidad de elementos selecciona
...
@@ -128,7 +128,7 @@ Las propiedades `min` y `max` pueden limitar la cantidad de elementos selecciona
```
html
```
html
<template>
<template>
<el-checkbox-group
<el-checkbox-group
v-model=
"checkedCities
1
"
v-model=
"checkedCities"
:min=
"1"
:min=
"1"
:max=
"2"
>
:max=
"2"
>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
...
@@ -139,7 +139,7 @@ Las propiedades `min` y `max` pueden limitar la cantidad de elementos selecciona
...
@@ -139,7 +139,7 @@ Las propiedades `min` y `max` pueden limitar la cantidad de elementos selecciona
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checkedCities
1
:
[
'
Shanghai
'
,
'
Beijing
'
],
checkedCities
:
[
'
Shanghai
'
,
'
Beijing
'
],
cities
:
cityOptions
cities
:
cityOptions
};
};
}
}
...
@@ -200,21 +200,21 @@ Checkbox con estilo tipo Botón.
...
@@ -200,21 +200,21 @@ Checkbox con estilo tipo Botón.
```
html
```
html
<template>
<template>
<div>
<div>
<el-checkbox
v-model=
"checked
3
"
label=
"Opción1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
1
"
label=
"Opción1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"Opción2"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
2
"
label=
"Opción2"
border
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox
v-model=
"checked
5
"
label=
"Opción1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
3
"
label=
"Opción1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
6
"
label=
"Opción2"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"Opción2"
border
size=
"medium"
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
5
"
size=
"small"
>
<el-checkbox-group
v-model=
"checkboxGroup
1
"
size=
"small"
>
<el-checkbox
label=
"Opción1"
border
></el-checkbox>
<el-checkbox
label=
"Opción1"
border
></el-checkbox>
<el-checkbox
label=
"Opción2"
border
disabled
></el-checkbox>
<el-checkbox
label=
"Opción2"
border
disabled
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
6
"
size=
"mini"
disabled
>
<el-checkbox-group
v-model=
"checkboxGroup
2
"
size=
"mini"
disabled
>
<el-checkbox
label=
"Opción1"
border
></el-checkbox>
<el-checkbox
label=
"Opción1"
border
></el-checkbox>
<el-checkbox
label=
"Opción2"
border
></el-checkbox>
<el-checkbox
label=
"Opción2"
border
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
...
@@ -225,12 +225,12 @@ Checkbox con estilo tipo Botón.
...
@@ -225,12 +225,12 @@ Checkbox con estilo tipo Botón.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checked
3
:
true
,
checked
1
:
true
,
checked
4
:
false
,
checked
2
:
false
,
checked
5
:
false
,
checked
3
:
false
,
checked
6
:
true
,
checked
4
:
true
,
checkboxGroup
5
:
[],
checkboxGroup
1
:
[],
checkboxGroup
6
:
[]
checkboxGroup
2
:
[]
};
};
}
}
}
}
...
...
examples/docs/es/color-picker.md
View file @
b4190041
...
@@ -32,13 +32,13 @@ ColorPicker es un selector de color que soporta varios formatos de color.
...
@@ -32,13 +32,13 @@ ColorPicker es un selector de color que soporta varios formatos de color.
:::demo ColorPicker soporta selección de canales alpha. Para activarlo sólo agrege el atributo
`show-alpha`
.
:::demo ColorPicker soporta selección de canales alpha. Para activarlo sólo agrege el atributo
`show-alpha`
.
```
html
```
html
<el-color-picker
v-model=
"color
3
"
show-alpha
></el-color-picker>
<el-color-picker
v-model=
"color"
show-alpha
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
3
:
'
rgba(19, 206, 102, 0.8)
'
color
:
'
rgba(19, 206, 102, 0.8)
'
}
}
}
}
};
};
...
@@ -51,7 +51,7 @@ ColorPicker es un selector de color que soporta varios formatos de color.
...
@@ -51,7 +51,7 @@ ColorPicker es un selector de color que soporta varios formatos de color.
:::demo ColorPicker supports predefined color options
:::demo ColorPicker supports predefined color options
```
html
```
html
<el-color-picker
<el-color-picker
v-model=
"color
5
"
v-model=
"color"
show-alpha
show-alpha
:predefine=
"predefineColors"
>
:predefine=
"predefineColors"
>
</el-color-picker>
</el-color-picker>
...
@@ -60,7 +60,7 @@ ColorPicker es un selector de color que soporta varios formatos de color.
...
@@ -60,7 +60,7 @@ ColorPicker es un selector de color que soporta varios formatos de color.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
5
:
'
rgba(255, 69, 0, 0.68)
'
,
color
:
'
rgba(255, 69, 0, 0.68)
'
,
predefineColors
:
[
predefineColors
:
[
'
#ff4500
'
,
'
#ff4500
'
,
'
#ff8c00
'
,
'
#ff8c00
'
,
...
@@ -88,16 +88,16 @@ ColorPicker es un selector de color que soporta varios formatos de color.
...
@@ -88,16 +88,16 @@ ColorPicker es un selector de color que soporta varios formatos de color.
:::demo
:::demo
```
html
```
html
<el-color-picker
v-model=
"color
4
"
></el-color-picker>
<el-color-picker
v-model=
"color"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"mini"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"mini"
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
4
:
'
#409EFF
'
color
:
'
#409EFF
'
}
}
}
}
};
};
...
...
examples/docs/es/date-picker.md
View file @
b4190041
...
@@ -26,7 +26,7 @@ Date Picker básico por "día".
...
@@ -26,7 +26,7 @@ Date Picker básico por "día".
v-model=
"value2"
v-model=
"value2"
type=
"date"
type=
"date"
placeholder=
"Pick a day"
placeholder=
"Pick a day"
:picker-options=
"pickerOptions
1
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -35,7 +35,7 @@ Date Picker básico por "día".
...
@@ -35,7 +35,7 @@ Date Picker básico por "día".
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
1
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
return
time
.
getTime
()
>
Date
.
now
();
},
},
...
@@ -81,7 +81,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
...
@@ -81,7 +81,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Week
</span>
<span
class=
"demonstration"
>
Week
</span>
<el-date-picker
<el-date-picker
v-model=
"value
3
"
v-model=
"value
1
"
type=
"week"
type=
"week"
format=
"Week WW"
format=
"Week WW"
placeholder=
"Pick a week"
>
placeholder=
"Pick a week"
>
...
@@ -90,7 +90,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
...
@@ -90,7 +90,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Month
</span>
<span
class=
"demonstration"
>
Month
</span>
<el-date-picker
<el-date-picker
v-model=
"value
4
"
v-model=
"value
2
"
type=
"month"
type=
"month"
placeholder=
"Pick a month"
>
placeholder=
"Pick a month"
>
</el-date-picker>
</el-date-picker>
...
@@ -100,7 +100,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
...
@@ -100,7 +100,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Year
</span>
<span
class=
"demonstration"
>
Year
</span>
<el-date-picker
<el-date-picker
v-model=
"value
5
"
v-model=
"value
3
"
type=
"year"
type=
"year"
placeholder=
"Pick a year"
>
placeholder=
"Pick a year"
>
</el-date-picker>
</el-date-picker>
...
@@ -109,7 +109,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
...
@@ -109,7 +109,7 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
<span
class=
"demonstration"
>
Dates
</span>
<span
class=
"demonstration"
>
Dates
</span>
<el-date-picker
<el-date-picker
type=
"dates"
type=
"dates"
v-model=
"value
1
4"
v-model=
"value4"
placeholder=
"Pick one or more dates"
>
placeholder=
"Pick one or more dates"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
...
@@ -119,10 +119,10 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
...
@@ -119,10 +119,10 @@ Puede elegir la semana, el mes, el año o varias fechas ampliando el componente
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
:
''
,
value2
:
''
,
value3
:
''
,
value3
:
''
,
value4
:
''
,
value4
:
''
value5
:
''
,
value14
:
''
};
};
}
}
};
};
...
@@ -142,7 +142,7 @@ Se soporta la selección de un rango de fechas.
...
@@ -142,7 +142,7 @@ Se soporta la selección de un rango de fechas.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Default
</span>
<span
class=
"demonstration"
>
Default
</span>
<el-date-picker
<el-date-picker
v-model=
"value
6
"
v-model=
"value
1
"
type=
"daterange"
type=
"daterange"
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start date"
start-placeholder=
"Start date"
...
@@ -152,14 +152,14 @@ Se soporta la selección de un rango de fechas.
...
@@ -152,14 +152,14 @@ Se soporta la selección de un rango de fechas.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
With quick options
</span>
<span
class=
"demonstration"
>
With quick options
</span>
<el-date-picker
<el-date-picker
v-model=
"value
7
"
v-model=
"value
2
"
type=
"daterange"
type=
"daterange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start date"
start-placeholder=
"Start date"
end-placeholder=
"End date"
end-placeholder=
"End date"
:picker-options=
"pickerOptions
2
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -168,7 +168,7 @@ Se soporta la selección de un rango de fechas.
...
@@ -168,7 +168,7 @@ Se soporta la selección de un rango de fechas.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
2
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
Last week
'
,
text
:
'
Last week
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -195,8 +195,8 @@ Se soporta la selección de un rango de fechas.
...
@@ -195,8 +195,8 @@ Se soporta la selección de un rango de fechas.
}
}
}]
}]
},
},
value
6
:
''
,
value
1
:
''
,
value
7
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -215,7 +215,7 @@ Se admite la selección de un intervalo de un mes.
...
@@ -215,7 +215,7 @@ Se admite la selección de un intervalo de un mes.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Default
</span>
<span
class=
"demonstration"
>
Default
</span>
<el-date-picker
<el-date-picker
v-model=
"value1
5
"
v-model=
"value1"
type=
"monthrange"
type=
"monthrange"
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start month"
start-placeholder=
"Start month"
...
@@ -225,14 +225,14 @@ Se admite la selección de un intervalo de un mes.
...
@@ -225,14 +225,14 @@ Se admite la selección de un intervalo de un mes.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
With quick options
</span>
<span
class=
"demonstration"
>
With quick options
</span>
<el-date-picker
<el-date-picker
v-model=
"value
16
"
v-model=
"value
2
"
type=
"monthrange"
type=
"monthrange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start month"
start-placeholder=
"Start month"
end-placeholder=
"End month"
end-placeholder=
"End month"
:picker-options=
"pickerOptions
3
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -241,7 +241,7 @@ Se admite la selección de un intervalo de un mes.
...
@@ -241,7 +241,7 @@ Se admite la selección de un intervalo de un mes.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
3
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
This month
'
,
text
:
'
This month
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -264,8 +264,8 @@ Se admite la selección de un intervalo de un mes.
...
@@ -264,8 +264,8 @@ Se admite la selección de un intervalo de un mes.
}
}
}]
}]
},
},
value1
5
:
''
,
value1
:
''
,
value
16
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -285,7 +285,7 @@ Si el tipo es `daterange`, `default-value` establece el calendario del lado izqu
...
@@ -285,7 +285,7 @@ Si el tipo es `daterange`, `default-value` establece el calendario del lado izqu
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
date
</span>
<span
class=
"demonstration"
>
date
</span>
<el-date-picker
<el-date-picker
v-model=
"value
8
"
v-model=
"value
1
"
type=
"date"
type=
"date"
placeholder=
"Pick a date"
placeholder=
"Pick a date"
default-value=
"2010-10-01"
>
default-value=
"2010-10-01"
>
...
@@ -294,7 +294,7 @@ Si el tipo es `daterange`, `default-value` establece el calendario del lado izqu
...
@@ -294,7 +294,7 @@ Si el tipo es `daterange`, `default-value` establece el calendario del lado izqu
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
daterange
</span>
<span
class=
"demonstration"
>
daterange
</span>
<el-date-picker
<el-date-picker
v-model=
"value
9
"
v-model=
"value
2
"
type=
"daterange"
type=
"daterange"
align=
"right"
align=
"right"
start-placeholder=
"Start Date"
start-placeholder=
"Start Date"
...
@@ -308,8 +308,8 @@ Si el tipo es `daterange`, `default-value` establece el calendario del lado izqu
...
@@ -308,8 +308,8 @@ Si el tipo es `daterange`, `default-value` establece el calendario del lado izqu
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
8
:
''
,
value
1
:
''
,
value
9
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -352,9 +352,9 @@ Preste atención a la capitalización
...
@@ -352,9 +352,9 @@ Preste atención a la capitalización
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Emits Date object
</span>
<span
class=
"demonstration"
>
Emits Date object
</span>
<div
class=
"demonstration"
>
Value: {{ value1
0
}}
</div>
<div
class=
"demonstration"
>
Value: {{ value1 }}
</div>
<el-date-picker
<el-date-picker
v-model=
"value1
0
"
v-model=
"value1"
type=
"date"
type=
"date"
placeholder=
"Pick a Date"
placeholder=
"Pick a Date"
format=
"yyyy/MM/dd"
>
format=
"yyyy/MM/dd"
>
...
@@ -362,9 +362,9 @@ Preste atención a la capitalización
...
@@ -362,9 +362,9 @@ Preste atención a la capitalización
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Use value-format
</span>
<span
class=
"demonstration"
>
Use value-format
</span>
<div
class=
"demonstration"
>
Value: {{ value
11
}}
</div>
<div
class=
"demonstration"
>
Value: {{ value
2
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
11
"
v-model=
"value
2
"
type=
"date"
type=
"date"
placeholder=
"Pick a Date"
placeholder=
"Pick a Date"
format=
"yyyy/MM/dd"
format=
"yyyy/MM/dd"
...
@@ -373,9 +373,9 @@ Preste atención a la capitalización
...
@@ -373,9 +373,9 @@ Preste atención a la capitalización
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Timestamp
</span>
<span
class=
"demonstration"
>
Timestamp
</span>
<div
class=
"demonstration"
>
Value:{{ value
12
}}
</div>
<div
class=
"demonstration"
>
Value:{{ value
3
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
12
"
v-model=
"value
3
"
type=
"date"
type=
"date"
placeholder=
"Pick a Date"
placeholder=
"Pick a Date"
format=
"yyyy/MM/dd"
format=
"yyyy/MM/dd"
...
@@ -388,9 +388,9 @@ Preste atención a la capitalización
...
@@ -388,9 +388,9 @@ Preste atención a la capitalización
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
0
:
''
,
value1
:
''
,
value
11
:
''
,
value
2
:
''
,
value
12
:
''
value
3
:
''
};
};
}
}
};
};
...
@@ -407,9 +407,9 @@ Al seleccionar un intervalo de fechas, puede asignar la hora para la fecha de in
...
@@ -407,9 +407,9 @@ Al seleccionar un intervalo de fechas, puede asignar la hora para la fecha de in
```
html
```
html
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<p>
Component value:{{ value
12
}}
</p>
<p>
Component value:{{ value }}
</p>
<el-date-picker
<el-date-picker
v-model=
"value
12
"
v-model=
"value"
type=
"daterange"
type=
"daterange"
start-placeholder=
"Start date"
start-placeholder=
"Start date"
end-placeholder=
"End date"
end-placeholder=
"End date"
...
@@ -422,7 +422,7 @@ Al seleccionar un intervalo de fechas, puede asignar la hora para la fecha de in
...
@@ -422,7 +422,7 @@ Al seleccionar un intervalo de fechas, puede asignar la hora para la fecha de in
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
12
:
''
value
:
''
};
};
}
}
};
};
...
...
examples/docs/es/input-number.md
View file @
b4190041
...
@@ -8,13 +8,13 @@ Input de valores numéricos con un rango personalizable.
...
@@ -8,13 +8,13 @@ Input de valores numéricos con un rango personalizable.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
1
"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
1
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
@@ -33,13 +33,13 @@ Input de valores numéricos con un rango personalizable.
...
@@ -33,13 +33,13 @@ Input de valores numéricos con un rango personalizable.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
2
"
:disabled=
"true"
></el-input-number>
<el-input-number
v-model=
"num"
:disabled=
"true"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
2
:
1
num
:
1
}
}
}
}
};
};
...
@@ -55,13 +55,13 @@ Le permite definir el nivel de incremento de los saltos.
...
@@ -55,13 +55,13 @@ Le permite definir el nivel de incremento de los saltos.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
3
"
:step=
"2"
></el-input-number>
<el-input-number
v-model=
"num"
:step=
"2"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
3
:
5
num
:
5
}
}
}
}
};
};
...
@@ -75,13 +75,13 @@ Le permite definir el nivel de incremento de los saltos.
...
@@ -75,13 +75,13 @@ Le permite definir el nivel de incremento de los saltos.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
9
"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
9
:
1
num
:
1
}
}
}
}
};
};
...
@@ -102,19 +102,19 @@ Utilice el atributo `size` para establecer tamaños adicionales con `medium`, `s
...
@@ -102,19 +102,19 @@ Utilice el atributo `size` para establecer tamaños adicionales con `medium`, `s
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
4
"
></el-input-number>
<el-input-number
v-model=
"num
1
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
5
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
2
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
6
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
3
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
7
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
4
"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
4
:
1
,
num
1
:
1
,
num
5
:
1
,
num
2
:
1
,
num
6
:
1
,
num
3
:
1
,
num
7
:
1
num
4
:
1
}
}
}
}
};
};
...
@@ -128,13 +128,13 @@ Utilice el atributo `size` para establecer tamaños adicionales con `medium`, `s
...
@@ -128,13 +128,13 @@ Utilice el atributo `size` para establecer tamaños adicionales con `medium`, `s
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
8
"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
8
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
...
examples/docs/fr-FR/checkbox.md
View file @
b4190041
...
@@ -128,7 +128,7 @@ Les propriétés `min` et `max` permettent de limiter la quantité d'éléments
...
@@ -128,7 +128,7 @@ Les propriétés `min` et `max` permettent de limiter la quantité d'éléments
```
html
```
html
<template>
<template>
<el-checkbox-group
<el-checkbox-group
v-model=
"checkedCities
1
"
v-model=
"checkedCities"
:min=
"1"
:min=
"1"
:max=
"2"
>
:max=
"2"
>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
...
@@ -139,7 +139,7 @@ Les propriétés `min` et `max` permettent de limiter la quantité d'éléments
...
@@ -139,7 +139,7 @@ Les propriétés `min` et `max` permettent de limiter la quantité d'éléments
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checkedCities
1
:
[
'
Shanghai
'
,
'
Beijing
'
],
checkedCities
:
[
'
Shanghai
'
,
'
Beijing
'
],
cities
:
cityOptions
cities
:
cityOptions
};
};
}
}
...
@@ -200,21 +200,21 @@ Des checkbox avec une apparence de bouton.
...
@@ -200,21 +200,21 @@ Des checkbox avec une apparence de bouton.
```
html
```
html
<template>
<template>
<div>
<div>
<el-checkbox
v-model=
"checked
3
"
label=
"Option1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
1
"
label=
"Option1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"Option2"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
2
"
label=
"Option2"
border
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox
v-model=
"checked
5
"
label=
"Option1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
3
"
label=
"Option1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
6
"
label=
"Option2"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"Option2"
border
size=
"medium"
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
5
"
size=
"small"
>
<el-checkbox-group
v-model=
"checkboxGroup
1
"
size=
"small"
>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option2"
border
disabled
></el-checkbox>
<el-checkbox
label=
"Option2"
border
disabled
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
6
"
size=
"mini"
disabled
>
<el-checkbox-group
v-model=
"checkboxGroup
2
"
size=
"mini"
disabled
>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option1"
border
></el-checkbox>
<el-checkbox
label=
"Option2"
border
></el-checkbox>
<el-checkbox
label=
"Option2"
border
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
...
@@ -225,12 +225,12 @@ Des checkbox avec une apparence de bouton.
...
@@ -225,12 +225,12 @@ Des checkbox avec une apparence de bouton.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checked
3
:
true
,
checked
1
:
true
,
checked
4
:
false
,
checked
2
:
false
,
checked
5
:
false
,
checked
3
:
false
,
checked
6
:
true
,
checked
4
:
true
,
checkboxGroup
5
:
[],
checkboxGroup
1
:
[],
checkboxGroup
6
:
[]
checkboxGroup
2
:
[]
};
};
}
}
}
}
...
...
examples/docs/fr-FR/color-picker.md
View file @
b4190041
...
@@ -32,13 +32,13 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
...
@@ -32,13 +32,13 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
:::demo ColorPicker supporte le canal alpha. Pour activer la sélection du canal alpha, ajoutez l'attribut
`show-alpha`
.
:::demo ColorPicker supporte le canal alpha. Pour activer la sélection du canal alpha, ajoutez l'attribut
`show-alpha`
.
```
html
```
html
<el-color-picker
v-model=
"color
3
"
show-alpha
></el-color-picker>
<el-color-picker
v-model=
"color"
show-alpha
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
3
:
'
rgba(19, 206, 102, 0.8)
'
color
:
'
rgba(19, 206, 102, 0.8)
'
}
}
}
}
};
};
...
@@ -51,7 +51,7 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
...
@@ -51,7 +51,7 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
:::demo ColorPicker supporte les couleurs prédéfinies.
:::demo ColorPicker supporte les couleurs prédéfinies.
```
html
```
html
<el-color-picker
<el-color-picker
v-model=
"color
5
"
v-model=
"color"
show-alpha
show-alpha
:predefine=
"predefineColors"
>
:predefine=
"predefineColors"
>
</el-color-picker>
</el-color-picker>
...
@@ -60,7 +60,7 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
...
@@ -60,7 +60,7 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
5
:
'
rgba(255, 69, 0, 0.68)
'
,
color
:
'
rgba(255, 69, 0, 0.68)
'
,
predefineColors
:
[
predefineColors
:
[
'
#ff4500
'
,
'
#ff4500
'
,
'
#ff8c00
'
,
'
#ff8c00
'
,
...
@@ -88,16 +88,16 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
...
@@ -88,16 +88,16 @@ ColorPicker est un sélecteur de couleur qui supporte plusieurs formats.
:::demo
:::demo
```
html
```
html
<el-color-picker
v-model=
"color
4
"
></el-color-picker>
<el-color-picker
v-model=
"color"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"mini"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"mini"
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
4
:
'
#409EFF
'
color
:
'
#409EFF
'
}
}
}
}
};
};
...
...
examples/docs/fr-FR/date-picker.md
View file @
b4190041
...
@@ -25,7 +25,7 @@ L'unité de base du DatePicker est le jour.
...
@@ -25,7 +25,7 @@ L'unité de base du DatePicker est le jour.
v-model=
"value2"
v-model=
"value2"
type=
"date"
type=
"date"
placeholder=
"Choississez un jour"
placeholder=
"Choississez un jour"
:picker-options=
"pickerOptions
1
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -34,7 +34,7 @@ L'unité de base du DatePicker est le jour.
...
@@ -34,7 +34,7 @@ L'unité de base du DatePicker est le jour.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
1
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
return
time
.
getTime
()
>
Date
.
now
();
},
},
...
@@ -79,7 +79,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
...
@@ -79,7 +79,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Semaine
</span>
<span
class=
"demonstration"
>
Semaine
</span>
<el-date-picker
<el-date-picker
v-model=
"value
3
"
v-model=
"value
1
"
type=
"week"
type=
"week"
format=
"Week WW"
format=
"Week WW"
placeholder=
"Sélectionnez une semaine"
>
placeholder=
"Sélectionnez une semaine"
>
...
@@ -88,7 +88,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
...
@@ -88,7 +88,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Mois
</span>
<span
class=
"demonstration"
>
Mois
</span>
<el-date-picker
<el-date-picker
v-model=
"value
4
"
v-model=
"value
2
"
type=
"month"
type=
"month"
placeholder=
"Sélectionnez un mois"
>
placeholder=
"Sélectionnez un mois"
>
</el-date-picker>
</el-date-picker>
...
@@ -98,7 +98,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
...
@@ -98,7 +98,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Année
</span>
<span
class=
"demonstration"
>
Année
</span>
<el-date-picker
<el-date-picker
v-model=
"value
5
"
v-model=
"value
3
"
type=
"year"
type=
"year"
placeholder=
"Sélectionnez une année"
>
placeholder=
"Sélectionnez une année"
>
</el-date-picker>
</el-date-picker>
...
@@ -107,7 +107,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
...
@@ -107,7 +107,7 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
<span
class=
"demonstration"
>
Dates
</span>
<span
class=
"demonstration"
>
Dates
</span>
<el-date-picker
<el-date-picker
type=
"dates"
type=
"dates"
v-model=
"value
1
4"
v-model=
"value4"
placeholder=
"Sélectionnez une ou plusieurs dates"
>
placeholder=
"Sélectionnez une ou plusieurs dates"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
...
@@ -117,10 +117,10 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
...
@@ -117,10 +117,10 @@ Vous pouvez sélectionner une semaine, un mois, une année ou plusieurs dates en
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
:
''
,
value2
:
''
,
value3
:
''
,
value3
:
''
,
value4
:
''
,
value4
:
''
value5
:
''
,
value14
:
''
};
};
}
}
};
};
...
@@ -140,7 +140,7 @@ Vous pouvez sélectionner une plage de dates.
...
@@ -140,7 +140,7 @@ Vous pouvez sélectionner une plage de dates.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Défaut
</span>
<span
class=
"demonstration"
>
Défaut
</span>
<el-date-picker
<el-date-picker
v-model=
"value
6
"
v-model=
"value
1
"
type=
"daterange"
type=
"daterange"
range-separator=
"à"
range-separator=
"à"
start-placeholder=
"Date de début"
start-placeholder=
"Date de début"
...
@@ -150,14 +150,14 @@ Vous pouvez sélectionner une plage de dates.
...
@@ -150,14 +150,14 @@ Vous pouvez sélectionner une plage de dates.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Avec raccourcis
</span>
<span
class=
"demonstration"
>
Avec raccourcis
</span>
<el-date-picker
<el-date-picker
v-model=
"value
7
"
v-model=
"value
2
"
type=
"daterange"
type=
"daterange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"à"
range-separator=
"à"
start-placeholder=
"Date de début"
start-placeholder=
"Date de début"
end-placeholder=
"Date de fin"
end-placeholder=
"Date de fin"
:picker-options=
"pickerOptions
2
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -166,7 +166,7 @@ Vous pouvez sélectionner une plage de dates.
...
@@ -166,7 +166,7 @@ Vous pouvez sélectionner une plage de dates.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
2
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
Semaine dernière
'
,
text
:
'
Semaine dernière
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -193,8 +193,8 @@ Vous pouvez sélectionner une plage de dates.
...
@@ -193,8 +193,8 @@ Vous pouvez sélectionner une plage de dates.
}
}
}]
}]
},
},
value
6
:
''
,
value
1
:
''
,
value
7
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -213,7 +213,7 @@ Picking a month range is supported.
...
@@ -213,7 +213,7 @@ Picking a month range is supported.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Default
</span>
<span
class=
"demonstration"
>
Default
</span>
<el-date-picker
<el-date-picker
v-model=
"value1
5
"
v-model=
"value1"
type=
"monthrange"
type=
"monthrange"
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start month"
start-placeholder=
"Start month"
...
@@ -223,14 +223,14 @@ Picking a month range is supported.
...
@@ -223,14 +223,14 @@ Picking a month range is supported.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
With quick options
</span>
<span
class=
"demonstration"
>
With quick options
</span>
<el-date-picker
<el-date-picker
v-model=
"value
16
"
v-model=
"value
2
"
type=
"monthrange"
type=
"monthrange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"To"
range-separator=
"To"
start-placeholder=
"Start month"
start-placeholder=
"Start month"
end-placeholder=
"End month"
end-placeholder=
"End month"
:picker-options=
"pickerOptions
3
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -239,7 +239,7 @@ Picking a month range is supported.
...
@@ -239,7 +239,7 @@ Picking a month range is supported.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
3
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
This month
'
,
text
:
'
This month
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -262,8 +262,8 @@ Picking a month range is supported.
...
@@ -262,8 +262,8 @@ Picking a month range is supported.
}
}
}]
}]
},
},
value1
5
:
''
,
value1
:
''
,
value
16
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -283,7 +283,7 @@ Si le type est `daterange`, `default-value` configure la panneau de gauche.
...
@@ -283,7 +283,7 @@ Si le type est `daterange`, `default-value` configure la panneau de gauche.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Date
</span>
<span
class=
"demonstration"
>
Date
</span>
<el-date-picker
<el-date-picker
v-model=
"value
8
"
v-model=
"value
1
"
type=
"date"
type=
"date"
placeholder=
"Sélectionnez une date"
placeholder=
"Sélectionnez une date"
default-value=
"2010-10-01"
>
default-value=
"2010-10-01"
>
...
@@ -292,7 +292,7 @@ Si le type est `daterange`, `default-value` configure la panneau de gauche.
...
@@ -292,7 +292,7 @@ Si le type est `daterange`, `default-value` configure la panneau de gauche.
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Plage de dates
</span>
<span
class=
"demonstration"
>
Plage de dates
</span>
<el-date-picker
<el-date-picker
v-model=
"value
9
"
v-model=
"value
2
"
type=
"daterange"
type=
"daterange"
align=
"right"
align=
"right"
start-placeholder=
"Date de début"
start-placeholder=
"Date de début"
...
@@ -306,8 +306,8 @@ Si le type est `daterange`, `default-value` configure la panneau de gauche.
...
@@ -306,8 +306,8 @@ Si le type est `daterange`, `default-value` configure la panneau de gauche.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
8
:
''
,
value
1
:
''
,
value
9
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -353,9 +353,9 @@ Attention à la capitalisation !
...
@@ -353,9 +353,9 @@ Attention à la capitalisation !
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Émet un objet Date
</span>
<span
class=
"demonstration"
>
Émet un objet Date
</span>
<div
class=
"demonstration"
>
Value: {{ value1
0
}}
</div>
<div
class=
"demonstration"
>
Value: {{ value1 }}
</div>
<el-date-picker
<el-date-picker
v-model=
"value1
0
"
v-model=
"value1"
type=
"date"
type=
"date"
placeholder=
"Sélectionnez une date"
placeholder=
"Sélectionnez une date"
format=
"yyyy/MM/dd"
>
format=
"yyyy/MM/dd"
>
...
@@ -363,9 +363,9 @@ Attention à la capitalisation !
...
@@ -363,9 +363,9 @@ Attention à la capitalisation !
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Utilise value-format
</span>
<span
class=
"demonstration"
>
Utilise value-format
</span>
<div
class=
"demonstration"
>
Value: {{ value
11
}}
</div>
<div
class=
"demonstration"
>
Value: {{ value
2
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
11
"
v-model=
"value
2
"
type=
"date"
type=
"date"
placeholder=
"Sélectionnez une date"
placeholder=
"Sélectionnez une date"
format=
"yyyy/MM/dd"
format=
"yyyy/MM/dd"
...
@@ -374,9 +374,9 @@ Attention à la capitalisation !
...
@@ -374,9 +374,9 @@ Attention à la capitalisation !
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
Timestamp
</span>
<span
class=
"demonstration"
>
Timestamp
</span>
<div
class=
"demonstration"
>
Value:{{ value
12
}}
</div>
<div
class=
"demonstration"
>
Value:{{ value
3
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
12
"
v-model=
"value
3
"
type=
"date"
type=
"date"
placeholder=
"Sélectionnez une date"
placeholder=
"Sélectionnez une date"
format=
"yyyy/MM/dd"
format=
"yyyy/MM/dd"
...
@@ -389,9 +389,9 @@ Attention à la capitalisation !
...
@@ -389,9 +389,9 @@ Attention à la capitalisation !
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
0
:
''
,
value1
:
''
,
value
11
:
''
,
value
2
:
''
,
value
12
:
''
value
3
:
''
};
};
}
}
};
};
...
@@ -407,9 +407,9 @@ Lorsque vous choisissez une plage de dates, vous pouvez assigner l'horaire de d
...
@@ -407,9 +407,9 @@ Lorsque vous choisissez une plage de dates, vous pouvez assigner l'horaire de d
```
html
```
html
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<p>
Valeur: {{ value
13
}}
</p>
<p>
Valeur: {{ value }}
</p>
<el-date-picker
<el-date-picker
v-model=
"value
13
"
v-model=
"value"
type=
"daterange"
type=
"daterange"
start-placeholder=
"Date de début"
start-placeholder=
"Date de début"
end-placeholder=
"Date de fin"
end-placeholder=
"Date de fin"
...
@@ -422,7 +422,7 @@ Lorsque vous choisissez une plage de dates, vous pouvez assigner l'horaire de d
...
@@ -422,7 +422,7 @@ Lorsque vous choisissez une plage de dates, vous pouvez assigner l'horaire de d
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
13
:
''
value
:
''
};
};
}
}
};
};
...
...
examples/docs/fr-FR/input-number.md
View file @
b4190041
...
@@ -8,13 +8,13 @@ Un champs d'input de valeurs numériques, avec un domaine personnalisable.
...
@@ -8,13 +8,13 @@ Un champs d'input de valeurs numériques, avec un domaine personnalisable.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
1
"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
1
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
@@ -33,13 +33,13 @@ Un champs d'input de valeurs numériques, avec un domaine personnalisable.
...
@@ -33,13 +33,13 @@ Un champs d'input de valeurs numériques, avec un domaine personnalisable.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
2
"
:disabled=
"true"
></el-input-number>
<el-input-number
v-model=
"num"
:disabled=
"true"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
2
:
1
num
:
1
}
}
}
}
};
};
...
@@ -55,13 +55,13 @@ Vous pouvez déterminer un pas pour le champs.
...
@@ -55,13 +55,13 @@ Vous pouvez déterminer un pas pour le champs.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
3
"
:step=
"2"
></el-input-number>
<el-input-number
v-model=
"num"
:step=
"2"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
3
:
5
num
:
5
}
}
}
}
};
};
...
@@ -75,13 +75,13 @@ Vous pouvez déterminer un pas pour le champs.
...
@@ -75,13 +75,13 @@ Vous pouvez déterminer un pas pour le champs.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
9
"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
9
:
1
num
:
1
}
}
}
}
};
};
...
@@ -102,19 +102,19 @@ Utilisez l'attribut `size` pour régler la taille avec `medium`, `small` ou `min
...
@@ -102,19 +102,19 @@ Utilisez l'attribut `size` pour régler la taille avec `medium`, `small` ou `min
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
4
"
></el-input-number>
<el-input-number
v-model=
"num
1
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
5
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
2
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
6
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
3
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
7
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
4
"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
4
:
1
,
num
1
:
1
,
num
5
:
1
,
num
2
:
1
,
num
6
:
1
,
num
3
:
1
,
num
7
:
1
num
4
:
1
}
}
}
}
};
};
...
@@ -127,13 +127,13 @@ Utilisez l'attribut `size` pour régler la taille avec `medium`, `small` ou `min
...
@@ -127,13 +127,13 @@ Utilisez l'attribut `size` pour régler la taille avec `medium`, `small` ou `min
:::demo Réglez
`controls-position`
pour déterminer la position des boutons.
:::demo Réglez
`controls-position`
pour déterminer la position des boutons.
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
8
"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
8
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
...
examples/docs/zh-CN/checkbox.md
View file @
b4190041
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
```
html
```
html
<template>
<template>
<el-checkbox-group
<el-checkbox-group
v-model=
"checkedCities
1
"
v-model=
"checkedCities"
:min=
"1"
:min=
"1"
:max=
"2"
>
:max=
"2"
>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
<el-checkbox
v-for=
"city in cities"
:label=
"city"
:key=
"city"
>
{{city}}
</el-checkbox>
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checkedCities
1
:
[
'
上海
'
,
'
北京
'
],
checkedCities
:
[
'
上海
'
,
'
北京
'
],
cities
:
cityOptions
cities
:
cityOptions
};
};
}
}
...
@@ -199,21 +199,21 @@
...
@@ -199,21 +199,21 @@
```
html
```
html
<template>
<template>
<div>
<div>
<el-checkbox
v-model=
"checked
3
"
label=
"备选项1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
1
"
label=
"备选项1"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"备选项2"
border
></el-checkbox>
<el-checkbox
v-model=
"checked
2
"
label=
"备选项2"
border
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox
v-model=
"checked
5
"
label=
"备选项1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
3
"
label=
"备选项1"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
6
"
label=
"备选项2"
border
size=
"medium"
></el-checkbox>
<el-checkbox
v-model=
"checked
4
"
label=
"备选项2"
border
size=
"medium"
></el-checkbox>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
5
"
size=
"small"
>
<el-checkbox-group
v-model=
"checkboxGroup
1
"
size=
"small"
>
<el-checkbox
label=
"备选项1"
border
></el-checkbox>
<el-checkbox
label=
"备选项1"
border
></el-checkbox>
<el-checkbox
label=
"备选项2"
border
disabled
></el-checkbox>
<el-checkbox
label=
"备选项2"
border
disabled
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<div
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<el-checkbox-group
v-model=
"checkboxGroup
6
"
size=
"mini"
disabled
>
<el-checkbox-group
v-model=
"checkboxGroup
2
"
size=
"mini"
disabled
>
<el-checkbox
label=
"备选项1"
border
></el-checkbox>
<el-checkbox
label=
"备选项1"
border
></el-checkbox>
<el-checkbox
label=
"备选项2"
border
></el-checkbox>
<el-checkbox
label=
"备选项2"
border
></el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
...
@@ -224,12 +224,12 @@
...
@@ -224,12 +224,12 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
checked
3
:
true
,
checked
1
:
true
,
checked
4
:
false
,
checked
2
:
false
,
checked
5
:
false
,
checked
3
:
false
,
checked
6
:
true
,
checked
4
:
true
,
checkboxGroup
5
:
[],
checkboxGroup
1
:
[],
checkboxGroup
6
:
[]
checkboxGroup
2
:
[]
};
};
}
}
}
}
...
...
examples/docs/zh-CN/color-picker.md
View file @
b4190041
...
@@ -32,13 +32,13 @@
...
@@ -32,13 +32,13 @@
:::demo ColorPicker 支持普通颜色,也支持带 Alpha 通道的颜色,通过
`show-alpha`
属性即可控制是否支持透明度的选择。
:::demo ColorPicker 支持普通颜色,也支持带 Alpha 通道的颜色,通过
`show-alpha`
属性即可控制是否支持透明度的选择。
```
html
```
html
<el-color-picker
v-model=
"color
3
"
show-alpha
></el-color-picker>
<el-color-picker
v-model=
"color"
show-alpha
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
3
:
'
rgba(19, 206, 102, 0.8)
'
color
:
'
rgba(19, 206, 102, 0.8)
'
}
}
}
}
};
};
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
:::demo ColorPicker 支持预定义颜色
:::demo ColorPicker 支持预定义颜色
```
html
```
html
<el-color-picker
<el-color-picker
v-model=
"color
5
"
v-model=
"color"
show-alpha
show-alpha
:predefine=
"predefineColors"
>
:predefine=
"predefineColors"
>
</el-color-picker>
</el-color-picker>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
5
:
'
rgba(255, 69, 0, 0.68)
'
,
color
:
'
rgba(255, 69, 0, 0.68)
'
,
predefineColors
:
[
predefineColors
:
[
'
#ff4500
'
,
'
#ff4500
'
,
'
#ff8c00
'
,
'
#ff8c00
'
,
...
@@ -88,16 +88,16 @@
...
@@ -88,16 +88,16 @@
:::demo
:::demo
```
html
```
html
<el-color-picker
v-model=
"color
4
"
></el-color-picker>
<el-color-picker
v-model=
"color"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"medium"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"small"
></el-color-picker>
<el-color-picker
v-model=
"color
4
"
size=
"mini"
></el-color-picker>
<el-color-picker
v-model=
"color"
size=
"mini"
></el-color-picker>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
color
4
:
'
#409EFF
'
color
:
'
#409EFF
'
}
}
}
}
};
};
...
...
examples/docs/zh-CN/date-picker.md
View file @
b4190041
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
align=
"right"
align=
"right"
type=
"date"
type=
"date"
placeholder=
"选择日期"
placeholder=
"选择日期"
:picker-options=
"pickerOptions
1
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
1
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
return
time
.
getTime
()
>
Date
.
now
();
},
},
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
周
</span>
<span
class=
"demonstration"
>
周
</span>
<el-date-picker
<el-date-picker
v-model=
"value
3
"
v-model=
"value
1
"
type=
"week"
type=
"week"
format=
"yyyy 第 WW 周"
format=
"yyyy 第 WW 周"
placeholder=
"选择周"
>
placeholder=
"选择周"
>
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
月
</span>
<span
class=
"demonstration"
>
月
</span>
<el-date-picker
<el-date-picker
v-model=
"value
4
"
v-model=
"value
2
"
type=
"month"
type=
"month"
placeholder=
"选择月"
>
placeholder=
"选择月"
>
</el-date-picker>
</el-date-picker>
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
年
</span>
<span
class=
"demonstration"
>
年
</span>
<el-date-picker
<el-date-picker
v-model=
"value
5
"
v-model=
"value
3
"
type=
"year"
type=
"year"
placeholder=
"选择年"
>
placeholder=
"选择年"
>
</el-date-picker>
</el-date-picker>
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<span
class=
"demonstration"
>
多个日期
</span>
<span
class=
"demonstration"
>
多个日期
</span>
<el-date-picker
<el-date-picker
type=
"dates"
type=
"dates"
v-model=
"value
1
4"
v-model=
"value4"
placeholder=
"选择一个或多个日期"
>
placeholder=
"选择一个或多个日期"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
...
@@ -116,10 +116,10 @@
...
@@ -116,10 +116,10 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
:
''
,
value2
:
''
,
value3
:
''
,
value3
:
''
,
value4
:
''
,
value4
:
''
value5
:
''
,
value14
:
''
};
};
}
}
};
};
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
默认
</span>
<span
class=
"demonstration"
>
默认
</span>
<el-date-picker
<el-date-picker
v-model=
"value
6
"
v-model=
"value
1
"
type=
"daterange"
type=
"daterange"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
@@ -147,14 +147,14 @@
...
@@ -147,14 +147,14 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
带快捷选项
</span>
<span
class=
"demonstration"
>
带快捷选项
</span>
<el-date-picker
<el-date-picker
v-model=
"value
7
"
v-model=
"value
2
"
type=
"daterange"
type=
"daterange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions
2
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
2
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
最近一周
'
,
text
:
'
最近一周
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -190,8 +190,8 @@
...
@@ -190,8 +190,8 @@
}
}
}]
}]
},
},
value
6
:
''
,
value
1
:
''
,
value
7
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
默认
</span>
<span
class=
"demonstration"
>
默认
</span>
<el-date-picker
<el-date-picker
v-model=
"value1
5
"
v-model=
"value1"
type=
"monthrange"
type=
"monthrange"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始月份"
start-placeholder=
"开始月份"
...
@@ -220,14 +220,14 @@
...
@@ -220,14 +220,14 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
带快捷选项
</span>
<span
class=
"demonstration"
>
带快捷选项
</span>
<el-date-picker
<el-date-picker
v-model=
"value
16
"
v-model=
"value
2
"
type=
"monthrange"
type=
"monthrange"
align=
"right"
align=
"right"
unlink-panels
unlink-panels
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始月份"
start-placeholder=
"开始月份"
end-placeholder=
"结束月份"
end-placeholder=
"结束月份"
:picker-options=
"pickerOptions
3
"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</template>
</template>
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pickerOptions
3
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'
本月
'
,
text
:
'
本月
'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
...
@@ -259,8 +259,8 @@
...
@@ -259,8 +259,8 @@
}
}
}]
}]
},
},
value1
5
:
''
,
value1
:
''
,
value
16
:
''
value
2
:
''
};
};
}
}
};
};
...
@@ -305,9 +305,9 @@
...
@@ -305,9 +305,9 @@
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
默认为 Date 对象
</span>
<span
class=
"demonstration"
>
默认为 Date 对象
</span>
<div
class=
"demonstration"
>
值:{{ value1
0
}}
</div>
<div
class=
"demonstration"
>
值:{{ value1 }}
</div>
<el-date-picker
<el-date-picker
v-model=
"value1
0
"
v-model=
"value1"
type=
"date"
type=
"date"
placeholder=
"选择日期"
placeholder=
"选择日期"
format=
"yyyy 年 MM 月 dd 日"
>
format=
"yyyy 年 MM 月 dd 日"
>
...
@@ -315,9 +315,9 @@
...
@@ -315,9 +315,9 @@
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
使用 value-format
</span>
<span
class=
"demonstration"
>
使用 value-format
</span>
<div
class=
"demonstration"
>
值:{{ value
11
}}
</div>
<div
class=
"demonstration"
>
值:{{ value
2
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
11
"
v-model=
"value
2
"
type=
"date"
type=
"date"
placeholder=
"选择日期"
placeholder=
"选择日期"
format=
"yyyy 年 MM 月 dd 日"
format=
"yyyy 年 MM 月 dd 日"
...
@@ -326,9 +326,9 @@
...
@@ -326,9 +326,9 @@
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
时间戳
</span>
<span
class=
"demonstration"
>
时间戳
</span>
<div
class=
"demonstration"
>
值:{{ value
12
}}
</div>
<div
class=
"demonstration"
>
值:{{ value
3
}}
</div>
<el-date-picker
<el-date-picker
v-model=
"value
12
"
v-model=
"value
3
"
type=
"date"
type=
"date"
placeholder=
"选择日期"
placeholder=
"选择日期"
format=
"yyyy 年 MM 月 dd 日"
format=
"yyyy 年 MM 月 dd 日"
...
@@ -341,9 +341,9 @@
...
@@ -341,9 +341,9 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value1
0
:
''
,
value1
:
''
,
value
11
:
''
,
value
2
:
''
,
value
12
:
''
value
3
:
''
};
};
}
}
};
};
...
@@ -359,9 +359,9 @@
...
@@ -359,9 +359,9 @@
```
html
```
html
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<p>
组件值:{{ value
13
}}
</p>
<p>
组件值:{{ value }}
</p>
<el-date-picker
<el-date-picker
v-model=
"value
13
"
v-model=
"value"
type=
"daterange"
type=
"daterange"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
...
@@ -374,7 +374,7 @@
...
@@ -374,7 +374,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
13
:
''
value
:
''
};
};
}
}
};
};
...
...
examples/docs/zh-CN/input-number.md
View file @
b4190041
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
:::demo 要使用它,只需要在
`el-input-number`
元素中使用
`v-model`
绑定变量即可,变量的初始值即为默认值。
:::demo 要使用它,只需要在
`el-input-number`
元素中使用
`v-model`
绑定变量即可,变量的初始值即为默认值。
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
1
"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
label=
"描述文字"
></el-input-number>
<el-input-number
v-model=
"num"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
label=
"描述文字"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
1
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
@@ -32,13 +32,13 @@
...
@@ -32,13 +32,13 @@
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
2
"
:disabled=
"true"
></el-input-number>
<el-input-number
v-model=
"num"
:disabled=
"true"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
2
:
1
num
:
1
}
}
}
}
};
};
...
@@ -54,13 +54,13 @@
...
@@ -54,13 +54,13 @@
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
3
"
:step=
"2"
></el-input-number>
<el-input-number
v-model=
"num"
:step=
"2"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
3
:
5
num
:
5
}
}
}
}
};
};
...
@@ -74,13 +74,13 @@
...
@@ -74,13 +74,13 @@
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
9
"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
:precision=
"2"
:step=
"0.1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
9
:
1
num
:
1
}
}
}
}
};
};
...
@@ -101,19 +101,19 @@
...
@@ -101,19 +101,19 @@
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
4
"
></el-input-number>
<el-input-number
v-model=
"num
1
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
5
"
></el-input-number>
<el-input-number
size=
"medium"
v-model=
"num
2
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
6
"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num
3
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
7
"
></el-input-number>
<el-input-number
size=
"mini"
v-model=
"num
4
"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
4
:
1
,
num
1
:
1
,
num
5
:
1
,
num
2
:
1
,
num
6
:
1
,
num
3
:
1
,
num
7
:
1
num
4
:
1
}
}
}
}
};
};
...
@@ -126,13 +126,13 @@
...
@@ -126,13 +126,13 @@
:::demo 设置
`controls-position`
属性可以控制按钮位置。
:::demo 设置
`controls-position`
属性可以控制按钮位置。
```
html
```
html
<template>
<template>
<el-input-number
v-model=
"num
8
"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
<el-input-number
v-model=
"num"
controls-position=
"right"
@
change=
"handleChange"
:min=
"1"
:max=
"10"
></el-input-number>
</template>
</template>
<script>
<script>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
num
8
:
1
num
:
1
};
};
},
},
methods
:
{
methods
:
{
...
...
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