@kdcloudjs/kdesign 1.8.61 → 1.8.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kdesign-complete.less +1 -0
- package/dist/kdesign.css +2 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +3 -3
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/dropdown/style/index.css +1 -0
- package/es/dropdown/style/index.less +1 -0
- package/es/tabs/tabs.js +2 -2
- package/lib/dropdown/style/index.css +1 -0
- package/lib/dropdown/style/index.less +1 -0
- package/lib/tabs/tabs.js +2 -2
- package/package.json +1 -1
package/es/tabs/tabs.js
CHANGED
|
@@ -228,7 +228,7 @@ var Tabs = function Tabs(props) {
|
|
|
228
228
|
};
|
|
229
229
|
var renderLeftArrow = function renderLeftArrow() {
|
|
230
230
|
var _context5, _classNames3;
|
|
231
|
-
if (!showScrollArrow || position === 'left' || ListWidth
|
|
231
|
+
if (!showScrollArrow || position === 'left' || ListWidth <= boxWidth || !ListWidth || !boxWidth) return null;
|
|
232
232
|
var leftClasses = classNames("".concat(tabsPrefixCls, "-left-arrows"), (_classNames3 = {}, _defineProperty(_classNames3, _concatInstanceProperty(_context5 = "".concat(tabsPrefixCls, "-left-arrows-")).call(_context5, type), type), _defineProperty(_classNames3, "".concat(tabsPrefixCls, "-left-arrows-noshadow"), ListPostion === 0), _classNames3));
|
|
233
233
|
var handleLeft = function handleLeft() {
|
|
234
234
|
if (!ListPostion) return;
|
|
@@ -245,7 +245,7 @@ var Tabs = function Tabs(props) {
|
|
|
245
245
|
};
|
|
246
246
|
var renderRightArrows = function renderRightArrows(nodes) {
|
|
247
247
|
var _context6, _context7, _classNames4, _context8;
|
|
248
|
-
if (ListWidth
|
|
248
|
+
if (ListWidth <= boxWidth || !ListWidth || !boxWidth || _includesInstanceProperty(_context6 = ['left', 'right']).call(_context6, position)) return null;
|
|
249
249
|
var rightClasses = classNames("".concat(tabsPrefixCls, "-right-arrows"), (_classNames4 = {}, _defineProperty(_classNames4, _concatInstanceProperty(_context7 = "".concat(tabsPrefixCls, "-right-arrows-")).call(_context7, type), type), _defineProperty(_classNames4, "".concat(tabsPrefixCls, "-right-arrows-noshadow"), ListWidth + ListPostion === boxWidth), _classNames4));
|
|
250
250
|
var menu = React.createElement(Dropdown.Menu, {
|
|
251
251
|
className: classNames(tabsDropdownClassName, _defineProperty({}, "".concat(tabsPrefixCls, "-right-arrows-menu"), needPanelOpration))
|
package/lib/tabs/tabs.js
CHANGED
|
@@ -244,7 +244,7 @@ var Tabs = function Tabs(props) {
|
|
|
244
244
|
};
|
|
245
245
|
var renderLeftArrow = function renderLeftArrow() {
|
|
246
246
|
var _context5, _classNames3;
|
|
247
|
-
if (!showScrollArrow || position === 'left' || ListWidth
|
|
247
|
+
if (!showScrollArrow || position === 'left' || ListWidth <= boxWidth || !ListWidth || !boxWidth) return null;
|
|
248
248
|
var leftClasses = (0, _classnames.default)("".concat(tabsPrefixCls, "-left-arrows"), (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, (0, _concat.default)(_context5 = "".concat(tabsPrefixCls, "-left-arrows-")).call(_context5, type), type), (0, _defineProperty2.default)(_classNames3, "".concat(tabsPrefixCls, "-left-arrows-noshadow"), ListPostion === 0), _classNames3));
|
|
249
249
|
var handleLeft = function handleLeft() {
|
|
250
250
|
if (!ListPostion) return;
|
|
@@ -261,7 +261,7 @@ var Tabs = function Tabs(props) {
|
|
|
261
261
|
};
|
|
262
262
|
var renderRightArrows = function renderRightArrows(nodes) {
|
|
263
263
|
var _context6, _context7, _classNames4, _context8;
|
|
264
|
-
if (ListWidth
|
|
264
|
+
if (ListWidth <= boxWidth || !ListWidth || !boxWidth || (0, _includes.default)(_context6 = ['left', 'right']).call(_context6, position)) return null;
|
|
265
265
|
var rightClasses = (0, _classnames.default)("".concat(tabsPrefixCls, "-right-arrows"), (_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context7 = "".concat(tabsPrefixCls, "-right-arrows-")).call(_context7, type), type), (0, _defineProperty2.default)(_classNames4, "".concat(tabsPrefixCls, "-right-arrows-noshadow"), ListWidth + ListPostion === boxWidth), _classNames4));
|
|
266
266
|
var menu = _react.default.createElement(_dropdown.default.Menu, {
|
|
267
267
|
className: (0, _classnames.default)(tabsDropdownClassName, (0, _defineProperty2.default)({}, "".concat(tabsPrefixCls, "-right-arrows-menu"), needPanelOpration))
|