@zykj2024/much-library 1.2.2 → 1.2.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.
@@ -49,6 +49,11 @@ export interface McListSelectPanelProps {
49
49
  * @defaultValue '可选项'
50
50
  */
51
51
  title?: React.ReactNode;
52
+ /**
53
+ * 搜索框默认文本
54
+ * @defaultValue '请输入关键词'
55
+ */
56
+ searchPlaceholder?: string;
52
57
  /**
53
58
  * 可选数据列表
54
59
  */
@@ -27,6 +27,8 @@ export var isLabelInValue = function isLabelInValue(value) {
27
27
  var ListSelectPanel = /*#__PURE__*/forwardRef(function (props, ref) {
28
28
  var _props$title = props.title,
29
29
  title = _props$title === void 0 ? '可选项' : _props$title,
30
+ _props$searchPlacehol = props.searchPlaceholder,
31
+ searchPlaceholder = _props$searchPlacehol === void 0 ? '请输入关键词' : _props$searchPlacehol,
30
32
  options = props.options,
31
33
  fetchOptions = props.fetchOptions,
32
34
  _props$pageSize = props.pageSize,
@@ -305,6 +307,7 @@ var ListSelectPanel = /*#__PURE__*/forwardRef(function (props, ref) {
305
307
  }), /*#__PURE__*/_jsx("div", {
306
308
  className: "mc-list-select-panel__card__search",
307
309
  children: /*#__PURE__*/_jsx(McInput.Search, {
310
+ placeholder: searchPlaceholder,
308
311
  value: keyword,
309
312
  onChange: setKeyword,
310
313
  onSearch: function onSearch() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykj2024/much-library",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "react library",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",