|
|
@ -2,13 +2,13 @@ |
|
|
|
import MdiCloseThickIcon from '~icons/mdi/close-thick' |
|
|
|
import MdiCloseThickIcon from '~icons/mdi/close-thick' |
|
|
|
|
|
|
|
|
|
|
|
interface Props { |
|
|
|
interface Props { |
|
|
|
modelValue: string | number | boolean |
|
|
|
value: string | number | boolean |
|
|
|
active: boolean |
|
|
|
active: boolean |
|
|
|
item: any |
|
|
|
item: any |
|
|
|
readonly: boolean |
|
|
|
readonly: boolean |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { modelValue, active, item, readonly } = defineProps<Props>() |
|
|
|
const { value, active, item, readonly } = defineProps<Props>() |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -16,7 +16,7 @@ const { modelValue, active, item, readonly } = defineProps<Props>() |
|
|
|
<!-- |
|
|
|
<!-- |
|
|
|
:color="isDark ? '' : 'primary lighten-5'" |
|
|
|
:color="isDark ? '' : 'primary lighten-5'" |
|
|
|
@click="!readonly && active && $emit('edit', item)" --> |
|
|
|
@click="!readonly && active && $emit('edit', item)" --> |
|
|
|
<span class="name" :title="modelValue">{{ modelValue }}</span> |
|
|
|
<span class="name" :title="value">{{ value }}</span> |
|
|
|
|
|
|
|
|
|
|
|
<!-- && _isUIAllowed('xcDatatableEditable') --> |
|
|
|
<!-- && _isUIAllowed('xcDatatableEditable') --> |
|
|
|
<div v-show="active" v-if="!readonly" class="mr-n1 ml-2"> |
|
|
|
<div v-show="active" v-if="!readonly" class="mr-n1 ml-2"> |
|
|
|