diff --git a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue index 78223667ec..a5ae2f37aa 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue @@ -5,7 +5,12 @@ import { inject } from 'vue' import { ColumnInj, IsFormInj, MetaInj } from '~/context' import { useProvideColumnCreateStore } from '#imports' -const { column } = defineProps<{ column: ColumnType & { meta: any } }>() +interface Props { + required?: boolean + column: ColumnType & { meta: any } +} + +const { column, required } = defineProps() const meta = inject(MetaInj) @@ -21,6 +26,7 @@ useProvideColumnCreateStore(meta as Ref, column)
{{ column.title }} +  *
diff --git a/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue b/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue index 01ffd978df..3a800be67e 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue @@ -4,7 +4,13 @@ import { inject } from 'vue' import { ColumnInj, IsFormInj } from '~/context' import { provide } from '#imports' -const { column } = defineProps<{ column: ColumnType & { meta: any } }>() +interface Props { + required?: boolean + column: ColumnType & { meta: any } +} + +const { column, required } = defineProps() + provide(ColumnInj, column) const isForm = inject(IsFormInj) @@ -143,7 +149,7 @@ const isForm = inject(IsFormInj) --> {{ column.title }} -  * +  *