Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4759b94

Browse files
committed
fix: update event names in popover and progress components to use string literals
1 parent b33a0b6 commit 4759b94

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

packages/vue/src/components/pagination/namespace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ export type {
3131
ItemLabelDetails,
3232
PageChangeDetails,
3333
PageSizeChangeDetails,
34-
} from '@destyler/pagination'
34+
} from '@destyler/pagination'

packages/vue/src/components/popover/stories/popover.stories.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,3 @@ export function rootProvider() {
9191
template: '<RootProvider />',
9292
}
9393
}
94-
95-

packages/vue/src/components/popover/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,22 @@ export interface RootEmits {
8181
/**
8282
* Function called when the escape key is pressed
8383
*/
84-
escapeKeyDown: [event: KeyboardEvent]
84+
'escapeKeyDown': [event: KeyboardEvent]
8585
/**
8686
* Function called when the focus is moved outside the component
8787
*/
88-
focusOutside: [event: popover.FocusOutsideEvent]
88+
'focusOutside': [event: popover.FocusOutsideEvent]
8989
/**
9090
* Function called when an interaction happens outside the component
9191
*/
92-
interactOutside: [event: popover.InteractOutsideEvent]
92+
'interactOutside': [event: popover.InteractOutsideEvent]
9393
/**
9494
* Function invoked when the popover opens or closes
9595
*/
96-
openChange: [details: popover.OpenChangeDetails]
96+
'openChange': [details: popover.OpenChangeDetails]
9797
/**
9898
* Function called when the pointer is pressed down outside the component
9999
*/
100-
pointerDownOutside: [event: popover.PointerDownOutsideEvent]
100+
'pointerDownOutside': [event: popover.PointerDownOutsideEvent]
101101
'update:open': [open: boolean]
102102
}

packages/vue/src/components/progress/composables/use-progress.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type {PropTypes} from '@destyler/vue';
2-
import type {ComputedRef} from 'vue';
1+
import type { PropTypes } from '@destyler/vue'
2+
import type { ComputedRef } from 'vue'
33
import type { RootEmits } from '../types'
44
import type { EmitFn, Optional } from '~/types'
55
import * as progress from '@destyler/progress'
6-
import { normalizeProps, useMachine } from '@destyler/vue'
7-
import { computed, useId } from 'vue'
6+
import { normalizeProps, useMachine } from '@destyler/vue'
7+
import { computed, useId } from 'vue'
88
import { DEFAULT_LOCALE, useEnvironmentContext, useLocaleContext } from '~/providers'
99
import { cleanProps } from '~/utils'
1010

packages/vue/src/components/progress/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface RootEmits {
4343
/**
4444
* Callback fired when the value changes.
4545
*/
46-
valueChange: [details: progress.ValueChangeDetails]
46+
'valueChange': [details: progress.ValueChangeDetails]
4747
/**
4848
* The callback fired when the model value changes.
4949
*/

0 commit comments

Comments
 (0)