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