shineout 3.8.0-beta.17 → 3.8.0-beta.19

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/README-zh_CN.md CHANGED
@@ -11,7 +11,7 @@
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
13
13
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
14
- <img src="https://img.shields.io/badge/React-%3E%3D16.8.0-green.svg?style=flat-square">
14
+ <img src="https://img.shields.io/badge/React-%3E%3D16.14.0-green.svg?style=flat-square">
15
15
  </p>
16
16
 
17
17
  ## ✨ 特性
package/README.md CHANGED
@@ -11,7 +11,7 @@ English | [简体中文](./README-zh_CN.md)
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
13
13
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
14
- <img src="https://img.shields.io/badge/React-%3E%3D16.8.0-green.svg?style=flat-square">
14
+ <img src="https://img.shields.io/badge/React-%3E%3D16.14.0-green.svg?style=flat-square">
15
15
  </p>
16
16
 
17
17
  ## ✨ Features
package/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.8.0-beta.17'
525
+ version: '3.8.0-beta.19'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.8.0-beta.17');
12237
+ /* harmony default export */ var version = ('3.8.0-beta.19');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -24084,7 +24084,6 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
24084
24084
  height: 32,
24085
24085
  padding: "".concat(src.selectHeaderPaddingY, " ").concat(src.selectHeaderPaddingX),
24086
24086
  borderBottom: "1px solid ".concat(src.selectHeaderBorderColor),
24087
- marginBottom: 4,
24088
24087
  '& $columnsCheckbox': {
24089
24088
  marginRight: 0,
24090
24089
  marginLeft: 4,
@@ -26356,7 +26355,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
26356
26355
  boxSizing: 'border-box',
26357
26356
  lineHeight: src.lineHeightDynamic,
26358
26357
  '$bordered&': {
26359
- '&::after': {
26358
+ '&:not(:last-child)::after': {
26360
26359
  content: '""',
26361
26360
  position: 'absolute',
26362
26361
  zIndex: cellBaseIndex,
@@ -26700,6 +26699,9 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
26700
26699
  color: src.tableFilterIconActiveColor
26701
26700
  }
26702
26701
  },
26702
+ filterOpened: {
26703
+ background: src.buttonSecondaryHoverBackgroundColor
26704
+ },
26703
26705
  filterContainer: {
26704
26706
  minWidth: '120px'
26705
26707
  },
@@ -26712,7 +26714,19 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
26712
26714
  filterBody: {
26713
26715
  padding: "".concat(src.tableFilterBodyPaddingY, " ").concat(src.tableFilterBodyPaddingX),
26714
26716
  maxHeight: '300px',
26715
- overflow: 'auto'
26717
+ overflow: 'auto',
26718
+ // 特调Tree在Table filter中样式,以满足设计要求
26719
+ '& [class*=tree-content-wrapper]': {
26720
+ paddingTop: 1,
26721
+ paddingBottom: 1
26722
+ },
26723
+ '&& [class*=tree-checkbox]': {
26724
+ alignSelf: 'center'
26725
+ },
26726
+ '& [class*=tree-text]': {
26727
+ paddingTop: 5,
26728
+ paddingBottom: 5
26729
+ }
26716
26730
  },
26717
26731
  filterFooter: {
26718
26732
  display: 'flex',
@@ -30518,20 +30532,20 @@ var usePopup = function usePopup(props) {
30518
30532
  }
30519
30533
  };
30520
30534
  var handleMouseEnter = use_persist_fn(function (e) {
30521
- var _targetEvents$onMouse, _targetRef$current;
30535
+ var _targetEvents$onMouse, _targetRef$current, _popupRef$current2;
30522
30536
  targetEvents === null || targetEvents === void 0 || (_targetEvents$onMouse = targetEvents.onMouseEnter) === null || _targetEvents$onMouse === void 0 || _targetEvents$onMouse.call(targetEvents, e);
30523
30537
  if (trigger !== 'hover') return;
30524
30538
  var isParentContainsCurrent = (_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.contains(e.target);
30525
- if (isParentContainsCurrent) {
30539
+ if (isParentContainsCurrent || popupRef !== null && popupRef !== void 0 && (_popupRef$current2 = popupRef.current) !== null && _popupRef$current2 !== void 0 && _popupRef$current2.contains(e.target)) {
30526
30540
  handleHoverToggle(true);
30527
30541
  }
30528
30542
  });
30529
30543
  var handleMouseLeave = use_persist_fn(function (e) {
30530
- var _targetEvents$onMouse2, _popupRef$current2;
30544
+ var _targetEvents$onMouse2, _popupRef$current3;
30531
30545
  targetEvents === null || targetEvents === void 0 || (_targetEvents$onMouse2 = targetEvents.onMouseLeave) === null || _targetEvents$onMouse2 === void 0 || _targetEvents$onMouse2.call(targetEvents, e);
30532
30546
  if (trigger !== 'hover') return;
30533
30547
  // @ts-ignore
30534
- if (e.relatedTarget instanceof HTMLElement && (_popupRef$current2 = popupRef.current) !== null && _popupRef$current2 !== void 0 && _popupRef$current2.contains(e.relatedTarget)) {
30548
+ if (e.relatedTarget instanceof HTMLElement && (_popupRef$current3 = popupRef.current) !== null && _popupRef$current3 !== void 0 && _popupRef$current3.contains(e.relatedTarget)) {
30535
30549
  return;
30536
30550
  }
30537
30551
  handleHoverToggle(false);
@@ -31188,6 +31202,23 @@ var getCurrentCSSZoom = function getCurrentCSSZoom() {
31188
31202
  // height: rect.height * zoomRatio,
31189
31203
  // }
31190
31204
  // }
31205
+
31206
+ var getScrollPosition = function getScrollPosition(element) {
31207
+ if (!element) return {
31208
+ scrollTop: 0,
31209
+ scrollLeft: 0
31210
+ };
31211
+ if (element === document.documentElement || element === document.body) {
31212
+ return {
31213
+ scrollTop: document.documentElement.scrollTop || document.body.scrollTop,
31214
+ scrollLeft: document.documentElement.scrollLeft || document.body.scrollLeft
31215
+ };
31216
+ }
31217
+ return {
31218
+ scrollTop: element.scrollTop,
31219
+ scrollLeft: element.scrollLeft
31220
+ };
31221
+ };
31191
31222
  ;// CONCATENATED MODULE: ../hooks/src/common/use-position-style/index.ts
31192
31223
 
31193
31224
 
@@ -31444,17 +31475,18 @@ var usePositionStyle = function usePositionStyle(config) {
31444
31475
  };
31445
31476
  };
31446
31477
  var getAbsoluteStyle = function getAbsoluteStyle(position) {
31447
- var _scrollElRef$current, _scrollElRef$current2, _scrollElRef$current3;
31478
+ var _scrollElRef$current;
31448
31479
  if (!parentElRef.current) return {
31449
31480
  style: hideStyle
31450
31481
  };
31451
31482
  var rect = context.parentRect;
31452
31483
  var needCheck = !show || !shallow_equal(context.prevParentPosition, parentElNewPosition);
31453
- var scrollTop = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current = scrollElRef.current) === null || _scrollElRef$current === void 0 ? void 0 : _scrollElRef$current.scrollTop) || 0;
31454
- var scrollLeft = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.scrollLeft) || 0;
31455
- if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current3 = scrollElRef.current) !== null && _scrollElRef$current3 !== void 0 && _scrollElRef$current3.contains(parentElRef.current)) {
31456
- var _scrollElRef$current4;
31457
- var visibleRect = ((_scrollElRef$current4 = scrollElRef.current) === null || _scrollElRef$current4 === void 0 ? void 0 : _scrollElRef$current4.getBoundingClientRect()) || {};
31484
+ var _getScrollPosition = getScrollPosition(scrollElRef === null || scrollElRef === void 0 ? void 0 : scrollElRef.current),
31485
+ scrollTop = _getScrollPosition.scrollTop,
31486
+ scrollLeft = _getScrollPosition.scrollLeft;
31487
+ if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current = scrollElRef.current) !== null && _scrollElRef$current !== void 0 && _scrollElRef$current.contains(parentElRef.current)) {
31488
+ var _scrollElRef$current2;
31489
+ var visibleRect = ((_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.getBoundingClientRect()) || {};
31458
31490
  if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom + scrollTop || rect.right < visibleRect.left || rect.left > visibleRect.right + scrollLeft) {
31459
31491
  return {
31460
31492
  style: hideStyle
@@ -31528,7 +31560,9 @@ var usePositionStyle = function usePositionStyle(config) {
31528
31560
  }
31529
31561
 
31530
31562
  // 当父元素的滚动容器滚动时,判断是否需要更新弹出层位置,包括是否隐藏弹出层(通过hideStyle隐藏,不是show状态)
31531
- context.prevParentPosition = parentElNewPosition;
31563
+ if (show) {
31564
+ context.prevParentPosition = parentElNewPosition;
31565
+ }
31532
31566
  });
31533
31567
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize]);
31534
31568
  return {
@@ -36637,9 +36671,11 @@ function escapeRegExp() {
36637
36671
  timeOfDayValues: ['上午', '下午'],
36638
36672
  ok: '确定',
36639
36673
  cancel: '取消',
36674
+ reset: '重置',
36640
36675
  noData: '暂无数据',
36641
36676
  selectAll: '全选',
36642
36677
  loading: '加载中...',
36678
+ searchPlaceholder: '在筛选项中搜索',
36643
36679
  rules: {
36644
36680
  required: {
36645
36681
  array: '{title} 不能为空',
@@ -36703,9 +36739,11 @@ function escapeRegExp() {
36703
36739
  timeOfDayValues: ['a.m.', 'p.m.'],
36704
36740
  ok: 'Ok',
36705
36741
  cancel: 'Cancel',
36742
+ reset: 'Reset',
36706
36743
  noData: 'Data not found',
36707
36744
  selectAll: 'Select All',
36708
36745
  loading: 'loading...',
36746
+ searchPlaceholder: 'Search in filter options',
36709
36747
  rules: {
36710
36748
  required: {
36711
36749
  array: 'Please select {title}',
@@ -39720,9 +39758,9 @@ var useTree = function useTree(props) {
39720
39758
  var _context$value;
39721
39759
  if (mode !== MODE.MODE_0) return;
39722
39760
  (_context$value = context.value) === null || _context$value === void 0 || _context$value.forEach(function (id) {
39723
- var _ref3 = context.pathMap.get(id),
39724
- children = _ref3.children;
39725
- if (children.length) {
39761
+ var node = context.pathMap.get(id);
39762
+ var children = node === null || node === void 0 ? void 0 : node.children;
39763
+ if (children && children.length) {
39726
39764
  var noCheckedChildren = children.filter(function (cid) {
39727
39765
  var _context$value2;
39728
39766
  return !((_context$value2 = context.value) !== null && _context$value2 !== void 0 && _context$value2.includes(cid));
@@ -40206,7 +40244,8 @@ var VirtualList = function VirtualList(props) {
40206
40244
  preIndex: null,
40207
40245
  topTimer: null,
40208
40246
  rateTimer: null,
40209
- shouldUpdateHeight: true
40247
+ shouldUpdateHeight: true,
40248
+ prevWrapperRefHeight: 0
40210
40249
  }),
40211
40250
  context = _useRef.current;
40212
40251
  var getContentHeight = function getContentHeight(index) {
@@ -40366,11 +40405,14 @@ var VirtualList = function VirtualList(props) {
40366
40405
  context.preIndex = startIndex;
40367
40406
  }, [startIndex]);
40368
40407
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
40369
- if (keepScrollHeight) return;
40408
+ var _wrapperRef$current2;
40409
+ var currentWrapperRefHeight = ((_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.clientHeight) || 0;
40410
+ if (keepScrollHeight && currentWrapperRefHeight === context.prevWrapperRefHeight) return;
40370
40411
  if (keepScrollTop) return;
40371
40412
  // 数据变化的时候清空掉 preIndex, 如果之前有缓存的index, setRowHeight 会有问题
40372
40413
  setTop(0);
40373
40414
  setStartIndex(0);
40415
+ context.prevWrapperRefHeight = currentWrapperRefHeight;
40374
40416
  return function () {
40375
40417
  context.preIndex = null;
40376
40418
  };
@@ -41540,25 +41582,44 @@ function getResetMore(onFilter, container, doms) {
41540
41582
  var hideMargin = parsePxToNumber(hideElStyle.marginLeft) + parsePxToNumber(hideElStyle.marginRight);
41541
41583
  var num = 0;
41542
41584
  var sumWidth = 0;
41543
- for (var i = 0; i < doms.length; i++) {
41544
- var _item2 = doms[i];
41545
- var itemStyle = getComputedStyle(_item2);
41546
- var itemWidth = _item2.offsetWidth + parsePxToNumber(itemStyle.marginLeft) + parsePxToNumber(itemStyle.marginRight);
41547
- sumWidth += itemWidth;
41548
- var moreWidth = 0;
41549
- var resetNum = items.length - 1 - i;
41550
- if (resetNum > 0) {
41551
- var reset = "+".concat(resetNum);
41552
- hideEl.childNodes[0].innerText = reset;
41553
- moreWidth = hideEl.offsetWidth + hideMargin;
41554
- }
41555
- if (sumWidth > contentWidth - moreWidth) {
41556
- num = i;
41557
- break;
41558
- }
41585
+ var itemWidthArr = items.map(function (item) {
41586
+ var itemStyle = getComputedStyle(item);
41587
+ var itemLen = item.offsetWidth + parsePxToNumber(itemStyle.marginLeft) + parsePxToNumber(itemStyle.marginRight);
41588
+ sumWidth += itemLen;
41589
+ return itemLen;
41590
+ });
41591
+ if (sumWidth <= contentWidth) {
41559
41592
  num = -1;
41593
+ } else {
41594
+ var len = 0;
41595
+ for (var i = 0; i < itemWidthArr.length; i++) {
41596
+ var itemLen = itemWidthArr[i];
41597
+ // number length
41598
+ var resetNum = items.length - 1 - i;
41599
+ var moreWidth = void 0;
41600
+ if (resetNum <= 0) {
41601
+ moreWidth = 0;
41602
+ } else {
41603
+ var reset = "+".concat(resetNum);
41604
+ hideEl.childNodes[0].innerText = reset;
41605
+ // (+num) width
41606
+ moreWidth = hideEl.offsetWidth + hideMargin;
41607
+ }
41608
+ len += itemLen;
41609
+ if (len > contentWidth - moreWidth) {
41610
+ break;
41611
+ }
41612
+ num += 1;
41613
+ if (i === items.length - 1) {
41614
+ // not show more
41615
+ num = -1;
41616
+ }
41617
+ }
41618
+ }
41619
+ // at least show one
41620
+ if (num === 0 && itemWidthArr[0]) {
41621
+ num = 1;
41560
41622
  }
41561
- ;
41562
41623
  return num;
41563
41624
  }
41564
41625
  var More = function More(props) {
@@ -42695,8 +42756,8 @@ var Cascader = function Cascader(props0) {
42695
42756
  }
42696
42757
  }, [data]);
42697
42758
 
42698
- // 修复外部受控打开的场景下,从外部修改value导致的面板勾选情况没有及时同步
42699
- if (openProp && !shallowEqual(value, datum.getValue())) {
42759
+ // 修复外部受控打开或renderOptionList做全选的场景下,从外部修改value导致的面板勾选情况没有及时同步
42760
+ if ((openProp || props.renderOptionList) && !shallowEqual(value, datum.getValue())) {
42700
42761
  datum.setValue(value);
42701
42762
  }
42702
42763
  ;
@@ -42705,9 +42766,6 @@ var Cascader = function Cascader(props0) {
42705
42766
  datum.setValue(value);
42706
42767
  if (!open) return;
42707
42768
  updatePathByValue();
42708
- if (props.renderOptionList) {
42709
- updatePath();
42710
- }
42711
42769
  }, [value, open]);
42712
42770
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
42713
42771
  if (filterText !== undefined) {
@@ -46122,7 +46180,9 @@ var useTime = function useTime(props) {
46122
46180
  _props$secondStep = props.secondStep,
46123
46181
  secondStep = _props$secondStep === void 0 ? 1 : _props$secondStep,
46124
46182
  staticMin = props.staticMin,
46125
- staticMax = props.staticMax;
46183
+ staticMax = props.staticMax,
46184
+ position = props.position,
46185
+ rangeDate = props.rangeDate;
46126
46186
  var min = util.resetTimeByFormat(mi, format, options);
46127
46187
  var max = util.resetTimeByFormat(ma, format, options);
46128
46188
  var current = props.value || util.newDate(undefined, options);
@@ -46148,7 +46208,7 @@ var useTime = function useTime(props) {
46148
46208
  disabledTime = props.disabledTime;
46149
46209
  if (disabledTime) {
46150
46210
  var _time = util.format(date, util.TIME_FORMAT, options);
46151
- if (typeof disabledTime === 'function') return disabledTime(_time);
46211
+ if (typeof disabledTime === 'function') return disabledTime(_time, position, rangeDate === null || rangeDate === void 0 ? void 0 : rangeDate[0], rangeDate === null || rangeDate === void 0 ? void 0 : rangeDate[1]);
46152
46212
  return disabledTime === _time;
46153
46213
  }
46154
46214
  var isDis = disabled && typeof disabled === 'function' ? disabled(date) : false;
@@ -46499,7 +46559,9 @@ var Time = function Time(props) {
46499
46559
  disabledTime: props.disabledTime,
46500
46560
  hourStep: props.hourStep,
46501
46561
  minuteStep: props.minuteStep,
46502
- secondStep: props.secondStep
46562
+ secondStep: props.secondStep,
46563
+ position: props.position,
46564
+ rangeDate: props.rangeDate
46503
46565
  }),
46504
46566
  func = _useTimePick.func,
46505
46567
  times = _useTimePick.times;
@@ -51015,7 +51077,7 @@ var useForm = function useForm(props) {
51015
51077
  var _props$onChange;
51016
51078
  var newValue = typeof change === 'function' ? utils_immer_produce(context.value, change) : change;
51017
51079
  context.value = newValue;
51018
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, deepClone(context.value));
51080
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, newValue);
51019
51081
  });
51020
51082
  var scrollToField = use_persist_fn(function (name) {
51021
51083
  var _document;
@@ -55558,7 +55620,8 @@ var VirtualNode = function VirtualNode(props) {
55558
55620
  className: rootClass,
55559
55621
  dir: config.direction,
55560
55622
  style: {
55561
- paddingLeft: level * indent
55623
+ paddingLeft: level * indent,
55624
+ height: props.lineHeight
55562
55625
  },
55563
55626
  children: [$indents, /*#__PURE__*/(0,jsx_runtime.jsx)(tree_content, {
55564
55627
  virtual: true,
@@ -55842,7 +55905,8 @@ var TreeVirtual = function TreeVirtual(props) {
55842
55905
  onNodeClick: onNodeClick,
55843
55906
  onToggle: onToggle,
55844
55907
  onChange: onChange,
55845
- size: datum.size
55908
+ size: datum.size,
55909
+ lineHeight: lineHeight
55846
55910
  }, id);
55847
55911
  };
55848
55912
  return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
@@ -56525,7 +56589,8 @@ var ColumnsList = function ColumnsList(props) {
56525
56589
  colNum: columns,
56526
56590
  lineHeight: lineHeight,
56527
56591
  rowsInView: itemsInView,
56528
- renderItem: renderItem
56592
+ renderItem: renderItem,
56593
+ paddingY: 4
56529
56594
  });
56530
56595
  };
56531
56596
  var renderSelectAll = function renderSelectAll() {
@@ -56933,7 +56998,8 @@ function Select(props0) {
56933
56998
  if (hideCreate) {
56934
56999
  // optionListRef.current?.hoverMove(filterData.length - 1, true);
56935
57000
  }
56936
- onFilter === null || onFilter === void 0 || onFilter(trim ? text.trim() : text, from);
57001
+ // onFilter?.(trim ? text.trim() : text, from);
57002
+ onFilter === null || onFilter === void 0 || onFilter(text.trim(), from);
56937
57003
  };
56938
57004
  var handleOptionClick = function handleOptionClick() {
56939
57005
  if (multiple) return;
@@ -63684,8 +63750,11 @@ var useTableGroup = function useTableGroup(props) {
63684
63750
 
63685
63751
 
63686
63752
 
63753
+
63687
63754
  var FilterFooter = function FilterFooter(props) {
63688
63755
  var tableClasses = props.tableClasses;
63756
+ var _useConfig = useConfig(),
63757
+ locale = _useConfig.locale;
63689
63758
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("footer", {
63690
63759
  className: tableClasses.filterFooter,
63691
63760
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, {
@@ -63694,18 +63763,21 @@ var FilterFooter = function FilterFooter(props) {
63694
63763
  size: "small",
63695
63764
  onClick: props.onReset,
63696
63765
  disabled: !props.resetable,
63697
- children: "\u91CD\u7F6E"
63766
+ mode: "outline",
63767
+ children: getLocale(locale, 'reset')
63698
63768
  }), /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, {
63699
63769
  jssStyle: props.jssStyle,
63700
63770
  size: "small",
63701
63771
  type: "primary",
63702
63772
  onClick: props.onConfirm,
63703
- children: "\u786E\u5B9A"
63773
+ children: getLocale(locale, 'ok')
63704
63774
  })]
63705
63775
  });
63706
63776
  };
63707
63777
  var FilterSelect = function FilterSelect(props) {
63708
63778
  var _props$filterInfo;
63779
+ var _useConfig2 = useConfig(),
63780
+ locale = _useConfig2.locale;
63709
63781
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
63710
63782
  _useState2 = slicedToArray_default()(_useState, 2),
63711
63783
  popoverVisible = _useState2[0],
@@ -63784,7 +63856,7 @@ var FilterSelect = function FilterSelect(props) {
63784
63856
  jssStyle: props.jssStyle,
63785
63857
  shape: "circle",
63786
63858
  size: "small",
63787
- className: classnames_default()(tableClasses.filterIconContainer, (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value) && tableClasses.filterActive),
63859
+ className: classnames_default()(tableClasses.filterIconContainer, (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value) && tableClasses.filterActive, popoverVisible && tableClasses.filterOpened),
63788
63860
  style: {
63789
63861
  border: 'none'
63790
63862
  },
@@ -63802,13 +63874,14 @@ var FilterSelect = function FilterSelect(props) {
63802
63874
  children: [(config === null || config === void 0 ? void 0 : config.search) && /*#__PURE__*/(0,jsx_runtime.jsx)("header", {
63803
63875
  className: tableClasses.filterHeader,
63804
63876
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_input_input, {
63877
+ showClear: true,
63805
63878
  value: inputText,
63806
63879
  onChange: function onChange(v) {
63807
63880
  if (onFilter) onFilter(v || '');
63808
63881
  setInputText(v);
63809
63882
  },
63810
63883
  jssStyle: props.jssStyle,
63811
- placeholder: "\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",
63884
+ placeholder: getLocale(locale, 'searchPlaceholder'),
63812
63885
  className: tableClasses.filterInput,
63813
63886
  prefix: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
63814
63887
  className: tableClasses.filterInputIcon,
@@ -63844,6 +63917,8 @@ var FilterSelect = function FilterSelect(props) {
63844
63917
  };
63845
63918
  var FilterSearch = function FilterSearch(props) {
63846
63919
  var _props$filterInfo2;
63920
+ var _useConfig3 = useConfig(),
63921
+ locale = _useConfig3.locale;
63847
63922
  var tableClasses = props.tableClasses,
63848
63923
  filter = props.filter;
63849
63924
  var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
@@ -63890,7 +63965,7 @@ var FilterSearch = function FilterSearch(props) {
63890
63965
  jssStyle: props.jssStyle,
63891
63966
  shape: "circle",
63892
63967
  size: "small",
63893
- className: classnames_default()(tableClasses.filterIconContainer, (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value) && tableClasses.filterActive),
63968
+ className: classnames_default()(tableClasses.filterIconContainer, (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value) && tableClasses.filterActive, popoverVisible && tableClasses.filterOpened),
63894
63969
  style: {
63895
63970
  border: 'none'
63896
63971
  },
@@ -63909,7 +63984,7 @@ var FilterSearch = function FilterSearch(props) {
63909
63984
  className: tableClasses.filterHeader,
63910
63985
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_input_input, {
63911
63986
  jssStyle: props.jssStyle,
63912
- placeholder: "\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",
63987
+ placeholder: getLocale(locale, 'searchPlaceholder'),
63913
63988
  className: tableClasses.filterInput,
63914
63989
  prefix: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
63915
63990
  className: tableClasses.filterInputIcon,
@@ -63918,7 +63993,8 @@ var FilterSearch = function FilterSearch(props) {
63918
63993
  value: tempValue,
63919
63994
  onChange: setTempValue,
63920
63995
  onEnterPress: onConfirm,
63921
- forwardRef: inputRef
63996
+ forwardRef: inputRef,
63997
+ showClear: true
63922
63998
  })
63923
63999
  }), /*#__PURE__*/(0,jsx_runtime.jsx)(FilterFooter, {
63924
64000
  jssStyle: props.jssStyle,
@@ -72163,7 +72239,7 @@ var upload_interface = __webpack_require__(8821);
72163
72239
 
72164
72240
 
72165
72241
  /* harmony default export */ var src_0 = ({
72166
- version: '3.8.0-beta.17'
72242
+ version: '3.8.0-beta.19'
72167
72243
  });
72168
72244
  }();
72169
72245
  /******/ return __webpack_exports__;