Skip to content

Commit

Permalink
fix(extensions): props type error
Browse files Browse the repository at this point in the history
  • Loading branch information
yikoyu committed Jan 16, 2024
1 parent 339251a commit 2381b31
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions src/extensions/components/ActionMenuButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ import ActionButton from './ActionButton.vue'
import { getIcon, IconsOptions } from '@/constants/icons'
import type { ButtonViewReturnComponentProps } from '@/type'
interface Props {
editor: Editor
disabled?: boolean
color?: string
maxHeight?: string | number
icon?: keyof IconsOptions
tooltip?: string
items?: Item[]
}
const props = withDefaults(defineProps<Props>(), {
disabled: false,
color: undefined,
Expand Down Expand Up @@ -60,6 +49,17 @@ export interface Item {
divider?: boolean
default?: boolean
}
interface Props {
editor: Editor
disabled?: boolean
color?: string
maxHeight?: string | number
icon?: keyof IconsOptions
tooltip?: string
items?: Item[]
}
</script>

<template>
Expand Down
10 changes: 5 additions & 5 deletions src/extensions/components/table/TableMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import CreateTablePopover from './CreateTablePopover.vue'
import { getIcon } from '@/constants/icons'
import { useLocale } from '@/locales'
interface Props {
editor: Editor
activator?: string
}
const props = withDefaults(defineProps<Props>(), {
activator: undefined
})
Expand Down Expand Up @@ -151,6 +146,11 @@ export interface Item {
disabled?: boolean
icon?: string
}
interface Props {
editor: Editor
activator?: string
}
</script>

<template>
Expand Down

0 comments on commit 2381b31

Please sign in to comment.