|
|
@ -3,6 +3,7 @@ import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import { |
|
|
|
import { |
|
|
|
ActiveCellInj, |
|
|
|
ActiveCellInj, |
|
|
|
CellValueInj, |
|
|
|
CellValueInj, |
|
|
|
|
|
|
|
SaveRowInj, |
|
|
|
ColumnInj, |
|
|
|
ColumnInj, |
|
|
|
IsFormInj, |
|
|
|
IsFormInj, |
|
|
|
IsGridInj, |
|
|
|
IsGridInj, |
|
|
@ -30,7 +31,7 @@ const props = defineProps<{ |
|
|
|
active?: boolean |
|
|
|
active?: boolean |
|
|
|
}>() |
|
|
|
}>() |
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['update:modelValue', 'navigate']) |
|
|
|
const emit = defineEmits(['update:modelValue', 'navigate', 'save']) |
|
|
|
|
|
|
|
|
|
|
|
const column = toRef(props, 'column') |
|
|
|
const column = toRef(props, 'column') |
|
|
|
const active = toRef(props, 'active', false) |
|
|
|
const active = toRef(props, 'active', false) |
|
|
@ -40,6 +41,7 @@ provide(ColumnInj, column) |
|
|
|
provide(ActiveCellInj, active) |
|
|
|
provide(ActiveCellInj, active) |
|
|
|
provide(RowInj, row) |
|
|
|
provide(RowInj, row) |
|
|
|
provide(CellValueInj, toRef(props, 'modelValue')) |
|
|
|
provide(CellValueInj, toRef(props, 'modelValue')) |
|
|
|
|
|
|
|
provide(SaveRowInj, () => emit('save')) |
|
|
|
|
|
|
|
|
|
|
|
const isGrid = inject(IsGridInj, ref(false)) |
|
|
|
const isGrid = inject(IsGridInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|