|
|
@ -11,6 +11,7 @@ import { |
|
|
|
useVModel, |
|
|
|
useVModel, |
|
|
|
watch, |
|
|
|
watch, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
|
|
|
|
import { IsPublicInj } from '~/context' |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{ modelValue?: boolean }>() |
|
|
|
const props = defineProps<{ modelValue?: boolean }>() |
|
|
|
|
|
|
|
|
|
|
@ -22,6 +23,8 @@ const vModel = useVModel(props, 'modelValue', emit) |
|
|
|
|
|
|
|
|
|
|
|
const isForm = inject(IsFormInj, ref(false)) |
|
|
|
const isForm = inject(IsFormInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const column = inject(ColumnInj) |
|
|
|
const column = inject(ColumnInj) |
|
|
|
|
|
|
|
|
|
|
|
const readonly = inject(ReadonlyInj, false) |
|
|
|
const readonly = inject(ReadonlyInj, false) |
|
|
@ -117,7 +120,7 @@ const expandedFormRow = ref() |
|
|
|
@click.stop="unlinkRow(row)" |
|
|
|
@click.stop="unlinkRow(row)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<MdiDeleteOutline |
|
|
|
<MdiDeleteOutline |
|
|
|
v-if="!readonly" |
|
|
|
v-if="!readonly && !isPublic" |
|
|
|
class="text-xs text-grey hover:(!text-red-500) cursor-pointer" |
|
|
|
class="text-xs text-grey hover:(!text-red-500) cursor-pointer" |
|
|
|
@click.stop="deleteRelatedRow(row, unlinkIfNewRow)" |
|
|
|
@click.stop="deleteRelatedRow(row, unlinkIfNewRow)" |
|
|
|
/> |
|
|
|
/> |
|
|
|