mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #4149 - For DataTable & Column & ColumnGroup
This commit is contained in:
parent
dcd76d09cc
commit
97d112a2e0
13 changed files with 195 additions and 37 deletions
|
@ -24,6 +24,7 @@
|
|||
import BaseComponent from 'primevue/basecomponent';
|
||||
import CheckIcon from 'primevue/icons/check';
|
||||
import { DomHandler } from 'primevue/utils';
|
||||
import { mergeProps } from 'vue';
|
||||
|
||||
export default {
|
||||
name: 'HeaderCheckbox',
|
||||
|
@ -46,7 +47,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getColumnPT(key) {
|
||||
return this.ptmo(this.getColumnProp(), key, {
|
||||
const columnMetaData = {
|
||||
props: this.column.props,
|
||||
parent: {
|
||||
props: this.$props,
|
||||
|
@ -57,7 +58,9 @@ export default {
|
|||
focused: this.focused,
|
||||
disabled: this.disabled
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
return mergeProps(this.ptm(`column.${key}`, { column: columnMetaData }), this.ptm(`column.${key}`, columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
||||
},
|
||||
getColumnProp() {
|
||||
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue