Paul Taylor
6074d5fc43
fix: Account for position difference between handle and event origin when dragging ( #146 )
...
* Adjust handle drag position to account for the difference between handle origin and mouse or touch event origin.
* Add slider dragOffset tests.
2016-10-14 15:07:51 +08:00
Benjy Cui
fac5a1b9f3
bump 5.1.1
2016-09-12 11:33:18 +08:00
Benjy Cui
e438757a64
feat: support tooltipPrefixcls
2016-09-12 11:26:48 +08:00
Ulrich-Matthias Schäfer
1568019a59
fix: onChange which fired on every mousmove, added test ( #145 )
2016-09-12 10:54:16 +08:00
Dylan Kirkby
abdb297c16
chore: Add warning when range isn't a multiple of the step ( #142 )
2016-09-12 10:53:15 +08:00
Benjy Cui
b6d8f389ef
fix: should limit CSS scope, close : #147
2016-09-10 16:52:38 +08:00
Benjy Cui
67a33126ec
style: update code style to please lint
2016-08-16 09:59:14 +08:00
Derrick Pelletier
1a8331bcf1
refactor: Removed z-indexes #135 ( #136 )
2016-08-16 09:32:21 +08:00
Benjy Cui
bc2da18f46
style: update code style
2016-08-12 15:40:06 +08:00
Hagai Akibayov
4b2f6f27a4
feat: Add multi-range support ( #133 )
2016-08-12 15:07:48 +08:00
Benjy Cui
d05761f396
fix: should pass prefixCls to Tooltip correctly, close : #123
2016-07-25 14:09:05 +08:00
miskreant
b2ae1bc0fc
feat: identify upper/lower range handles ( #118 )
...
Extend the handle classNames, and provide props so that
upper/lower handles are easily distinguishable in CSS & React.
* Use classNames() instead of string concatenation
2016-07-20 09:34:49 +08:00
Benjy Cui
e2504d99fe
fix: should calc cloest point correctly, close : #116
2016-07-11 09:53:38 +08:00
Aaron Lampros
a678437462
fix: import dom util directly, close : #108 . ( #110 )
2016-06-22 09:20:57 +08:00
Jordan Stephens
ff9e68cd36
ignore right button on mousedown ( #107 )
...
fix: should ignore right button on mousedown
2016-06-12 09:16:24 +08:00
Marco Botto
0b4b546e03
changed API to from to
2016-05-30 12:08:52 +02:00
Marco Botto
bc3883304d
allow to pass custom handle components
2016-05-16 17:38:56 +02:00
Benjy Cui
e4396ae4bd
refactor: simplify code
2016-04-27 17:48:17 +08:00
Benjy Cui
37b7f508da
fix: use the latest step, close : #96
2016-04-27 14:29:45 +08:00
Benjy Cui
ecbb253986
fix: set recent default value correctly, close : #97
2016-04-27 14:17:32 +08:00
Benjy Cui
0b1a421a71
chore: add warning for invalid usage, close : #91
2016-04-27 12:07:20 +08:00
叶言
ffdd062074
fix: some diffs
...
- update to 3.6.0 (refs:https://github.com/react-component/slider/pull/85#discussion-diff-58325891 )
- change `.rc-slider-vertical` to `.{prefixClass}-vertical` (refs:https://github.com/react-component/slider/pull/85#discussion-diff-58325944 )
- put all the slider & Range in one row (refs:https://github.com/react-component/slider/pull/85#discussion-diff-58326190 )
2016-04-09 13:04:52 +08:00
叶言
3b03957a54
feat: vertical slider
...
- add `vertical` props
- add vertical slider demo: v-marks.html v-range.html v-slider.html
refs:https://github.com/react-component/slider/issues/18
2016-04-01 16:40:36 +08:00
Benjy Cui
68d3efc7da
deps: remove object-assign
2016-03-23 10:54:54 +08:00
Benjy Cui
73b9953084
refactor: update Marks style algorithm
2016-03-22 17:21:50 +08:00
Benjy Cui
6a5573b6ca
feat: support React.Component in marks
2016-03-22 16:53:38 +08:00
Benjy Cui
e030ba9f9d
refactor: rename Dots to Steps
2016-03-22 16:27:50 +08:00
Benjy Cui
d6e81a692c
feat: support set style of specific mark point
2016-03-17 09:45:55 +08:00
Andrey Kalinichenko
613a2ae213
put marks in correct order so one can style it
2016-02-02 11:35:10 +01:00
yiminghe
2cb0dbce6f
fix: work with rc-form
2016-01-30 18:52:12 +08:00
Benjy Cui
f3c1d4bd3d
fix: the key of dots should be unique #64
2015-12-21 09:57:30 +08:00
Benjy Cui
079469b765
refactor: the default value of tipFormatter
2015-12-18 10:10:52 +08:00
Frank Weindel
4c57f3ecca
Refactor isNoTip expression
2015-12-17 10:49:29 -05:00
Frank Weindel
39de81dfa9
If tipFormatter is null, don't show the tip
2015-12-16 16:38:15 -05:00
Benjy Cui
15f568283c
fix: crash when rerender #57
2015-12-15 11:32:41 +08:00
Benjy Cui
395fa6c201
feat: add allowCross property #56
2015-12-12 08:45:28 +08:00
Benjy Cui
555f5a0660
fix: value should be aligned if min max changed
2015-12-06 09:21:17 +08:00
Benjy Cui
1262a78638
deps: replace rcUtil.classSet with classNames
2015-12-02 11:30:34 +08:00
Benjy Cui
ee0dd09a4f
fix: support decimal step
2015-11-23 16:00:21 +08:00
Benjy Cui
a5de9b0dbc
Merge pull request #48 from react-component/improve-performance
...
refactor: improve performance
2015-11-23 15:37:13 +08:00
just-boris
f339db494b
reduce gaps between marks
2015-11-23 00:17:29 +03:00
Benjy Cui
10244cf01b
refactor: improve the performance of Slider
2015-11-22 10:29:41 +08:00
Benjy Cui
0a23a67f31
feat: allow user set step to null to make marks as steps
2015-11-19 11:42:04 +08:00
Benjy Cui
a7c2319949
fix: the key of marks could be negative
2015-11-18 18:27:37 +08:00
Benjy Cui
1546546040
refactor: remove useless code
2015-11-18 14:32:56 +08:00
Benjy Cui
7680347dfe
feat: remove index/defaultIndex
2015-11-18 14:32:56 +08:00
Benjy Cui
e2530ad2bf
feat: Slider with marks should pass value(not index) to event handles
2015-11-18 14:32:56 +08:00
Benjy Cui
0566e7f098
fix: should trigger event after the value is changed
2015-11-18 14:32:56 +08:00
Benjy Cui
1e430ba694
fix: if there is no marks, step=1 should work
2015-11-18 14:32:56 +08:00
Benjy Cui
f29894e690
chore: update tooltip className
2015-11-18 14:32:56 +08:00