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

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.7.33-stable.1
3
+ * @kdcloudjs/kdesign v1.7.33-stable.2
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -21319,6 +21319,10 @@ var InternalTextarea = function InternalTextarea(props, ref) {
21319
21319
  _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
21320
21320
  showNumberMark = _useState6[0],
21321
21321
  setShowNumberMark = _useState6[1];
21322
+ var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(false),
21323
+ _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState7, 2),
21324
+ numberMarkError = _useState8[0],
21325
+ setNumberMarkError = _useState8[1];
21322
21326
  var resizeTextarea = Object(react__WEBPACK_IMPORTED_MODULE_7__["useCallback"])(function () {
21323
21327
  if (!autoSize || !textareaRef.current) {
21324
21328
  return;
@@ -21367,21 +21371,25 @@ var InternalTextarea = function InternalTextarea(props, ref) {
21367
21371
  onChange && onChange(event);
21368
21372
  };
21369
21373
  var renderNumberMark = function renderNumberMark() {
21370
- var enteredLength = value ? value.length : 0;
21371
- if (enteredLength >= maxLength) {
21372
- enteredLength = maxLength;
21373
- }
21374
- if (count && showNumberMark && !disabled && maxLength !== '' && maxLength >= 0) {
21375
- var countClass = classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(textAreaPrefixCls, "-textarea-mark"), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'));
21374
+ if (count && (showNumberMark || numberMarkError) && !disabled && maxLength !== '' && maxLength >= 0) {
21375
+ var _classNames;
21376
+ var countClass = classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(textAreaPrefixCls, "-textarea-mark"), (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-error"), numberMarkError), _classNames));
21376
21377
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
21377
21378
  className: countClass
21378
- }, enteredLength, "/", maxLength);
21379
+ }, value ? value.length : 0, "/", maxLength);
21379
21380
  }
21380
21381
  return null;
21381
21382
  };
21382
21383
  Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
21383
21384
  resizeTextarea();
21384
21385
  }, [value, resizeTextarea]);
21386
+ Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
21387
+ if (value && maxLength && value.length > maxLength) {
21388
+ setNumberMarkError(true);
21389
+ } else {
21390
+ setNumberMarkError(false);
21391
+ }
21392
+ }, [value]);
21385
21393
  Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
21386
21394
  if (propsValue !== undefined) {
21387
21395
  setValue(propsValue);
@@ -21423,7 +21431,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
21423
21431
  ref: textareaRef,
21424
21432
  disabled: disabled,
21425
21433
  style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
21426
- className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
21434
+ className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
21427
21435
  onChange: handleChange,
21428
21436
  onFocus: !disabled ? handleFocus : undefined,
21429
21437
  onBlur: !disabled ? handleBlur : undefined,
@@ -32435,6 +32443,54 @@ function useRangeSelection(pipeline, rangeSelection) {
32435
32443
 
32436
32444
  /***/ }),
32437
32445
 
32446
+ /***/ "./components/table/feature/useRowDrag.ts":
32447
+ /*!************************************************!*\
32448
+ !*** ./components/table/feature/useRowDrag.ts ***!
32449
+ \************************************************/
32450
+ /*! exports provided: default */
32451
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
32452
+
32453
+ "use strict";
32454
+ __webpack_require__.r(__webpack_exports__);
32455
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
32456
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__);
32457
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
32458
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1__);
32459
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
32460
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__);
32461
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
32462
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
32463
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
32464
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__);
32465
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
32466
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);
32467
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
32468
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_6__);
32469
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
32470
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
32471
+ /* harmony import */ var _kdcloudjs_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @kdcloudjs/table */ "./node_modules/@kdcloudjs/table/es/index.js");
32472
+
32473
+
32474
+
32475
+
32476
+
32477
+
32478
+
32479
+
32480
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32481
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32482
+
32483
+ function useRowDrag(pipeline, rowDrag, estimatedRowHeight) {
32484
+ if (rowDrag) {
32485
+ pipeline.use(_kdcloudjs_table__WEBPACK_IMPORTED_MODULE_8__["features"].rowDrag(_objectSpread({
32486
+ rowHeight: estimatedRowHeight
32487
+ }, rowDrag)));
32488
+ }
32489
+ }
32490
+ /* harmony default export */ __webpack_exports__["default"] = (useRowDrag);
32491
+
32492
+ /***/ }),
32493
+
32438
32494
  /***/ "./components/table/index.tsx":
32439
32495
  /*!************************************!*\
32440
32496
  !*** ./components/table/index.tsx ***!
@@ -32519,7 +32575,9 @@ __webpack_require__.r(__webpack_exports__);
32519
32575
  /* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
32520
32576
  /* harmony import */ var _feature_useFooterDataSource__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./feature/useFooterDataSource */ "./components/table/feature/useFooterDataSource.ts");
32521
32577
  /* harmony import */ var _feature_colGroupExtendable__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./feature/colGroupExtendable */ "./components/table/feature/colGroupExtendable.ts");
32522
- /* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./api */ "./components/table/api.tsx");
32578
+ /* harmony import */ var _feature_useRowDrag__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./feature/useRowDrag */ "./components/table/feature/useRowDrag.ts");
32579
+ /* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./api */ "./components/table/api.tsx");
32580
+
32523
32581
 
32524
32582
 
32525
32583
 
@@ -32579,7 +32637,8 @@ var Table = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"]
32579
32637
  scrollbarWidth = props.scrollbarWidth,
32580
32638
  scrollLoad = props.scrollLoad,
32581
32639
  _props$columnGroupExt = props.columnGroupExtend,
32582
- columnGroupExtend = _props$columnGroupExt === void 0 ? {} : _props$columnGroupExt;
32640
+ columnGroupExtend = _props$columnGroupExt === void 0 ? {} : _props$columnGroupExt,
32641
+ rowDrag = props.rowDrag;
32583
32642
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
32584
32643
  getPrefixCls = _useContext.getPrefixCls,
32585
32644
  prefixCls = _useContext.prefixCls,
@@ -32610,7 +32669,7 @@ var Table = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"]
32610
32669
 
32611
32670
  Object(react__WEBPACK_IMPORTED_MODULE_4__["useImperativeHandle"])(ref, function () {
32612
32671
  return {
32613
- api: Object(_api__WEBPACK_IMPORTED_MODULE_25__["default"])(pipelineRef)
32672
+ api: Object(_api__WEBPACK_IMPORTED_MODULE_26__["default"])(pipelineRef)
32614
32673
  };
32615
32674
  });
32616
32675
 
@@ -32630,6 +32689,7 @@ var Table = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"]
32630
32689
  Object(_feature_useRangeSelection__WEBPACK_IMPORTED_MODULE_20__["default"])(pipeline, rangeSelection);
32631
32690
  Object(_feature_mergeCellHover__WEBPACK_IMPORTED_MODULE_21__["default"])(pipeline);
32632
32691
  Object(_feature_useFooterDataSource__WEBPACK_IMPORTED_MODULE_23__["default"])(pipeline, footerDataSource);
32692
+ Object(_feature_useRowDrag__WEBPACK_IMPORTED_MODULE_25__["default"])(pipeline, rowDrag, estimatedRowHeight);
32633
32693
 
32634
32694
  /* -------------------------------------------------------------------------- */
32635
32695
  /* after useTablePipeline, merge pipeline.getProps result */
@@ -35191,46 +35251,43 @@ __webpack_require__.r(__webpack_exports__);
35191
35251
  /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_3__);
35192
35252
  /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js");
35193
35253
  /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__);
35194
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
35195
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__);
35196
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
35197
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__);
35198
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js");
35199
- /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7__);
35200
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
35201
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__);
35202
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
35203
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9__);
35204
- /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.map.js */ "./node_modules/core-js/modules/es.map.js");
35205
- /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_10__);
35206
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
35207
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__);
35208
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
35209
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12__);
35210
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
35211
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
35212
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
35213
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__);
35214
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
35215
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_15__);
35216
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
35217
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16__);
35218
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
35219
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_17__);
35220
- /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");
35221
- /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_18__);
35222
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
35223
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_19__);
35224
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! react */ "react");
35225
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_20__);
35226
- /* harmony import */ var _utils_hooks__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../_utils/hooks */ "./components/_utils/hooks.tsx");
35227
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
35228
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_22__);
35229
- /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
35230
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
35231
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../index */ "./components/index.tsx");
35232
- /* harmony import */ var _utils_usePopper__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../_utils/usePopper */ "./components/_utils/usePopper.tsx");
35233
-
35254
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
35255
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__);
35256
+ /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js");
35257
+ /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__);
35258
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
35259
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
35260
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
35261
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8__);
35262
+ /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.map.js */ "./node_modules/core-js/modules/es.map.js");
35263
+ /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_9__);
35264
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
35265
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
35266
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
35267
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11__);
35268
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
35269
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_12__);
35270
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
35271
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_13__);
35272
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
35273
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14__);
35274
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
35275
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_15__);
35276
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
35277
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_16__);
35278
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");
35279
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_17__);
35280
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
35281
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_18__);
35282
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! react */ "react");
35283
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_19__);
35284
+ /* harmony import */ var _utils_hooks__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../_utils/hooks */ "./components/_utils/hooks.tsx");
35285
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
35286
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_21__);
35287
+ /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
35288
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
35289
+ /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../index */ "./components/index.tsx");
35290
+ /* harmony import */ var _utils_usePopper__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../_utils/usePopper */ "./components/_utils/usePopper.tsx");
35234
35291
 
35235
35292
 
35236
35293
 
@@ -35240,7 +35297,7 @@ __webpack_require__.r(__webpack_exports__);
35240
35297
 
35241
35298
 
35242
35299
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
35243
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35300
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35244
35301
 
35245
35302
 
35246
35303
 
@@ -35276,10 +35333,10 @@ function flattenTreeData(treeData) {
35276
35333
  var keys = [];
35277
35334
  (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children.forEach(function (child) {
35278
35335
  var _data$childrenKeys;
35279
- var childKey = flatten(child, [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7___default()(parentKeys), [key]));
35336
+ var childKey = flatten(child, [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6___default()(parentKeys), [key]));
35280
35337
  keys.push(childKey);
35281
35338
  var grandchildrenKeys = map.get(childKey).childrenKeys;
35282
- (_data$childrenKeys = data.childrenKeys).push.apply(_data$childrenKeys, [childKey].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7___default()(grandchildrenKeys)));
35339
+ (_data$childrenKeys = data.childrenKeys).push.apply(_data$childrenKeys, [childKey].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6___default()(grandchildrenKeys)));
35283
35340
  });
35284
35341
  }
35285
35342
  return key;
@@ -35291,11 +35348,11 @@ function flattenTreeData(treeData) {
35291
35348
  }
35292
35349
  var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35293
35350
  var _classNames4, _classNames10;
35294
- var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_20__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_23__["default"]),
35351
+ var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_19__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_22__["default"]),
35295
35352
  getPrefixCls = _useContext.getPrefixCls,
35296
35353
  prefixCls = _useContext.prefixCls,
35297
35354
  userDefaultProps = _useContext.compDefaultProps;
35298
- var treeSelectProps = Object(_utils__WEBPACK_IMPORTED_MODULE_24__["getCompProps"])('TreeSelect', userDefaultProps, props);
35355
+ var treeSelectProps = Object(_utils__WEBPACK_IMPORTED_MODULE_23__["getCompProps"])('TreeSelect', userDefaultProps, props);
35299
35356
  var size = treeSelectProps.size,
35300
35357
  value = treeSelectProps.value,
35301
35358
  autoFocus = treeSelectProps.autoFocus,
@@ -35345,64 +35402,64 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35345
35402
  onlyExpandOnClickIcon = treeSelectProps.onlyExpandOnClickIcon,
35346
35403
  listHeight = treeSelectProps.listHeight;
35347
35404
  var isMultiple = mode === 'multiple'; // 是否多选
35348
- var _useMergedState = Object(_utils_hooks__WEBPACK_IMPORTED_MODULE_21__["useMergedState"])(isMultiple ? [] : undefined, {
35405
+ var _useMergedState = Object(_utils_hooks__WEBPACK_IMPORTED_MODULE_20__["useMergedState"])(isMultiple ? [] : undefined, {
35349
35406
  value: value,
35350
35407
  defaultValue: defaultValue
35351
35408
  }),
35352
- _useMergedState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useMergedState, 2),
35409
+ _useMergedState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useMergedState, 2),
35353
35410
  initValue = _useMergedState2[0],
35354
35411
  setInitValue = _useMergedState2[1];
35355
- var _useState = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])(treeExpandedKeys),
35356
- _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState, 2),
35412
+ var _useState = Object(react__WEBPACK_IMPORTED_MODULE_19__["useState"])(treeExpandedKeys),
35413
+ _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState, 2),
35357
35414
  expandedKeys = _useState2[0],
35358
35415
  setExpandedKeys = _useState2[1];
35359
- var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])(initValue),
35360
- _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState3, 2),
35416
+ var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_19__["useState"])(initValue),
35417
+ _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState3, 2),
35361
35418
  selectedKeys = _useState4[0],
35362
35419
  setSelectedKeys = _useState4[1];
35363
- var innerRef = Object(react__WEBPACK_IMPORTED_MODULE_20__["useRef"])();
35420
+ var innerRef = Object(react__WEBPACK_IMPORTED_MODULE_19__["useRef"])();
35364
35421
  var selectRef = ref || innerRef;
35365
- var searchRef = Object(react__WEBPACK_IMPORTED_MODULE_20__["useRef"])(null); // 搜索框ref
35366
- var selectionRef = Object(react__WEBPACK_IMPORTED_MODULE_20__["useRef"])(null);
35367
- var dropDownRef = Object(react__WEBPACK_IMPORTED_MODULE_20__["useRef"])(null);
35368
- var measureRef = Object(react__WEBPACK_IMPORTED_MODULE_20__["useRef"])(null);
35369
- var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])(!!props.visible || defaultOpen),
35370
- _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState5, 2),
35422
+ var searchRef = Object(react__WEBPACK_IMPORTED_MODULE_19__["useRef"])(null); // 搜索框ref
35423
+ var selectionRef = Object(react__WEBPACK_IMPORTED_MODULE_19__["useRef"])(null);
35424
+ var dropDownRef = Object(react__WEBPACK_IMPORTED_MODULE_19__["useRef"])(null);
35425
+ var measureRef = Object(react__WEBPACK_IMPORTED_MODULE_19__["useRef"])(null);
35426
+ var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_19__["useState"])(!!props.visible || defaultOpen),
35427
+ _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState5, 2),
35371
35428
  optionShow = _useState6[0],
35372
35429
  setOptionShow = _useState6[1]; // 下拉列表是否展示
35373
- var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])(''),
35374
- _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState7, 2),
35430
+ var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_19__["useState"])(''),
35431
+ _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState7, 2),
35375
35432
  searchValue = _useState8[0],
35376
35433
  setSearchValue = _useState8[1]; // 搜索框定时器
35377
- var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])(INPUT_MIN_WIDTH),
35378
- _useState10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState9, 2),
35434
+ var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_19__["useState"])(INPUT_MIN_WIDTH),
35435
+ _useState10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState9, 2),
35379
35436
  inputWidth = _useState10[0],
35380
35437
  setInputWidth = _useState10[1]; // 输入框宽度
35381
- var _useState11 = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])(autoFocus),
35382
- _useState12 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState11, 2),
35438
+ var _useState11 = Object(react__WEBPACK_IMPORTED_MODULE_19__["useState"])(autoFocus),
35439
+ _useState12 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState11, 2),
35383
35440
  focusd = _useState12[0],
35384
35441
  setFocusd = _useState12[1];
35385
- var _useState13 = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])([]),
35386
- _useState14 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState13, 2),
35442
+ var _useState13 = Object(react__WEBPACK_IMPORTED_MODULE_19__["useState"])([]),
35443
+ _useState14 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState13, 2),
35387
35444
  selectTreeNodes = _useState14[0],
35388
35445
  setSelectTreeNodes = _useState14[1];
35389
- var TreeMap = Object(react__WEBPACK_IMPORTED_MODULE_20__["useMemo"])(function () {
35446
+ var TreeMap = Object(react__WEBPACK_IMPORTED_MODULE_19__["useMemo"])(function () {
35390
35447
  return flattenTreeData(treeData);
35391
35448
  }, [treeData]);
35392
- var isSelected = Object(react__WEBPACK_IMPORTED_MODULE_20__["useMemo"])(function () {
35449
+ var isSelected = Object(react__WEBPACK_IMPORTED_MODULE_19__["useMemo"])(function () {
35393
35450
  return !!(selectTreeNodes !== null && selectTreeNodes !== void 0 && selectTreeNodes.length);
35394
35451
  }, [selectTreeNodes]);
35395
35452
  var selectPrefixCls = getPrefixCls(prefixCls, 'tree-select', customPrefixcls);
35396
35453
  // 选择器样式
35397
- var selectCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()(selectPrefixCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
35398
- var selectionCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()({}, "".concat(selectPrefixCls, "-selector"), true));
35454
+ var selectCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(selectPrefixCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
35455
+ var selectionCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(selectPrefixCls, "-selector"), true));
35399
35456
 
35400
35457
  // 下拉列表框样式
35401
- var dropDownCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()(dropdownClassName, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()({}, "".concat(selectPrefixCls, "-dropdown"), true));
35458
+ var dropDownCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(dropdownClassName, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(selectPrefixCls, "-dropdown"), true));
35402
35459
 
35403
35460
  // 多选,单选公共样式
35404
- var commCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames4, "".concat(selectPrefixCls, "-bordered"), borderType === 'bordered'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames4, "".concat(selectPrefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames4, "".concat(selectPrefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames4, "".concat(selectPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames4, "".concat(selectPrefixCls, "-wrapper"), true), _classNames4));
35405
- Object(react__WEBPACK_IMPORTED_MODULE_20__["useEffect"])(function () {
35461
+ var commCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames4, "".concat(selectPrefixCls, "-bordered"), borderType === 'bordered'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames4, "".concat(selectPrefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames4, "".concat(selectPrefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames4, "".concat(selectPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames4, "".concat(selectPrefixCls, "-wrapper"), true), _classNames4));
35462
+ Object(react__WEBPACK_IMPORTED_MODULE_19__["useEffect"])(function () {
35406
35463
  var arr = [];
35407
35464
  if (isMultiple) {
35408
35465
  for (var index = 0; index < initValue.length; index++) {
@@ -35420,7 +35477,8 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35420
35477
  if (TreeMap.has(initValue)) {
35421
35478
  arr.push(TreeMap.get(initValue));
35422
35479
  } else {
35423
- _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default()(initValue) !== undefined && arr.push({
35480
+ ;
35481
+ (initValue !== null && initValue !== void 0 ? initValue : '') !== '' && arr.push({
35424
35482
  key: initValue,
35425
35483
  title: initValue
35426
35484
  });
@@ -35428,22 +35486,22 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35428
35486
  }
35429
35487
  setSelectTreeNodes(arr);
35430
35488
  }, [initValue, TreeMap, isMultiple]);
35431
- Object(react__WEBPACK_IMPORTED_MODULE_20__["useEffect"])(function () {
35489
+ Object(react__WEBPACK_IMPORTED_MODULE_19__["useEffect"])(function () {
35432
35490
  if (optionShow === false) {
35433
35491
  handleClear();
35434
35492
  }
35435
35493
  }, [optionShow]);
35436
- var handleFocus = Object(react__WEBPACK_IMPORTED_MODULE_20__["useCallback"])(function (e) {
35494
+ var handleFocus = Object(react__WEBPACK_IMPORTED_MODULE_19__["useCallback"])(function (e) {
35437
35495
  e.stopPropagation();
35438
35496
  setFocusd(true);
35439
35497
  onFocus && onFocus(e);
35440
35498
  }, [onFocus]);
35441
- var handleBlur = Object(react__WEBPACK_IMPORTED_MODULE_20__["useCallback"])(function (e) {
35499
+ var handleBlur = Object(react__WEBPACK_IMPORTED_MODULE_19__["useCallback"])(function (e) {
35442
35500
  e.stopPropagation();
35443
35501
  setFocusd(false);
35444
35502
  onBlur && onBlur(e);
35445
35503
  }, [onBlur]);
35446
- Object(react__WEBPACK_IMPORTED_MODULE_20__["useEffect"])(function () {
35504
+ Object(react__WEBPACK_IMPORTED_MODULE_19__["useEffect"])(function () {
35447
35505
  selectionRef.current.addEventListener('mouseup', function (e) {
35448
35506
  var _e$target;
35449
35507
  var isCloseBtn = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.className.indexOf('kd-tag-close-icon')) > -1;
@@ -35452,7 +35510,7 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35452
35510
  }
35453
35511
  });
35454
35512
  }, []);
35455
- Object(react__WEBPACK_IMPORTED_MODULE_20__["useLayoutEffect"])(function () {
35513
+ Object(react__WEBPACK_IMPORTED_MODULE_19__["useLayoutEffect"])(function () {
35456
35514
  measureRef.current && setInputWidth(measureRef.current.scrollWidth);
35457
35515
  }, [searchValue]);
35458
35516
  var getTreeNodeLabel = function getTreeNodeLabel(node) {
@@ -35460,7 +35518,7 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35460
35518
  };
35461
35519
 
35462
35520
  // 输入框变化搜索内容
35463
- var handleSearchChange = Object(react__WEBPACK_IMPORTED_MODULE_20__["useCallback"])(function (event) {
35521
+ var handleSearchChange = Object(react__WEBPACK_IMPORTED_MODULE_19__["useCallback"])(function (event) {
35464
35522
  var val = event.currentTarget.value;
35465
35523
  setOptionShow(true);
35466
35524
  setSearchValue(val);
@@ -35468,7 +35526,7 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35468
35526
  }, [onSearch]);
35469
35527
 
35470
35528
  // 清除搜索内容
35471
- var handleClear = Object(react__WEBPACK_IMPORTED_MODULE_20__["useCallback"])(function () {
35529
+ var handleClear = Object(react__WEBPACK_IMPORTED_MODULE_19__["useCallback"])(function () {
35472
35530
  if (searchRef.current) {
35473
35531
  searchRef.current.value = '';
35474
35532
  setSearchValue('');
@@ -35492,7 +35550,7 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35492
35550
  var handleRemove = function handleRemove(e, key) {
35493
35551
  var _TreeMap$get, _TreeMap$get2;
35494
35552
  if (disabled) return;
35495
- var allRemoveKeys = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7___default()(((_TreeMap$get = TreeMap.get(key)) === null || _TreeMap$get === void 0 ? void 0 : _TreeMap$get.childrenKeys) || []), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7___default()(((_TreeMap$get2 = TreeMap.get(key)) === null || _TreeMap$get2 === void 0 ? void 0 : _TreeMap$get2.parentKeys) || []), [key]);
35553
+ var allRemoveKeys = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6___default()(((_TreeMap$get = TreeMap.get(key)) === null || _TreeMap$get === void 0 ? void 0 : _TreeMap$get.childrenKeys) || []), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6___default()(((_TreeMap$get2 = TreeMap.get(key)) === null || _TreeMap$get2 === void 0 ? void 0 : _TreeMap$get2.parentKeys) || []), [key]);
35496
35554
  var newSelectTreeNodes = selectTreeNodes.filter(function (item) {
35497
35555
  return !allRemoveKeys.includes(item.key);
35498
35556
  });
@@ -35532,20 +35590,20 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35532
35590
  var _classNames5;
35533
35591
  var suffixIcon = treeSelectProps.suffixIcon;
35534
35592
  // 选择器下拉icon样式
35535
- var arrowIconCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()((_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow-up"), optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow-down"), !optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow-focus"), optionShow), _classNames5));
35593
+ var arrowIconCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()((_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow-up"), optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow-down"), !optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames5, "".concat(selectPrefixCls, "-icon-arrow-focus"), optionShow), _classNames5));
35536
35594
  var iconShow = allowClear && !disabled && (isMultiple ? !!selectTreeNodes.length : (initValue !== null && initValue !== void 0 ? initValue : '') !== '' || searchValue);
35537
- var clearIconCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()({}, "".concat(selectPrefixCls, "-icon-clear"), true));
35538
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_20___default.a.Fragment, null, iconShow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35595
+ var clearIconCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(selectPrefixCls, "-icon-clear"), true));
35596
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_19___default.a.Fragment, null, iconShow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35539
35597
  onClick: handleReset,
35540
35598
  onMouseDown: function onMouseDown(e) {
35541
35599
  return e.preventDefault();
35542
35600
  },
35543
35601
  className: clearIconCls
35544
- }, clearIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Icon"], {
35602
+ }, clearIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_24__["Icon"], {
35545
35603
  type: "close-solid"
35546
- })), showArrow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35604
+ })), showArrow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35547
35605
  className: arrowIconCls
35548
- }, suffixIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Icon"], {
35606
+ }, suffixIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_24__["Icon"], {
35549
35607
  type: "arrow-down"
35550
35608
  })));
35551
35609
  };
@@ -35586,20 +35644,20 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35586
35644
  treeProps.checkedKeys = initValue;
35587
35645
  treeProps.onCheck = handleCheck;
35588
35646
  }
35589
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Tree"], treeProps);
35647
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_24__["Tree"], treeProps);
35590
35648
  };
35591
35649
 
35592
35650
  // 下拉列表为空时显示的内容
35593
35651
  var renderNotContent = function renderNotContent() {
35594
35652
  // 下拉列表为空
35595
- var emptyListCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()({}, "".concat(selectPrefixCls, "-dropdown-empty"), true));
35653
+ var emptyListCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(selectPrefixCls, "-dropdown-empty"), true));
35596
35654
  var notFoundContent = treeSelectProps.notFoundContent;
35597
35655
  var emptyContent = notFoundContent || '暂无数据';
35598
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("div", {
35656
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("div", {
35599
35657
  className: emptyListCls
35600
35658
  }, emptyContent);
35601
35659
  };
35602
- Object(react__WEBPACK_IMPORTED_MODULE_20__["useEffect"])(function () {
35660
+ Object(react__WEBPACK_IMPORTED_MODULE_19__["useEffect"])(function () {
35603
35661
  if (showSearch && autoFocus && !disabled) {
35604
35662
  var _searchRef$current;
35605
35663
  (_searchRef$current = searchRef.current) === null || _searchRef$current === void 0 ? void 0 : _searchRef$current.focus();
@@ -35612,7 +35670,7 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35612
35670
  width: style === null || style === void 0 ? void 0 : style.width,
35613
35671
  maxHeight: virtual ? 'unset' : ''
35614
35672
  }, dropdownStyle);
35615
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_20___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("div", {
35673
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_19___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("div", {
35616
35674
  className: dropDownCls,
35617
35675
  style: dropDownStyle,
35618
35676
  ref: dropDownRef
@@ -35620,16 +35678,16 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35620
35678
  };
35621
35679
 
35622
35680
  // 处理多选tag
35623
- var handleMaxTagHolder = Object(react__WEBPACK_IMPORTED_MODULE_20__["useCallback"])(function () {
35681
+ var handleMaxTagHolder = Object(react__WEBPACK_IMPORTED_MODULE_19__["useCallback"])(function () {
35624
35682
  var maxTagPlaceholder = treeSelectProps.maxTagPlaceholder;
35625
35683
  if (typeof maxTagPlaceholder === 'function') {
35626
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Tag"], {
35684
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_24__["Tag"], {
35627
35685
  type: "edit",
35628
35686
  size: size,
35629
35687
  disabled: disabled
35630
35688
  }, maxTagPlaceholder(selectTreeNodes));
35631
35689
  } else {
35632
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Tag"], {
35690
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_24__["Tag"], {
35633
35691
  type: "edit",
35634
35692
  size: size,
35635
35693
  disabled: disabled
@@ -35641,13 +35699,13 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35641
35699
  if (isSelected) {
35642
35700
  label = getTreeNodeLabel(selectTreeNodes[0]);
35643
35701
  }
35644
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_20___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("div", {
35702
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_19___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("div", {
35645
35703
  className: singleCls,
35646
35704
  ref: selectionRef,
35647
35705
  title: label
35648
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35706
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35649
35707
  className: "".concat(selectPrefixCls, "-selection-search")
35650
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("input", {
35708
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("input", {
35651
35709
  ref: searchRef,
35652
35710
  value: searchValue,
35653
35711
  className: "".concat(selectPrefixCls, "-selection-search-input"),
@@ -35655,11 +35713,11 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35655
35713
  onFocus: handleFocus,
35656
35714
  onBlur: handleBlur,
35657
35715
  readOnly: !showSearch || !!disabled
35658
- })), isSelected && !searchValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35716
+ })), isSelected && !searchValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35659
35717
  className: "".concat(selectPrefixCls, "-selection-item")
35660
- }, label), !isSelected && !searchValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35718
+ }, label), !isSelected && !searchValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35661
35719
  className: "".concat(selectPrefixCls, "-placeholder")
35662
- }, placeholder), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35720
+ }, placeholder), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35663
35721
  className: "".concat(selectPrefixCls, "-suffix")
35664
35722
  }, renderSuffix())));
35665
35723
  };
@@ -35667,21 +35725,21 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35667
35725
  var _classNames8, _classNames9;
35668
35726
  var maxTagCount = treeSelectProps.maxTagCount,
35669
35727
  maxTagPlaceholder = treeSelectProps.maxTagPlaceholder;
35670
- var multipleCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()(commCls, (_classNames8 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames8, "".concat(selectPrefixCls, "-multiple-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames8, "".concat(selectPrefixCls, "-").concat(mode), mode), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames8, "".concat(selectPrefixCls, "-focused"), focusd || optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames8, "".concat(selectPrefixCls, "-placeholder"), placeholder && !selectTreeNodes.length), _classNames8));
35671
- var itemCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()((_classNames9 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames9, "".concat(selectPrefixCls, "-selection-item"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames9, "".concat(selectPrefixCls, "-selection-item-").concat(size), size), _classNames9));
35728
+ var multipleCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(commCls, (_classNames8 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames8, "".concat(selectPrefixCls, "-multiple-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames8, "".concat(selectPrefixCls, "-").concat(mode), mode), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames8, "".concat(selectPrefixCls, "-focused"), focusd || optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames8, "".concat(selectPrefixCls, "-placeholder"), placeholder && !selectTreeNodes.length), _classNames8));
35729
+ var itemCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()((_classNames9 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames9, "".concat(selectPrefixCls, "-selection-item"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames9, "".concat(selectPrefixCls, "-selection-item-").concat(size), size), _classNames9));
35672
35730
  var TagStyle = {
35673
35731
  margin: '2px 8px 2px 0',
35674
35732
  maxWidth: '100%'
35675
35733
  };
35676
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("div", {
35734
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("div", {
35677
35735
  className: multipleCls,
35678
35736
  ref: selectionRef
35679
- }, Array.isArray(selectTreeNodes) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_20___default.a.Fragment, null, selectTreeNodes.map(function (item, index) {
35737
+ }, Array.isArray(selectTreeNodes) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_19___default.a.Fragment, null, selectTreeNodes.map(function (item, index) {
35680
35738
  var key = item.key;
35681
35739
  var label = getTreeNodeLabel(item);
35682
- return (!maxTagCount || index <= maxTagCount - 1) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35740
+ return (!maxTagCount || index <= maxTagCount - 1) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35683
35741
  key: key,
35684
- className: classnames__WEBPACK_IMPORTED_MODULE_22___default()("".concat(selectPrefixCls, "-selection-tag")),
35742
+ className: classnames__WEBPACK_IMPORTED_MODULE_21___default()("".concat(selectPrefixCls, "-selection-tag")),
35685
35743
  onMouseDown: function onMouseDown(e) {
35686
35744
  return e.preventDefault();
35687
35745
  }
@@ -35689,7 +35747,7 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35689
35747
  onClose: handleRemove,
35690
35748
  disabled: disabled,
35691
35749
  size: size
35692
- }, item)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_25__["Tag"], {
35750
+ }, item)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_24__["Tag"], {
35693
35751
  type: "edit",
35694
35752
  style: TagStyle,
35695
35753
  size: size,
@@ -35701,16 +35759,16 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35701
35759
  "data-tag": key,
35702
35760
  title: label
35703
35761
  }, label));
35704
- }), maxTagCount && selectTreeNodes.length > maxTagCount ? maxTagPlaceholder ? handleMaxTagHolder() : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35762
+ }), maxTagCount && selectTreeNodes.length > maxTagCount ? maxTagPlaceholder ? handleMaxTagHolder() : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35705
35763
  className: itemCls
35706
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35764
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35707
35765
  className: "".concat(selectPrefixCls, "-selection-item-content")
35708
- }, "\u5171", selectTreeNodes.length, "\u9879")) : null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35766
+ }, "\u5171", selectTreeNodes.length, "\u9879")) : null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35709
35767
  className: "".concat(selectPrefixCls, "-selection-search"),
35710
35768
  style: {
35711
35769
  width: inputWidth
35712
35770
  }
35713
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("input", {
35771
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("input", {
35714
35772
  ref: searchRef,
35715
35773
  value: searchValue,
35716
35774
  className: "".concat(selectPrefixCls, "-selection-search-input"),
@@ -35718,22 +35776,22 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35718
35776
  onFocus: handleFocus,
35719
35777
  onBlur: handleBlur,
35720
35778
  readOnly: !showSearch || !!disabled
35721
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35779
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35722
35780
  ref: measureRef,
35723
35781
  className: "".concat(selectPrefixCls, "-selection-search-mirror")
35724
- }, searchValue, "\xA0")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35782
+ }, searchValue, "\xA0")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35725
35783
  className: "".concat(selectPrefixCls, "-placeholder")
35726
- }, !(selectTreeNodes !== null && selectTreeNodes !== void 0 && selectTreeNodes.length) && !searchValue && placeholder), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35784
+ }, !(selectTreeNodes !== null && selectTreeNodes !== void 0 && selectTreeNodes.length) && !searchValue && placeholder), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35727
35785
  className: "".concat(selectPrefixCls, "-suffix")
35728
35786
  }, renderSuffix()));
35729
35787
  };
35730
- var singleCls = classnames__WEBPACK_IMPORTED_MODULE_22___default()(commCls, (_classNames10 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames10, "".concat(selectPrefixCls, "-single"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames10, "".concat(selectPrefixCls, "-single-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames10, "".concat(selectPrefixCls, "-single-focused"), focusd && !disabled || optionShow), _classNames10));
35788
+ var singleCls = classnames__WEBPACK_IMPORTED_MODULE_21___default()(commCls, (_classNames10 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames10, "".concat(selectPrefixCls, "-single"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames10, "".concat(selectPrefixCls, "-single-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(_classNames10, "".concat(selectPrefixCls, "-single-focused"), focusd && !disabled || optionShow), _classNames10));
35731
35789
  var renderSelect = function renderSelect() {
35732
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("div", {
35790
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("div", {
35733
35791
  className: selectCls,
35734
35792
  ref: selectRef,
35735
35793
  style: style
35736
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("span", {
35794
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.createElement("span", {
35737
35795
  className: selectionCls,
35738
35796
  tabIndex: disabled ? -1 : 0,
35739
35797
  onFocus: function onFocus() {
@@ -35772,9 +35830,9 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
35772
35830
  onVisibleChange: handleVisibleChange,
35773
35831
  clickToClose: !(showSearch && searchValue)
35774
35832
  });
35775
- return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_26__["default"])(renderSelect(), renderContent(), popperProps);
35833
+ return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_25__["default"])(renderSelect(), renderContent(), popperProps);
35776
35834
  };
35777
- var TreeSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.forwardRef(InternalTreeSelect);
35835
+ var TreeSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_19___default.a.forwardRef(InternalTreeSelect);
35778
35836
  TreeSelect.displayName = 'TreeSelect';
35779
35837
  /* harmony default export */ __webpack_exports__["default"] = (TreeSelect);
35780
35838
 
@@ -42968,10 +43026,16 @@ var getCompLangMsg = function getCompLangMsg(compLangMsgParams, customGetLangMsg
42968
43026
  __webpack_require__.r(__webpack_exports__);
42969
43027
  var locale = {
42970
43028
  locale: 'zh-CN',
42971
- 'global.selectholder': '请选择',
42972
- 'global.placeholder': '请输入...',
42973
- 'global.cancel': '取消',
42974
- 'global.confirm': '确定'
43029
+ // Text Filter
43030
+ contain: '包含',
43031
+ notContain: '不包含',
43032
+ equal: '等于',
43033
+ notEqual: '不等于',
43034
+ isNull: '为空',
43035
+ notIsNull: '不为空',
43036
+ // filter button
43037
+ resetFilter: '重置',
43038
+ confirmFilter: '确定'
42975
43039
  };
42976
43040
  /* harmony default export */ __webpack_exports__["default"] = (locale);
42977
43041
 
@@ -43994,7 +44058,8 @@ __webpack_require__.r(__webpack_exports__);
43994
44058
  var TableDOMHelper = /*#__PURE__*/function () {
43995
44059
  function TableDOMHelper(artTableWrapper) {
43996
44060
  var _this = this,
43997
- _context2;
44061
+ _context2,
44062
+ _context3;
43998
44063
 
43999
44064
  _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TableDOMHelper);
44000
44065
 
@@ -44041,7 +44106,7 @@ var TableDOMHelper = /*#__PURE__*/function () {
44041
44106
  this.tableFooter = this.artTable.querySelector(".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableFooter));
44042
44107
  this.tableFooterMain = this.artTable.querySelector(".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableFooterMain));
44043
44108
 
44044
- var stickyScrollSelector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context2 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].artTable, " + .")).call(_context2, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].stickyScroll);
44109
+ var stickyScrollSelector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context3 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].artTable, " + .")).call(_context3, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].horizontalStickyScrollContainer, " .")).call(_context2, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].stickyScroll);
44045
44110
 
44046
44111
  this.stickyScroll = artTableWrapper.querySelector(stickyScrollSelector);
44047
44112
  this.stickyScrollItem = this.stickyScroll.querySelector(".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].stickyScrollItem));
@@ -44055,35 +44120,37 @@ var TableDOMHelper = /*#__PURE__*/function () {
44055
44120
  }, {
44056
44121
  key: "getTableRows",
44057
44122
  value: function getTableRows() {
44058
- var _context3;
44123
+ var _context4;
44059
44124
 
44060
- var tbody = this.artTable.querySelector(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context3 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableBody, " .")).call(_context3, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].virtual, " table tbody"));
44125
+ var tbody = this.artTable.querySelector(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context4 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableBody, " .")).call(_context4, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].virtual, " table tbody"));
44061
44126
  return tbody.childNodes;
44062
44127
  }
44063
44128
  }, {
44064
44129
  key: "getTableBodyHtmlTable",
44065
44130
  value: function getTableBodyHtmlTable() {
44066
- var _context4;
44131
+ var _context5;
44067
44132
 
44068
- return this.artTable.querySelector(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context4 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableBody, " .")).call(_context4, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].virtual, " table"));
44133
+ return this.artTable.querySelector(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context5 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableBody, " .")).call(_context5, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].virtual, " table"));
44069
44134
  }
44070
44135
  }, {
44071
44136
  key: "getLeftLockShadow",
44072
44137
  value: function getLeftLockShadow() {
44073
- var _context5;
44138
+ var _context6;
44074
44139
 
44075
- var selector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context5 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].lockShadowMask, " .")).call(_context5, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].leftLockShadow);
44140
+ var selector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context6 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].lockShadowMask, " .")).call(_context6, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].leftLockShadow);
44076
44141
 
44077
- return this.artTable.querySelector(selector);
44142
+ var allLeftLockShadow = this.artTable.querySelectorAll(selector);
44143
+ return allLeftLockShadow[allLeftLockShadow.length - 1]; // 当table-body、table-footer嵌套多层表格时,需要查找最后一个,否则会查找到嵌套表格的
44078
44144
  }
44079
44145
  }, {
44080
44146
  key: "getRightLockShadow",
44081
44147
  value: function getRightLockShadow() {
44082
- var _context6;
44148
+ var _context7;
44083
44149
 
44084
- var selector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context6 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].lockShadowMask, " .")).call(_context6, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].rightLockShadow);
44150
+ var selector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context7 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].lockShadowMask, " .")).call(_context7, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].rightLockShadow);
44085
44151
 
44086
- return this.artTable.querySelector(selector);
44152
+ var allRightLockShadow = this.artTable.querySelectorAll(selector);
44153
+ return allRightLockShadow[allRightLockShadow.length - 1]; // 当table-body、table-footer嵌套多层表格时,需要查找最后一个,否则会查找到嵌套表格的
44087
44154
  }
44088
44155
  }, {
44089
44156
  key: "getLoadingIndicator",
@@ -44093,11 +44160,11 @@ var TableDOMHelper = /*#__PURE__*/function () {
44093
44160
  }, {
44094
44161
  key: "getRowTop",
44095
44162
  value: function getRowTop(rowIndex) {
44096
- var _context7, _context8;
44163
+ var _context8, _context9;
44097
44164
 
44098
44165
  if (rowIndex === 0) return 0;
44099
44166
 
44100
- var selector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context7 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context8 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableBody, " .")).call(_context8, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableRow, "[data-rowindex=\"")).call(_context7, rowIndex, "\"]");
44167
+ var selector = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context8 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context9 = ".".concat(_styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableBody, " .")).call(_context9, _styles__WEBPACK_IMPORTED_MODULE_5__["Classes"].tableRow, "[data-rowindex=\"")).call(_context8, rowIndex, "\"]");
44101
44168
 
44102
44169
  var row = this.artTable.querySelector(selector);
44103
44170
  var rowOffsetTop = row && row.offsetTop || 0;
@@ -45243,6 +45310,9 @@ var Classes = {
45243
45310
  stickyScrollItem: "".concat(prefix, "sticky-scroll-item"),
45244
45311
  horizontalScrollContainer: "".concat(prefix, "horizontal-scroll-container"),
45245
45312
  verticalScrollPlaceholder: "".concat(prefix, "vertical-scroll-placeholder"),
45313
+ horizontalStickyScrollContainer: "".concat(prefix, "horizontal-sticky-scroll-container"),
45314
+ horizontalScrollLeftSpacer: "".concat(prefix, "horizontal-scroll-left-spacer"),
45315
+ horizontalScrollRightSpacer: "".concat(prefix, "horizontal-scroll-right-spacer"),
45246
45316
  lockShadowMask: "".concat(prefix, "lock-shadow-mask"),
45247
45317
  lockShadow: "".concat(prefix, "lock-shadow"),
45248
45318
  leftLockShadow: "".concat(prefix, "left-lock-shadow"),
@@ -45285,7 +45355,14 @@ var Classes = {
45285
45355
  collapsed: "".concat(prefix, "collapsed"),
45286
45356
  popup: "".concat(prefix, "popup"),
45287
45357
  popupHeader: "".concat(prefix, "popup-header"),
45288
- popupBody: "".concat(prefix, "popup-body")
45358
+ popupBody: "".concat(prefix, "popup-body"),
45359
+ rowDragging: "".concat(prefix, "row-dragging"),
45360
+ rowDragStart: "".concat(prefix, "row-drag-start"),
45361
+ rowDragEnd: "".concat(prefix, "row-drag-end"),
45362
+ rowDragEndToTop: "".concat(prefix, "row-drag-end-to-top"),
45363
+ rowDragEndToBottom: "".concat(prefix, "row-drag-end-to-bottom"),
45364
+ rowDragElement: "".concat(prefix, "row-drag-element"),
45365
+ rowDragCell: "".concat(prefix, "row-drag-cell")
45289
45366
  };
45290
45367
  var MenuClasses = {
45291
45368
  menu: "".concat(prefix, "table-menu"),
@@ -45337,7 +45414,7 @@ var defaultCSSVariables = {
45337
45414
  var variableConst = getCssVariableText(defaultCSSVariables);
45338
45415
  var notBorderedStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(_templateObject2 || (_templateObject2 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n --cell-border-vertical: none;\n --header-cell-border-vertical: none;\n"])));
45339
45416
  var borderedStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(_templateObject3 || (_templateObject3 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n //th\u9690\u85CF\u5217\u5BBD\u62D6\u62FD\u7684\u80CC\u666F\u8272\uFF0C\u4F7F\u7528th\u7684\u53F3\u8FB9\u6846\u4EE3\u66FF\n .", "::after{\n background-color: inherit;\n }\n"])), Classes.tableHeaderCellResize);
45340
- var StyledArtTableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3__["default"].div(_templateObject4 || (_templateObject4 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n :root {\n ", "\n }\n ", "\n\n box-sizing: border-box;\n * {\n box-sizing: border-box;\n }\n cursor: default;\n color: var(--color);\n font-size: var(--font-size);\n line-height: var(--line-height);\n position: relative;\n\n // \u8868\u683C\u5916\u8FB9\u6846\u7531 art-table-wrapper \u63D0\u4F9B\uFF0C\u800C\u4E0D\u662F\u7531\u5355\u5143\u683C\u63D0\u4F9B\n &.use-outer-border {\n ", ";\n }\n\n // \u8868\u683C\u4E0D\u542F\u7528\u8FB9\u6846\u7EBF\uFF0C\u9690\u85CFth\u3001td\u7684\u5355\u5143\u683C\u5DE6\u53F3\u8FB9\u6846\u7EBF\n &:not(.", ") {\n ", "\n }\n &.", "{\n ", "\n }\n\n .no-scrollbar {\n ::-webkit-scrollbar {\n display: none;\n }\n }\n\n .", " {\n overflow: auto;\n flex-shrink: 1;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n\n .", " {\n overflow: hidden;\n background: var(--header-bgcolor);\n display: flex;\n flex-shrink: 0;\n border-bottom: var(--header-cell-border-horizontal);\n }\n\n .", " {\n display: flex;\n // justify-content: flex-start;\n align-items: center;\n height: inherit;\n }\n\n .", " {\n overflow-x:auto;\n flex-shrink: 0;\n flex-grow: 0;\n scrollbar-width: none; // \u517C\u5BB9\u706B\u72D0\n & {\n ::-webkit-scrollbar {\n display:none;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: none;\n }\n .", ", .", " {\n background: var(--bgcolor);\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n position:relative;\n &.empty {\n position: relative;\n }\n }\n\n .", " {\n position: relative;\n }\n .", ", .", " {\n .", "{\n background-color: #e6effb !important;\n }\n .", "{\n border-top: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-left: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-right: 1px solid #0E5FD8 !important;\n }\n }\n\n .", " {\n user-select:none;\n }\n\n\n &.sticky-header .", " {\n position: sticky;\n top: 0;\n z-index: ", ";\n }\n\n &.sticky-footer .", " {\n position: sticky;\n bottom: 0;\n z-index: ", ";\n }\n\n table {\n width: 0;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n display: table;\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n flex-grow: 0;\n position:relative;\n }\n\n // \u5728 tr \u4E0A\u8BBE\u7F6E .no-hover \u53EF\u4EE5\u7981\u7528\u9F20\u6807\u60AC\u505C\u6548\u679C\n tr:not(.no-hover):hover > td {\n background: var(--hover-bgcolor);\n }\n // \u4F7F\u7528 js \u6DFB\u52A0\u60AC\u6D6E\u6548\u679C\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n // \u5728 tr \u8BBE\u7F6E highlight \u53EF\u4EE5\u4E3A\u5E95\u4E0B\u7684 td \u8BBE\u7F6E\u4E3A\u9AD8\u4EAE\u8272\n // \u800C\u8BBE\u7F6E .no-highlight \u7684\u8BDD\u5219\u53EF\u4EE5\u7981\u7528\u9AD8\u4EAE\u6548\u679C\uFF1B\n tr:not(.no-highlight).highlight > td {\n background: var(--highlight-bgcolor);\n }\n\n th {\n font-weight: normal;\n text-align: left;\n padding: var(--cell-padding);\n height: var(--header-row-height);\n color: var(--header-color);\n background: var(--header-bgcolor);\n border:1px solid transparent;\n border-right: var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-right: var(--header-cell-border-vertical)\n }\n\n th.", " {\n border-right: var(--header-cell-border-vertical);\n border-bottom: none;\n }\n\n tr.", " th {\n border-top: var(--header-cell-border-horizontal);\n }\n th.", " {\n border-left: var(--header-cell-border-vertical);\n }\n\n td {\n padding: var(--cell-padding);\n background: var(--bgcolor);\n height: var(--row-height);\n border:1px solid transparent;\n border-right: var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td.", " {\n border-left: var(--cell-border-vertical);\n }\n tr.", " td {\n border-top: var(--cell-border-horizontal);\n }\n &.has-header tbody tr.", " td {\n border-top: none;\n }\n &.has-footer tbody tr.", " td {\n border-bottom: none;\n }\n\n .", ",\n .", " {\n z-index: ", ";\n }\n\n //#region \u9501\u5217\u9634\u5F71\n .", " {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: ", ";\n pointer-events: none;\n overflow: hidden;\n\n .", " {\n height: 100%;\n }\n\n .", " {\n margin-right: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-right: var(--cell-border-vertical);\n }\n }\n\n .", " {\n margin-left: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-left: var(--cell-border-vertical);\n }\n }\n }\n //#endregion\n\n //#region \u7A7A\u8868\u683C\u5C55\u73B0\n .", " {\n pointer-events: none;\n color: #99a3b3;\n font-size: 12px;\n text-align: center;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n .empty-image {\n width: 50px;\n height: 50px;\n }\n\n .empty-tips {\n margin-top: 16px;\n line-height: 1.5;\n }\n }\n //#endregion\n\n //#region IE\u517C\u5BB9\n &.ie-polyfill-wrapper {\n //\u9501\u5B9A\u5217\u517C\u5BB9 \u4EC5\u5728\u9501\u5B9A\u5217\u7684\u60C5\u51B5\u4E0B\u751F\u6548\n .", " {\n overflow-x: hidden;\n }\n .", ", .", " {\n position:relative;\n }\n .", " {\n overflow: hidden;\n }\n .", " {\n position: relative;\n }\n\n .", " {\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n }\n\n .", ", .", "{\n position: absolute;\n z-index: ", ";\n top: 0;\n }\n .", "{\n left:0;\n }\n .", "{\n right:0;\n }\n\n .", "{\n .", "{\n position: absolute;\n top: 0;\n width: 100%;\n z-index: ", ";\n }\n }\n\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n }\n //#endregion\n\n //#region \u7C98\u6027\u6EDA\u52A8\u6761\n .", " {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ", ";\n flex-shrink: 0;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n background: var(--bgcolor);\n }\n\n .", " {\n // \u5FC5\u987B\u6709\u9AD8\u5EA6\u624D\u80FD\u51FA\u73B0\u6EDA\u52A8\u6761\n height: 1px;\n visibility: hidden;\n }\n //#endregion\n\n //#region \u52A0\u8F7D\u6837\u5F0F\n .", " {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: auto;\n\n .", " {\n filter: none;\n width: 100%;\n height: 100%;\n overflow: hidden;//\u5217\u5168\u90E8\u56FA\u5B9A\u65F6\uFF0C\u5B58\u5728\u53CC\u6A2A\u5411\u6EDA\u52A8\u6761\n display: flex;\n position: relative;\n flex-direction: column;\n }\n\n .", " {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n\n .", " {\n position: sticky;\n z-index: ", ";\n transform: translateY(-50%);\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u8FC7\u6EE4\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n padding: 6px 4px;\n &:hover{\n background-color: #e5e5e5;\n }\n &:focus {\n outline: none\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u6392\u5E8F\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n //#endregion\n\n //#region \u6EDA\u52A8\u6761\u5360\u4F4D\n .", " {\n visibility: hidden;\n flex-shrink: 0;\n }\n .", " .", " {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n\n //#region \u62D6\u62FD\u5217\u5BBD\u5927\u5C0F\n .", "::after{\n background-color: var(--border-color);\n }\n //\u89E3\u51B3\u90E8\u5206\u6D4F\u89C8\u5668(chrome109)\u6700\u540E\u4E00\u4E2A\u5355\u5143\u683C\u7684\u5217\u5BBD\u62D6\u62FD\u533A\u57DF\u7EDD\u5BF9\u5B9A\u4F4D\u8D85\u51FA\u8868\u683C\uFF0C\u5BFC\u81F4\u8868\u683C\u7AD6\u5206\u5272\u7EBF\u65E0\u6CD5\u5BF9\u9F50\n .", " th.", " .", "{\n right: 0;\n width: 5px;\n &::after{\n left: 4px;\n }\n }\n //#endregion\n\n "])), variableConst, variableConst, outerBorderStyleMixin, Classes.artTableBordered, notBorderedStyleMixin, Classes.artTableBordered, borderedStyleMixin, Classes.artTable, Classes.tableHeader, Classes.tableHeaderCellContent, Classes.virtual, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableRow, Classes.tableBody, Classes.tableFooter, Classes.tableCellRangeSelected, Classes.tableCellRangeTop, Classes.tableCellRangeLeft, Classes.tableCellRangeBottom, Classes.tableCellRangeRight, Classes.rangeSelection, Classes.tableHeader, Z.header, Classes.tableFooter, Z.footer, Classes.leaf, Classes.first, Classes.first, Classes.first, Classes.first, Classes.first, Classes.last, Classes.lockLeft, Classes.lockRight, Z.lock, Classes.lockShadowMask, Z.lockShadow, Classes.lockShadow, Classes.leftLockShadow, LOCK_SHADOW_PADDING, Classes.rightLockShadow, LOCK_SHADOW_PADDING, Classes.emptyWrapper, Classes.virtual, Classes.tableBody, Classes.tableFooter, Classes.tableHeaderMain, Classes.tableHeader, Classes.tableFooterMain, Classes.fixedLeft, Classes.fixedRight, Z.lock, Classes.fixedLeft, Classes.fixedRight, Classes.rowDetailContainer, Classes.rowDetailItem, Z.rowDetail, Classes.stickyScroll, Z.scrollItem, Classes.stickyScrollItem, Classes.loadingWrapper, Classes.loadingContentWrapper, Classes.loadingIndicatorWrapper, Classes.loadingIndicator, Z.loadingIndicator, Classes.tableFilterTrigger, Classes.tableSortIcon, Classes.tableExtendIcon, Classes.verticalScrollPlaceholder, Classes.tableFooter, Classes.verticalScrollPlaceholder, Classes.tableHeaderCellResize, Classes.tableHeaderRow, Classes.last, Classes.tableHeaderCellResize);
45417
+ var StyledArtTableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3__["default"].div(_templateObject4 || (_templateObject4 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n :root {\n ", "\n }\n ", "\n\n box-sizing: border-box;\n * {\n box-sizing: border-box;\n }\n cursor: default;\n color: var(--color);\n font-size: var(--font-size);\n line-height: var(--line-height);\n position: relative;\n\n // \u8868\u683C\u5916\u8FB9\u6846\u7531 art-table-wrapper \u63D0\u4F9B\uFF0C\u800C\u4E0D\u662F\u7531\u5355\u5143\u683C\u63D0\u4F9B\n &.use-outer-border {\n ", ";\n }\n\n // \u8868\u683C\u4E0D\u542F\u7528\u8FB9\u6846\u7EBF\uFF0C\u9690\u85CFth\u3001td\u7684\u5355\u5143\u683C\u5DE6\u53F3\u8FB9\u6846\u7EBF\n &:not(.", ") {\n ", "\n }\n &.", "{\n ", "\n }\n\n .no-scrollbar {\n ::-webkit-scrollbar {\n display: none;\n }\n }\n\n .", " {\n overflow: auto;\n flex-shrink: 1;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n\n .", " {\n overflow: hidden;\n background: var(--header-bgcolor);\n display: flex;\n flex-shrink: 0;\n border-bottom: var(--header-cell-border-horizontal);\n }\n\n .", " {\n display: flex;\n // justify-content: flex-start;\n align-items: center;\n height: inherit;\n }\n\n .", " {\n overflow-x:auto;\n flex-shrink: 0;\n flex-grow: 0;\n scrollbar-width: none; // \u517C\u5BB9\u706B\u72D0\n & {\n ::-webkit-scrollbar {\n display:none;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: none;\n }\n .", ", .", " {\n background: var(--bgcolor);\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n position:relative;\n &.empty {\n position: relative;\n }\n }\n\n .", " {\n position: relative;\n }\n .", ", .", " {\n .", "{\n background-color: #e6effb !important;\n }\n .", "{\n border-top: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-left: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-right: 1px solid #0E5FD8 !important;\n }\n }\n\n .", " {\n user-select:none;\n }\n\n .", " {\n user-select:none;\n .", " .", " >td{\n cursor:move;\n }\n\n .", " .", " >td{\n cursor:no-drop;\n }\n \n }\n\n .", "{\n opacity: 0.5;\n }\n\n\n .", "::after{\n content: \"\";\n position: absolute;\n display: block;\n left: 0px;\n width: 100%;\n height: 1px;\n top:0px;\n z-index:20;\n background-color:var(--primary-color);\n }\n\n .", "::after{\n content: \"\";\n position: absolute;\n display: block;\n left: 0px;\n width: 100%;\n height: 1px;\n bottom:0px;\n z-index:20;\n background-color:var(--primary-color);\n }\n\n .", " {\n cursor:pointer;\n }\n\n\n &.sticky-header .", " {\n position: sticky;\n top: 0;\n z-index: ", ";\n }\n\n &.sticky-footer .", " {\n position: sticky;\n bottom: 0;\n z-index: ", ";\n }\n\n table {\n width: 0;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n display: table;\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n flex-grow: 0;\n position:relative;\n }\n\n // \u5728 tr \u4E0A\u8BBE\u7F6E .no-hover \u53EF\u4EE5\u7981\u7528\u9F20\u6807\u60AC\u505C\u6548\u679C\n tr:not(.no-hover):hover > td {\n background: var(--hover-bgcolor);\n }\n // \u4F7F\u7528 js \u6DFB\u52A0\u60AC\u6D6E\u6548\u679C\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n // \u5728 tr \u8BBE\u7F6E highlight \u53EF\u4EE5\u4E3A\u5E95\u4E0B\u7684 td \u8BBE\u7F6E\u4E3A\u9AD8\u4EAE\u8272\n // \u800C\u8BBE\u7F6E .no-highlight \u7684\u8BDD\u5219\u53EF\u4EE5\u7981\u7528\u9AD8\u4EAE\u6548\u679C\uFF1B\n tr:not(.no-highlight).highlight > td {\n background: var(--highlight-bgcolor);\n }\n\n th {\n font-weight: normal;\n text-align: left;\n padding: var(--cell-padding);\n height: var(--header-row-height);\n color: var(--header-color);\n background: var(--header-bgcolor);\n border:1px solid transparent;\n border-right: var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-right: var(--header-cell-border-vertical)\n }\n\n th.", " {\n border-right: var(--header-cell-border-vertical);\n border-bottom: none;\n }\n\n tr.", " th {\n border-top: var(--header-cell-border-horizontal);\n }\n th.", " {\n border-left: var(--header-cell-border-vertical);\n }\n\n td {\n padding: var(--cell-padding);\n background: var(--bgcolor);\n height: var(--row-height);\n border:1px solid transparent;\n border-right: var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td.", " {\n border-left: var(--cell-border-vertical);\n }\n tr.", " td {\n border-top: var(--cell-border-horizontal);\n }\n &.has-header tbody tr.", " td {\n border-top: none;\n }\n &.has-footer tbody tr.", " td {\n border-bottom: none;\n }\n\n .", ",\n .", " {\n z-index: ", ";\n }\n\n //#region \u9501\u5217\u9634\u5F71\n .", " {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: ", ";\n pointer-events: none;\n overflow: hidden;\n\n .", " {\n height: 100%;\n }\n\n .", " {\n margin-right: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-right: var(--cell-border-vertical);\n }\n }\n\n .", " {\n margin-left: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-left: var(--cell-border-vertical);\n }\n }\n }\n //#endregion\n\n //#region \u7A7A\u8868\u683C\u5C55\u73B0\n .", " {\n pointer-events: none;\n color: #99a3b3;\n font-size: 12px;\n text-align: center;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n .empty-image {\n width: 50px;\n height: 50px;\n }\n\n .empty-tips {\n margin-top: 16px;\n line-height: 1.5;\n }\n }\n //#endregion\n\n //#region IE\u517C\u5BB9\n &.ie-polyfill-wrapper {\n //\u9501\u5B9A\u5217\u517C\u5BB9 \u4EC5\u5728\u9501\u5B9A\u5217\u7684\u60C5\u51B5\u4E0B\u751F\u6548\n .", " {\n overflow-x: hidden;\n }\n .", ", .", " {\n position:relative;\n }\n .", " {\n overflow: hidden;\n }\n .", " {\n position: relative;\n }\n\n .", " {\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n }\n\n .", ", .", "{\n position: absolute;\n z-index: ", ";\n top: 0;\n }\n .", "{\n left:0;\n }\n .", "{\n right:0;\n }\n\n .", "{\n .", "{\n position: absolute;\n top: 0;\n width: 100%;\n z-index: ", ";\n }\n }\n\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n }\n //#endregion\n\n //#region \u7C98\u6027\u6EDA\u52A8\u6761\n .", "{\n display:flex;\n background: var(--bgcolor);\n }\n .", "{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .", "{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n .", " {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ", ";\n flex-shrink: 1;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .", " {\n // \u5FC5\u987B\u6709\u9AD8\u5EA6\u624D\u80FD\u51FA\u73B0\u6EDA\u52A8\u6761\n height: 1px;\n visibility: hidden;\n }\n //#endregion\n\n //#region \u52A0\u8F7D\u6837\u5F0F\n .", " {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: auto;\n\n .", " {\n filter: none;\n width: 100%;\n height: 100%;\n overflow: hidden;//\u5217\u5168\u90E8\u56FA\u5B9A\u65F6\uFF0C\u5B58\u5728\u53CC\u6A2A\u5411\u6EDA\u52A8\u6761\n display: flex;\n position: relative;\n flex-direction: column;\n }\n\n .", " {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n\n .", " {\n position: sticky;\n z-index: ", ";\n transform: translateY(-50%);\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u8FC7\u6EE4\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n padding: 6px 4px;\n &:hover{\n background-color: #e5e5e5;\n }\n &:focus {\n outline: none\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u6392\u5E8F\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n //#endregion\n\n //#region \u6EDA\u52A8\u6761\u5360\u4F4D\n .", " {\n visibility: hidden;\n flex-shrink: 0;\n }\n .", " .", " {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n\n //#region \u62D6\u62FD\u5217\u5BBD\u5927\u5C0F\n .", "::after{\n background-color: var(--border-color);\n }\n //\u89E3\u51B3\u90E8\u5206\u6D4F\u89C8\u5668(chrome109)\u6700\u540E\u4E00\u4E2A\u5355\u5143\u683C\u7684\u5217\u5BBD\u62D6\u62FD\u533A\u57DF\u7EDD\u5BF9\u5B9A\u4F4D\u8D85\u51FA\u8868\u683C\uFF0C\u5BFC\u81F4\u8868\u683C\u7AD6\u5206\u5272\u7EBF\u65E0\u6CD5\u5BF9\u9F50\n .", " th.", " .", "{\n right: 0;\n width: 5px;\n &::after{\n left: 4px;\n }\n }\n //#endregion\n\n "])), variableConst, variableConst, outerBorderStyleMixin, Classes.artTableBordered, notBorderedStyleMixin, Classes.artTableBordered, borderedStyleMixin, Classes.artTable, Classes.tableHeader, Classes.tableHeaderCellContent, Classes.virtual, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableRow, Classes.tableBody, Classes.tableFooter, Classes.tableCellRangeSelected, Classes.tableCellRangeTop, Classes.tableCellRangeLeft, Classes.tableCellRangeBottom, Classes.tableCellRangeRight, Classes.rangeSelection, Classes.rowDragging, Classes.tableBody, Classes.tableRow, Classes.tableFooter, Classes.tableRow, Classes.rowDragStart, Classes.rowDragEndToTop, Classes.rowDragEndToBottom, Classes.rowDragCell, Classes.tableHeader, Z.header, Classes.tableFooter, Z.footer, Classes.leaf, Classes.first, Classes.first, Classes.first, Classes.first, Classes.first, Classes.last, Classes.lockLeft, Classes.lockRight, Z.lock, Classes.lockShadowMask, Z.lockShadow, Classes.lockShadow, Classes.leftLockShadow, LOCK_SHADOW_PADDING, Classes.rightLockShadow, LOCK_SHADOW_PADDING, Classes.emptyWrapper, Classes.virtual, Classes.tableBody, Classes.tableFooter, Classes.tableHeaderMain, Classes.tableHeader, Classes.tableFooterMain, Classes.fixedLeft, Classes.fixedRight, Z.lock, Classes.fixedLeft, Classes.fixedRight, Classes.rowDetailContainer, Classes.rowDetailItem, Z.rowDetail, Classes.horizontalStickyScrollContainer, Classes.horizontalScrollLeftSpacer, Classes.horizontalScrollRightSpacer, Classes.stickyScroll, Z.scrollItem, Classes.stickyScrollItem, Classes.loadingWrapper, Classes.loadingContentWrapper, Classes.loadingIndicatorWrapper, Classes.loadingIndicator, Z.loadingIndicator, Classes.tableFilterTrigger, Classes.tableSortIcon, Classes.tableExtendIcon, Classes.verticalScrollPlaceholder, Classes.tableFooter, Classes.verticalScrollPlaceholder, Classes.tableHeaderCellResize, Classes.tableHeaderRow, Classes.last, Classes.tableHeaderCellResize);
45341
45418
  var ButtonCSS = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(_templateObject5 || (_templateObject5 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n ", "\n //#region \u6309\u94AE\n .", "{\n color: var(--color);\n background:#ffffff;\n border:1px solid var(--strong-border-color);\n border-radius: 2px;\n cursor: pointer;\n &:hover{\n color: var(--primary-color);\n border:1px solid var(--primary-color);\n }\n }\n .", " {\n color:#ffffff;\n background-color: var(--primary-color);\n border:none;\n &:hover{\n color:#ffffff;\n background-color: var(--primary-color-level2);\n border:none;\n }\n }\n//#endregion\n"])), variableConst, Classes.button, Classes.buttonPrimary);
45342
45419
 
45343
45420
  function getCssVariableText(obj) {
@@ -45671,10 +45748,14 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
45671
45748
 
45672
45749
  if (_lastHasScrollY !== this.hasScrollY) {
45673
45750
  (_b = (_a = this.props).setTableWidth) === null || _b === void 0 ? void 0 : _b.call(_a, this.domHelper.tableBody.clientWidth);
45674
- } // 设置子节点宽度
45751
+ }
45675
45752
 
45753
+ var _this$lastInfo = this.lastInfo,
45754
+ leftLockTotalWidth = _this$lastInfo.leftLockTotalWidth,
45755
+ rightLockTotalWidth = _this$lastInfo.rightLockTotalWidth;
45756
+ var lockTotalWidth = leftLockTotalWidth + rightLockTotalWidth; // 设置子节点宽度
45676
45757
 
45677
- stickyScrollItem.style.width = "".concat(innerTableWidth, "px");
45758
+ stickyScrollItem.style.width = "".concat(innerTableWidth - lockTotalWidth, "px");
45678
45759
  }
45679
45760
  }, {
45680
45761
  key: "renderTableHeader",
@@ -45844,13 +45925,25 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
45844
45925
  stickyBottom = _this$props5.stickyBottom;
45845
45926
  var hasScroll = this.state.hasScroll;
45846
45927
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
45847
- className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].stickyScroll, _styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].horizontalScrollContainer),
45928
+ className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].horizontalScrollContainer, _styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].horizontalStickyScrollContainer)
45929
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
45930
+ className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].horizontalScrollLeftSpacer),
45931
+ style: {
45932
+ width: info.leftLockTotalWidth
45933
+ }
45934
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
45935
+ className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].stickyScroll),
45848
45936
  style: {
45849
45937
  display: hasStickyScroll && hasScroll ? 'block' : 'none',
45850
45938
  bottom: stickyBottom
45851
45939
  }
45852
45940
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
45853
45941
  className: _styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].stickyScrollItem
45942
+ })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
45943
+ className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].horizontalScrollRightSpacer),
45944
+ style: {
45945
+ width: info.rightLockTotalWidth
45946
+ }
45854
45947
  }));
45855
45948
  }
45856
45949
  }, {
@@ -45933,7 +46026,22 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
45933
46026
  }, {
45934
46027
  key: "componentDidUpdate",
45935
46028
  value: function componentDidUpdate(prevProps, prevState) {
45936
- // console.log('did update start')
46029
+ var _a; // console.log('did update start')
46030
+
46031
+
46032
+ var _this$props8 = this.props,
46033
+ cssVariables = _this$props8.cssVariables,
46034
+ enableCSSVariables = _this$props8.enableCSSVariables,
46035
+ bordered = _this$props8.bordered;
46036
+
46037
+ if (!Object(_utils__WEBPACK_IMPORTED_MODULE_28__["shallowEqual"])(prevProps === null || prevProps === void 0 ? void 0 : prevProps.cssVariables, (_a = this.props) === null || _a === void 0 ? void 0 : _a.cssVariables)) {
46038
+ Object(_utils__WEBPACK_IMPORTED_MODULE_28__["cssPolifill"])({
46039
+ variables: cssVariables || {},
46040
+ enableCSSVariables: enableCSSVariables,
46041
+ bordered: bordered
46042
+ });
46043
+ }
46044
+
45937
46045
  this.updateDOMHelper();
45938
46046
  this.props$.next(this.props);
45939
46047
  this.didMountOrUpdate(prevProps, prevState); // console.log('did update end')
@@ -46163,9 +46271,9 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
46163
46271
  value: function adjustNeedRenderLock() {
46164
46272
  var needRenderLock = this.state.needRenderLock;
46165
46273
 
46166
- var _this$lastInfo = this.lastInfo,
46167
- flat = _babel_runtime_corejs3_core_js_stable_instance_flat__WEBPACK_IMPORTED_MODULE_13___default()(_this$lastInfo),
46168
- hasLockColumn = _this$lastInfo.hasLockColumn;
46274
+ var _this$lastInfo2 = this.lastInfo,
46275
+ flat = _babel_runtime_corejs3_core_js_stable_instance_flat__WEBPACK_IMPORTED_MODULE_13___default()(_this$lastInfo2),
46276
+ hasLockColumn = _this$lastInfo2.hasLockColumn;
46169
46277
 
46170
46278
  if (hasLockColumn) {
46171
46279
  var _context;
@@ -46544,7 +46652,9 @@ var _templateObject, _templateObject2, _templateObject3;
46544
46652
 
46545
46653
 
46546
46654
  var InlineFlexCell = styled_components__WEBPACK_IMPORTED_MODULE_3__["default"].div(_templateObject || (_templateObject = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n display: inline-flex;\n align-items: center;\n"])));
46547
- var ExpansionCell = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["default"])(InlineFlexCell)(_templateObject2 || (_templateObject2 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n &.", " {\n cursor: default;\n }\n\n .expansion-icon {\n fill: #999;\n flex: 0 0 16px;\n transition: transform 200ms;\n\n &.", " {\n transform-origin: center center;\n transform: rotate(90deg);\n }\n }\n"])), _base_styles__WEBPACK_IMPORTED_MODULE_4__["Classes"].leaf, _base_styles__WEBPACK_IMPORTED_MODULE_4__["Classes"].expanded);
46655
+ var ExpansionCell = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["default"])(function (props) {
46656
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(InlineFlexCell, _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props));
46657
+ })(_templateObject2 || (_templateObject2 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n &.", " {\n cursor: default;\n }\n\n .expansion-icon {\n fill: #999;\n flex: 0 0 16px;\n transition: transform 200ms;\n\n &.", " {\n transform-origin: center center;\n transform: rotate(90deg);\n }\n }\n"])), _base_styles__WEBPACK_IMPORTED_MODULE_4__["Classes"].leaf, _base_styles__WEBPACK_IMPORTED_MODULE_4__["Classes"].expanded);
46548
46658
 
46549
46659
  function CaretDownIcon(props) {
46550
46660
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("svg", _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
@@ -46869,7 +46979,8 @@ var autoFillTableWidth = function autoFillTableWidth() {
46869
46979
  // 保存剩余的flex总和和剩余宽度总和宽度
46870
46980
  var residualFlexCount = flexCount;
46871
46981
  var residualFlexWidth = remainingWidth;
46872
- var columnSize = pipeline.getFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_10__["COLUMN_SIZE_KEY"]) || {};
46982
+ var columnSize = pipeline.getFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_10__["COLUMN_SIZE_KEY"]);
46983
+ var enableColumnResizeWidthFeature = !!columnSize;
46873
46984
  pipeline.mapColumns(Object(_utils__WEBPACK_IMPORTED_MODULE_8__["makeRecursiveMapper"])(function (col, recursiveFlatMapInfo) {
46874
46985
  var isLeaf = recursiveFlatMapInfo.isLeaf;
46875
46986
 
@@ -46888,12 +46999,15 @@ var autoFillTableWidth = function autoFillTableWidth() {
46888
46999
  col.width = clamp(minWidth, preColWidth + (residualFlexCount === flex ? residualFlexWidth : usedRemainingWidth), maxWidth);
46889
47000
  residualFlexCount -= flex;
46890
47001
  residualFlexWidth -= col.width - preColWidth;
46891
- columnSize[code] = col.width;
47002
+
47003
+ if (enableColumnResizeWidthFeature) {
47004
+ columnSize[code] = col.width;
47005
+ }
46892
47006
  }
46893
47007
 
46894
47008
  return col;
46895
47009
  }));
46896
- pipeline.setFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_10__["COLUMN_SIZE_KEY"], columnSize);
47010
+ enableColumnResizeWidthFeature && pipeline.setFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_10__["COLUMN_SIZE_KEY"], columnSize);
46897
47011
  }
46898
47012
  } else {
46899
47013
  // 未设置了flex宽度,创建占位列
@@ -47677,10 +47791,10 @@ function _isMoveWhenClicking(mouseDownClientX, mouseDownClientY, mouseUpClientX,
47677
47791
  "use strict";
47678
47792
  __webpack_require__.r(__webpack_exports__);
47679
47793
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return filter; });
47680
- /* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ "./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js");
47681
- /* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
47682
- /* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ "./node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js");
47683
- /* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
47794
+ /* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ "./node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js");
47795
+ /* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
47796
+ /* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ "./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js");
47797
+ /* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
47684
47798
  /* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ "./node_modules/@babel/runtime-corejs3/helpers/extends.js");
47685
47799
  /* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
47686
47800
  /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js");
@@ -47744,6 +47858,7 @@ function filter() {
47744
47858
  var inputFiltersMap = new _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_4___default.a(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(inputFilters).call(inputFilters, function (filterItem) {
47745
47859
  return [filterItem.code, _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, filterItem)];
47746
47860
  }));
47861
+ var localeText = pipeline.ctx.localeText;
47747
47862
 
47748
47863
  function processColumns(columns) {
47749
47864
  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(columns).call(columns, dfs);
@@ -47757,7 +47872,7 @@ function filter() {
47757
47872
  var filterActive = filterable && ((_c = (_b = inputFiltersMap === null || inputFiltersMap === void 0 ? void 0 : inputFiltersMap.get(col.code)) === null || _b === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(_b)) === null || _c === void 0 ? void 0 : _c.length) > 0;
47758
47873
 
47759
47874
  if (filterable) {
47760
- var _context, _context2, _cx;
47875
+ var _cx;
47761
47876
 
47762
47877
  var handleFilterChanged = function handleFilterChanged(filterItem) {
47763
47878
  var nextFiltersMap = new _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_4___default.a(inputFiltersMap);
@@ -47792,7 +47907,8 @@ function filter() {
47792
47907
 
47793
47908
  var filterPanel = (_d = col.features) === null || _d === void 0 ? void 0 : _d.filterPanel;
47794
47909
  var colFilterIcon = (_f = (_e = col.features) === null || _e === void 0 ? void 0 : _e.filterIcon) !== null && _f !== void 0 ? _f : filterIcon;
47795
- result.title = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context = []).call(_context, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context2 = []).call(_context2, (_g = result.title) !== null && _g !== void 0 ? _g : [_internals__WEBPACK_IMPORTED_MODULE_12__["internals"].safeRenderHeader(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, col))])), [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(_filter__WEBPACK_IMPORTED_MODULE_14__["Filter"], {
47910
+
47911
+ var _Filter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10___default.a.createElement(_filter__WEBPACK_IMPORTED_MODULE_14__["Filter"], {
47796
47912
  key: "filter",
47797
47913
  FilterPanelContent: filterPanel,
47798
47914
  filterIcon: colFilterIcon,
@@ -47800,16 +47916,26 @@ function filter() {
47800
47916
  setFilterModel: handleFilterChanged,
47801
47917
  setFilter: setFilter,
47802
47918
  isFilterActive: filterActive,
47803
- className: classnames__WEBPACK_IMPORTED_MODULE_11___default()((_cx = {}, _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, _base_styles__WEBPACK_IMPORTED_MODULE_15__["Classes"].tableFilterTrigger, true), _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, "active", filterActive), _cx)),
47919
+ className: classnames__WEBPACK_IMPORTED_MODULE_11___default()((_cx = {}, _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cx, _base_styles__WEBPACK_IMPORTED_MODULE_15__["Classes"].tableFilterTrigger, true), _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cx, "active", filterActive), _cx)),
47804
47920
  stopClickEventPropagation: stopClickEventPropagation,
47805
47921
  stopESCKeyDownEventPropagation: stopESCKeyDownEventPropagation,
47806
47922
  hideFilterPopupHeader: hideFilterPopupHeader,
47807
- getPopupParent: getPopupParent
47808
- })]); // result.headerCellProps = mergeCellProps(col.headerCellProps, {
47923
+ getPopupParent: getPopupParent,
47924
+ localeText: localeText
47925
+ });
47926
+
47927
+ if (col.renderHeader) {
47928
+ result.title = col.renderHeader(result.title, _Filter);
47929
+ } else {
47930
+ var _context, _context2;
47931
+
47932
+ result.title = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context = []).call(_context, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context2 = []).call(_context2, (_g = result.title) !== null && _g !== void 0 ? _g : [_internals__WEBPACK_IMPORTED_MODULE_12__["internals"].safeRenderHeader(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, col))])), [_Filter]);
47933
+ } // result.headerCellProps = mergeCellProps(col.headerCellProps, {
47809
47934
  // style: {
47810
47935
  // paddingRight: '18px'
47811
47936
  // }
47812
47937
  // })
47938
+
47813
47939
  }
47814
47940
 
47815
47941
  if (!Object(_utils__WEBPACK_IMPORTED_MODULE_13__["isLeafNode"])(col)) {
@@ -48117,7 +48243,9 @@ var _templateObject, _templateObject2;
48117
48243
 
48118
48244
 
48119
48245
  var TableHeaderCellResize = styled_components__WEBPACK_IMPORTED_MODULE_6__["default"].div(_templateObject || (_templateObject = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n position: absolute;\n top: 0;\n right: -5px;\n height: 100%;\n width: 10px;\n cursor: ew-resize;\n display: flex;\n flex-direction: column;\n align-items: center;\n z-index:1;\n\n &:after {\n content: \"\";\n position: absolute;\n display: block;\n left: calc(50% - 1px);\n width: 1px;\n height: calc(100% - 14px);\n top: 7px;\n }\n"])));
48120
- var TableHeaderGroupCellResize = Object(styled_components__WEBPACK_IMPORTED_MODULE_6__["default"])(TableHeaderCellResize)(_templateObject2 || (_templateObject2 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n &:after {\n height: 100%;\n top: 0;\n }\n"])));
48246
+ var TableHeaderGroupCellResize = Object(styled_components__WEBPACK_IMPORTED_MODULE_6__["default"])(function (props) {
48247
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(TableHeaderCellResize, _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props));
48248
+ })(_templateObject2 || (_templateObject2 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n &:after {\n height: 100%;\n top: 0;\n }\n"])));
48121
48249
 
48122
48250
  function clamp(min, x, max) {
48123
48251
  return Math.max(min, Math.min(max, x));
@@ -48787,7 +48915,11 @@ function DefaultFilterContent(_ref) {
48787
48915
 
48788
48916
  var setFilterModel = _ref.setFilterModel,
48789
48917
  filterModel = _ref.filterModel,
48790
- hidePanel = _ref.hidePanel;
48918
+ hidePanel = _ref.hidePanel,
48919
+ _ref$localeText = _ref.localeText,
48920
+ localeText = _ref$localeText === void 0 ? {} : _ref$localeText;
48921
+
48922
+ var _a, _b;
48791
48923
 
48792
48924
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_5___default.a.useState((filterModel === null || filterModel === void 0 ? void 0 : filterModel.filterCondition) || 'contain'),
48793
48925
  _React$useState2 = _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_React$useState, 2),
@@ -48840,16 +48972,18 @@ function DefaultFilterContent(_ref) {
48840
48972
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(DefaultFilterContentStyle, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
48841
48973
  className: 'filter-option-list'
48842
48974
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("ul", null, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4___default()(_util__WEBPACK_IMPORTED_MODULE_8__["DEFAULT_FILTER_OPTIONS"]).call(_util__WEBPACK_IMPORTED_MODULE_8__["DEFAULT_FILTER_OPTIONS"], function (option, index) {
48975
+ var _a;
48976
+
48843
48977
  return (
48844
48978
  /*#__PURE__*/
48845
48979
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
48846
48980
  react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", {
48847
- key: index,
48981
+ key: option.key,
48848
48982
  className: option.key === selectedValue ? 'active' : '',
48849
48983
  onClick: function onClick() {
48850
48984
  return handleClick(option);
48851
48985
  }
48852
- }, option.title)
48986
+ }, (_a = localeText[option.key]) !== null && _a !== void 0 ? _a : option.title)
48853
48987
  );
48854
48988
  }))), selectedValue !== 'notIsNull' && selectedValue !== 'isNull' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
48855
48989
  className: 'filter-search'
@@ -48868,12 +49002,12 @@ function DefaultFilterContent(_ref) {
48868
49002
  'filter-btn': true
48869
49003
  }, _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].button, true)),
48870
49004
  onClick: reset
48871
- }, "\u91CD\u7F6E"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("button", {
49005
+ }, (_a = localeText.resetFilter) !== null && _a !== void 0 ? _a : '重置'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("button", {
48872
49006
  className: classnames__WEBPACK_IMPORTED_MODULE_7___default()((_cx2 = {
48873
49007
  'filter-btn': true
48874
49008
  }, _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx2, _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].button, true), _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx2, _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].buttonPrimary, true), _cx2)),
48875
49009
  onClick: confirm
48876
- }, "\u786E\u5B9A")));
49010
+ }, (_b = localeText.confirmFilter) !== null && _b !== void 0 ? _b : '确定')));
48877
49011
  }
48878
49012
 
48879
49013
  /* harmony default export */ __webpack_exports__["default"] = (DefaultFilterContent);
@@ -49023,7 +49157,8 @@ function Filter(_ref2) {
49023
49157
  stopClickEventPropagation = _ref2.stopClickEventPropagation,
49024
49158
  stopESCKeyDownEventPropagation = _ref2.stopESCKeyDownEventPropagation,
49025
49159
  hideFilterPopupHeader = _ref2.hideFilterPopupHeader,
49026
- getPopupParent = _ref2.getPopupParent;
49160
+ getPopupParent = _ref2.getPopupParent,
49161
+ localeText = _ref2.localeText;
49027
49162
 
49028
49163
  var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_3___default.a.useState(false),
49029
49164
  _React$useState4 = _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_React$useState3, 2),
@@ -49050,7 +49185,8 @@ function Filter(_ref2) {
49050
49185
  setFilterModel: setFilterModel,
49051
49186
  filterModel: filterModel,
49052
49187
  isFilterActive: isFilterActive,
49053
- hidePanel: hidePanel
49188
+ hidePanel: hidePanel,
49189
+ localeText: localeText
49054
49190
  });
49055
49191
  }
49056
49192
  };
@@ -49409,7 +49545,7 @@ function footerDataSource() {
49409
49545
  /*!***************************************************************************!*\
49410
49546
  !*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/index.js ***!
49411
49547
  \***************************************************************************/
49412
- /*! exports provided: autoRowSpan, buildTree, columnHover, columnRangeHover, multiSelect, rowDetail, rowGrouping, singleSelect, sort, tips, treeMode, treeMetaSymbol, treeSelect, columnDrag, columnResize, contextMenu, filter, rangeSelection, mergeCellHover, footerDataSource, footerRowMetaSymbol, colGroupExtendable */
49548
+ /*! exports provided: autoRowSpan, buildTree, columnHover, columnRangeHover, multiSelect, rowDetail, rowGrouping, singleSelect, sort, tips, treeMode, treeMetaSymbol, treeSelect, columnDrag, columnResize, contextMenu, filter, rangeSelection, mergeCellHover, footerDataSource, footerRowMetaSymbol, colGroupExtendable, rowDrag */
49413
49549
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
49414
49550
 
49415
49551
  "use strict";
@@ -49478,6 +49614,10 @@ __webpack_require__.r(__webpack_exports__);
49478
49614
  /* harmony import */ var _colGroupExtendable__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./colGroupExtendable */ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/colGroupExtendable.js");
49479
49615
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colGroupExtendable", function() { return _colGroupExtendable__WEBPACK_IMPORTED_MODULE_19__["colGroupExtendable"]; });
49480
49616
 
49617
+ /* harmony import */ var _rowDrag__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./rowDrag */ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/rowDrag.js");
49618
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rowDrag", function() { return _rowDrag__WEBPACK_IMPORTED_MODULE_20__["rowDrag"]; });
49619
+
49620
+
49481
49621
 
49482
49622
 
49483
49623
 
@@ -49580,6 +49720,9 @@ __webpack_require__.r(__webpack_exports__);
49580
49720
 
49581
49721
 
49582
49722
 
49723
+ var fullRowsSetKey = 'fullRowsSetKey';
49724
+ var allEnableKeys = 'allEnableKeys';
49725
+ var selectValueSetKey = 'selectValueSetKey';
49583
49726
  function multiSelect() {
49584
49727
  var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
49585
49728
  return function multiSelectStep(pipeline) {
@@ -49610,10 +49753,9 @@ function multiSelect() {
49610
49753
  action: action
49611
49754
  });
49612
49755
  };
49613
-
49614
- var dataSource = pipeline.getDataSource();
49615
49756
  /** dataSource 中包含的所有 keys */
49616
49757
 
49758
+
49617
49759
  var fullKeySet = new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a();
49618
49760
  /** 所有有效的 keys(disable 状态为 false) */
49619
49761
 
@@ -49622,7 +49764,7 @@ function multiSelect() {
49622
49764
  var isAllChecked = set.size !== 0; // 当前不存在选中则默认为false
49623
49765
 
49624
49766
  var isAnyChecked = false;
49625
- var flatDataSource = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["collectNodes"])(dataSource);
49767
+ var flatDataSource = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["collectNodes"])(pipeline.getDataSource());
49626
49768
  flatDataSource.forEach(function (row, rowIndex) {
49627
49769
  var rowKey = _internals__WEBPACK_IMPORTED_MODULE_5__["internals"].safeGetRowKey(primaryKey, row, rowIndex);
49628
49770
  fullKeySet.add(rowKey); // 在 allKeys 中排除被禁用的 key
@@ -49650,6 +49792,8 @@ function multiSelect() {
49650
49792
  checked: isAllChecked,
49651
49793
  indeterminate: !isAllChecked && isAnyChecked,
49652
49794
  onChange: function onChange(_) {
49795
+ var allKeys = pipeline.getFeatureOptions(allEnableKeys);
49796
+
49653
49797
  if (isAllChecked) {
49654
49798
  _onChange(_utils_others__WEBPACK_IMPORTED_MODULE_6__["arrayUtils"].diff(value, allKeys), '', allKeys, 'uncheck-all');
49655
49799
  } else {
@@ -49670,9 +49814,11 @@ function multiSelect() {
49670
49814
  var rowKey = _internals__WEBPACK_IMPORTED_MODULE_5__["internals"].safeGetRowKey(primaryKey, row, rowIndex);
49671
49815
  var checkboxCellProps = {};
49672
49816
  var preCellProps = (_b = (_a = opts.checkboxColumn) === null || _a === void 0 ? void 0 : _a.getCellProps) === null || _b === void 0 ? void 0 : _b.call(_a, value, row, rowIndex);
49817
+ var fullRowsSet = pipeline.getFeatureOptions(fullRowsSetKey) || new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a();
49818
+ var selectValueSet = pipeline.getFeatureOptions(selectValueSetKey) || new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a();
49673
49819
 
49674
- if (fullKeySet.has(rowKey) && clickArea === 'cell') {
49675
- var prevChecked = set.has(rowKey);
49820
+ if (fullRowsSet.has(rowKey) && clickArea === 'cell') {
49821
+ var prevChecked = selectValueSet.has(rowKey);
49676
49822
  var disabled = isDisabled(row, rowIndex);
49677
49823
  checkboxCellProps = {
49678
49824
  style: {
@@ -49696,7 +49842,8 @@ function multiSelect() {
49696
49842
  }
49697
49843
 
49698
49844
  var key = _internals__WEBPACK_IMPORTED_MODULE_5__["internals"].safeGetRowKey(primaryKey, row, rowIndex);
49699
- var checked = set.has(key);
49845
+ var selectValueSet = pipeline.getFeatureOptions(selectValueSetKey) || new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a();
49846
+ var checked = selectValueSet.has(key);
49700
49847
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Checkbox, {
49701
49848
  checked: checked,
49702
49849
  disabled: isDisabled(row, rowIndex),
@@ -49735,8 +49882,9 @@ function multiSelect() {
49735
49882
 
49736
49883
  pipeline.appendRowPropsGetter(function (row, rowIndex) {
49737
49884
  var rowKey = _internals__WEBPACK_IMPORTED_MODULE_5__["internals"].safeGetRowKey(primaryKey, row, rowIndex);
49885
+ var fullRowsSet = pipeline.getFeatureOptions(fullRowsSetKey) || new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a();
49738
49886
 
49739
- if (!fullKeySet.has(rowKey)) {
49887
+ if (!fullRowsSet.has(rowKey)) {
49740
49888
  // rowKey 不在 fullKeySet 中说明这一行是在 multiSelect 之后才生成的,multiSelect 不对之后生成的行进行处理
49741
49889
  return;
49742
49890
  }
@@ -49744,7 +49892,8 @@ function multiSelect() {
49744
49892
  var style = {};
49745
49893
  var className;
49746
49894
  var onClick;
49747
- var checked = set.has(rowKey);
49895
+ var selectValueSet = pipeline.getFeatureOptions(selectValueSetKey) || new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a();
49896
+ var checked = selectValueSet.has(rowKey);
49748
49897
 
49749
49898
  if (opts.highlightRowWhenSelected && checked) {
49750
49899
  className = 'highlight';
@@ -49771,22 +49920,32 @@ function multiSelect() {
49771
49920
  style: style,
49772
49921
  onClick: onClick
49773
49922
  };
49774
- });
49923
+ }); // 只保留一份到pipeline, 避免行数据过多时内容被握住
49924
+
49925
+ pipeline.setFeatureOptions(fullRowsSetKey, fullKeySet);
49926
+ pipeline.setFeatureOptions(allEnableKeys, allKeys);
49927
+ pipeline.setFeatureOptions(selectValueSetKey, set);
49928
+ fullKeySet = null;
49929
+ allKeys = null;
49930
+ set = null;
49775
49931
  return pipeline;
49776
49932
 
49777
49933
  function onCheckboxChange(prevChecked, key, batch) {
49778
49934
  var batchKeys = [key];
49779
49935
 
49780
49936
  if (batch && lastKey) {
49781
- var lastIdx = allKeys.indexOf(lastKey);
49782
- var cntIdx = allKeys.indexOf(key);
49937
+ var _allKeys = pipeline.getFeatureOptions(allEnableKeys);
49938
+
49939
+ var lastIdx = _allKeys.indexOf(lastKey);
49940
+
49941
+ var cntIdx = _allKeys.indexOf(key);
49783
49942
 
49784
49943
  var _ref = lastIdx < cntIdx ? [lastIdx, cntIdx] : [cntIdx, lastIdx],
49785
49944
  _ref2 = _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 2),
49786
49945
  start = _ref2[0],
49787
49946
  end = _ref2[1];
49788
49947
 
49789
- batchKeys = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(allKeys).call(allKeys, start, end + 1);
49948
+ batchKeys = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(_allKeys).call(_allKeys, start, end + 1);
49790
49949
  }
49791
49950
 
49792
49951
  if (prevChecked) {
@@ -50719,6 +50878,359 @@ function rowDetail() {
50719
50878
 
50720
50879
  /***/ }),
50721
50880
 
50881
+ /***/ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/rowDrag.js":
50882
+ /*!*****************************************************************************!*\
50883
+ !*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/rowDrag.js ***!
50884
+ \*****************************************************************************/
50885
+ /*! exports provided: ROW_DRAG_COLUMN_CODE, rowDragKey, rowDrag */
50886
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
50887
+
50888
+ "use strict";
50889
+ __webpack_require__.r(__webpack_exports__);
50890
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ROW_DRAG_COLUMN_CODE", function() { return ROW_DRAG_COLUMN_CODE; });
50891
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rowDragKey", function() { return rowDragKey; });
50892
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rowDrag", function() { return rowDrag; });
50893
+ /* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ "./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js");
50894
+ /* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
50895
+ /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js");
50896
+ /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1__);
50897
+ /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js");
50898
+ /* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);
50899
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
50900
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
50901
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
50902
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
50903
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
50904
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
50905
+ /* harmony import */ var _base_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../base/styles */ "./node_modules/@kdcloudjs/table/es/table/base/styles.js");
50906
+
50907
+
50908
+
50909
+
50910
+
50911
+
50912
+
50913
+
50914
+ var ROW_DRAG_COLUMN_CODE = '$_row_drag_column_&';
50915
+ var rowDragKey = 'rowDragKey';
50916
+ var SCROLL_OFFSET = 30;
50917
+ var defaultRowDragColumn = {
50918
+ name: '拖拽列',
50919
+ code: ROW_DRAG_COLUMN_CODE,
50920
+ lock: true,
50921
+ title: '',
50922
+ width: 40,
50923
+ align: 'center',
50924
+ getCellProps: function getCellProps(value, row, rowIndex) {
50925
+ return {
50926
+ className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(_base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragCell)
50927
+ };
50928
+ },
50929
+ render: function render(value, row, rowIndex) {
50930
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("svg", {
50931
+ viewBox: '0 0 1024 1024',
50932
+ version: '1.1',
50933
+ xmlns: 'http://www.w3.org/1999/xlink',
50934
+ "data-icon": 'drag',
50935
+ width: '16',
50936
+ height: '16'
50937
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("path", {
50938
+ d: 'M298.688 192a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0zM298.688 512a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m-298.624 320a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z',
50939
+ "p-id": '4278'
50940
+ }));
50941
+ }
50942
+ };
50943
+ function rowDrag(opt) {
50944
+ return function rowDragStep(pipeline) {
50945
+ var _context;
50946
+
50947
+ var tableBody = pipeline.ref.current.domHelper && pipeline.ref.current.domHelper.tableBody;
50948
+ var artTable = pipeline.ref.current.domHelper && pipeline.ref.current.domHelper.artTable;
50949
+ if (!tableBody) return pipeline;
50950
+ var dataSource = pipeline.getDataSource();
50951
+ var rowHeight = (opt === null || opt === void 0 ? void 0 : opt.rowHeight) || 48;
50952
+
50953
+ var handleDragStrat = function handleDragStrat(event) {
50954
+ var _a; // 开始拖拽
50955
+
50956
+
50957
+ artTable.classList.add(classnames__WEBPACK_IMPORTED_MODULE_6___default()(_base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragging));
50958
+ (_a = opt === null || opt === void 0 ? void 0 : opt.onDragStart) === null || _a === void 0 ? void 0 : _a.call(opt, event);
50959
+ };
50960
+
50961
+ var handleDragMove = function handleDragMove(event) {
50962
+ var _a;
50963
+
50964
+ (_a = opt === null || opt === void 0 ? void 0 : opt.onDragMove) === null || _a === void 0 ? void 0 : _a.call(opt, event);
50965
+ pipeline.setStateAtKey(rowDragKey, event);
50966
+ };
50967
+
50968
+ var handleDragEnd = function handleDragEnd(event, isOutOfRange) {
50969
+ var _a;
50970
+
50971
+ artTable.classList.remove(classnames__WEBPACK_IMPORTED_MODULE_6___default()(_base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragging));
50972
+ pipeline.setStateAtKey(rowDragKey, event); // 超出拖拽范围不触发dragend事件
50973
+
50974
+ if (!isOutOfRange) {
50975
+ (_a = opt === null || opt === void 0 ? void 0 : opt.onDragEnd) === null || _a === void 0 ? void 0 : _a.call(opt, event);
50976
+ }
50977
+ };
50978
+
50979
+ var getDragEvent = function getDragEvent(startRowInfo, endRowInfo, _ref) {
50980
+ var isFinished = _ref.isFinished,
50981
+ _ref$dragPosition = _ref.dragPosition,
50982
+ dragPosition = _ref$dragPosition === void 0 ? 'bottom' : _ref$dragPosition;
50983
+ return {
50984
+ startRowIndex: startRowInfo.rowIndex,
50985
+ startRow: startRowInfo.row,
50986
+ endRowIndex: endRowInfo.rowIndex,
50987
+ endRow: endRowInfo.row,
50988
+ dragPosition: dragPosition,
50989
+ isFinished: isFinished
50990
+ };
50991
+ };
50992
+
50993
+ var updateScrollPosition = function updateScrollPosition(mouseMoveEvent) {
50994
+ var clientY = mouseMoveEvent.clientY;
50995
+ var tableBodyClientRect = tableBody.getBoundingClientRect();
50996
+ var top = tableBodyClientRect.top,
50997
+ height = tableBodyClientRect.height;
50998
+
50999
+ if (clientY + SCROLL_OFFSET >= top + height) {
51000
+ pipeline.ref.current.domHelper.tableBody.scrollTop += SCROLL_OFFSET;
51001
+ }
51002
+
51003
+ if (clientY + SCROLL_OFFSET <= top) {
51004
+ pipeline.ref.current.domHelper.tableBody.scrollTop -= SCROLL_OFFSET;
51005
+ }
51006
+ };
51007
+
51008
+ var onMouseDown = function onMouseDown(mouseDownEvent) {
51009
+ var _a;
51010
+
51011
+ var startRowInfo = getTargetRowInfo(mouseDownEvent.target, tableBody, dataSource);
51012
+ var endRowInfo = startRowInfo;
51013
+ if (!startRowInfo || startRowInfo.code !== rowDragColumn.code) return;
51014
+ if ((_a = opt === null || opt === void 0 ? void 0 : opt.isDisabled) === null || _a === void 0 ? void 0 : _a.call(opt, startRowInfo.row, startRowInfo.rowIndex)) return; // 默认拖拽插入的位置是向下
51015
+
51016
+ var dragPosition = 'bottom';
51017
+ var isOutOfRange = false;
51018
+ var dragStartEvent = getDragEvent(startRowInfo, endRowInfo, {
51019
+ isFinished: false,
51020
+ dragPosition: 'bottom'
51021
+ });
51022
+ handleDragStrat(dragStartEvent);
51023
+ var tableWidth = tableBody.clientWidth;
51024
+ var startRowRects = startRowInfo.cell.getBoundingClientRect(); // 光标位置距离初始拖拽行的偏移量
51025
+
51026
+ var startOffset = mouseDownEvent.clientY - startRowRects.y;
51027
+ var dragElement = createDragElement(startRowRects, tableWidth, rowHeight); // 可拖拽的范围
51028
+
51029
+ var dragRange = getDragRange(tableBody, {
51030
+ startOffset: startOffset,
51031
+ rowHeight: startRowRects.height
51032
+ });
51033
+ var mousemove$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["fromEvent"])(window, 'mousemove');
51034
+ var mouseup$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["fromEvent"])(window, 'mouseup');
51035
+ var rowDrag$ = mousemove$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function (mouseMoveEvent) {
51036
+ var clientX = mouseMoveEvent.clientX,
51037
+ clientY = mouseMoveEvent.clientY;
51038
+ var tagretRow = getTargetRowInfo(mouseMoveEvent.target, tableBody, dataSource);
51039
+
51040
+ if (tagretRow) {
51041
+ endRowInfo = tagretRow;
51042
+ }
51043
+
51044
+ var targetRowRects = endRowInfo.cell.getBoundingClientRect(); // 判断拖拽插入的位置,拖拽框上边框位于目标行之上则向上插入,否则向下插入
51045
+
51046
+ var isMoveToTop = clientY - startOffset < targetRowRects.y;
51047
+ dragPosition = isMoveToTop ? 'top' : 'bottom';
51048
+ isOutOfRange = isOutOfDragRange({
51049
+ x: clientX,
51050
+ y: clientY
51051
+ }, dragRange);
51052
+ updateScrollPosition(mouseMoveEvent); // 拖拽到底时让滚动条可以滚动
51053
+
51054
+ updateDragElementPosition(dragElement, dragRange, {
51055
+ x: clientX,
51056
+ y: clientY,
51057
+ startOffset: startOffset
51058
+ });
51059
+ updateCurSorStyle(isOutOfRange);
51060
+ return {
51061
+ startRowInfo: startRowInfo,
51062
+ endRowInfo: endRowInfo,
51063
+ dragPosition: dragPosition
51064
+ };
51065
+ }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(mouseup$));
51066
+ rowDrag$.subscribe({
51067
+ next: function next(_ref2) {
51068
+ var startRowInfo = _ref2.startRowInfo,
51069
+ endRowInfo = _ref2.endRowInfo,
51070
+ dragPosition = _ref2.dragPosition;
51071
+ var dragMoveEvent = getDragEvent(startRowInfo, endRowInfo, {
51072
+ isFinished: false,
51073
+ dragPosition: dragPosition
51074
+ });
51075
+ handleDragMove(dragMoveEvent);
51076
+ },
51077
+ complete: function complete() {
51078
+ var dragEndEvent = getDragEvent(startRowInfo, endRowInfo, {
51079
+ isFinished: true,
51080
+ dragPosition: dragPosition
51081
+ });
51082
+ handleDragEnd(dragEndEvent, isOutOfRange);
51083
+ removeDragElement(dragElement);
51084
+ removeCurSorStyle();
51085
+ }
51086
+ });
51087
+ };
51088
+
51089
+ var rowDragColumn = (opt === null || opt === void 0 ? void 0 : opt.rowDragColumn) || defaultRowDragColumn;
51090
+
51091
+ var nextColumns = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1___default()(_context = pipeline.getColumns()).call(_context);
51092
+
51093
+ nextColumns.unshift(rowDragColumn);
51094
+ pipeline.columns(nextColumns);
51095
+ pipeline.addTableProps({
51096
+ onMouseDown: onMouseDown
51097
+ });
51098
+ pipeline.appendRowPropsGetter(function (row, rowIndex) {
51099
+ var _cx;
51100
+
51101
+ var rowDragEvent = pipeline.getStateAtKey(rowDragKey) || {};
51102
+ var startRowIndex = rowDragEvent.startRowIndex,
51103
+ endRowIndex = rowDragEvent.endRowIndex,
51104
+ isFinished = rowDragEvent.isFinished,
51105
+ dragPosition = rowDragEvent.dragPosition;
51106
+ var isFooterCell = row[pipeline.getFeatureOptions('footerRowMetaKey')];
51107
+ if (isFooterCell || isFinished || rowIndex !== startRowIndex && rowIndex !== endRowIndex) return;
51108
+ var className = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_cx = {}, _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, _base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragStart, rowIndex === startRowIndex), _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, _base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragEnd, rowIndex === endRowIndex), _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, _base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragEndToTop, rowIndex === endRowIndex && dragPosition === 'top'), _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, _base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragEndToBottom, rowIndex === endRowIndex && dragPosition === 'bottom'), _cx));
51109
+ return {
51110
+ className: className
51111
+ };
51112
+ });
51113
+ return pipeline;
51114
+ };
51115
+ }
51116
+
51117
+ function getTargetRowInfo(target, tableBody, record) {
51118
+ while (target && tableBody.contains(target)) {
51119
+ if (target.getAttribute('data-role') === 'table-cell') {
51120
+ var code = target.getAttribute('data-code');
51121
+ var rowIndex = parseInt(target.getAttribute('data-rowindex'));
51122
+ var row = record[rowIndex];
51123
+ var isFooterCell = isEleInFooter(target);
51124
+ if (!row || isFooterCell) return null;
51125
+ return {
51126
+ rowIndex: rowIndex,
51127
+ row: row,
51128
+ code: code,
51129
+ cell: target
51130
+ };
51131
+ }
51132
+
51133
+ target = target.parentElement;
51134
+ }
51135
+
51136
+ return null;
51137
+ }
51138
+
51139
+ function isEleInFooter(target) {
51140
+ while (target && !target.classList.contains(_base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].artTable)) {
51141
+ if (target.classList.contains(_base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].tableFooter)) {
51142
+ return true;
51143
+ }
51144
+
51145
+ target = target.parentElement;
51146
+ }
51147
+
51148
+ return false;
51149
+ }
51150
+
51151
+ function createDragElement(rects, tableWidth, rowHeight) {
51152
+ var _context2, _context3, _context4;
51153
+
51154
+ var x = rects.x,
51155
+ y = rects.y;
51156
+ var dragMoveElement = document.createElement('div');
51157
+ dragMoveElement.className = classnames__WEBPACK_IMPORTED_MODULE_6___default()(_base_styles__WEBPACK_IMPORTED_MODULE_7__["Classes"].rowDragElement);
51158
+ dragMoveElement.style.cssText = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context3 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context4 = "position:fixed;z-index:9999;left:".concat(x, "px;top:")).call(_context4, y, "px;pointer-events:none;width:")).call(_context3, tableWidth, "px;height:")).call(_context2, rowHeight, "px;background:var(--primary-color);opacity: 0.1;");
51159
+ document.body.appendChild(dragMoveElement);
51160
+ return dragMoveElement;
51161
+ }
51162
+
51163
+ function updateDragElementPosition(element, dragRange, _ref3) {
51164
+ var x = _ref3.x,
51165
+ y = _ref3.y,
51166
+ startOffset = _ref3.startOffset;
51167
+ var validPosition = getValidPosition({
51168
+ x: x,
51169
+ y: y
51170
+ }, dragRange);
51171
+ element.style.top = validPosition.y - startOffset + 'px';
51172
+ return element;
51173
+ }
51174
+
51175
+ function removeDragElement(element) {
51176
+ document.body.removeChild(element);
51177
+ }
51178
+
51179
+ function updateCurSorStyle(isOutOfRange) {
51180
+ if (isOutOfRange) {
51181
+ document.body.style.cursor = 'no-drop';
51182
+ } else {
51183
+ document.body.style.cursor = 'move';
51184
+ }
51185
+ }
51186
+
51187
+ function removeCurSorStyle() {
51188
+ document.body.style.cursor = 'default';
51189
+ }
51190
+
51191
+ function getDragRange(tableBody, _ref4) {
51192
+ var startOffset = _ref4.startOffset,
51193
+ rowHeight = _ref4.rowHeight;
51194
+ var tableBodyClientRect = tableBody.getBoundingClientRect();
51195
+ var height = tableBodyClientRect.height,
51196
+ width = tableBodyClientRect.width,
51197
+ x = tableBodyClientRect.x,
51198
+ y = tableBodyClientRect.y;
51199
+ return {
51200
+ minX: x,
51201
+ maxX: x + width,
51202
+ minY: y - rowHeight + startOffset,
51203
+ maxY: y + height + startOffset
51204
+ };
51205
+ }
51206
+
51207
+ function getValidPosition(position, dragRange) {
51208
+ var x = position.x,
51209
+ y = position.y;
51210
+ var minX = dragRange.minX,
51211
+ maxX = dragRange.maxX,
51212
+ minY = dragRange.minY,
51213
+ maxY = dragRange.maxY;
51214
+ var newX = x < minX ? minX : x > maxX ? maxX : x;
51215
+ var newY = y < minY ? minY : y > maxY ? maxY : y;
51216
+ return {
51217
+ x: newX,
51218
+ y: newY
51219
+ };
51220
+ }
51221
+
51222
+ function isOutOfDragRange(position, dragRange) {
51223
+ var x = position.x,
51224
+ y = position.y;
51225
+ var minX = dragRange.minX,
51226
+ maxX = dragRange.maxX,
51227
+ minY = dragRange.minY,
51228
+ maxY = dragRange.maxY;
51229
+ return x > maxX || x < minX || y > maxY || y < minY;
51230
+ }
51231
+
51232
+ /***/ }),
51233
+
50722
51234
  /***/ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/rowGrouping.js":
50723
51235
  /*!*********************************************************************************!*\
50724
51236
  !*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/rowGrouping.js ***!
@@ -51467,10 +51979,29 @@ function sort() {
51467
51979
  title: col.title && col.title[0] ? col.title[0] : col.title
51468
51980
  })));
51469
51981
 
51470
- if (result.title && result.title[0]) {
51471
- result.title[0] = sortNode;
51982
+ var _sortNodeWithoutTitle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(SortHeaderCell, {
51983
+ onToggle: function onToggle(e) {
51984
+ if (stopClickEventPropagation) {
51985
+ e.stopPropagation();
51986
+ }
51987
+
51988
+ toggle(col.code);
51989
+ },
51990
+ sortOrder: sortOrder,
51991
+ column: col,
51992
+ sortIndex: sortIndex,
51993
+ sortOptions: sortOptions
51994
+ }); // 开启标题行高自适应后,修改表头的渲染结构
51995
+
51996
+
51997
+ if (col.renderHeader) {
51998
+ result.title = col.renderHeader(result.title, _sortNodeWithoutTitle);
51472
51999
  } else {
51473
- result.title = sortNode;
52000
+ if (result.title && result.title[0]) {
52001
+ result.title[0] = sortNode;
52002
+ } else {
52003
+ result.title = sortNode;
52004
+ }
51474
52005
  }
51475
52006
  }
51476
52007