mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
fix(dropdown): dark theme style
This commit is contained in:
parent
4278a998ff
commit
03c751eb77
@ -32,13 +32,17 @@ export default {
|
||||
render () {
|
||||
const {
|
||||
NDropdown: {
|
||||
size
|
||||
size,
|
||||
mergedTheme
|
||||
}
|
||||
} = this
|
||||
return h('div', {
|
||||
class: [
|
||||
'n-dropdown-menu',
|
||||
`n-dropdown-menu--${size}-size`
|
||||
`n-dropdown-menu--${size}-size`,
|
||||
{
|
||||
[`n-${mergedTheme}-theme`]: mergedTheme
|
||||
}
|
||||
]
|
||||
},
|
||||
[
|
||||
|
@ -5,6 +5,7 @@ export default c([
|
||||
({ props }) => {
|
||||
const local = props.$local
|
||||
const {
|
||||
color,
|
||||
prefixColor,
|
||||
suffixColor,
|
||||
dividerColor,
|
||||
@ -16,7 +17,7 @@ export default c([
|
||||
return [
|
||||
cTB('dropdown-menu', {
|
||||
padding,
|
||||
background: 'white',
|
||||
backgroundColor: color,
|
||||
borderRadius,
|
||||
boxShadow
|
||||
}, [
|
||||
|
@ -8,15 +8,17 @@ export default create({
|
||||
const {
|
||||
textColor2,
|
||||
popoverBoxShadow,
|
||||
dividerColor,
|
||||
hoverColorOverlay
|
||||
dividerColorOverlay,
|
||||
hoverColorOverlay,
|
||||
popoverColor
|
||||
} = derived
|
||||
const {
|
||||
borderRadius
|
||||
} = base
|
||||
return {
|
||||
...commonVariables,
|
||||
dividerColor,
|
||||
color: popoverColor,
|
||||
dividerColor: dividerColorOverlay,
|
||||
borderRadius,
|
||||
boxShadow: popoverBoxShadow,
|
||||
suffixColor: textColor2,
|
||||
|
@ -9,13 +9,15 @@ export default create({
|
||||
textColor2,
|
||||
popoverBoxShadow,
|
||||
dividerColor,
|
||||
hoverColorOverlay
|
||||
hoverColorOverlay,
|
||||
popoverColor
|
||||
} = derived
|
||||
const {
|
||||
borderRadius
|
||||
} = base
|
||||
return {
|
||||
...commonVariables,
|
||||
color: popoverColor,
|
||||
dividerColor,
|
||||
borderRadius,
|
||||
boxShadow: popoverBoxShadow,
|
||||
|
Loading…
Reference in New Issue
Block a user