|
|
|
@ -13,7 +13,7 @@ import {
|
|
|
|
|
} from '#imports' |
|
|
|
|
import { IsPublicInj } from '~/context' |
|
|
|
|
|
|
|
|
|
const props = defineProps<{ modelValue?: boolean }>() |
|
|
|
|
const props = defineProps<{ modelValue?: boolean; cellValue: any }>() |
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['update:modelValue', 'attachRecord']) |
|
|
|
|
|
|
|
|
@ -70,13 +70,18 @@ const unlinkIfNewRow = async (row: Record<string, any>) => {
|
|
|
|
|
const container = computed(() => |
|
|
|
|
isForm?.value |
|
|
|
|
? h('div', { |
|
|
|
|
class: 'w-full p-2', |
|
|
|
|
}) |
|
|
|
|
class: 'w-full p-2', |
|
|
|
|
}) |
|
|
|
|
: Modal, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
const expandedFormDlg = ref(false) |
|
|
|
|
const expandedFormRow = ref() |
|
|
|
|
|
|
|
|
|
watch(() => props.cellValue, () => { |
|
|
|
|
if (!isNew.value) |
|
|
|
|
loadChildrenList() |
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|