mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
revert select demo
This commit is contained in:
parent
7396948c96
commit
5c26ce69c2
@ -44,12 +44,12 @@ exports[`renders ./components/select/demo/automatic-tokenization.md correctly 1`
|
||||
exports[`renders ./components/select/demo/basic.md correctly 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="ant-select ant-select-open ant-select-focused ant-select-enabled"
|
||||
class="ant-select ant-select-enabled"
|
||||
style="width:120px"
|
||||
>
|
||||
<div
|
||||
aria-autocomplete="list"
|
||||
aria-expanded="true"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
class="ant-select-selection
|
||||
ant-select-selection--single"
|
||||
@ -92,61 +92,8 @@ exports[`renders ./components/select/demo/basic.md correctly 1`] = `
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div
|
||||
class="ant-select-dropdown ant-select-dropdown--single ant-select-dropdown-placement-bottomLeft "
|
||||
>
|
||||
<div
|
||||
style="overflow:auto;transform:translateZ(0)"
|
||||
>
|
||||
<ul
|
||||
class="ant-select-dropdown-menu ant-select-dropdown-menu-root ant-select-dropdown-menu-vertical"
|
||||
role="listbox"
|
||||
tabindex="0"
|
||||
>
|
||||
<li
|
||||
aria-selected="false"
|
||||
class="ant-select-dropdown-menu-item"
|
||||
role="option"
|
||||
style="user-select:none;-webkit-user-select:none"
|
||||
unselectable="on"
|
||||
>
|
||||
Jack
|
||||
</li>
|
||||
<li
|
||||
aria-selected="true"
|
||||
class="ant-select-dropdown-menu-item ant-select-dropdown-menu-item-active ant-select-dropdown-menu-item-selected"
|
||||
role="option"
|
||||
style="user-select:none;-webkit-user-select:none"
|
||||
unselectable="on"
|
||||
>
|
||||
Lucy
|
||||
</li>
|
||||
<li
|
||||
aria-disabled="true"
|
||||
aria-selected="false"
|
||||
class="ant-select-dropdown-menu-item ant-select-dropdown-menu-item-disabled"
|
||||
role="option"
|
||||
style="user-select:none;-webkit-user-select:none"
|
||||
unselectable="on"
|
||||
>
|
||||
Disabled
|
||||
</li>
|
||||
<li
|
||||
aria-selected="false"
|
||||
class="ant-select-dropdown-menu-item"
|
||||
role="option"
|
||||
style="user-select:none;-webkit-user-select:none"
|
||||
unselectable="on"
|
||||
>
|
||||
yiminghe
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="ant-select ant-select-enabled"
|
||||
class="ant-select ant-select-disabled"
|
||||
style="width:120px"
|
||||
>
|
||||
<div
|
||||
@ -156,7 +103,7 @@ exports[`renders ./components/select/demo/basic.md correctly 1`] = `
|
||||
class="ant-select-selection
|
||||
ant-select-selection--single"
|
||||
role="combobox"
|
||||
tabindex="0"
|
||||
tabindex="-1"
|
||||
>
|
||||
<div
|
||||
class="ant-select-selection__rendered"
|
||||
|
@ -24,13 +24,13 @@ function handleChange(value) {
|
||||
|
||||
ReactDOM.render(
|
||||
<div>
|
||||
<Select defaultValue="lucy" style={{ width: 120 }} onChange={handleChange} open>
|
||||
<Select defaultValue="lucy" style={{ width: 120 }} onChange={handleChange}>
|
||||
<Option value="jack">Jack</Option>
|
||||
<Option value="lucy">Lucy</Option>
|
||||
<Option value="disabled" disabled>Disabled</Option>
|
||||
<Option value="Yiminghe">yiminghe</Option>
|
||||
</Select>
|
||||
<Select defaultValue="lucy" style={{ width: 120 }} onDropdownVisibleChange={open => console.log(open)}>
|
||||
<Select defaultValue="lucy" style={{ width: 120 }} disabled>
|
||||
<Option value="lucy">Lucy</Option>
|
||||
</Select>
|
||||
</div>,
|
||||
|
Loading…
Reference in New Issue
Block a user