@kdcloudjs/kdesign 1.7.20 → 1.7.22

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/kdesign-complete.less +12 -4
  3. package/dist/kdesign.css +13 -5
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +363 -268
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/reactNode.d.ts +1 -0
  11. package/es/_utils/reactNode.js +3 -0
  12. package/es/checkbox/group.js +1 -1
  13. package/es/collapse/style/index.css +3 -0
  14. package/es/collapse/style/index.less +3 -0
  15. package/es/config-provider/compDefaultProps.d.ts +2 -0
  16. package/es/config-provider/compDefaultProps.js +3 -1
  17. package/es/dropdown/dropdown.js +4 -3
  18. package/es/input/input.js +21 -3
  19. package/es/input-number/inputNumber.js +6 -0
  20. package/es/menu/menu.js +27 -18
  21. package/es/menu/style/index.css +3 -0
  22. package/es/menu/style/mixin.less +1 -0
  23. package/es/select/select.js +42 -18
  24. package/es/timeline/TimelineItem.js +2 -1
  25. package/es/timeline/style/index.css +2 -3
  26. package/es/timeline/style/index.less +2 -3
  27. package/es/tooltip/tooltip.js +3 -2
  28. package/es/tree/tree.js +68 -57
  29. package/es/tree/treeNode.js +1 -6
  30. package/es/tree-select/interface.d.ts +1 -0
  31. package/es/tree-select/style/index.css +4 -1
  32. package/es/tree-select/style/index.less +5 -1
  33. package/es/tree-select/style/token.less +1 -0
  34. package/es/tree-select/tree-select.js +18 -4
  35. package/es/virtual-list/Filler.d.ts +1 -0
  36. package/es/virtual-list/Filler.js +4 -3
  37. package/es/virtual-list/virtual-list.d.ts +1 -0
  38. package/es/virtual-list/virtual-list.js +5 -3
  39. package/lib/_utils/reactNode.d.ts +1 -0
  40. package/lib/_utils/reactNode.js +4 -0
  41. package/lib/checkbox/group.js +1 -1
  42. package/lib/collapse/style/index.css +3 -0
  43. package/lib/collapse/style/index.less +3 -0
  44. package/lib/config-provider/compDefaultProps.d.ts +2 -0
  45. package/lib/config-provider/compDefaultProps.js +3 -1
  46. package/lib/dropdown/dropdown.js +4 -3
  47. package/lib/input/input.js +20 -2
  48. package/lib/input-number/inputNumber.js +6 -0
  49. package/lib/menu/menu.js +26 -17
  50. package/lib/menu/style/index.css +3 -0
  51. package/lib/menu/style/mixin.less +1 -0
  52. package/lib/select/select.js +41 -17
  53. package/lib/timeline/TimelineItem.js +2 -1
  54. package/lib/timeline/style/index.css +2 -3
  55. package/lib/timeline/style/index.less +2 -3
  56. package/lib/tooltip/tooltip.js +3 -2
  57. package/lib/tree/tree.js +67 -56
  58. package/lib/tree/treeNode.js +1 -6
  59. package/lib/tree-select/interface.d.ts +1 -0
  60. package/lib/tree-select/style/index.css +4 -1
  61. package/lib/tree-select/style/index.less +5 -1
  62. package/lib/tree-select/style/token.less +1 -0
  63. package/lib/tree-select/tree-select.js +20 -6
  64. package/lib/virtual-list/Filler.d.ts +1 -0
  65. package/lib/virtual-list/Filler.js +4 -3
  66. package/lib/virtual-list/virtual-list.d.ts +1 -0
  67. package/lib/virtual-list/virtual-list.js +5 -3
  68. package/package.json +1 -1
@@ -88,7 +88,7 @@ var VirtualList = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
88
88
  _props$wrapper = props.wrapper,
89
89
  WrapperTagName = _props$wrapper === void 0 ? 'div' : _props$wrapper,
90
90
  _props$height = props.height,
91
- propHeight = _props$height === void 0 ? 300 : _props$height,
91
+ propHeight = _props$height === void 0 ? '100%' : _props$height,
92
92
  _props$isStaticItemHe = props.isStaticItemHeight,
93
93
  isStaticItemHeight = _props$isStaticItemHe === void 0 ? true : _props$isStaticItemHe,
94
94
  propItemHeight = props.itemHeight,
@@ -98,7 +98,8 @@ var VirtualList = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
98
98
  _props$needFiller = props.needFiller,
99
99
  needFiller = _props$needFiller === void 0 ? true : _props$needFiller,
100
100
  outerStyle = props.outerStyle,
101
- restProps = __rest(props, ["style", "className", "children", "data", "itemKey", "threshold", "wrapper", "height", "isStaticItemHeight", "itemHeight", "measureLongestItem", "scrollOptions", "onScroll", "needFiller", "outerStyle"]);
101
+ innerStyle = props.innerStyle,
102
+ restProps = __rest(props, ["style", "className", "children", "data", "itemKey", "threshold", "wrapper", "height", "isStaticItemHeight", "itemHeight", "measureLongestItem", "scrollOptions", "onScroll", "needFiller", "outerStyle", "innerStyle"]);
102
103
  var styleListMaxHeight = style && style.maxHeight || propHeight;
103
104
  var refItemHeightMap = (0, _react.useRef)({});
104
105
  var _useState = (0, _react.useState)(200),
@@ -521,7 +522,8 @@ var VirtualList = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
521
522
  }, restProps), isVirtual ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Filler.default, {
522
523
  height: itemTotalHeight,
523
524
  offset: state.status === 'MEASURE_DONE' ? state.startItemTop : 0,
524
- outerStyle: outerStyle
525
+ outerStyle: outerStyle,
526
+ innerStyle: innerStyle
525
527
  }, renderChildren((0, _slice.default)(data).call(data, state.startIndex, state.endIndex + 1), state.startIndex)), renderLongestItem()) : needFiller ? /*#__PURE__*/_react.default.createElement(_Filler.default, {
526
528
  height: viewportHeight
527
529
  }, renderChildren(data, 0)) : renderChildren(data, 0)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.20",
3
+ "version": "1.7.22",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [