FEAT => 本次更新项目为:统一组件接口,将属性名称从 selectedContent 和 selectedGroups 更改为 selectedOptions,以提升代码一致性和可读性
This commit is contained in:
@@ -139,8 +139,11 @@ const ComponentTest: React.FC = () => {
|
|||||||
<div style={{ padding: "16px 0" }}>
|
<div style={{ padding: "16px 0" }}>
|
||||||
<h3 style={{ marginBottom: 16 }}>AccountSelection 组件测试</h3>
|
<h3 style={{ marginBottom: 16 }}>AccountSelection 组件测试</h3>
|
||||||
<AccountSelection
|
<AccountSelection
|
||||||
value={selectedAccounts}
|
selectedOptions={selectedAccounts}
|
||||||
onChange={setSelectedAccounts}
|
onSelect={setSelectedAccounts}
|
||||||
|
placeholder="请选择账号"
|
||||||
|
showSelectedList={true}
|
||||||
|
selectedListMaxHeight={300}
|
||||||
// 可根据实际API和props补充其它参数
|
// 可根据实际API和props补充其它参数
|
||||||
/>
|
/>
|
||||||
<div style={{ marginTop: 16 }}>
|
<div style={{ marginTop: 16 }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user