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.
23 lines
583 B
23 lines
583 B
2 years ago
|
<script lang="ts" setup>
|
||
2 years ago
|
import type { ColumnType } from 'nocodb-sdk'
|
||
2 years ago
|
import type { Ref } from 'vue'
|
||
2 years ago
|
import { MetaInj, inject } from '#imports'
|
||
2 years ago
|
|
||
|
interface Props {
|
||
|
column?: Ref<ColumnType & { meta: any }>
|
||
|
}
|
||
|
|
||
|
const props = defineProps<Props>()
|
||
|
|
||
|
const emit = defineEmits(['submit', 'cancel'])
|
||
|
|
||
2 years ago
|
const meta = inject(MetaInj, ref())
|
||
2 years ago
|
|
||
2 years ago
|
const column = toRef(props, 'column')
|
||
|
useProvideColumnCreateStore(meta, column as Ref<ColumnType | undefined>)
|
||
2 years ago
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<SmartsheetColumnEditOrAdd @submit="emit('submit')" @cancel="emit('cancel')"></SmartsheetColumnEditOrAdd>
|
||
|
</template>
|