@kdcloudjs/kdesign 1.7.33-stable.2 → 1.7.33-stable.4

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 (38) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/kdesign-complete.less +18 -16
  3. package/dist/kdesign.css +8 -9
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +730 -199
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +5 -5
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/checkbox/checkbox.js +7 -7
  11. package/es/checkbox/style/index.css +0 -4
  12. package/es/checkbox/style/index.less +0 -4
  13. package/es/input/TextArea.js +16 -8
  14. package/es/input/style/index.css +3 -0
  15. package/es/input/style/index.less +9 -5
  16. package/es/select/select.js +1 -1
  17. package/es/select/style/index.css +4 -4
  18. package/es/select/style/index.less +9 -7
  19. package/es/table/feature/useRowDrag.d.ts +3 -0
  20. package/es/table/feature/useRowDrag.js +10 -0
  21. package/es/table/interface.d.ts +3 -1
  22. package/es/table/table.js +4 -1
  23. package/es/tree-select/tree-select.js +2 -2
  24. package/lib/checkbox/checkbox.js +7 -7
  25. package/lib/checkbox/style/index.css +0 -4
  26. package/lib/checkbox/style/index.less +0 -4
  27. package/lib/input/TextArea.js +16 -8
  28. package/lib/input/style/index.css +3 -0
  29. package/lib/input/style/index.less +9 -5
  30. package/lib/select/select.js +1 -1
  31. package/lib/select/style/index.css +4 -4
  32. package/lib/select/style/index.less +9 -7
  33. package/lib/table/feature/useRowDrag.d.ts +3 -0
  34. package/lib/table/feature/useRowDrag.js +18 -0
  35. package/lib/table/interface.d.ts +3 -1
  36. package/lib/table/table.js +4 -1
  37. package/lib/tree-select/tree-select.js +4 -4
  38. package/package.json +2 -2
@@ -20,7 +20,7 @@ import isBoolean from 'lodash/isBoolean';
20
20
  import Icon from '../icon';
21
21
  import devWarning from '../_utils/devwarning';
22
22
  var InternalCheckbox = function InternalCheckbox(props, ref) {
23
- var _context, _context2, _context3, _classNames, _context4, _context5, _context6, _context7, _classNames2, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _classNames4, _context16, _context17, _context18, _classNames5, _context19;
23
+ var _context, _context2, _context3, _classNames, _context4, _context5, _context6, _context7, _classNames2, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _classNames4, _context15, _context16, _context17, _classNames5, _context18;
24
24
  var _useContext = useContext(ConfigContext),
25
25
  getPrefixCls = _useContext.getPrefixCls,
26
26
  prefixCls = _useContext.prefixCls,
@@ -67,9 +67,9 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
67
67
  var getSquareClassName = classNames(className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(checkboxPrefixCls), true), _defineProperty(_classNames2, _concatInstanceProperty(_context4 = "".concat(checkboxPrefixCls, "-")).call(_context4, mergedCheckboxType), true), _defineProperty(_classNames2, _concatInstanceProperty(_context5 = "".concat(checkboxPrefixCls, "-")).call(_context5, mergedSize), !!children), _defineProperty(_classNames2, _concatInstanceProperty(_context6 = "".concat(checkboxPrefixCls, "-")).call(_context6, mergedCheckboxType, "-disabled"), mergedDisabled), _defineProperty(_classNames2, _concatInstanceProperty(_context7 = "".concat(checkboxPrefixCls, "-")).call(_context7, mergedCheckboxType, "-checked"), selected && !mergedDisabled), _defineProperty(_classNames2, "checked", selected), _classNames2));
68
68
  var getRootClassName = isDefaultType() ? getDefaultClassName : getSquareClassName;
69
69
  var inputClassName = classNames(_defineProperty({}, "".concat(checkboxPrefixCls, "-input"), true));
70
- var checkedWrapperClassName = classNames((_classNames4 = {}, _defineProperty(_classNames4, _concatInstanceProperty(_context8 = "".concat(checkboxPrefixCls, "-")).call(_context8, mergedCheckboxType, "-no-child"), !children), _defineProperty(_classNames4, _concatInstanceProperty(_context9 = "".concat(checkboxPrefixCls, "-")).call(_context9, mergedCheckboxType, "-wrapper"), true), _defineProperty(_classNames4, _concatInstanceProperty(_context10 = "".concat(checkboxPrefixCls, "-")).call(_context10, mergedCheckboxType, "-wrapper-size"), !!children), _defineProperty(_classNames4, _concatInstanceProperty(_context11 = "".concat(checkboxPrefixCls, "-")).call(_context11, mergedCheckboxType, "-margin"), !!children), _defineProperty(_classNames4, _concatInstanceProperty(_context12 = "".concat(checkboxPrefixCls, "-")).call(_context12, mergedCheckboxType, "-checked"), selected), _defineProperty(_classNames4, _concatInstanceProperty(_context13 = "".concat(checkboxPrefixCls, "-")).call(_context13, mergedCheckboxType, "-indeterminate"), getIndeterminate()), _defineProperty(_classNames4, _concatInstanceProperty(_context14 = "".concat(checkboxPrefixCls, "-")).call(_context14, mergedCheckboxType, "-disabled"), mergedDisabled && !selected), _defineProperty(_classNames4, _concatInstanceProperty(_context15 = "".concat(checkboxPrefixCls, "-")).call(_context15, mergedCheckboxType, "-checked-disabled"), mergedDisabled && selected), _classNames4));
71
- var triangleClassName = classNames((_classNames5 = {}, _defineProperty(_classNames5, _concatInstanceProperty(_context16 = "".concat(checkboxPrefixCls, "-")).call(_context16, mergedCheckboxType, "-triangle"), !selected), _defineProperty(_classNames5, _concatInstanceProperty(_context17 = "".concat(checkboxPrefixCls, "-")).call(_context17, mergedCheckboxType, "-triangle-checked"), selected), _defineProperty(_classNames5, _concatInstanceProperty(_context18 = "".concat(checkboxPrefixCls, "-")).call(_context18, mergedCheckboxType, "-triangle-disabled"), mergedDisabled), _classNames5));
72
- var innerIconClassName = classNames(_defineProperty({}, _concatInstanceProperty(_context19 = "".concat(checkboxPrefixCls, "-")).call(_context19, mergedCheckboxType, "-inner"), true));
70
+ var checkedWrapperClassName = classNames((_classNames4 = {}, _defineProperty(_classNames4, _concatInstanceProperty(_context8 = "".concat(checkboxPrefixCls, "-")).call(_context8, mergedCheckboxType, "-wrapper"), true), _defineProperty(_classNames4, _concatInstanceProperty(_context9 = "".concat(checkboxPrefixCls, "-")).call(_context9, mergedCheckboxType, "-wrapper-size"), true), _defineProperty(_classNames4, _concatInstanceProperty(_context10 = "".concat(checkboxPrefixCls, "-")).call(_context10, mergedCheckboxType, "-margin"), !!children), _defineProperty(_classNames4, _concatInstanceProperty(_context11 = "".concat(checkboxPrefixCls, "-")).call(_context11, mergedCheckboxType, "-checked"), selected), _defineProperty(_classNames4, _concatInstanceProperty(_context12 = "".concat(checkboxPrefixCls, "-")).call(_context12, mergedCheckboxType, "-indeterminate"), getIndeterminate()), _defineProperty(_classNames4, _concatInstanceProperty(_context13 = "".concat(checkboxPrefixCls, "-")).call(_context13, mergedCheckboxType, "-disabled"), mergedDisabled && !selected), _defineProperty(_classNames4, _concatInstanceProperty(_context14 = "".concat(checkboxPrefixCls, "-")).call(_context14, mergedCheckboxType, "-checked-disabled"), mergedDisabled && selected), _classNames4));
71
+ var triangleClassName = classNames((_classNames5 = {}, _defineProperty(_classNames5, _concatInstanceProperty(_context15 = "".concat(checkboxPrefixCls, "-")).call(_context15, mergedCheckboxType, "-triangle"), !selected), _defineProperty(_classNames5, _concatInstanceProperty(_context16 = "".concat(checkboxPrefixCls, "-")).call(_context16, mergedCheckboxType, "-triangle-checked"), selected), _defineProperty(_classNames5, _concatInstanceProperty(_context17 = "".concat(checkboxPrefixCls, "-")).call(_context17, mergedCheckboxType, "-triangle-disabled"), mergedDisabled), _classNames5));
72
+ var innerIconClassName = classNames(_defineProperty({}, _concatInstanceProperty(_context18 = "".concat(checkboxPrefixCls, "-")).call(_context18, mergedCheckboxType, "-inner"), true));
73
73
  var handleChange = function handleChange(e) {
74
74
  onChange && onChange(e);
75
75
  (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange) && (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange(value, e.target.checked, e));
@@ -96,7 +96,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
96
96
  };
97
97
  }, []);
98
98
  var getDefaultCheckbox = function getDefaultCheckbox() {
99
- var _context20, _context21;
99
+ var _context19, _context20;
100
100
  var inputProps = {
101
101
  type: 'checkbox',
102
102
  className: inputClassName,
@@ -121,7 +121,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
121
121
  className: innerIconClassName
122
122
  }, /*#__PURE__*/React.createElement(Icon, {
123
123
  type: "right-bold",
124
- className: _concatInstanceProperty(_context20 = "".concat(checkboxPrefixCls, "-")).call(_context20, mergedCheckboxType, "-inner-icon")
124
+ className: _concatInstanceProperty(_context19 = "".concat(checkboxPrefixCls, "-")).call(_context19, mergedCheckboxType, "-inner-icon")
125
125
  })) : null, /*#__PURE__*/React.createElement("input", _extends({
126
126
  type: "checkbox",
127
127
  ref: ref
@@ -133,7 +133,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
133
133
  className: innerIconClassName
134
134
  }, /*#__PURE__*/React.createElement(Icon, {
135
135
  type: "right-bold",
136
- className: _concatInstanceProperty(_context21 = "".concat(checkboxPrefixCls, "-")).call(_context21, mergedCheckboxType, "-inner-icon")
136
+ className: _concatInstanceProperty(_context20 = "".concat(checkboxPrefixCls, "-")).call(_context20, mergedCheckboxType, "-inner-icon")
137
137
  }))) : null)
138
138
  );
139
139
  };
@@ -334,10 +334,6 @@
334
334
  .kd-checkbox-default-margin {
335
335
  margin-right: var(--kd-c-checkbox-default-input-spacing-margin-right, 4px);
336
336
  }
337
- .kd-checkbox-default-no-child {
338
- height: 100%;
339
- width: 100%;
340
- }
341
337
  .kd-checkbox-default-checked-disabled {
342
338
  background-color: var(--kd-c-checkbox-default-color-background-disabled, #e5e5e5) !important;
343
339
  border-color: var(--kd-c-checkbox-default-color-background-disabled, #d9d9d9) !important;
@@ -200,10 +200,6 @@
200
200
  &-margin {
201
201
  margin-right: @checkbox-default-input-margin-right;
202
202
  }
203
- &-no-child {
204
- height: 100%;
205
- width: 100%;
206
- }
207
203
  &-checked-disabled {
208
204
  background-color: @checkbox-default-disabled-color-bg !important;
209
205
  border-color: @checkbox-default-disabled-color-border !important;
@@ -70,6 +70,10 @@ var InternalTextarea = function InternalTextarea(props, ref) {
70
70
  _useState6 = _slicedToArray(_useState5, 2),
71
71
  showNumberMark = _useState6[0],
72
72
  setShowNumberMark = _useState6[1];
73
+ var _useState7 = useState(false),
74
+ _useState8 = _slicedToArray(_useState7, 2),
75
+ numberMarkError = _useState8[0],
76
+ setNumberMarkError = _useState8[1];
73
77
  var resizeTextarea = useCallback(function () {
74
78
  if (!autoSize || !textareaRef.current) {
75
79
  return;
@@ -117,21 +121,25 @@ var InternalTextarea = function InternalTextarea(props, ref) {
117
121
  onChange && onChange(event);
118
122
  };
119
123
  var renderNumberMark = function renderNumberMark() {
120
- var enteredLength = value ? value.length : 0;
121
- if (enteredLength >= maxLength) {
122
- enteredLength = maxLength;
123
- }
124
- if (count && showNumberMark && !disabled && maxLength !== '' && maxLength >= 0) {
125
- var countClass = classNames("".concat(textAreaPrefixCls, "-textarea-mark"), _defineProperty({}, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'));
124
+ if (count && (showNumberMark || numberMarkError) && !disabled && maxLength !== '' && maxLength >= 0) {
125
+ var _classNames;
126
+ var countClass = classNames("".concat(textAreaPrefixCls, "-textarea-mark"), (_classNames = {}, _defineProperty(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'), _defineProperty(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-error"), numberMarkError), _classNames));
126
127
  return /*#__PURE__*/React.createElement("div", {
127
128
  className: countClass
128
- }, enteredLength, "/", maxLength);
129
+ }, value ? value.length : 0, "/", maxLength);
129
130
  }
130
131
  return null;
131
132
  };
132
133
  useEffect(function () {
133
134
  resizeTextarea();
134
135
  }, [value, resizeTextarea]);
136
+ useEffect(function () {
137
+ if (value && maxLength && value.length > maxLength) {
138
+ setNumberMarkError(true);
139
+ } else {
140
+ setNumberMarkError(false);
141
+ }
142
+ }, [value]);
135
143
  useEffect(function () {
136
144
  if (propsValue !== undefined) {
137
145
  setValue(propsValue);
@@ -173,7 +181,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
173
181
  ref: textareaRef,
174
182
  disabled: disabled,
175
183
  style: _extends({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
176
- className: classNames("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _defineProperty(_classNames2, _concatInstanceProperty(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _defineProperty(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _defineProperty(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _defineProperty(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _defineProperty({}, className, className && !allowClear && !hadCount)),
184
+ className: classNames("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _defineProperty(_classNames2, _concatInstanceProperty(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _defineProperty(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _defineProperty(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _defineProperty(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _defineProperty({}, className, className && !allowClear && !hadCount)),
177
185
  onChange: handleChange,
178
186
  onFocus: !disabled ? handleFocus : undefined,
179
187
  onBlur: !disabled ? handleBlur : undefined,
@@ -215,6 +215,9 @@ textarea {
215
215
  bottom: 5px;
216
216
  right: 8px;
217
217
  }
218
+ .kd-input-textarea-mark-error {
219
+ color: var(--kd-c-input-color-error, var(--kd-g-color-error, #fb2323));
220
+ }
218
221
  .kd-input-no-resize {
219
222
  resize: none;
220
223
  }
@@ -43,12 +43,16 @@ textarea {
43
43
  font-size: @input-small-font-size-inner;
44
44
  line-height: 18px;
45
45
  background-color: #fff;
46
- }
47
46
 
48
- &-mark-inner {
49
- top: auto;
50
- bottom: 5px;
51
- right: 8px;
47
+ &-inner {
48
+ top: auto;
49
+ bottom: 5px;
50
+ right: 8px;
51
+ }
52
+
53
+ &-error {
54
+ color: @input-error-color;
55
+ }
52
56
  }
53
57
  }
54
58
 
@@ -563,7 +563,7 @@ var InternalSelect = function InternalSelect(props, ref) {
563
563
  background: 'none'
564
564
  };
565
565
  var indeterminate = mulOptions.length > 0 && mulOptions.length < filledOptions.length;
566
- var checked = mulOptions.length === filledOptions.length;
566
+ var checked = mulOptions.length > 0 && mulOptions.length === filledOptions.length;
567
567
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
568
568
  className: dropDownCls,
569
569
  style: dropdownStyle,
@@ -702,10 +702,10 @@
702
702
  color: var(--kd-c-select-footer-color-text-selected, #0e5fd8);
703
703
  padding: 0 2px;
704
704
  }
705
- .kd-select.topLeft.hidden,
706
- .kd-select.bottomLeft.hidden,
707
- .kd-select.topRight.hidden,
708
- .kd-select.bottomRight.hidden {
705
+ .kd-select-dropdown-panel.topLeft.hidden,
706
+ .kd-select-dropdown-panel.bottomLeft.hidden,
707
+ .kd-select-dropdown-panel.topRight.hidden,
708
+ .kd-select-dropdown-panel.bottomRight.hidden {
709
709
  opacity: 0;
710
710
  visibility: hidden;
711
711
  -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
@@ -439,12 +439,14 @@
439
439
  }
440
440
  }
441
441
 
442
- &.topLeft.hidden,
443
- &.bottomLeft.hidden,
444
- &.topRight.hidden,
445
- &.bottomRight.hidden {
446
- opacity: 0;
447
- visibility: hidden;
448
- transition: all calc(@transition-duration - 0.1s) @ease;
442
+ &-dropdown-panel {
443
+ &.topLeft.hidden,
444
+ &.bottomLeft.hidden,
445
+ &.topRight.hidden,
446
+ &.bottomRight.hidden {
447
+ opacity: 0;
448
+ visibility: hidden;
449
+ transition: all calc(@transition-duration - 0.1s) @ease;
450
+ }
449
451
  }
450
452
  }
@@ -0,0 +1,3 @@
1
+ import { TableRowDrag, TablePipeline } from '../interface';
2
+ declare function useRowDrag(pipeline: TablePipeline, rowDrag?: TableRowDrag, estimatedRowHeight?: number): void;
3
+ export default useRowDrag;
@@ -0,0 +1,10 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
+ import { features } from '@kdcloudjs/table';
3
+ function useRowDrag(pipeline, rowDrag, estimatedRowHeight) {
4
+ if (rowDrag) {
5
+ pipeline.use(features.rowDrag(_extends({
6
+ rowHeight: estimatedRowHeight
7
+ }, rowDrag)));
8
+ }
9
+ }
10
+ export default useRowDrag;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TableProps as BaseTableProps, TablePipeline as TP, ArtColumnStaticPart } from '@kdcloudjs/table';
3
- import { SortFeatureOptions, RowDetailFeatureOptions, FilterFeatureOptions, TreeModeFeatureOptions, ColumnDragOptions, ColumnResizeOptions, ContextMenuFeatureOptions, RangeSelectionFeatureOptions, colGroupExtendOption } from '@kdcloudjs/table/es/table/pipeline/features';
3
+ import { SortFeatureOptions, RowDetailFeatureOptions, FilterFeatureOptions, TreeModeFeatureOptions, ColumnDragOptions, ColumnResizeOptions, ContextMenuFeatureOptions, RangeSelectionFeatureOptions, colGroupExtendOption, RowDragFeatureOptions } from '@kdcloudjs/table/es/table/pipeline/features';
4
4
  declare type TablePropsOfComponents = Pick<BaseTableProps, 'components'> & {
5
5
  components?: {
6
6
  /** 复选框 */
@@ -35,6 +35,7 @@ export interface TableProps extends TablePropsOfExtend, TablePropsOfComponents {
35
35
  contextMenu?: IContextMenu;
36
36
  rangeSelection?: TableRangeSelection;
37
37
  columnGroupExtend?: colGroupExtendOption;
38
+ rowDrag?: TableRowDrag;
38
39
  }
39
40
  export declare type RowSelectionType = 'checkbox' | 'radio';
40
41
  export declare type RowSelectionFixed = 'start' | 'end';
@@ -58,4 +59,5 @@ export declare type TableTreeMode = TreeModeFeatureOptions;
58
59
  export declare type TablePipeline = TP;
59
60
  export declare type IContextMenu = boolean | ContextMenuFeatureOptions;
60
61
  export declare type TableRangeSelection = RangeSelectionFeatureOptions;
62
+ export declare type TableRowDrag = RowDragFeatureOptions;
61
63
  export {};
package/es/table/table.js CHANGED
@@ -22,6 +22,7 @@ import useMergeCellHover from './feature/mergeCellHover';
22
22
  import devWarning from '../_utils/devwarning';
23
23
  import useFooterDataSource from './feature/useFooterDataSource';
24
24
  import usecolGroupExtendable from './feature/colGroupExtendable';
25
+ import useRowDrag from './feature/useRowDrag';
25
26
  import getApi from './api';
26
27
  var Table = /*#__PURE__*/forwardRef(function (props, ref) {
27
28
  var columns = props.columns,
@@ -56,7 +57,8 @@ var Table = /*#__PURE__*/forwardRef(function (props, ref) {
56
57
  scrollbarWidth = props.scrollbarWidth,
57
58
  scrollLoad = props.scrollLoad,
58
59
  _props$columnGroupExt = props.columnGroupExtend,
59
- columnGroupExtend = _props$columnGroupExt === void 0 ? {} : _props$columnGroupExt;
60
+ columnGroupExtend = _props$columnGroupExt === void 0 ? {} : _props$columnGroupExt,
61
+ rowDrag = props.rowDrag;
60
62
  var _useContext = useContext(ConfigContext),
61
63
  getPrefixCls = _useContext.getPrefixCls,
62
64
  prefixCls = _useContext.prefixCls,
@@ -104,6 +106,7 @@ var Table = /*#__PURE__*/forwardRef(function (props, ref) {
104
106
  useRangeSelection(pipeline, rangeSelection);
105
107
  useMergeCellHover(pipeline);
106
108
  useFooterDataSource(pipeline, footerDataSource);
109
+ useRowDrag(pipeline, rowDrag, estimatedRowHeight);
107
110
  /* -------------------------------------------------------------------------- */
108
111
  /* after useTablePipeline, merge pipeline.getProps result */
109
112
  /* -------------------------------------------------------------------------- */
@@ -1,4 +1,3 @@
1
- import _typeof from "@babel/runtime-corejs3/helpers/typeof";
2
1
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
3
2
  import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
4
3
  import _toConsumableArray from "@babel/runtime-corejs3/helpers/toConsumableArray";
@@ -173,7 +172,8 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
173
172
  if (TreeMap.has(initValue)) {
174
173
  arr.push(TreeMap.get(initValue));
175
174
  } else {
176
- _typeof(initValue) !== undefined && arr.push({
175
+ ;
176
+ (initValue !== null && initValue !== void 0 ? initValue : '') !== '' && arr.push({
177
177
  key: initValue,
178
178
  title: initValue
179
179
  });
@@ -32,7 +32,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
32
32
  return t;
33
33
  };
34
34
  var InternalCheckbox = function InternalCheckbox(props, ref) {
35
- var _context, _context2, _context3, _classNames, _context4, _context5, _context6, _context7, _classNames2, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _classNames4, _context16, _context17, _context18, _classNames5, _context19;
35
+ var _context, _context2, _context3, _classNames, _context4, _context5, _context6, _context7, _classNames2, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _classNames4, _context15, _context16, _context17, _classNames5, _context18;
36
36
  var _useContext = (0, _react.useContext)(_ConfigContext.default),
37
37
  getPrefixCls = _useContext.getPrefixCls,
38
38
  prefixCls = _useContext.prefixCls,
@@ -79,9 +79,9 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
79
79
  var getSquareClassName = (0, _classnames.default)(className, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(checkboxPrefixCls), true), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context4 = "".concat(checkboxPrefixCls, "-")).call(_context4, mergedCheckboxType), true), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context5 = "".concat(checkboxPrefixCls, "-")).call(_context5, mergedSize), !!children), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context6 = "".concat(checkboxPrefixCls, "-")).call(_context6, mergedCheckboxType, "-disabled"), mergedDisabled), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context7 = "".concat(checkboxPrefixCls, "-")).call(_context7, mergedCheckboxType, "-checked"), selected && !mergedDisabled), (0, _defineProperty2.default)(_classNames2, "checked", selected), _classNames2));
80
80
  var getRootClassName = isDefaultType() ? getDefaultClassName : getSquareClassName;
81
81
  var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, "".concat(checkboxPrefixCls, "-input"), true));
82
- var checkedWrapperClassName = (0, _classnames.default)((_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context8 = "".concat(checkboxPrefixCls, "-")).call(_context8, mergedCheckboxType, "-no-child"), !children), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context9 = "".concat(checkboxPrefixCls, "-")).call(_context9, mergedCheckboxType, "-wrapper"), true), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context10 = "".concat(checkboxPrefixCls, "-")).call(_context10, mergedCheckboxType, "-wrapper-size"), !!children), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context11 = "".concat(checkboxPrefixCls, "-")).call(_context11, mergedCheckboxType, "-margin"), !!children), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context12 = "".concat(checkboxPrefixCls, "-")).call(_context12, mergedCheckboxType, "-checked"), selected), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context13 = "".concat(checkboxPrefixCls, "-")).call(_context13, mergedCheckboxType, "-indeterminate"), getIndeterminate()), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context14 = "".concat(checkboxPrefixCls, "-")).call(_context14, mergedCheckboxType, "-disabled"), mergedDisabled && !selected), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context15 = "".concat(checkboxPrefixCls, "-")).call(_context15, mergedCheckboxType, "-checked-disabled"), mergedDisabled && selected), _classNames4));
83
- var triangleClassName = (0, _classnames.default)((_classNames5 = {}, (0, _defineProperty2.default)(_classNames5, (0, _concat.default)(_context16 = "".concat(checkboxPrefixCls, "-")).call(_context16, mergedCheckboxType, "-triangle"), !selected), (0, _defineProperty2.default)(_classNames5, (0, _concat.default)(_context17 = "".concat(checkboxPrefixCls, "-")).call(_context17, mergedCheckboxType, "-triangle-checked"), selected), (0, _defineProperty2.default)(_classNames5, (0, _concat.default)(_context18 = "".concat(checkboxPrefixCls, "-")).call(_context18, mergedCheckboxType, "-triangle-disabled"), mergedDisabled), _classNames5));
84
- var innerIconClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, (0, _concat.default)(_context19 = "".concat(checkboxPrefixCls, "-")).call(_context19, mergedCheckboxType, "-inner"), true));
82
+ var checkedWrapperClassName = (0, _classnames.default)((_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context8 = "".concat(checkboxPrefixCls, "-")).call(_context8, mergedCheckboxType, "-wrapper"), true), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context9 = "".concat(checkboxPrefixCls, "-")).call(_context9, mergedCheckboxType, "-wrapper-size"), true), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context10 = "".concat(checkboxPrefixCls, "-")).call(_context10, mergedCheckboxType, "-margin"), !!children), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context11 = "".concat(checkboxPrefixCls, "-")).call(_context11, mergedCheckboxType, "-checked"), selected), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context12 = "".concat(checkboxPrefixCls, "-")).call(_context12, mergedCheckboxType, "-indeterminate"), getIndeterminate()), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context13 = "".concat(checkboxPrefixCls, "-")).call(_context13, mergedCheckboxType, "-disabled"), mergedDisabled && !selected), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context14 = "".concat(checkboxPrefixCls, "-")).call(_context14, mergedCheckboxType, "-checked-disabled"), mergedDisabled && selected), _classNames4));
83
+ var triangleClassName = (0, _classnames.default)((_classNames5 = {}, (0, _defineProperty2.default)(_classNames5, (0, _concat.default)(_context15 = "".concat(checkboxPrefixCls, "-")).call(_context15, mergedCheckboxType, "-triangle"), !selected), (0, _defineProperty2.default)(_classNames5, (0, _concat.default)(_context16 = "".concat(checkboxPrefixCls, "-")).call(_context16, mergedCheckboxType, "-triangle-checked"), selected), (0, _defineProperty2.default)(_classNames5, (0, _concat.default)(_context17 = "".concat(checkboxPrefixCls, "-")).call(_context17, mergedCheckboxType, "-triangle-disabled"), mergedDisabled), _classNames5));
84
+ var innerIconClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, (0, _concat.default)(_context18 = "".concat(checkboxPrefixCls, "-")).call(_context18, mergedCheckboxType, "-inner"), true));
85
85
  var handleChange = function handleChange(e) {
86
86
  onChange && onChange(e);
87
87
  (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange) && (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onCheckboxGroupChange(value, e.target.checked, e));
@@ -108,7 +108,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
108
108
  };
109
109
  }, []);
110
110
  var getDefaultCheckbox = function getDefaultCheckbox() {
111
- var _context20, _context21;
111
+ var _context19, _context20;
112
112
  var inputProps = {
113
113
  type: 'checkbox',
114
114
  className: inputClassName,
@@ -133,7 +133,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
133
133
  className: innerIconClassName
134
134
  }, /*#__PURE__*/_react.default.createElement(_icon.default, {
135
135
  type: "right-bold",
136
- className: (0, _concat.default)(_context20 = "".concat(checkboxPrefixCls, "-")).call(_context20, mergedCheckboxType, "-inner-icon")
136
+ className: (0, _concat.default)(_context19 = "".concat(checkboxPrefixCls, "-")).call(_context19, mergedCheckboxType, "-inner-icon")
137
137
  })) : null, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
138
138
  type: "checkbox",
139
139
  ref: ref
@@ -145,7 +145,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
145
145
  className: innerIconClassName
146
146
  }, /*#__PURE__*/_react.default.createElement(_icon.default, {
147
147
  type: "right-bold",
148
- className: (0, _concat.default)(_context21 = "".concat(checkboxPrefixCls, "-")).call(_context21, mergedCheckboxType, "-inner-icon")
148
+ className: (0, _concat.default)(_context20 = "".concat(checkboxPrefixCls, "-")).call(_context20, mergedCheckboxType, "-inner-icon")
149
149
  }))) : null)
150
150
  );
151
151
  };
@@ -334,10 +334,6 @@
334
334
  .kd-checkbox-default-margin {
335
335
  margin-right: var(--kd-c-checkbox-default-input-spacing-margin-right, 4px);
336
336
  }
337
- .kd-checkbox-default-no-child {
338
- height: 100%;
339
- width: 100%;
340
- }
341
337
  .kd-checkbox-default-checked-disabled {
342
338
  background-color: var(--kd-c-checkbox-default-color-background-disabled, #e5e5e5) !important;
343
339
  border-color: var(--kd-c-checkbox-default-color-background-disabled, #d9d9d9) !important;
@@ -200,10 +200,6 @@
200
200
  &-margin {
201
201
  margin-right: @checkbox-default-input-margin-right;
202
202
  }
203
- &-no-child {
204
- height: 100%;
205
- width: 100%;
206
- }
207
203
  &-checked-disabled {
208
204
  background-color: @checkbox-default-disabled-color-bg !important;
209
205
  border-color: @checkbox-default-disabled-color-border !important;
@@ -82,6 +82,10 @@ var InternalTextarea = function InternalTextarea(props, ref) {
82
82
  _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
83
83
  showNumberMark = _useState6[0],
84
84
  setShowNumberMark = _useState6[1];
85
+ var _useState7 = (0, _react.useState)(false),
86
+ _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
87
+ numberMarkError = _useState8[0],
88
+ setNumberMarkError = _useState8[1];
85
89
  var resizeTextarea = (0, _react.useCallback)(function () {
86
90
  if (!autoSize || !textareaRef.current) {
87
91
  return;
@@ -129,21 +133,25 @@ var InternalTextarea = function InternalTextarea(props, ref) {
129
133
  onChange && onChange(event);
130
134
  };
131
135
  var renderNumberMark = function renderNumberMark() {
132
- var enteredLength = value ? value.length : 0;
133
- if (enteredLength >= maxLength) {
134
- enteredLength = maxLength;
135
- }
136
- if (count && showNumberMark && !disabled && maxLength !== '' && maxLength >= 0) {
137
- var countClass = (0, _classnames.default)("".concat(textAreaPrefixCls, "-textarea-mark"), (0, _defineProperty2.default)({}, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'));
136
+ if (count && (showNumberMark || numberMarkError) && !disabled && maxLength !== '' && maxLength >= 0) {
137
+ var _classNames;
138
+ var countClass = (0, _classnames.default)("".concat(textAreaPrefixCls, "-textarea-mark"), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'), (0, _defineProperty2.default)(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-error"), numberMarkError), _classNames));
138
139
  return /*#__PURE__*/_react.default.createElement("div", {
139
140
  className: countClass
140
- }, enteredLength, "/", maxLength);
141
+ }, value ? value.length : 0, "/", maxLength);
141
142
  }
142
143
  return null;
143
144
  };
144
145
  (0, _react.useEffect)(function () {
145
146
  resizeTextarea();
146
147
  }, [value, resizeTextarea]);
148
+ (0, _react.useEffect)(function () {
149
+ if (value && maxLength && value.length > maxLength) {
150
+ setNumberMarkError(true);
151
+ } else {
152
+ setNumberMarkError(false);
153
+ }
154
+ }, [value]);
147
155
  (0, _react.useEffect)(function () {
148
156
  if (propsValue !== undefined) {
149
157
  setValue(propsValue);
@@ -185,7 +193,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
185
193
  ref: textareaRef,
186
194
  disabled: disabled,
187
195
  style: (0, _extends2.default)({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
188
- className: (0, _classnames.default)("".concat(prefixCls, "-textarea"), (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), (0, _defineProperty2.default)({}, className, className && !allowClear && !hadCount)),
196
+ className: (0, _classnames.default)("".concat(prefixCls, "-textarea"), (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), (0, _defineProperty2.default)({}, className, className && !allowClear && !hadCount)),
189
197
  onChange: handleChange,
190
198
  onFocus: !disabled ? handleFocus : undefined,
191
199
  onBlur: !disabled ? handleBlur : undefined,
@@ -215,6 +215,9 @@ textarea {
215
215
  bottom: 5px;
216
216
  right: 8px;
217
217
  }
218
+ .kd-input-textarea-mark-error {
219
+ color: var(--kd-c-input-color-error, var(--kd-g-color-error, #fb2323));
220
+ }
218
221
  .kd-input-no-resize {
219
222
  resize: none;
220
223
  }
@@ -43,12 +43,16 @@ textarea {
43
43
  font-size: @input-small-font-size-inner;
44
44
  line-height: 18px;
45
45
  background-color: #fff;
46
- }
47
46
 
48
- &-mark-inner {
49
- top: auto;
50
- bottom: 5px;
51
- right: 8px;
47
+ &-inner {
48
+ top: auto;
49
+ bottom: 5px;
50
+ right: 8px;
51
+ }
52
+
53
+ &-error {
54
+ color: @input-error-color;
55
+ }
52
56
  }
53
57
  }
54
58
 
@@ -575,7 +575,7 @@ var InternalSelect = function InternalSelect(props, ref) {
575
575
  background: 'none'
576
576
  };
577
577
  var indeterminate = mulOptions.length > 0 && mulOptions.length < filledOptions.length;
578
- var checked = mulOptions.length === filledOptions.length;
578
+ var checked = mulOptions.length > 0 && mulOptions.length === filledOptions.length;
579
579
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
580
580
  className: dropDownCls,
581
581
  style: dropdownStyle,
@@ -702,10 +702,10 @@
702
702
  color: var(--kd-c-select-footer-color-text-selected, #0e5fd8);
703
703
  padding: 0 2px;
704
704
  }
705
- .kd-select.topLeft.hidden,
706
- .kd-select.bottomLeft.hidden,
707
- .kd-select.topRight.hidden,
708
- .kd-select.bottomRight.hidden {
705
+ .kd-select-dropdown-panel.topLeft.hidden,
706
+ .kd-select-dropdown-panel.bottomLeft.hidden,
707
+ .kd-select-dropdown-panel.topRight.hidden,
708
+ .kd-select-dropdown-panel.bottomRight.hidden {
709
709
  opacity: 0;
710
710
  visibility: hidden;
711
711
  -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
@@ -439,12 +439,14 @@
439
439
  }
440
440
  }
441
441
 
442
- &.topLeft.hidden,
443
- &.bottomLeft.hidden,
444
- &.topRight.hidden,
445
- &.bottomRight.hidden {
446
- opacity: 0;
447
- visibility: hidden;
448
- transition: all calc(@transition-duration - 0.1s) @ease;
442
+ &-dropdown-panel {
443
+ &.topLeft.hidden,
444
+ &.bottomLeft.hidden,
445
+ &.topRight.hidden,
446
+ &.bottomRight.hidden {
447
+ opacity: 0;
448
+ visibility: hidden;
449
+ transition: all calc(@transition-duration - 0.1s) @ease;
450
+ }
449
451
  }
450
452
  }
@@ -0,0 +1,3 @@
1
+ import { TableRowDrag, TablePipeline } from '../interface';
2
+ declare function useRowDrag(pipeline: TablePipeline, rowDrag?: TableRowDrag, estimatedRowHeight?: number): void;
3
+ export default useRowDrag;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
9
+ var _table = require("@kdcloudjs/table");
10
+ function useRowDrag(pipeline, rowDrag, estimatedRowHeight) {
11
+ if (rowDrag) {
12
+ pipeline.use(_table.features.rowDrag((0, _extends2.default)({
13
+ rowHeight: estimatedRowHeight
14
+ }, rowDrag)));
15
+ }
16
+ }
17
+ var _default = useRowDrag;
18
+ exports.default = _default;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TableProps as BaseTableProps, TablePipeline as TP, ArtColumnStaticPart } from '@kdcloudjs/table';
3
- import { SortFeatureOptions, RowDetailFeatureOptions, FilterFeatureOptions, TreeModeFeatureOptions, ColumnDragOptions, ColumnResizeOptions, ContextMenuFeatureOptions, RangeSelectionFeatureOptions, colGroupExtendOption } from '@kdcloudjs/table/es/table/pipeline/features';
3
+ import { SortFeatureOptions, RowDetailFeatureOptions, FilterFeatureOptions, TreeModeFeatureOptions, ColumnDragOptions, ColumnResizeOptions, ContextMenuFeatureOptions, RangeSelectionFeatureOptions, colGroupExtendOption, RowDragFeatureOptions } from '@kdcloudjs/table/es/table/pipeline/features';
4
4
  declare type TablePropsOfComponents = Pick<BaseTableProps, 'components'> & {
5
5
  components?: {
6
6
  /** 复选框 */
@@ -35,6 +35,7 @@ export interface TableProps extends TablePropsOfExtend, TablePropsOfComponents {
35
35
  contextMenu?: IContextMenu;
36
36
  rangeSelection?: TableRangeSelection;
37
37
  columnGroupExtend?: colGroupExtendOption;
38
+ rowDrag?: TableRowDrag;
38
39
  }
39
40
  export declare type RowSelectionType = 'checkbox' | 'radio';
40
41
  export declare type RowSelectionFixed = 'start' | 'end';
@@ -58,4 +59,5 @@ export declare type TableTreeMode = TreeModeFeatureOptions;
58
59
  export declare type TablePipeline = TP;
59
60
  export declare type IContextMenu = boolean | ContextMenuFeatureOptions;
60
61
  export declare type TableRangeSelection = RangeSelectionFeatureOptions;
62
+ export declare type TableRowDrag = RowDragFeatureOptions;
61
63
  export {};
@@ -32,6 +32,7 @@ var _mergeCellHover = _interopRequireDefault(require("./feature/mergeCellHover")
32
32
  var _devwarning = _interopRequireDefault(require("../_utils/devwarning"));
33
33
  var _useFooterDataSource = _interopRequireDefault(require("./feature/useFooterDataSource"));
34
34
  var _colGroupExtendable = _interopRequireDefault(require("./feature/colGroupExtendable"));
35
+ var _useRowDrag = _interopRequireDefault(require("./feature/useRowDrag"));
35
36
  var _api = _interopRequireDefault(require("./api"));
36
37
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
38
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -68,7 +69,8 @@ var Table = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
68
69
  scrollbarWidth = props.scrollbarWidth,
69
70
  scrollLoad = props.scrollLoad,
70
71
  _props$columnGroupExt = props.columnGroupExtend,
71
- columnGroupExtend = _props$columnGroupExt === void 0 ? {} : _props$columnGroupExt;
72
+ columnGroupExtend = _props$columnGroupExt === void 0 ? {} : _props$columnGroupExt,
73
+ rowDrag = props.rowDrag;
72
74
  var _useContext = (0, _react.useContext)(_ConfigContext.default),
73
75
  getPrefixCls = _useContext.getPrefixCls,
74
76
  prefixCls = _useContext.prefixCls,
@@ -116,6 +118,7 @@ var Table = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
116
118
  (0, _useRangeSelection.default)(pipeline, rangeSelection);
117
119
  (0, _mergeCellHover.default)(pipeline);
118
120
  (0, _useFooterDataSource.default)(pipeline, footerDataSource);
121
+ (0, _useRowDrag.default)(pipeline, rowDrag, estimatedRowHeight);
119
122
  /* -------------------------------------------------------------------------- */
120
123
  /* after useTablePipeline, merge pipeline.getProps result */
121
124
  /* -------------------------------------------------------------------------- */