We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pro table
pro table 的 column, 允许把 search 定义为 true
search
true
Now:
Expected: 写true, ts不会报错
个人需求是 search 是默认隐藏的, 只有用户想展示的时候才展示, 会封装多一层进行下面的操作:
columns={columns.map(item => ({ ...item, search: Reflect.has(item, 'search') ? item.search : false })}
改一下 ts 类型定义就行了:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🔩 所属模块或组件
pro table
🥰 需求描述
pro table 的 column, 允许把
search
定义为true
Now:
Expected:
写
true
, ts不会报错⛰ 功能需求适用场景
个人需求是 search 是默认隐藏的, 只有用户想展示的时候才展示, 会封装多一层进行下面的操作:
🧐 解决方案
改一下 ts 类型定义就行了:
🚑 其他信息
The text was updated successfully, but these errors were encountered: