diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index a56ed469fb..276e985f68 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -511,7 +511,7 @@ const onNavigate = (dir: NavigateDir) => { :row="expandedFormRow" :state="expandedFormRowState" :meta="meta" - @remove-last-empty-row="removeLastEmptyRow" + @cancel="removeLastEmptyRow" /> diff --git a/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue b/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue index 076e250cf7..a9f2a74419 100644 --- a/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue @@ -36,7 +36,7 @@ interface Props { const props = defineProps() -const emits = defineEmits(['update:modelValue', 'removeLastEmptyRow']) +const emits = defineEmits(['update:modelValue', 'cancel']) const row = toRef(props, 'row') @@ -93,7 +93,7 @@ const isExpanded = useVModel(props, 'modelValue', emits, { }) const onClose = () => { - if (row.value?.rowMeta?.new) emits('removeLastEmptyRow') + if (row.value?.rowMeta?.new) emits('cancel') isExpanded.value = false }