mirror of
https://github.com/wassname/slider.git
synced 2026-09-10 12:38:09 +08:00
Updates
This commit is contained in:
@@ -1 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap cf75a0f5e0782f3e9f4f"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAQ,oBAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wEAAgE,aAAa;AAC7E;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA","file":"common.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t1:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"\" + chunkId + \".\" + ({\"0\":\"simple\"}[chunkId]||chunkId) + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap cf75a0f5e0782f3e9f4f\n **/"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap 87c2aa325c87fb6de595"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAQ,oBAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wEAAgE,aAAa;AAC7E;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA","file":"common.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t1:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"\" + chunkId + \".\" + ({\"0\":\"simple\"}[chunkId]||chunkId) + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 87c2aa325c87fb6de595\n **/"],"sourceRoot":""}
|
||||
@@ -235,7 +235,7 @@
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>rc-slider@1.4.0</h1>
|
||||
<h1>rc-slider@1.4.3</h1>
|
||||
<p>slider ui component for react</p>
|
||||
</div>
|
||||
<div class="example" id="__react-content"></div>
|
||||
@@ -252,8 +252,8 @@
|
||||
<span class="hljs-built_in">console</span>.log(v);
|
||||
}
|
||||
|
||||
<span class="hljs-comment">// React.render(<Slider marks={["一","二","三","四","五"]} index={3}/>, document.getElementById('__react-content'));</span>
|
||||
<span class="hljs-comment">// React.render(<Slider className='rc-slider' step={20}/>, document.getElementById('__react-content'));</span>
|
||||
<span class="hljs-comment">// React.render(<div style={{width:400,margin:100}}><Slider marks={["一","二","三","四","五"]} defaultIndex={2} /></div>, document.getElementById('__react-content'));</span>
|
||||
<span class="hljs-comment">// React.render(<div style={{width:400,margin:100}}><Slider className='rc-slider' step={20}/></div>, document.getElementById('__react-content'));</span>
|
||||
React.render(<span class="xml"><span class="hljs-tag"><<span class="hljs-title">div</span> <span class="hljs-attribute">style</span>=<span class="hljs-value">{{width:400,margin:100}}</span>></span><span class="hljs-tag"><<span class="hljs-title">Slider</span> <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{onChange}</span>/></span><span class="hljs-tag"></<span class="hljs-title">div</span>></span>, document.getElementById('__react-content'));
|
||||
</span></code></pre></div>
|
||||
</div>
|
||||
|
||||
+92
-62
@@ -20,8 +20,8 @@ webpackJsonp([0,1],[
|
||||
console.log(v);
|
||||
}
|
||||
|
||||
// React.render(<Slider marks={["一","二","三","四","五"]} index={3}/>, document.getElementById('__react-content'));
|
||||
// React.render(<Slider className='rc-slider' step={20}/>, document.getElementById('__react-content'));
|
||||
// React.render(<div style={{width:400,margin:100}}><Slider marks={["一","二","三","四","五"]} defaultIndex={2} /></div>, document.getElementById('__react-content'));
|
||||
// React.render(<div style={{width:400,margin:100}}><Slider className='rc-slider' step={20}/></div>, document.getElementById('__react-content'));
|
||||
React.render(React.createElement(
|
||||
'div',
|
||||
{ style: { width: 400, margin: 100 } },
|
||||
@@ -42,8 +42,8 @@ webpackJsonp([0,1],[
|
||||
// Hot Module Replacement
|
||||
if(false) {
|
||||
// When the styles change, update the <style> tags
|
||||
module.hot.accept("!!/Users/yiminghe/code/react-components/slider/node_modules/rc-tools/node_modules/css-loader/index.js?sourceMap!/Users/yiminghe/code/react-components/slider/node_modules/rc-tools/node_modules/less-loader/index.js?sourceMap!/Users/yiminghe/code/react-components/slider/assets/index.less", function() {
|
||||
var newContent = require("!!/Users/yiminghe/code/react-components/slider/node_modules/rc-tools/node_modules/css-loader/index.js?sourceMap!/Users/yiminghe/code/react-components/slider/node_modules/rc-tools/node_modules/less-loader/index.js?sourceMap!/Users/yiminghe/code/react-components/slider/assets/index.less");
|
||||
module.hot.accept("!!/Users/weixingzhang/temp/slider/node_modules/rc-tools/node_modules/css-loader/index.js?sourceMap!/Users/weixingzhang/temp/slider/node_modules/rc-tools/node_modules/less-loader/index.js?sourceMap!/Users/weixingzhang/temp/slider/assets/index.less", function() {
|
||||
var newContent = require("!!/Users/weixingzhang/temp/slider/node_modules/rc-tools/node_modules/css-loader/index.js?sourceMap!/Users/weixingzhang/temp/slider/node_modules/rc-tools/node_modules/less-loader/index.js?sourceMap!/Users/weixingzhang/temp/slider/assets/index.less");
|
||||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||||
update(newContent);
|
||||
});
|
||||
@@ -353,7 +353,7 @@ webpackJsonp([0,1],[
|
||||
}
|
||||
if (marksLen > 0) {
|
||||
value = (props.max - props.min) / (marksLen - 1) * index;
|
||||
value = value.toFixed(5);
|
||||
value = value.toFixed(5) / 1;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
@@ -434,7 +434,7 @@ webpackJsonp([0,1],[
|
||||
},
|
||||
|
||||
onMouseMove: function onMouseMove(e) {
|
||||
var position = e.pageX;
|
||||
var position = e.pageX || e.clientX + document.documentElement.scrollLeft; // to compat ie8
|
||||
this.onMove(e, position);
|
||||
},
|
||||
|
||||
@@ -484,7 +484,7 @@ webpackJsonp([0,1],[
|
||||
},
|
||||
|
||||
onSliderMouseDown: function onSliderMouseDown(e) {
|
||||
var position = e.pageX;
|
||||
var position = e.pageX || e.clientX + document.documentElement.scrollLeft; // to compat ie8
|
||||
var value = this._calValueByPos(position);
|
||||
this._triggerEvents('onChange', value);
|
||||
this._start(position);
|
||||
@@ -621,6 +621,7 @@ webpackJsonp([0,1],[
|
||||
tooltipVisible = true;
|
||||
} else {
|
||||
events = {
|
||||
onClick: this.showTooltip.bind(this, true),
|
||||
onMouseEnter: this.showTooltip.bind(this, true),
|
||||
onMouseLeave: this.showTooltip.bind(this, false)
|
||||
};
|
||||
@@ -2180,7 +2181,7 @@ webpackJsonp([0,1],[
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
var _react = __webpack_require__(9);
|
||||
|
||||
@@ -2223,25 +2224,16 @@ webpackJsonp([0,1],[
|
||||
_createClass(Align, [{
|
||||
key: 'componentDidMount',
|
||||
value: function componentDidMount() {
|
||||
var _this = this;
|
||||
|
||||
var props = this.props;
|
||||
// parent ref not attached ....
|
||||
// if parent ref not attached .... use document.getElementById
|
||||
if (!props.disabled) {
|
||||
this.hackRefTimer = setTimeout(function () {
|
||||
var source = _react2['default'].findDOMNode(_this);
|
||||
props.onAlign(source, (0, _domAlign2['default'])(source, props.target(), props.align));
|
||||
}, 0);
|
||||
var source = _react2['default'].findDOMNode(this);
|
||||
props.onAlign(source, (0, _domAlign2['default'])(source, props.target(), props.align));
|
||||
if (props.monitorWindowResize) {
|
||||
this.startMonitorWindowResize();
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'componentWillReceiveProps',
|
||||
value: function componentWillReceiveProps() {
|
||||
this.clearHackRefTimer();
|
||||
}
|
||||
}, {
|
||||
key: 'startMonitorWindowResize',
|
||||
value: function startMonitorWindowResize() {
|
||||
@@ -2257,14 +2249,6 @@ webpackJsonp([0,1],[
|
||||
this.resizeHandler = null;
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'clearHackRefTimer',
|
||||
value: function clearHackRefTimer() {
|
||||
if (this.hackRefTimer) {
|
||||
clearTimeout(this.hackRefTimer);
|
||||
this.hackRefTimer = null;
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'handleWindowResize',
|
||||
value: function handleWindowResize() {
|
||||
@@ -2278,38 +2262,33 @@ webpackJsonp([0,1],[
|
||||
key: 'componentWillUnmount',
|
||||
value: function componentWillUnmount() {
|
||||
this.stopMonitorWindowResize();
|
||||
this.clearHackRefTimer();
|
||||
}
|
||||
}, {
|
||||
key: 'componentDidUpdate',
|
||||
value: function componentDidUpdate(prevProps) {
|
||||
var _this2 = this;
|
||||
|
||||
var reAlign = false;
|
||||
var props = this.props;
|
||||
var currentTarget;
|
||||
|
||||
this.hackRefTimer = setTimeout(function () {
|
||||
if (!props.disabled) {
|
||||
if (prevProps.disabled || prevProps.align !== props.align) {
|
||||
if (!props.disabled) {
|
||||
if (prevProps.disabled || prevProps.align !== props.align) {
|
||||
reAlign = true;
|
||||
currentTarget = props.target();
|
||||
} else {
|
||||
var lastTarget = prevProps.target();
|
||||
currentTarget = props.target();
|
||||
if (isWindow(lastTarget) && isWindow(currentTarget)) {
|
||||
reAlign = false;
|
||||
} else if (lastTarget !== currentTarget) {
|
||||
reAlign = true;
|
||||
currentTarget = props.target();
|
||||
} else {
|
||||
var lastTarget = prevProps.target();
|
||||
currentTarget = props.target();
|
||||
if (isWindow(lastTarget) && isWindow(currentTarget)) {
|
||||
reAlign = false;
|
||||
} else if (lastTarget !== currentTarget) {
|
||||
reAlign = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (reAlign) {
|
||||
var source = _react2['default'].findDOMNode(_this2);
|
||||
props.onAlign(source, (0, _domAlign2['default'])(source, currentTarget, props.align));
|
||||
}
|
||||
}, 0);
|
||||
if (reAlign) {
|
||||
var source = _react2['default'].findDOMNode(this);
|
||||
props.onAlign(source, (0, _domAlign2['default'])(source, currentTarget, props.align));
|
||||
}
|
||||
|
||||
if (props.monitorWindowResize && !props.disabled) {
|
||||
this.startMonitorWindowResize();
|
||||
@@ -3618,6 +3597,42 @@ webpackJsonp([0,1],[
|
||||
|
||||
var Event = __webpack_require__(35);
|
||||
var Css = __webpack_require__(36);
|
||||
var isCssAnimationSupported = Event.endEvents.length !== 0;
|
||||
|
||||
function getDuration(node, name) {
|
||||
var style = window.getComputedStyle(node);
|
||||
var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
|
||||
var ret = '';
|
||||
for (var i = 0; i < prefixes.length; i++) {
|
||||
ret = style.getPropertyValue(prefixes[i] + name);
|
||||
if (ret) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
function fixBrowserByTimeout(node) {
|
||||
if (isCssAnimationSupported) {
|
||||
var transitionDuration = parseFloat(getDuration(node, 'transition-duration')) || 0;
|
||||
var animationDuration = parseFloat(getDuration(node, 'animation-duration')) || 0;
|
||||
var time = Math.max(transitionDuration, animationDuration);
|
||||
// sometimes, browser bug
|
||||
node.rcEndAnimTimeout = setTimeout(function () {
|
||||
node.rcEndAnimTimeout = null;
|
||||
if (node.rcEndListener) {
|
||||
node.rcEndListener();
|
||||
}
|
||||
}, time * 1000 + 200);
|
||||
}
|
||||
}
|
||||
|
||||
function clearBrowserBugTimeout(node) {
|
||||
if (node.rcEndAnimTimeout) {
|
||||
clearTimeout(node.rcEndAnimTimeout);
|
||||
node.rcEndAnimTimeout = null;
|
||||
}
|
||||
}
|
||||
|
||||
var cssAnimation = function cssAnimation(node, transitionName, callback) {
|
||||
var className = transitionName;
|
||||
@@ -3637,6 +3652,8 @@ webpackJsonp([0,1],[
|
||||
node.rcAnimTimeout = null;
|
||||
}
|
||||
|
||||
clearBrowserBugTimeout(node);
|
||||
|
||||
Css.removeClass(node, className);
|
||||
Css.removeClass(node, activeClassName);
|
||||
|
||||
@@ -3655,8 +3672,9 @@ webpackJsonp([0,1],[
|
||||
Css.addClass(node, className);
|
||||
|
||||
node.rcAnimTimeout = setTimeout(function () {
|
||||
Css.addClass(node, activeClassName);
|
||||
node.rcAnimTimeout = null;
|
||||
Css.addClass(node, activeClassName);
|
||||
fixBrowserByTimeout(node);
|
||||
}, 0);
|
||||
|
||||
return {
|
||||
@@ -3683,6 +3701,8 @@ webpackJsonp([0,1],[
|
||||
node.rcAnimTimeout = null;
|
||||
}
|
||||
|
||||
clearBrowserBugTimeout(node);
|
||||
|
||||
Event.removeEndEventListener(node, node.rcEndListener);
|
||||
node.rcEndListener = null;
|
||||
|
||||
@@ -3697,13 +3717,22 @@ webpackJsonp([0,1],[
|
||||
|
||||
node.rcAnimTimeout = setTimeout(function () {
|
||||
for (var s in style) {
|
||||
node.style[s] = style[s];
|
||||
if (style.hasOwnProperty(s)) {
|
||||
node.style[s] = style[s];
|
||||
}
|
||||
}
|
||||
node.rcAnimTimeout = null;
|
||||
fixBrowserByTimeout(node);
|
||||
}, 0);
|
||||
};
|
||||
|
||||
cssAnimation.setTransition = function (node, property, v) {
|
||||
cssAnimation.setTransition = function (node, p, value) {
|
||||
var property = p;
|
||||
var v = value;
|
||||
if (value === undefined) {
|
||||
v = property;
|
||||
property = '';
|
||||
}
|
||||
property = property || '';
|
||||
['Webkit', 'Moz', 'O',
|
||||
// ms is special .... !
|
||||
@@ -3714,7 +3743,7 @@ webpackJsonp([0,1],[
|
||||
|
||||
cssAnimation.addClass = Css.addClass;
|
||||
cssAnimation.removeClass = Css.removeClass;
|
||||
cssAnimation.isCssAnimationSupported = Event.endEvents.length !== 0;
|
||||
cssAnimation.isCssAnimationSupported = isCssAnimationSupported;
|
||||
|
||||
module.exports = cssAnimation;
|
||||
|
||||
@@ -3722,7 +3751,6 @@ webpackJsonp([0,1],[
|
||||
/* 35 */
|
||||
/***/ function(module, exports) {
|
||||
|
||||
|
||||
'use strict';
|
||||
|
||||
var EVENT_NAME_MAP = {
|
||||
@@ -3758,11 +3786,13 @@ webpackJsonp([0,1],[
|
||||
}
|
||||
|
||||
for (var baseEventName in EVENT_NAME_MAP) {
|
||||
var baseEvents = EVENT_NAME_MAP[baseEventName];
|
||||
for (var styleName in baseEvents) {
|
||||
if (styleName in style) {
|
||||
endEvents.push(baseEvents[styleName]);
|
||||
break;
|
||||
if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {
|
||||
var baseEvents = EVENT_NAME_MAP[baseEventName];
|
||||
for (var styleName in baseEvents) {
|
||||
if (styleName in style) {
|
||||
endEvents.push(baseEvents[styleName]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3814,19 +3844,19 @@ webpackJsonp([0,1],[
|
||||
var SPACE = ' ';
|
||||
var RE_CLASS = /[\n\t\r]/g;
|
||||
|
||||
var norm = function norm(elemClass) {
|
||||
function norm(elemClass) {
|
||||
return (SPACE + elemClass + SPACE).replace(RE_CLASS, SPACE);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
addClass: function addClass(elem, className) {
|
||||
elem.className += ' ' + className;
|
||||
},
|
||||
|
||||
removeClass: function removeClass(elem, needle) {
|
||||
removeClass: function removeClass(elem, n) {
|
||||
var elemClass = elem.className.trim();
|
||||
var className = norm(elemClass);
|
||||
needle = needle.trim();
|
||||
var needle = n.trim();
|
||||
needle = SPACE + needle + SPACE;
|
||||
// 一个 cls 有可能多次出现:'link link2 link link3 link'
|
||||
while (className.indexOf(needle) >= 0) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
+4
-6
@@ -7,14 +7,14 @@
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css" rel="stylesheet"/>
|
||||
<title>rc-slider@1.4.0 - slider ui component for react</title>
|
||||
<title>rc-slider@1.4.3 - slider ui component for react</title>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: octicons-anchor;
|
||||
src: url(data:font/woff;charset=utf-8;base64,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) format('woff');
|
||||
}
|
||||
|
||||
.markdown-body, .examples {
|
||||
.markdown-body, .examples, #readme {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
text-size-adjust: 100%;
|
||||
@@ -737,11 +737,10 @@
|
||||
|
||||
<body>
|
||||
<div class="header">
|
||||
<h1>rc-slider@1.4.0</h1>
|
||||
<h1>rc-slider@1.4.3</h1>
|
||||
</div>
|
||||
<div class="examples">
|
||||
<h3>EXAMPLES</h3>
|
||||
|
||||
<div class="examples-body">
|
||||
<ul>
|
||||
|
||||
@@ -751,8 +750,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="readme" class="boxed-group">
|
||||
<h3>readme.md</h3>
|
||||
|
||||
<h3>README.md</h3>
|
||||
<div class="markdown-body">
|
||||
<h1>rc-slider<a id="user-content-rc-slider" name="rc-slider" class="anchor" aria-hidden="true" href="#rc-slider"><span class="octicon octicon-link"></span></a></h1><hr>
|
||||
<p>slider ui component for react</p>
|
||||
|
||||
Reference in New Issue
Block a user