mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor(editor): Rename $emits to emits where we use defineEmits (no-changelog) (#9959)
This commit is contained in:
@@ -84,7 +84,7 @@ const props = withDefaults(defineProps<DatatableProps>(), {
|
||||
rowsPerPage: 10,
|
||||
});
|
||||
|
||||
const $emit = defineEmits<{
|
||||
const emit = defineEmits<{
|
||||
'update:currentPage': [value: number];
|
||||
'update:rowsPerPage': [value: number];
|
||||
}>();
|
||||
@@ -115,11 +115,11 @@ const classes = computed(() => ({
|
||||
}));
|
||||
|
||||
function onUpdateCurrentPage(value: number) {
|
||||
$emit('update:currentPage', value);
|
||||
emit('update:currentPage', value);
|
||||
}
|
||||
|
||||
function onRowsPerPageChange(value: number) {
|
||||
$emit('update:rowsPerPage', value);
|
||||
emit('update:rowsPerPage', value);
|
||||
|
||||
const maxPage = Math.ceil(totalRows.value / value);
|
||||
if (maxPage < props.currentPage) {
|
||||
|
||||
Reference in New Issue
Block a user