|
@ -1,21 +1,22 @@ |
|
|
<template> |
|
|
<template> |
|
|
<template v-if="!Tools.isEmpty(value) && typeof value === 'object' && value.componentType && value.bindModelValue"> |
|
|
<template v-if="!Tools.isEmpty(value) && typeof value === 'object' && value.componentType && value.bindModelValue"> |
|
|
<component |
|
|
<component |
|
|
:is="value.componentType" |
|
|
:is="value.componentType" |
|
|
v-bind="value.attrs" |
|
|
v-bind="value.attrs" |
|
|
v-model="tools.dataFM.getRow(tools.table.rows, props.row[Constant.FIELD_NAMES.ROW_KEY], false)[col.name]" |
|
|
v-model="tools.dataFM.getRow(tools.table.rows, props.row[Constant.FIELD_NAMES.ROW_KEY], false)[col.name]" |
|
|
></component> |
|
|
></component> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="!Tools.isEmpty(value) && typeof value === 'object' && value.componentType"> |
|
|
<template v-else-if="!Tools.isEmpty(value) && typeof value === 'object' && value.componentType"> |
|
|
<component :is="value.componentType" v-bind="value.attrs"></component> |
|
|
<component :is="value.componentType" v-bind="value.attrs"></component> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<span v-dompurify-html="Tools.isUndefinedOrNull(value) ? '' : value"></span> |
|
|
<span v-dompurify-html="Tools.isUndefinedOrNull(value) ? '' : value"></span> |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import { Tools, inject } from '@/platform'; |
|
|
import { inject } from 'vue'; |
|
|
|
|
|
import { Tools } from '@/platform'; |
|
|
import { Constant, GridTools } from './ts/index'; |
|
|
import { Constant, GridTools } from './ts/index'; |
|
|
|
|
|
|
|
|
const tools = <GridTools>inject('tools'); |
|
|
const tools = <GridTools>inject('tools'); |
|
|