Skip to content

Commit 6d11a76

Browse files
committed
Add event for pushState
1 parent 19c09fd commit 6d11a76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/AutoQueryGrid.vue

+2
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ const props = withDefaults(defineProps<{
239239
const emit = defineEmits<{
240240
(e: "headerSelected", name:string, ev:Event): void
241241
(e: "rowSelected", item:any, ev:Event): void
242+
(e: "pushState", args:any): void
242243
}>()
243244
244245
const client = inject<JsonServiceClient>('client')!
@@ -372,6 +373,7 @@ function canFilter(column:string) {
372373
}
373374
374375
function updateUrl(args:Record<string,any>) {
376+
emit('pushState', args)
375377
if (!allow('queryString')) return
376378
pushState(args)
377379
}

0 commit comments

Comments
 (0)