Skip to content

Commit

Permalink
fix(vue): emits warn (#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdin authored Feb 2, 2024
1 parent dd8b19f commit f6ccbcd
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 44 deletions.
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/accordion/accordion-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export const AccordionRoot = defineComponent<AccordionRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ export const ColorPickerRoot = defineComponent<ColorPickerRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/combobox/combobox-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ export const ComboboxRoot = defineComponent<ComboboxRootProps<CollectionItem>>(
type: Function as PropType<UseComboboxProps<any>['isItemDisabled']>,
},
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/date-picker/date-picker-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ export const DatePickerRoot = defineComponent<DatePickerRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/dialog/dialog-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export const DialogRoot = defineComponent<DialogRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/hover-card/hover-card-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export const HoverCardRoot = defineComponent<HoverCardRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/menu/menu-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ export const MenuRoot = defineComponent<MenuRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/popover/popover-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export const PopoverRoot = defineComponent<PopoverRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/select/select-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export const SelectRoot = defineComponent<SelectRootProps<CollectionItem>>(
type: Function as PropType<UseSelectProps<any>['isItemDisabled']>,
},
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/tabs/tabs-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export const TabsRoot = defineComponent<TabsRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)
5 changes: 1 addition & 4 deletions packages/frameworks/vue/src/tooltip/tooltip-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export const TooltipRoot = defineComponent<TooltipRootProps>(
...props,
...presenceProps,
},
emits: {
...emits,
...presenceEmits,
},
emits: [...emits, ...presenceEmits],
},
)

0 comments on commit f6ccbcd

Please sign in to comment.