@hi-ui/check-select 5.0.0-rc.0 → 5.0.0-rc.1

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.
@@ -419,6 +419,9 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
419
419
  menuVisibleAction.on();
420
420
  expandedViewRef.current = 'normal';
421
421
  }
422
+ },
423
+ getShowData: function getShowData() {
424
+ return showData;
422
425
  }
423
426
  };
424
427
  });
@@ -405,6 +405,9 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
405
405
  menuVisibleAction.on();
406
406
  expandedViewRef.current = 'normal';
407
407
  }
408
+ },
409
+ getShowData: function getShowData() {
410
+ return showData;
408
411
  }
409
412
  };
410
413
  });
@@ -64,4 +64,8 @@ export interface CheckSelectHelper {
64
64
  * @param onlyChecked 默认 true:仅显示已选项并打开下拉;传 false 时显示全部并打开下拉
65
65
  */
66
66
  showOnlyChecked: (onlyChecked?: boolean) => void;
67
+ /**
68
+ * 获取当前下拉列表展示的数据(含搜索、异步搜索过滤后的结果)
69
+ */
70
+ getShowData: () => CheckSelectItemEventData[];
67
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-select",
3
- "version": "5.0.0-rc.0",
3
+ "version": "5.0.0-rc.1",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",