mirror of
https://github.com/wassname/slider.git
synced 2026-09-11 12:42:49 +08:00
Updates
This commit is contained in:
+5
-2
@@ -20150,7 +20150,7 @@
|
||||
var lowerOffset = this.calcOffset(lowerBound);
|
||||
|
||||
var handleClassName = prefixCls + '-handle';
|
||||
var isNoTip = step === null && !tipFormatter;
|
||||
var isNoTip = step === null || tipFormatter === null;
|
||||
|
||||
var upper = _react2['default'].createElement(_Handle2['default'], { className: handleClassName,
|
||||
noTip: isNoTip, tipTransitionName: tipTransitionName, tipFormatter: tipFormatter,
|
||||
@@ -20221,6 +20221,9 @@
|
||||
onBeforeChange: noop,
|
||||
onChange: noop,
|
||||
onAfterChange: noop,
|
||||
tipFormatter: function tipFormatter(value) {
|
||||
return value;
|
||||
},
|
||||
included: true,
|
||||
disabled: false,
|
||||
dots: false,
|
||||
@@ -22394,7 +22397,7 @@
|
||||
overlay: _react2['default'].createElement(
|
||||
'span',
|
||||
null,
|
||||
tipFormatter ? tipFormatter(value) : value
|
||||
tipFormatter(value)
|
||||
),
|
||||
delay: 0,
|
||||
transitionName: tipTransitionName },
|
||||
|
||||
File diff suppressed because one or more lines are too long
+2
-2
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>marks.js - example - rc-slider@3.2.0</title>
|
||||
<title>marks.js - example - rc-slider@3.3.0</title>
|
||||
<meta name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||
<meta charset="utf-8"/>
|
||||
@@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>rc-slider@3.2.0</h1>
|
||||
<h1>rc-slider@3.3.0</h1>
|
||||
|
||||
<p>slider ui component for react</p>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>range.js - example - rc-slider@3.2.0</title>
|
||||
<title>range.js - example - rc-slider@3.3.0</title>
|
||||
<meta name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||
<meta charset="utf-8"/>
|
||||
@@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>rc-slider@3.2.0</h1>
|
||||
<h1>rc-slider@3.3.0</h1>
|
||||
|
||||
<p>slider ui component for react</p>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>slider.js - example - rc-slider@3.2.0</title>
|
||||
<title>slider.js - example - rc-slider@3.3.0</title>
|
||||
<meta name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||
<meta charset="utf-8"/>
|
||||
@@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>rc-slider@3.2.0</h1>
|
||||
<h1>rc-slider@3.3.0</h1>
|
||||
|
||||
<p>slider ui component for react</p>
|
||||
</div>
|
||||
@@ -352,6 +352,10 @@ ReactDOM.render(
|
||||
<span class="hljs-tag"><<span class="hljs-title">p</span>></span>Basic Slider with `tipFormatter`<span class="hljs-tag"></<span class="hljs-title">p</span>></span>
|
||||
<span class="hljs-tag"><<span class="hljs-title">Slider</span> <span class="hljs-attribute">tipFormatter</span>=<span class="hljs-value">{percentFormatter}</span> <span class="hljs-attribute">tipTransitionName</span>=<span class="hljs-value">"rc-slider-tooltip-zoom-down"</span> <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{log}</span> /></span>
|
||||
<span class="hljs-tag"></<span class="hljs-title">div</span>></span>
|
||||
<span class="hljs-tag"><<span class="hljs-title">div</span> <span class="hljs-attribute">style</span>=<span class="hljs-value">{style}</span>></span>
|
||||
<span class="hljs-tag"><<span class="hljs-title">p</span>></span>Basic Slider without tooltip<span class="hljs-tag"></<span class="hljs-title">p</span>></span>
|
||||
<span class="hljs-tag"><<span class="hljs-title">Slider</span> <span class="hljs-attribute">tipFormatter</span>=<span class="hljs-value">{null}</span> <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{log}</span> /></span>
|
||||
<span class="hljs-tag"></<span class="hljs-title">div</span>></span>
|
||||
<span class="hljs-tag"><<span class="hljs-title">div</span> <span class="hljs-attribute">style</span>=<span class="hljs-value">{style}</span>></span>
|
||||
<span class="hljs-tag"><<span class="hljs-title">p</span>></span>Controlled Slider<span class="hljs-tag"></<span class="hljs-title">p</span>></span>
|
||||
<span class="hljs-tag"><<span class="hljs-title">Slider</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">{50}</span> /></span>
|
||||
|
||||
@@ -138,6 +138,16 @@ webpackJsonp([2],{
|
||||
),
|
||||
React.createElement(Slider, { tipFormatter: percentFormatter, tipTransitionName: 'rc-slider-tooltip-zoom-down', onChange: log })
|
||||
),
|
||||
React.createElement(
|
||||
'div',
|
||||
{ style: style },
|
||||
React.createElement(
|
||||
'p',
|
||||
null,
|
||||
'Basic Slider without tooltip'
|
||||
),
|
||||
React.createElement(Slider, { tipFormatter: null, onChange: log })
|
||||
),
|
||||
React.createElement(
|
||||
'div',
|
||||
{ style: style },
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user