Browse Source

fix(gui-v2): merge issue

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
e9933bd1d4
  1. 6
      packages/nc-gui-v2/components/smartsheet-header/Cell.vue

6
packages/nc-gui-v2/components/smartsheet-header/Cell.vue

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import type { ColumnType, TableType } from 'nocodb-sdk' import type { ColumnType, TableType } from 'nocodb-sdk'
import type { Ref } from 'vue' import type { Ref } from 'vue'
import { inject } from 'vue' import { inject, toRef } from 'vue'
import { ColumnInj, IsFormInj, MetaInj } from '~/context' import { ColumnInj, IsFormInj, MetaInj } from '~/context'
import { useProvideColumnCreateStore } from '#imports' import { useProvideColumnCreateStore } from '#imports'
@ -10,12 +10,14 @@ interface Props {
column: ColumnType column: ColumnType
} }
const { column, required } = defineProps<Props>() const props = defineProps<{ column: ColumnType & { meta: any }; required: boolean }>()
const meta = inject(MetaInj) const meta = inject(MetaInj)
const isForm = inject(IsFormInj) const isForm = inject(IsFormInj)
const column = toRef(props, 'column')
provide(ColumnInj, column) provide(ColumnInj, column)
// instantiate column update store // instantiate column update store

Loading…
Cancel
Save