mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
536 B
22 lines
536 B
<script lang="ts" setup> |
|
import type { ColumnType } from 'nocodb-sdk' |
|
import { MetaInj, inject, ref, toRef, useProvideColumnCreateStore } from '#imports' |
|
|
|
interface Props { |
|
column?: ColumnType & { meta: any } |
|
} |
|
|
|
const props = defineProps<Props>() |
|
|
|
const emit = defineEmits(['submit', 'cancel']) |
|
|
|
const meta = inject(MetaInj, ref()) |
|
|
|
const column = toRef(props, 'column') |
|
|
|
useProvideColumnCreateStore(meta, column) |
|
</script> |
|
|
|
<template> |
|
<LazySmartsheetColumnEditOrAdd @submit="emit('submit')" @cancel="emit('cancel')" /> |
|
</template>
|
|
|