|
|
@ -8,8 +8,10 @@ import { useMetas } from '~/composables' |
|
|
|
import { ColumnInj, MetaInj } from '~/context' |
|
|
|
import { ColumnInj, MetaInj } from '~/context' |
|
|
|
import { provide, useProvideColumnCreateStore } from '#imports' |
|
|
|
import { provide, useProvideColumnCreateStore } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{ column: ColumnType & { meta: any } }>() |
|
|
|
const props = defineProps<{ column: ColumnType & { meta: any }; hideMenu?: boolean }>() |
|
|
|
const column = toRef(props, 'column') |
|
|
|
const column = toRef(props, 'column') |
|
|
|
|
|
|
|
const hideMenu = toRef(props, 'hideMenu') |
|
|
|
|
|
|
|
|
|
|
|
provide(ColumnInj, column) |
|
|
|
provide(ColumnInj, column) |
|
|
|
const { metas } = useMetas() |
|
|
|
const { metas } = useMetas() |
|
|
|
const meta = inject(MetaInj) |
|
|
|
const meta = inject(MetaInj) |
|
|
|