refactor(select-menu): declare mirror prop explicitly

This commit is contained in:
07akioni 2020-01-13 17:13:25 +08:00
parent e6f0d3e041
commit bd89218e9e
4 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,7 @@
[`n-${theme}-theme`]: theme
}"
:style="{
width: width &&(width + 'px')
width: width && (width + 'px')
}"
@keyup.up.stop="handleKeyUpUp"
@keyup.down.stop="handleKeyUpDown"
@ -143,7 +143,7 @@ export default {
},
mirror: {
type: Boolean,
default: true
required: true
},
autoPendingFirstOption: {
type: Boolean,

View File

@ -24,6 +24,7 @@
ref="contentInner"
auto-pending-first-option
class="n-select-menu"
:mirror="false"
:theme="synthesizedTheme"
:pattern="value"
:options="filteredOptions"

View File

@ -199,7 +199,8 @@ export default {
isSelected: () => false,
options: this.options,
size: this.size,
theme: this.synthesizedTheme
theme: this.synthesizedTheme,
mirror: true
}
}, options)
])

View File

@ -32,7 +32,6 @@
:remote="remote"
:clearable="clearable"
:disabled="disabled"
:on-search="onSearch"
:size="size"
:theme="synthesizedTheme"
@click="handleActivatorClick"