@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.
@@ -282,6 +282,7 @@
282
282
  display: -webkit-box;
283
283
  display: -ms-flexbox;
284
284
  display: flex;
285
+ min-width: auto;
285
286
  }
286
287
  .kd-dropdown-mobile .kd-dropdown-menu {
287
288
  -webkit-box-flex: 1;
@@ -127,6 +127,7 @@
127
127
  .@{dropdown-prefix-cls}-mobile {
128
128
  max-width: 100vw;
129
129
  display: flex;
130
+ min-width: auto;
130
131
  .@{dropdown-prefix-cls}-menu {
131
132
  flex: 1;
132
133
  .@{dropdown-prefix-cls}-menu-item {
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 < boxWidth || !ListWidth || !boxWidth) return null;
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 < boxWidth || !ListWidth || !boxWidth || _includesInstanceProperty(_context6 = ['left', 'right']).call(_context6, position)) return null;
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))
@@ -282,6 +282,7 @@
282
282
  display: -webkit-box;
283
283
  display: -ms-flexbox;
284
284
  display: flex;
285
+ min-width: auto;
285
286
  }
286
287
  .kd-dropdown-mobile .kd-dropdown-menu {
287
288
  -webkit-box-flex: 1;
@@ -127,6 +127,7 @@
127
127
  .@{dropdown-prefix-cls}-mobile {
128
128
  max-width: 100vw;
129
129
  display: flex;
130
+ min-width: auto;
130
131
  .@{dropdown-prefix-cls}-menu {
131
132
  flex: 1;
132
133
  .@{dropdown-prefix-cls}-menu-item {
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 < boxWidth || !ListWidth || !boxWidth) return null;
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 < boxWidth || !ListWidth || !boxWidth || (0, _includes.default)(_context6 = ['left', 'right']).call(_context6, position)) return null;
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))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.61",
3
+ "version": "1.8.62",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [