mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
fix: data-table filter menu action style
This commit is contained in:
parent
3417a4119d
commit
6ebe6847c7
@ -262,10 +262,12 @@ export default defineComponent({
|
||||
rowKey: toRef(props, 'rowKey'),
|
||||
filterMenuCssVars: computed(() => {
|
||||
const {
|
||||
self: { actionDividerColor }
|
||||
self: { actionDividerColor, actionPadding, actionButtonMargin }
|
||||
} = themeRef.value
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||
return {
|
||||
'--action-padding': actionPadding,
|
||||
'--action-button-margin': actionButtonMargin,
|
||||
'--action-divider-color': actionDividerColor
|
||||
} as CSSProperties
|
||||
}),
|
||||
@ -321,8 +323,6 @@ export default defineComponent({
|
||||
tdColorHoverModal,
|
||||
paginationMargin,
|
||||
emptyPadding,
|
||||
actionPadding,
|
||||
actionButtonMargin,
|
||||
[createKey('fontSize', size)]: fontSize,
|
||||
[createKey('thPadding', size)]: thPadding,
|
||||
[createKey('tdPadding', size)]: tdPadding
|
||||
@ -353,9 +353,7 @@ export default defineComponent({
|
||||
'--th-icon-color-active': thIconColorActive,
|
||||
'--filter-size': filterSize,
|
||||
'--pagination-margin': paginationMargin,
|
||||
'--empty-padding': emptyPadding,
|
||||
'--action-padding': actionPadding,
|
||||
'--action-button-margin': actionButtonMargin
|
||||
'--empty-padding': emptyPadding
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -8,10 +8,6 @@ export default defineComponent({
|
||||
type: Function as PropType<SorterRender>,
|
||||
required: true
|
||||
},
|
||||
active: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
order: {
|
||||
// asc, desc
|
||||
type: [String, Boolean] as PropType<SortOrder>,
|
||||
@ -19,9 +15,8 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
render () {
|
||||
const { render, active, order } = this
|
||||
const { render, order } = this
|
||||
return render({
|
||||
active,
|
||||
order
|
||||
})
|
||||
}
|
||||
|
@ -12,14 +12,14 @@ form
|
||||
## Props
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| --- | --- | --- | --- |
|
||||
| closable | `boolean` | `false` | |
|
||||
| default-value | `string[]` | `[]` | |
|
||||
| disabled | `boolean` | `false` | |
|
||||
| input-style | `string | Object` | `undefined` | |
|
||||
| input-style | `string \| Object` | `undefined` | |
|
||||
| round | `boolean` | `false` | |
|
||||
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | |
|
||||
| tag-style | `string | Object` | `undefined` | |
|
||||
| tag-style | `string \| Object` | `undefined` | |
|
||||
| type | `'default' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | |
|
||||
| value | `string[]` | `undefined` | |
|
||||
| on-update:value | `(value: boolean) => any` | `undefined` | |
|
||||
|
@ -12,14 +12,14 @@ form
|
||||
## Props
|
||||
|
||||
| 名称 | 类型 | 默认值 | 说明 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| --- | --- | --- | --- |
|
||||
| closable | `boolean` | `false` | |
|
||||
| default-value | `string[]` | `[]` | |
|
||||
| disabled | `boolean` | `false` | |
|
||||
| input-style | `string | Object` | `undefined` | |
|
||||
| input-style | `string \| Object` | `undefined` | |
|
||||
| round | `boolean` | `false` | |
|
||||
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | |
|
||||
| tag-style | `string | Object` | `undefined` | |
|
||||
| tag-style | `string \| Object` | `undefined` | |
|
||||
| type | `'default' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | |
|
||||
| value | `string[]` | `undefined` | |
|
||||
| on-update:value | `(value: boolean) => any` | `undefined` | |
|
||||
|
Loading…
Reference in New Issue
Block a user