mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
refactor(select-menu): declare mirror prop explicitly
This commit is contained in:
parent
e6f0d3e041
commit
bd89218e9e
@ -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,
|
||||
|
@ -24,6 +24,7 @@
|
||||
ref="contentInner"
|
||||
auto-pending-first-option
|
||||
class="n-select-menu"
|
||||
:mirror="false"
|
||||
:theme="synthesizedTheme"
|
||||
:pattern="value"
|
||||
:options="filteredOptions"
|
||||
|
@ -199,7 +199,8 @@ export default {
|
||||
isSelected: () => false,
|
||||
options: this.options,
|
||||
size: this.size,
|
||||
theme: this.synthesizedTheme
|
||||
theme: this.synthesizedTheme,
|
||||
mirror: true
|
||||
}
|
||||
}, options)
|
||||
])
|
||||
|
@ -32,7 +32,6 @@
|
||||
:remote="remote"
|
||||
:clearable="clearable"
|
||||
:disabled="disabled"
|
||||
:on-search="onSearch"
|
||||
:size="size"
|
||||
:theme="synthesizedTheme"
|
||||
@click="handleActivatorClick"
|
||||
|
Loading…
Reference in New Issue
Block a user