@hi-ui/check-select 5.0.0-experimental.0 → 5.0.0-experimental.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,418 @@
1
+ # @hi-ui/check-select
2
+
3
+ ## 5.0.0-experimental.1
4
+
5
+ ### Minor Changes
6
+
7
+ - b27483796: feat(picker, select, check-select): add creatableInSearchVisible prop to control visibility of creation entry based on search results (5.0)
8
+
9
+ ### Patch Changes
10
+
11
+ - 8f23e9322: style: 表单类组件统一调整后缀颜色、placeholder 颜色 (5.0)
12
+ - 发布 hiui experimental 版本
13
+ - Updated dependencies [8f23e9322]
14
+ - Updated dependencies [b27483796]
15
+ - Updated dependencies [900c6c2f0]
16
+ - Updated dependencies
17
+ - @hi-ui/input@5.0.0-experimental.1
18
+ - @hi-ui/picker@5.0.0-experimental.1
19
+ - @hi-ui/tag-input@5.0.0-experimental.1
20
+
21
+ ## 5.0.0-experimental.0
22
+
23
+ ### Major Changes
24
+
25
+ - 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
26
+
27
+ ### Minor Changes
28
+
29
+ - b9989e482: feat(picker): 增加 clearSearchOnClosed api 默认是 false (5.0)
30
+ - f1ab51725: <br>
31
+ - feat(picker): 下拉选择类组件增加 xs 尺寸 (5.0)
32
+ - feat(input): 输入框组件增加 xs 尺寸 (5.0)
33
+ - 6dca7795c: feat: 下拉选择组件增加 showIndicator 参数 & 修改 appearance 中的 unset 样式 (5.0)
34
+ - 77d969c2e: feat: 下拉选择类组件 appearance 参数增加 contained 类型 (5.0)
35
+ - 58ad82e94: feat: 输入框和选择器组件增加 borderless 形态 (5.0)
36
+ - cb7b794d0: feat(select): 增加 creatableInSearch、createTitle 参数,支持在搜索无结果时可创建选项 (5.0)
37
+
38
+ ### Patch Changes
39
+
40
+ - 1662753e0: style: fix ui bug (5.0)
41
+ - cf89262c7: style(picker): 移除 picker 组件中的 \_\_text 样式定义 (5.0)
42
+ - cb9d8f6db: fix(tag-input): 修复 contained 模式下 displayRender 设置无效问题 (5.0)
43
+ - be5a59325: style: 修改样式问题 (5.0)
44
+ - 79ea480f3: feat(global-context): 增加 size api 全局配置 (5.0)
45
+ - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
46
+ - eb718e940: fix: 修改组件问题 (5.0)
47
+ - 95abba983: fix: 修改 UI 问题 (5.0)
48
+ - de8d058dc: perf: 对下拉选择类组件的 customRender 的内容增加 memoization 以优化性能 (5.0)
49
+ - 5210770d9: feat(picker): add header api (5.0)
50
+ - 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
51
+ - e7b64347e: style(tag-input): 增加 flex-wrap 属性以优化标签换行展示 (5.0)
52
+ - 7f3abee55: style: fix ui bug (5.0)
53
+ - 0a4e90dbd: <br>
54
+ - style(tag-input): 间距调整 (5.0)
55
+ - style(select): 选择类组件选项圆角改为 4px (5.0)
56
+ - style(picker): 搜索框样式调整 (5.0)
57
+ - 4a31cea53: style: 统一调整选择类组件 hover 时的背景色 (5.0)
58
+ - 99801c2d1: fix: 修复 UI 问题 (5.0)
59
+ - Updated dependencies [0b34e1c15]
60
+ - Updated dependencies [da2e63a14]
61
+ - Updated dependencies [1e226cd66]
62
+ - Updated dependencies [cce71cdfa]
63
+ - Updated dependencies [b9989e482]
64
+ - Updated dependencies [1662753e0]
65
+ - Updated dependencies [122d1d859]
66
+ - Updated dependencies [f1ab51725]
67
+ - Updated dependencies [41552be0b]
68
+ - Updated dependencies [8c0ee78f0]
69
+ - Updated dependencies [9b34d99bc]
70
+ - Updated dependencies [8f3aa85e4]
71
+ - Updated dependencies [f4fc0ef30]
72
+ - Updated dependencies [cb9d8f6db]
73
+ - Updated dependencies [ec4c7faa2]
74
+ - Updated dependencies [29cae09ea]
75
+ - Updated dependencies [fd4c20bbd]
76
+ - Updated dependencies [be5a59325]
77
+ - Updated dependencies [71fc15e5c]
78
+ - Updated dependencies [f8acad4e1]
79
+ - Updated dependencies [79ea480f3]
80
+ - Updated dependencies [2e56529f7]
81
+ - Updated dependencies [277c5033a]
82
+ - Updated dependencies [4e0ed3a31]
83
+ - Updated dependencies [95abba983]
84
+ - Updated dependencies [4a31cea53]
85
+ - Updated dependencies [976ec929d]
86
+ - Updated dependencies [f1ab51725]
87
+ - Updated dependencies [6dca7795c]
88
+ - Updated dependencies [7b956b1eb]
89
+ - Updated dependencies [5210770d9]
90
+ - Updated dependencies [e2d184e74]
91
+ - Updated dependencies [77d969c2e]
92
+ - Updated dependencies [9ecf354ba]
93
+ - Updated dependencies [e42e2badf]
94
+ - Updated dependencies [33da3144e]
95
+ - Updated dependencies [e7b64347e]
96
+ - Updated dependencies [7f3abee55]
97
+ - Updated dependencies [6fcda9bf2]
98
+ - Updated dependencies [0a4e90dbd]
99
+ - Updated dependencies [58ad82e94]
100
+ - Updated dependencies [a0f0c9d6b]
101
+ - Updated dependencies [f2be367e9]
102
+ - Updated dependencies [1972fd16a]
103
+ - Updated dependencies [99801c2d1]
104
+ - Updated dependencies [86910f5e2]
105
+ - Updated dependencies [cb7b794d0]
106
+ - @hi-ui/picker@5.0.0-experimental.0
107
+ - @hi-ui/input@5.0.0-experimental.0
108
+ - @hi-ui/popper@5.0.0-experimental.0
109
+ - @hi-ui/tag-input@5.0.0-experimental.0
110
+ - @hi-ui/icons@5.0.0-experimental.0
111
+ - @hi-ui/virtual-list@5.0.0-experimental.0
112
+ - @hi-ui/core@5.0.0-experimental.0
113
+ - @hi-ui/use-check@5.0.0-experimental.0
114
+ - @hi-ui/use-children@5.0.0-experimental.0
115
+ - @hi-ui/use-data-source@5.0.0-experimental.0
116
+ - @hi-ui/use-id@5.0.0-experimental.0
117
+ - @hi-ui/use-latest@5.0.0-experimental.0
118
+ - @hi-ui/use-search-mode@5.0.0-experimental.0
119
+ - @hi-ui/use-toggle@5.0.0-experimental.0
120
+ - @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
121
+ - @hi-ui/checkbox@5.0.0-experimental.0
122
+ - @hi-ui/highlighter@5.0.0-experimental.0
123
+ - @hi-ui/array-utils@5.0.0-experimental.0
124
+ - @hi-ui/classname@5.0.0-experimental.0
125
+ - @hi-ui/dom-utils@5.0.0-experimental.0
126
+ - @hi-ui/env@5.0.0-experimental.0
127
+ - @hi-ui/func-utils@5.0.0-experimental.0
128
+ - @hi-ui/times@5.0.0-experimental.0
129
+ - @hi-ui/tree-utils@5.0.0-experimental.0
130
+ - @hi-ui/type-assertion@5.0.0-experimental.0
131
+
132
+ ## 4.6.5
133
+
134
+ ### Patch Changes
135
+
136
+ - [#3450](https://github.com/XiaoMi/hiui/pull/3450) [`0cea4d7`](https://github.com/XiaoMi/hiui/commit/0cea4d75c771b5db56f520821b53864051c33594) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(tag-input): ensure at least one tag is displayed when container width is insufficient (#3449)
137
+
138
+ - Updated dependencies [[`0cea4d7`](https://github.com/XiaoMi/hiui/commit/0cea4d75c771b5db56f520821b53864051c33594)]:
139
+ - @hi-ui/tag-input@4.1.5
140
+
141
+ ## 4.6.4
142
+
143
+ ### Patch Changes
144
+
145
+ - [#3196](https://github.com/XiaoMi/hiui/pull/3196) [`80a909d2d`](https://github.com/XiaoMi/hiui/commit/80a909d2dae99d68d71f2ec6f4b210080d032ec0) Thanks [@KEH3](https://github.com/KEH3)! - fix(popper): ref 中增加更新位置方法解决上游组件弹窗被遮挡问题 (#3195)
146
+
147
+ - [#3208](https://github.com/XiaoMi/hiui/pull/3208) [`36086f4c8`](https://github.com/XiaoMi/hiui/commit/36086f4c8ab11728dd4d0bb34b4d9301c6068452) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(select): 修复多级分组下分组标题左间距不对问题 (#3207)
148
+
149
+ - Updated dependencies [[`80a909d2d`](https://github.com/XiaoMi/hiui/commit/80a909d2dae99d68d71f2ec6f4b210080d032ec0)]:
150
+ - @hi-ui/picker@4.1.8
151
+ - @hi-ui/popper@4.1.7
152
+
153
+ ## 4.6.3
154
+
155
+ ### Patch Changes
156
+
157
+ - [#3126](https://github.com/XiaoMi/hiui/pull/3126) [`6173495f3`](https://github.com/XiaoMi/hiui/commit/6173495f3a09ed8fce6ebdf1a99a50ffdc394952) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-select): 增强 mergedCheckedItems 逻辑以支持自定义渲染函数,并修复 getAllCheckedStatus 函数对非数组值的处理 (#3124)
158
+
159
+ - Updated dependencies [[`b97a8f8`](https://github.com/XiaoMi/hiui/commit/b97a8f81664b023237791769e0fd62b90956fc90)]:
160
+ - @hi-ui/popper@4.1.6
161
+
162
+ ## 4.6.2
163
+
164
+ ### Patch Changes
165
+
166
+ - [#3114](https://github.com/XiaoMi/hiui/pull/3114) [`8ddcda3`](https://github.com/XiaoMi/hiui/commit/8ddcda36864ef1ad6679a413f660cfcc7f55e8a3) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-select): 修复 customRender 回调中的 value 值无法显示初始值问题 (#3113)
167
+
168
+ ## 4.6.1
169
+
170
+ ### Patch Changes
171
+
172
+ - [#3096](https://github.com/XiaoMi/hiui/pull/3096) [`3aff5eee7`](https://github.com/XiaoMi/hiui/commit/3aff5eee7ab4e1734fa2800d5154e8ebe24bbe00) Thanks [@zyprepare](https://github.com/zyprepare)! - perf(tag-input): 优化 wrap 模式下设置 displayRender 卡顿问题 (#3094)
173
+
174
+ - Updated dependencies [[`3aff5eee7`](https://github.com/XiaoMi/hiui/commit/3aff5eee7ab4e1734fa2800d5154e8ebe24bbe00), [`414c96a86`](https://github.com/XiaoMi/hiui/commit/414c96a86c6311c5b103733749092108cad03760), [`13b169670`](https://github.com/XiaoMi/hiui/commit/13b16967026f8389cc66315d376ef77029f4ba2b), [`bf2179191`](https://github.com/XiaoMi/hiui/commit/bf21791917f96c0b33b6a74539650bc56aba1d99)]:
175
+ - @hi-ui/tag-input@4.1.3
176
+ - @hi-ui/highlighter@4.1.0
177
+ - @hi-ui/input@4.3.0
178
+
179
+ ## 4.6.0
180
+
181
+ ### Minor Changes
182
+
183
+ - [#3015](https://github.com/XiaoMi/hiui/pull/3015) [`b2d784b23`](https://github.com/XiaoMi/hiui/commit/b2d784b23682e70cbc7b09e3396f51fda02e2223) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(select): Add searchOnInit api (#3004)
184
+ feat(check-select): Add searchOnInit api (#3004)
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [[`b2d784b23`](https://github.com/XiaoMi/hiui/commit/b2d784b23682e70cbc7b09e3396f51fda02e2223)]:
189
+ - @hi-ui/use-search-mode@4.2.0
190
+
191
+ ## 4.5.0
192
+
193
+ ### Minor Changes
194
+
195
+ - [#2970](https://github.com/XiaoMi/hiui/pull/2970) [`657d180`](https://github.com/XiaoMi/hiui/commit/657d1802ac424e2498f9036047cc74a34659d5d6) Thanks [@xiamiao1121](https://github.com/xiamiao1121)! - feat: 支持按 Enter 键是否选中当前项功能,checkedOnEntered 默认为 true
196
+
197
+ ## 4.4.4
198
+
199
+ ### Patch Changes
200
+
201
+ - [#2828](https://github.com/XiaoMi/hiui/pull/2828) [`b8679ce3e`](https://github.com/XiaoMi/hiui/commit/b8679ce3e7fab435fd126901e6e8b23268bcf712) Thanks [@xiamiao1121](https://github.com/xiamiao1121)! - fix: 修复异步搜索中,搜索结果中关键字没有高亮显示问题
202
+
203
+ - Updated dependencies [[`3afbf239e`](https://github.com/XiaoMi/hiui/commit/3afbf239e816ede48d6a85cbd99b6b099b8c8eb3)]:
204
+ - @hi-ui/env@4.0.7
205
+
206
+ ## 4.4.3
207
+
208
+ ### Patch Changes
209
+
210
+ - [#2795](https://github.com/XiaoMi/hiui/pull/2795) [`234687ee0`](https://github.com/XiaoMi/hiui/commit/234687ee0ea4de16faaf771ea6a599bc43971249) Thanks [@xiamiao1121](https://github.com/xiamiao1121)! - fix: 修复 onClear 设置后没触发问题
211
+
212
+ ## 4.4.2
213
+
214
+ ### Patch Changes
215
+
216
+ - [#2791](https://github.com/XiaoMi/hiui/pull/2791) [`1a00f9fc4`](https://github.com/XiaoMi/hiui/commit/1a00f9fc4a44619059d7852e846b54fedbd56715) Thanks [@zyprepare](https://github.com/zyprepare)! - build: style-inject(node 环境下有问题) 替换为 @hi-ui/style-inject
217
+
218
+ - Updated dependencies [[`1a00f9fc4`](https://github.com/XiaoMi/hiui/commit/1a00f9fc4a44619059d7852e846b54fedbd56715)]:
219
+ - @hi-ui/env@4.0.5
220
+ - @hi-ui/icons@4.0.19
221
+ - @hi-ui/checkbox@4.0.10
222
+ - @hi-ui/highlighter@4.0.9
223
+ - @hi-ui/input@4.1.1
224
+ - @hi-ui/picker@4.1.6
225
+ - @hi-ui/popper@4.1.5
226
+ - @hi-ui/tag-input@4.1.1
227
+ - @hi-ui/virtual-list@4.0.8
228
+ - @hi-ui/array-utils@4.0.5
229
+ - @hi-ui/classname@4.0.5
230
+
231
+ ## 4.4.1
232
+
233
+ ### Patch Changes
234
+
235
+ - [#2771](https://github.com/XiaoMi/hiui/pull/2771) [`eee27bd5f`](https://github.com/XiaoMi/hiui/commit/eee27bd5f81a89169c1c2dc993b9100731cafcbd) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 keyword 受控时搜索结果有误的问题
236
+
237
+ ## 4.4.0
238
+
239
+ ### Minor Changes
240
+
241
+ - [#2746](https://github.com/XiaoMi/hiui/pull/2746) [`b3a13135c`](https://github.com/XiaoMi/hiui/commit/b3a13135c77e75291d5864ff7fcf63ddb2ff46b8) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: add prefix api
242
+
243
+ ### Patch Changes
244
+
245
+ - Updated dependencies [[`a9b9c93fc`](https://github.com/XiaoMi/hiui/commit/a9b9c93fc3a3fea60d14052a5afeef9daf7efa1b), [`b3a13135c`](https://github.com/XiaoMi/hiui/commit/b3a13135c77e75291d5864ff7fcf63ddb2ff46b8), [`ca008e4ae`](https://github.com/XiaoMi/hiui/commit/ca008e4ae9753bc1f11efcdcbf09121d1ef07b56)]:
246
+ - @hi-ui/input@4.1.0
247
+ - @hi-ui/tag-input@4.1.0
248
+ - @hi-ui/tree-utils@4.1.6
249
+
250
+ ## 4.3.6
251
+
252
+ ### Patch Changes
253
+
254
+ - [#2682](https://github.com/XiaoMi/hiui/pull/2682) [`41765fbed`](https://github.com/XiaoMi/hiui/commit/41765fbed0b3b9c8a574a0d7358b2d3f876162c5) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 下拉框盒模型设置为 content-box
255
+
256
+ - Updated dependencies [[`ba6e0265d`](https://github.com/XiaoMi/hiui/commit/ba6e0265da07964423d3a684dd068dcf50865dbc), [`41765fbed`](https://github.com/XiaoMi/hiui/commit/41765fbed0b3b9c8a574a0d7358b2d3f876162c5)]:
257
+ - @hi-ui/popper@4.1.4
258
+ - @hi-ui/picker@4.1.5
259
+
260
+ ## 4.3.5
261
+
262
+ ### Patch Changes
263
+
264
+ - build: rollup2 构建
265
+ - Updated dependencies
266
+ - @hi-ui/core@4.0.8
267
+ - @hi-ui/use-check@4.0.5
268
+ - @hi-ui/use-children@4.0.4
269
+ - @hi-ui/use-data-source@4.0.4
270
+ - @hi-ui/use-latest@4.0.4
271
+ - @hi-ui/use-search-mode@4.1.4
272
+ - @hi-ui/use-toggle@4.0.4
273
+ - @hi-ui/use-uncontrolled-state@4.0.4
274
+ - @hi-ui/icons@4.0.18
275
+ - @hi-ui/checkbox@4.0.8
276
+ - @hi-ui/highlighter@4.0.8
277
+ - @hi-ui/input@4.0.13
278
+ - @hi-ui/picker@4.1.4
279
+ - @hi-ui/popper@4.1.3
280
+ - @hi-ui/tag-input@4.0.10
281
+ - @hi-ui/virtual-list@4.0.7
282
+ - @hi-ui/array-utils@4.0.4
283
+ - @hi-ui/classname@4.0.4
284
+ - @hi-ui/dom-utils@4.0.7
285
+ - @hi-ui/env@4.0.4
286
+ - @hi-ui/func-utils@4.0.4
287
+ - @hi-ui/times@4.0.4
288
+ - @hi-ui/tree-utils@4.1.4
289
+ - @hi-ui/type-assertion@4.0.4
290
+
291
+ ## 4.3.4
292
+
293
+ ### Patch Changes
294
+
295
+ - fix: 修复 rollup3 打包 cjs 模块问题
296
+ - Updated dependencies
297
+ - @hi-ui/env@4.0.3
298
+ - @hi-ui/core@4.0.7
299
+ - @hi-ui/use-check@4.0.4
300
+ - @hi-ui/use-children@4.0.3
301
+ - @hi-ui/use-data-source@4.0.3
302
+ - @hi-ui/use-latest@4.0.3
303
+ - @hi-ui/use-search-mode@4.1.3
304
+ - @hi-ui/use-toggle@4.0.3
305
+ - @hi-ui/use-uncontrolled-state@4.0.3
306
+ - @hi-ui/icons@4.0.17
307
+ - @hi-ui/checkbox@4.0.7
308
+ - @hi-ui/highlighter@4.0.7
309
+ - @hi-ui/input@4.0.12
310
+ - @hi-ui/picker@4.1.3
311
+ - @hi-ui/popper@4.1.2
312
+ - @hi-ui/tag-input@4.0.9
313
+ - @hi-ui/virtual-list@4.0.6
314
+ - @hi-ui/array-utils@4.0.3
315
+ - @hi-ui/classname@4.0.3
316
+ - @hi-ui/dom-utils@4.0.6
317
+ - @hi-ui/func-utils@4.0.3
318
+ - @hi-ui/times@4.0.3
319
+ - @hi-ui/tree-utils@4.1.3
320
+ - @hi-ui/type-assertion@4.0.3
321
+
322
+ ## 4.3.3
323
+
324
+ ### Patch Changes
325
+
326
+ - [#2672](https://github.com/XiaoMi/hiui/pull/2672) [`1ebe27830`](https://github.com/XiaoMi/hiui/commit/1ebe2783098b3a8cd980bd10076d67635463800e) Thanks [@zyprepare](https://github.com/zyprepare)! - build: 升级到 rollup3,重新构建发布组件
327
+
328
+ - Updated dependencies [[`1ebe27830`](https://github.com/XiaoMi/hiui/commit/1ebe2783098b3a8cd980bd10076d67635463800e)]:
329
+ - @hi-ui/core@4.0.6
330
+ - @hi-ui/use-check@4.0.3
331
+ - @hi-ui/use-children@4.0.2
332
+ - @hi-ui/use-data-source@4.0.2
333
+ - @hi-ui/use-latest@4.0.2
334
+ - @hi-ui/use-search-mode@4.1.2
335
+ - @hi-ui/use-toggle@4.0.2
336
+ - @hi-ui/use-uncontrolled-state@4.0.2
337
+ - @hi-ui/icons@4.0.16
338
+ - @hi-ui/checkbox@4.0.6
339
+ - @hi-ui/highlighter@4.0.6
340
+ - @hi-ui/input@4.0.11
341
+ - @hi-ui/picker@4.1.2
342
+ - @hi-ui/popper@4.1.1
343
+ - @hi-ui/tag-input@4.0.8
344
+ - @hi-ui/virtual-list@4.0.5
345
+ - @hi-ui/array-utils@4.0.2
346
+ - @hi-ui/classname@4.0.2
347
+ - @hi-ui/dom-utils@4.0.5
348
+ - @hi-ui/env@4.0.2
349
+ - @hi-ui/func-utils@4.0.2
350
+ - @hi-ui/times@4.0.2
351
+ - @hi-ui/tree-utils@4.1.2
352
+ - @hi-ui/type-assertion@4.0.2
353
+
354
+ ## 4.3.2
355
+
356
+ ### Patch Changes
357
+
358
+ - [#2633](https://github.com/XiaoMi/hiui/pull/2633) [`4f7c8c906`](https://github.com/XiaoMi/hiui/commit/4f7c8c9063d9b72068a2db5fa614eed130aafd0f) Thanks [@aqiusen](https://github.com/aqiusen)! - CheckSelect dataSource 下搜索框增加防抖操作
359
+
360
+ - Updated dependencies [[`45cbe7bd9`](https://github.com/XiaoMi/hiui/commit/45cbe7bd9ddeaadfc8ff520a2448a0dade6be51c)]:
361
+ - @hi-ui/use-search-mode@4.1.1
362
+
363
+ ## 4.3.1
364
+
365
+ ### Patch Changes
366
+
367
+ - [#2612](https://github.com/XiaoMi/hiui/pull/2612) [`832360b54`](https://github.com/XiaoMi/hiui/commit/832360b54231983148858b12707087c6b6fbac87) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修改下拉菜单高度为 32px
368
+
369
+ ## 4.3.0
370
+
371
+ ### Minor Changes
372
+
373
+ - [#2600](https://github.com/XiaoMi/hiui/pull/2600) [`03ecca72b`](https://github.com/XiaoMi/hiui/commit/03ecca72bac72a1b042e96599b68c3317f0c3236) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: add size api
374
+
375
+ ## 4.2.0
376
+
377
+ ### Minor Changes
378
+
379
+ - [#2531](https://github.com/XiaoMi/hiui/pull/2531) [`0a9d90ac5`](https://github.com/XiaoMi/hiui/commit/0a9d90ac53bdf66aa2b83b698b58d2cdeb98d912) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 增加 tagInputProps API,支持显示内容高度自适应
380
+
381
+ ### Patch Changes
382
+
383
+ - [#2567](https://github.com/XiaoMi/hiui/pull/2567) [`bd5940eba`](https://github.com/XiaoMi/hiui/commit/bd5940eba7d7a80aa676f37bb804ea27544864d2) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 支持回车选中值
384
+
385
+ - Updated dependencies [[`bd5940eba`](https://github.com/XiaoMi/hiui/commit/bd5940eba7d7a80aa676f37bb804ea27544864d2), [`0a9d90ac5`](https://github.com/XiaoMi/hiui/commit/0a9d90ac53bdf66aa2b83b698b58d2cdeb98d912)]:
386
+ - @hi-ui/picker@4.1.1
387
+ - @hi-ui/popper@4.0.5
388
+ - @hi-ui/tag-input@4.0.6
389
+
390
+ ## 4.1.3
391
+
392
+ ### Patch Changes
393
+
394
+ - [#2482](https://github.com/XiaoMi/hiui/pull/2482) [`3301a290f`](https://github.com/XiaoMi/hiui/commit/3301a290fa9bd8b8717e24ef69ed832aa392b11e) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 数据改变后显示一次滚动条
395
+
396
+ - Updated dependencies [[`6980d058f`](https://github.com/XiaoMi/hiui/commit/6980d058f165b309695d10248d7511bd05bee457)]:
397
+ - @hi-ui/input@4.0.9
398
+
399
+ ## 4.1.2
400
+
401
+ ### Patch Changes
402
+
403
+ - [#2411](https://github.com/XiaoMi/hiui/pull/2411) [`f7d1257ad`](https://github.com/XiaoMi/hiui/commit/f7d1257ad2006fd40cabb2d16f1fde77677f3117) Thanks [@zyprepare](https://github.com/zyprepare)! - 体验优化: 大数据列表中,打开下拉列表时有一次滚动条提示
404
+
405
+ - Updated dependencies [[`f7d1257ad`](https://github.com/XiaoMi/hiui/commit/f7d1257ad2006fd40cabb2d16f1fde77677f3117)]:
406
+ - @hi-ui/icons@4.0.6
407
+
408
+ ## 4.1.1
409
+
410
+ ### Patch Changes
411
+
412
+ - [#2334](https://github.com/XiaoMi/hiui/pull/2334) [`c9e6f4ad6`](https://github.com/XiaoMi/hiui/commit/c9e6f4ad6c1050b86bee5db681214d39830305c7) Thanks [@zyprepare](https://github.com/zyprepare)! - 修复问题:设置 loading 无效果
413
+
414
+ ## 4.1.0
415
+
416
+ ### Minor Changes
417
+
418
+ - [#2304](https://github.com/XiaoMi/hiui/pull/2304) [`feaec9a67`](https://github.com/XiaoMi/hiui/commit/feaec9a67a05e315f6f3370115eaf0c8c418faf7) Thanks [@zyprepare](https://github.com/zyprepare)! - 增加 customRender api
@@ -200,6 +200,18 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
200
200
  var nextData = checkedItems.concat(flattedData);
201
201
  return arrayUtils.uniqBy(nextData, 'id');
202
202
  }, [checkedItems, flattedData]);
203
+ // 仅当有关键字搜索且(无结果 或 关键字与搜索结果无全匹配)时显示创建入口
204
+ var creatableInSearchVisible = React.useMemo(function () {
205
+ if (!creatableInSearch || !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim())) return false;
206
+ var optionItems = showData.filter(function (item) {
207
+ return !('groupTitle' in item);
208
+ });
209
+ if (optionItems.length === 0) return true;
210
+ var hasFullMatch = optionItems.some(function (item) {
211
+ return String(item.title).trim() === searchValue.trim();
212
+ });
213
+ return !hasFullMatch;
214
+ }, [creatableInSearch, searchValue, showData]);
203
215
  var mergedCheckedItems = React.useMemo(function () {
204
216
  if (typeof customRender !== 'function') {
205
217
  return [];
@@ -356,6 +368,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
356
368
  loading: rest.loading !== undefined ? rest.loading : loading,
357
369
  footer: renderDefaultFooter(),
358
370
  creatableInSearch: creatableInSearch,
371
+ creatableInSearchVisible: creatableInSearchVisible,
359
372
  onCreate: handleCreate,
360
373
  header: renderExtraHeader === null || renderExtraHeader === void 0 ? void 0 : renderExtraHeader(),
361
374
  trigger: customRender ? customRenderContent : ( /*#__PURE__*/React__default["default"].createElement(tagInput.TagInputMock, Object.assign({
@@ -186,6 +186,18 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
186
186
  var nextData = checkedItems.concat(flattedData);
187
187
  return uniqBy(nextData, 'id');
188
188
  }, [checkedItems, flattedData]);
189
+ // 仅当有关键字搜索且(无结果 或 关键字与搜索结果无全匹配)时显示创建入口
190
+ var creatableInSearchVisible = useMemo(function () {
191
+ if (!creatableInSearch || !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim())) return false;
192
+ var optionItems = showData.filter(function (item) {
193
+ return !('groupTitle' in item);
194
+ });
195
+ if (optionItems.length === 0) return true;
196
+ var hasFullMatch = optionItems.some(function (item) {
197
+ return String(item.title).trim() === searchValue.trim();
198
+ });
199
+ return !hasFullMatch;
200
+ }, [creatableInSearch, searchValue, showData]);
189
201
  var mergedCheckedItems = useMemo(function () {
190
202
  if (typeof customRender !== 'function') {
191
203
  return [];
@@ -342,6 +354,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
342
354
  loading: rest.loading !== undefined ? rest.loading : loading,
343
355
  footer: renderDefaultFooter(),
344
356
  creatableInSearch: creatableInSearch,
357
+ creatableInSearchVisible: creatableInSearchVisible,
345
358
  onCreate: handleCreate,
346
359
  header: renderExtraHeader === null || renderExtraHeader === void 0 ? void 0 : renderExtraHeader(),
347
360
  trigger: customRender ? customRenderContent : ( /*#__PURE__*/React.createElement(TagInputMock, Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-select",
3
- "version": "5.0.0-experimental.0",
3
+ "version": "5.0.0-experimental.1",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -52,10 +52,10 @@
52
52
  "@hi-ui/func-utils": "^5.0.0-experimental.0",
53
53
  "@hi-ui/highlighter": "^5.0.0-experimental.0",
54
54
  "@hi-ui/icons": "^5.0.0-experimental.0",
55
- "@hi-ui/input": "^5.0.0-experimental.0",
56
- "@hi-ui/picker": "^5.0.0-experimental.0",
55
+ "@hi-ui/input": "^5.0.0-experimental.1",
56
+ "@hi-ui/picker": "^5.0.0-experimental.1",
57
57
  "@hi-ui/popper": "^5.0.0-experimental.0",
58
- "@hi-ui/tag-input": "^5.0.0-experimental.0",
58
+ "@hi-ui/tag-input": "^5.0.0-experimental.1",
59
59
  "@hi-ui/times": "^5.0.0-experimental.0",
60
60
  "@hi-ui/tree-utils": "^5.0.0-experimental.0",
61
61
  "@hi-ui/type-assertion": "^5.0.0-experimental.0",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@hi-ui/core": "^5.0.0-experimental.0",
79
- "@hi-ui/core-css": "^5.0.0-experimental.0",
79
+ "@hi-ui/core-css": "^5.0.0-experimental.1",
80
80
  "react": "^17.0.1",
81
81
  "react-dom": "^17.0.1"
82
82
  }