mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
0ca6a1c24a
* css modularize * Add alert style * Move more component style * Move iconfont to common style * Move layout style * Move more component style * Move all components * Fix lots of mixin deps * remove css-prefix from less * fix a button icon style bug * restructure * fix index * add dist * fix jest * fix some components style * clean webpack config * check more components style * update tabs * update scripts * update scripts * fix form style * fix more style * Fix select width * Fix form and tabs style
563 B
563 B
order | title |
---|---|
2 | 多选 |
多选,从已有条目中选择(scroll the menu)
import { Select } from 'antd';
const Option = Select.Option;
let children = [];
for (let i = 10; i < 36; i++) {
children.push(<Option key={i.toString(36) + i}>{i.toString(36) + i}</Option>);
}
function handleChange(value) {
console.log(`selected ${value}`);
}
ReactDOM.render(
<Select multiple
style={{ width: 400 }}
placeholder="Please select"
defaultValue={['a10', 'c12']} onChange={handleChange}>
{children}
</Select>
, mountNode);