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
de94e0c0
Commit
de94e0c0
authored
Sep 09, 2016
by
Leopoldthecoder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a slider bug
parent
08e31a3f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
CHANGELOG.md
CHANGELOG.md
+7
-1
examples/docs/slider.md
examples/docs/slider.md
+3
-3
packages/input-number/src/input-number.vue
packages/input-number/src/input-number.vue
+4
-0
packages/slider/src/main.vue
packages/slider/src/main.vue
+1
-1
No files found.
CHANGELOG.md
View file @
de94e0c0
## 更新日志
## 更新日志
### 1.0.0-rc.3
*2016-09-09*
-
修复 Slider 存在输入框时,输入框与 Slider 的值不同步的问题
### 1.0.0-rc.2
### 1.0.0-rc.2
*2016-09-0
7
*
*2016-09-0
9
*
-
修复 Upload 上传的问题,并增加上传成功和失败的钩子函数
-
修复 Upload 上传的问题,并增加上传成功和失败的钩子函数
-
Button 组件增加
`nativeType`
属性,用于组件内
`<button>`
标签的原生
`type`
属性,默认值为
`button`
-
Button 组件增加
`nativeType`
属性,用于组件内
`<button>`
标签的原生
`type`
属性,默认值为
`button`
...
...
examples/docs/slider.md
View file @
de94e0c0
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
return {
return {
value1: 0,
value1: 0,
value2: 50,
value2: 50,
value3:
null
,
value3:
0
,
value4:
null
,
value4:
0
,
value5:
null
value5:
0
};
};
}
}
}
}
...
...
packages/input-number/src/input-number.vue
View file @
de94e0c0
...
@@ -95,6 +95,10 @@
...
@@ -95,6 +95,10 @@
};
};
},
},
watch
:
{
watch
:
{
value
(
val
)
{
this
.
currentValue
=
val
;
},
currentValue
(
newVal
,
oldVal
)
{
currentValue
(
newVal
,
oldVal
)
{
if
(
!
isNaN
(
newVal
)
&&
newVal
<=
this
.
max
&&
newVal
>=
this
.
min
)
{
if
(
!
isNaN
(
newVal
)
&&
newVal
<=
this
.
max
&&
newVal
>=
this
.
min
)
{
this
.
$emit
(
'
change
'
,
newVal
);
this
.
$emit
(
'
change
'
,
newVal
);
...
...
packages/slider/src/main.vue
View file @
de94e0c0
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
watch
:
{
watch
:
{
inputValue
(
val
)
{
inputValue
(
val
)
{
this
.
$emit
(
'
input
'
,
val
);
this
.
$emit
(
'
input
'
,
Number
(
val
)
);
},
},
showTip
(
val
)
{
showTip
(
val
)
{
...
...
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