refactor: #7090 for DataTable
parent
6148817917
commit
cb346d2a29
|
@ -164,11 +164,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { absolutePosition, addStyle, focus, getAttribute, isTouchDevice } from '@primeuix/utils/dom';
|
||||||
|
import { ZIndex } from '@primeuix/utils/zindex';
|
||||||
import { FilterOperator } from '@primevue/core/api';
|
import { FilterOperator } from '@primevue/core/api';
|
||||||
import BaseComponent from '@primevue/core/basecomponent';
|
import BaseComponent from '@primevue/core/basecomponent';
|
||||||
import { ConnectedOverlayScrollHandler, UniqueComponentId } from '@primevue/core/utils';
|
import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';
|
||||||
import { getAttribute, focus, addStyle, absolutePosition, isTouchDevice } from '@primeuix/utils/dom';
|
|
||||||
import { ZIndex } from '@primeuix/utils/zindex';
|
|
||||||
import FilterIcon from '@primevue/icons/filter';
|
import FilterIcon from '@primevue/icons/filter';
|
||||||
import FilterSlashIcon from '@primevue/icons/filterslash';
|
import FilterSlashIcon from '@primevue/icons/filterslash';
|
||||||
import PlusIcon from '@primevue/icons/plus';
|
import PlusIcon from '@primevue/icons/plus';
|
||||||
|
@ -298,17 +298,11 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
id: this.$attrs.id,
|
|
||||||
overlayVisible: false,
|
overlayVisible: false,
|
||||||
defaultMatchMode: null,
|
defaultMatchMode: null,
|
||||||
defaultOperator: null
|
defaultOperator: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
'$attrs.id': function (newValue) {
|
|
||||||
this.id = newValue || UniqueComponentId();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
overlay: null,
|
overlay: null,
|
||||||
selfClick: false,
|
selfClick: false,
|
||||||
overlayEventListener: null,
|
overlayEventListener: null,
|
||||||
|
@ -324,8 +318,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.id = this.id || UniqueComponentId();
|
|
||||||
|
|
||||||
if (this.filters && this.filters[this.field]) {
|
if (this.filters && this.filters[this.field]) {
|
||||||
let fieldFilters = this.filters[this.field];
|
let fieldFilters = this.filters[this.field];
|
||||||
|
|
||||||
|
@ -647,7 +639,7 @@ export default {
|
||||||
return this.showMenu && (this.display === 'row' ? this.type !== 'boolean' : true);
|
return this.showMenu && (this.display === 'row' ? this.type !== 'boolean' : true);
|
||||||
},
|
},
|
||||||
overlayId() {
|
overlayId() {
|
||||||
return this.id + '_overlay';
|
return this.$id + '_overlay';
|
||||||
},
|
},
|
||||||
matchModes() {
|
matchModes() {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue