多维表格
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
590 B

<script lang="ts" setup>
import type { Row } from '~/composables'
import { useSmartsheetStoreOrThrow } from '~/composables'
import { useProvideSmartsheetRowStore } from '~/composables/useSmartsheetRowStore'
interface Props {
row: Row
}
const props = defineProps<Props>()
const emit = defineEmits(['expandForm', 'selectCell', 'updateOrSaveRow', 'navigate'])
const row = toRef(props, 'row')
const { meta } = useSmartsheetStoreOrThrow()
const { isNew, state } = useProvideSmartsheetRowStore(meta, row)
watch(row, () => {
state.value = {}
})
</script>
<template>
<slot />
</template>