|
|
@ -7,6 +7,7 @@ import { |
|
|
|
IsFormInj, |
|
|
|
IsFormInj, |
|
|
|
IsGridInj, |
|
|
|
IsGridInj, |
|
|
|
RowInj, |
|
|
|
RowInj, |
|
|
|
|
|
|
|
SaveRowInj, |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
isBarcode, |
|
|
|
isBarcode, |
|
|
|
isBt, |
|
|
|
isBt, |
|
|
@ -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)) |
|
|
|
|
|
|
|
|
|
|
|