Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SearchSelect): 修复 value不存在下拉列表中会报错问题 #565 #569

Merged
merged 76 commits into from Feb 28, 2022
Merged
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
8090bca
fix(Form): 修复ref获取不到表单方法
nullptr-z Feb 11, 2022
ddf96b2
fix(Form):使用useLayoutEffect替换useEffect绑定绑定ForwardedRef
nullptr-z Feb 11, 2022
53880a5
refactor:(Form) 修改Ref类型定义
nullptr-z Feb 11, 2022
0c4f0bc
fix(Form): 修复无法重置(initialValue)表单问题
nullptr-z Feb 14, 2022
9a550f2
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 14, 2022
9f8cdd9
fix(Form): 类型导出错误
nullptr-z Feb 14, 2022
8639505
feat(search-select):增加多选功能
nullptr-z Feb 16, 2022
6e1b22f
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 16, 2022
bfefc27
fix(form):增加设置表单值方法
nullptr-z Feb 16, 2022
94cdab2
feat(form):增加必传表单项标注 #534
nullptr-z Feb 16, 2022
8fc1fec
fix(search-select):增加Tag依赖
nullptr-z Feb 16, 2022
f47944d
fix(form):增加获取异常信息方法
nullptr-z Feb 16, 2022
6f57091
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 16, 2022
34cbebc
fix(form):修复afterSubmit回调失效问题
nullptr-z Feb 16, 2022
e206d34
fix(search-select):缺失依赖
nullptr-z Feb 16, 2022
1f87383
refactor(search-select):重命名类型名称
nullptr-z Feb 16, 2022
7221664
style(search-select): 多选select样式
nullptr-z Feb 16, 2022
d6efbbe
style(search-select): 多选select下拉弹层样式
nullptr-z Feb 16, 2022
0cb0a69
fix(Table):data不支持对象内包含布尔类型 #517
nullptr-z Feb 16, 2022
0048c06
style(search-select):规范样式命名
nullptr-z Feb 16, 2022
9dc643f
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 16, 2022
e7df400
style(SearchSelect): 规范命名
nullptr-z Feb 16, 2022
dcff5a8
ifx(SearchSelect): 增加value受控支持,多选模式下为数组
nullptr-z Feb 17, 2022
a71d439
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 17, 2022
73726b2
fix(SearchSelect): 修复defaultValue支持
nullptr-z Feb 17, 2022
36d7233
fix(Tree):修复autoExpandParent参数时效,无法展开父节点
nullptr-z Feb 17, 2022
d3b5e27
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 17, 2022
ae8e87d
feat(SearchSelect): 增加参数控制tag可见数量,多余显示省略
nullptr-z Feb 17, 2022
c05101a
feat(SearchSelect): 增加参数控制tag可见数量,多余显示省略
nullptr-z Feb 17, 2022
ffb06d5
feat(SearchSelect): 增加参数控制tag可见数量,多余显示省略
nullptr-z Feb 17, 2022
5662fb7
fix(SearchSelect): 防止对选择的循序排序
nullptr-z Feb 17, 2022
8852225
fix(SearchSelect): 增加labelInValue,控制value的格式
nullptr-z Feb 17, 2022
4d00d2c
style(SearchSelec): 样式调整与组件库一直
nullptr-z Feb 18, 2022
53c29ea
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 18, 2022
77c431f
fix(SearchSelect):存在tag时不显示 placeholder
nullptr-z Feb 18, 2022
0409913
docs(SearchSelect):labelInValue, value参数说明
nullptr-z Feb 18, 2022
0fd2e23
fix(Form): #544 使用转json方式深拷贝状态值导致,某些类型Object变为了字符串,例如Date
nullptr-z Feb 21, 2022
f1cea26
fix(SearchSelect): 修复删除键没有触发更新回调问题
nullptr-z Feb 21, 2022
4d6d5c4
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 21, 2022
132a870
SearchTree
nullptr-z Feb 22, 2022
b9363e4
SearchTree
nullptr-z Feb 22, 2022
940fb07
暂存
nullptr-z Feb 22, 2022
455485c
feat(SearhTree): 增加带搜索的树形选择控件
nullptr-z Feb 23, 2022
d0151c1
revert: 撤销package.json更改
nullptr-z Feb 23, 2022
6e69398
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 23, 2022
755d771
docs(SearchTree): 单词拼写错误
nullptr-z Feb 23, 2022
41ead8f
feat(SearchTree): 增加搜索功能,隐藏不匹配节点
nullptr-z Feb 24, 2022
63c45d6
docs(Searchtree): 文档修改
nullptr-z Feb 24, 2022
c8b6a39
fix(SerachTree):删除冗余代码
nullptr-z Feb 24, 2022
0cd6309
合并冲突
nullptr-z Feb 24, 2022
167ff03
fix(SearchTree): 文件名更变
nullptr-z Feb 24, 2022
25e9e16
fix(SearchTree): 样式调整
nullptr-z Feb 24, 2022
e996e3a
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 25, 2022
bc0d1ee
fix(SearchTree): 子节点全部选中父节点没有自动勾选问题
nullptr-z Feb 25, 2022
d59d150
docs(SearchTree): 增加Form中使用实例文档
nullptr-z Feb 25, 2022
3f97691
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 25, 2022
cfd8948
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 25, 2022
e80c0de
fix(SerachTree): 修复不受Form控制问题
nullptr-z Feb 25, 2022
0ceca27
Merge branch 'master' of github.com:uiwjs/uiw
nullptr-z Feb 25, 2022
97b7f38
chore: update workflows config.
jaywcjlove Feb 25, 2022
6c5d448
chore: update workflows config.
jaywcjlove Feb 25, 2022
88ef628
fix(Form): 类型导出错误
nullptr-z Feb 14, 2022
c0af739
docs(List): 文档描述错误
nullptr-z Feb 25, 2022
d632684
feat(DateInputRange):增加时间区间选择组件 #536
nullptr-z Feb 28, 2022
e2e91fc
fix(Form): 类型导出错误
nullptr-z Feb 14, 2022
d5302c2
docs(List): 文档描述错误
nullptr-z Feb 25, 2022
40d587a
feat(DateInputRange):增加时间区间选择组件 #536
nullptr-z Feb 28, 2022
8719e72
fix(DateInputRange):规范命名
nullptr-z Feb 28, 2022
b7ae22c
fix(DateInputRange):解决冲突
nullptr-z Feb 28, 2022
23259a0
docs(DateInputRange): 增加接口文档
nullptr-z Feb 28, 2022
883f15d
fix(SearchSelect): 修复 value不存在下拉列表中会报错问题 #565
nullptr-z Feb 28, 2022
68a6808
chore: update workflows config.
jaywcjlove Feb 25, 2022
da54b4f
chore: update workflows config.
jaywcjlove Feb 25, 2022
77559f0
fix(SearchSelect): 修复 value不存在下拉列表中会报错问题 #565
nullptr-z Feb 28, 2022
2a9f4d0
fix: 合并冲突
nullptr-z Feb 28, 2022
2247bdd
合并冲突
nullptr-z Feb 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-search-select/src/index.tsx
Expand Up @@ -104,7 +104,7 @@ export default function SearchSelect(props: SearchSelectProps) {
}
} else {
if (Array.isArray(changeValue)) {
opts = changeValue.map((v) => getSelectOption(option, v as ValueType)!);
opts = changeValue.map((v) => getSelectOption(option, v as ValueType)!).filter((m) => !!m);
} else {
const findResult = getSelectOption(option, changeValue as ValueType);
if (findResult) {
Expand Down