|
|
@ -19,9 +19,10 @@ interface Props { |
|
|
|
column: any |
|
|
|
column: any |
|
|
|
showUnlinkButton: boolean |
|
|
|
showUnlinkButton: boolean |
|
|
|
border?: boolean |
|
|
|
border?: boolean |
|
|
|
|
|
|
|
readonly?: boolean |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { value, item, column, showUnlinkButton, border = true } = defineProps<Props>() |
|
|
|
const { value, item, column, showUnlinkButton, border = true, readonly: readonlyProp } = defineProps<Props>() |
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['unlink']) |
|
|
|
const emit = defineEmits(['unlink']) |
|
|
|
|
|
|
|
|
|
|
@ -40,7 +41,7 @@ const isLocked = inject(IsLockedInj, ref(false)) |
|
|
|
const { open } = useExpandedFormDetached() |
|
|
|
const { open } = useExpandedFormDetached() |
|
|
|
|
|
|
|
|
|
|
|
function openExpandedForm() { |
|
|
|
function openExpandedForm() { |
|
|
|
if (!readOnly.value && !isLocked.value) { |
|
|
|
if (!readOnly.value && !isLocked.value && !readonlyProp) { |
|
|
|
open({ |
|
|
|
open({ |
|
|
|
isOpen: true, |
|
|
|
isOpen: true, |
|
|
|
row: { row: item, rowMeta: {}, oldRow: { ...item } }, |
|
|
|
row: { row: item, rowMeta: {}, oldRow: { ...item } }, |
|
|
|