@zykj2024/much-library 1.2.1 → 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() {
@@ -421,8 +424,7 @@ var ListSelectPanel = /*#__PURE__*/forwardRef(function (props, ref) {
421
424
  children: selected.map(function (v) {
422
425
  return /*#__PURE__*/_jsx(SelectedItem, {
423
426
  style: {
424
- width: selectedLayout === 'inline' ? 'auto' : '100%',
425
- height: selectedLayout === 'inline' ? 32 : 40
427
+ width: selectedLayout === 'inline' ? 'auto' : '100%'
426
428
  },
427
429
  sortable: selectedLayout === 'sortable',
428
430
  valueMap: valueMap,
@@ -124,14 +124,14 @@
124
124
  width: 100%;
125
125
  }
126
126
  .mc-list-select-panel__card__checkall {
127
- height: 40px;
127
+ height: 32px;
128
128
  }
129
129
  .mc-list-select-panel__card__checkall__inner {
130
130
  -webkit-box-align: center;
131
131
  -ms-flex-align: center;
132
132
  align-items: center;
133
133
  width: 100%;
134
- height: 40px;
134
+ height: 32px;
135
135
  padding: 0 12px;
136
136
  }
137
137
  .mc-list-select-panel__card__checkall__inner:hover {
@@ -200,7 +200,7 @@
200
200
  -ms-flex-align: center;
201
201
  align-items: center;
202
202
  width: 100%;
203
- height: 40px;
203
+ height: 32px;
204
204
  padding: 0 12px;
205
205
  }
206
206
  .mc-list-select-panel__option:hover {
@@ -234,7 +234,7 @@
234
234
  -ms-flex-align: center;
235
235
  align-items: center;
236
236
  width: 100%;
237
- height: 40px;
237
+ height: 32px;
238
238
  padding: 0 8px;
239
239
  overflow: hidden;
240
240
  background: #f5f5f5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykj2024/much-library",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "react library",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",