@@ -69,84 +69,95 @@ export default function SelectDemo() {
6969 < Checkbox checked= {disabled} onChange= {checked => {
7070 setDisabled (checked)
7171 }}> 禁用< / Checkbox>
72- < h5> 搜索框在下拉框外(单选- 新)< / h5>
73- < Select
74- searchable
75- allowClear
76- disabled= {disabled}
77- supportLightText
78- placeholder= " 带搜索的下拉单选"
79- onSearch= {handleSearch}
80- onChange= {handleChange}
81- style= {{width: 260 }}
82- dataSource= {dataList}
83- // size="large"
84- / >
85- < h5> 搜索框在下拉框外(多选- 新)< / h5>
86- < Select
87- hasSelectAll
88- searchable
89- allowClear
90- disabled= {disabled}
91- multiple
92- supportLightText
93- placeholder= " 带搜索的下拉多选"
94- onSearch= {handleSearch}
95- onChange= {handleChange}
96- style= {{width: 260 }}
97- labelKey= " name"
98- valueKey= " userId"
99- dataSource= {dataList .map (item => ({
100- name: item .label ,
101- userId: item .value
102- }))}
103- / >
104- < h5> 搜索框在下拉框外(多选限制标签数量- 新)< / h5>
105- < Select
106- hasSelectAll
107- searchable
108- allowClear
109- disabled= {disabled}
110- multiple
111- supportLightText
112- placeholder= " 带搜索的下拉多选"
113- onSearch= {handleSearch}
114- onChange= {handleChange}
115- style= {{width: 260 }}
116- dataSource= {dataList}
117- maxTagCount= {1 }
118- / >
119- < h5 style= {{ color: ' rgba(0,0,0,0.45)' , fontWeight: 400 }}> 搜索框在下拉框内(单选- 旧)< / h5>
120- < Select
121- searchable
122- searchInBox= {false }
123- allowClear
124- disabled= {disabled}
125- supportLightText
126- placeholder= " 带搜索的下拉单选"
127- onSearch= {handleSearch}
128- onChange= {handleChange}
129- style= {{width: 260 }}
130- dataSource= {dataList}
131- position= " auto"
132- // size="large"
133- / >
134- < h5 style= {{ color: ' rgba(0,0,0,0.45)' , fontWeight: 400 }}> 搜索框在下拉框内(多选- 旧)< / h5>
135- < Select
136- hasSelectAll
137- multiple
138- searchable
139- searchInBox= {false }
140- allowClear
141- disabled= {disabled}
142- supportLightText
143- placeholder= " 带搜索的下拉单选"
144- onSearch= {handleSearch}
145- onChange= {handleChange}
146- style= {{width: 260 }}
147- dataSource= {dataList}
148- // size="large"
149- / >
72+ < div>
73+ < h5> 搜索框在下拉框外(单选- 新)< / h5>
74+ < Select
75+ searchable
76+ allowClear
77+ disabled= {disabled}
78+ supportLightText
79+ placeholder= " 带搜索的下拉单选"
80+ onSearch= {handleSearch}
81+ onChange= {handleChange}
82+ style= {{width: 260 }}
83+ dataSource= {dataList}
84+ // size="large"
85+ / >
86+ < / div>
87+ < div>
88+ < h5> 搜索框在下拉框外(多选- 新)< / h5>
89+ < Select
90+ hasSelectAll
91+ searchable
92+ allowClear
93+ disabled= {disabled}
94+ multiple
95+ supportLightText
96+ placeholder= " 带搜索的下拉多选"
97+ onSearch= {handleSearch}
98+ onChange= {handleChange}
99+ style= {{width: 260 }}
100+ labelKey= " name"
101+ valueKey= " userId"
102+ dataSource= {dataList .map (item => ({
103+ name: item .label ,
104+ userId: item .value
105+ }))}
106+ / >
107+ < / div>
108+ < div>
109+ < h5> 搜索框在下拉框外(多选限制标签数量- 新)< / h5>
110+ < Select
111+ hasSelectAll
112+ searchable
113+ allowClear
114+ disabled= {disabled}
115+ multiple
116+ supportLightText
117+ placeholder= " 带搜索的下拉多选"
118+ onSearch= {handleSearch}
119+ onChange= {handleChange}
120+ style= {{width: 260 }}
121+ dataSource= {dataList}
122+ maxTagCount= {1 }
123+ / >
124+ < / div>
125+ < div>
126+ < h5 style= {{ color: ' rgba(0,0,0,0.45)' , fontWeight: 400 }}> 搜索框在下拉框内(单选- 旧)< / h5>
127+ < Select
128+ searchable
129+ searchInBox= {false }
130+ allowClear
131+ disabled= {disabled}
132+ supportLightText
133+ placeholder= " 带搜索的下拉单选"
134+ onSearch= {handleSearch}
135+ onChange= {handleChange}
136+ style= {{width: 260 }}
137+ dataSource= {dataList}
138+ position= " auto"
139+ // size="large"
140+ / >
141+ < / div>
142+ < div>
143+ < h5 style= {{ color: ' rgba(0,0,0,0.45)' , fontWeight: 400 }}> 搜索框在下拉框内(多选- 旧)< / h5>
144+ < Select
145+ hasSelectAll
146+ multiple
147+ searchable
148+ searchInBox= {false }
149+ showTag= {false }
150+ allowClear
151+ disabled= {disabled}
152+ supportLightText
153+ placeholder= " 带搜索的下拉单选"
154+ onSearch= {handleSearch}
155+ onChange= {handleChange}
156+ style= {{width: 260 }}
157+ dataSource= {dataList}
158+ // size="large"
159+ / >
160+ < / div>
150161 < / div>
151162 );
152163}
0 commit comments