mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
fix: todo
This commit is contained in:
parent
7df72c4d85
commit
8c5b330cc8
@ -19,6 +19,7 @@ const props = defineProps({
|
|||||||
title: propTypes.string.def(''),
|
title: propTypes.string.def(''),
|
||||||
message: propTypes.string.def(''),
|
message: propTypes.string.def(''),
|
||||||
collapse: propTypes.bool.def(true),
|
collapse: propTypes.bool.def(true),
|
||||||
|
columns: propTypes.number.def(1),
|
||||||
schema: {
|
schema: {
|
||||||
type: Array as PropType<DescriptionsSchema[]>,
|
type: Array as PropType<DescriptionsSchema[]>,
|
||||||
default: () => []
|
default: () => []
|
||||||
@ -94,7 +95,7 @@ const toggleClick = () => {
|
|||||||
<ElCollapseTransition>
|
<ElCollapseTransition>
|
||||||
<div v-show="show" :class="[`${prefixCls}-content`, 'p-10px']">
|
<div v-show="show" :class="[`${prefixCls}-content`, 'p-10px']">
|
||||||
<ElDescriptions
|
<ElDescriptions
|
||||||
:column="1"
|
:column="props.columns"
|
||||||
border
|
border
|
||||||
:direction="mobile ? 'vertical' : 'horizontal'"
|
:direction="mobile ? 'vertical' : 'horizontal'"
|
||||||
v-bind="getBindValue"
|
v-bind="getBindValue"
|
||||||
|
@ -51,7 +51,11 @@
|
|||||||
v-if="actionType === 'detail'"
|
v-if="actionType === 'detail'"
|
||||||
:schema="allSchemas.detailSchema"
|
:schema="allSchemas.detailSchema"
|
||||||
:data="detailRef"
|
:data="detailRef"
|
||||||
/>
|
>
|
||||||
|
<template #content="{ row }">
|
||||||
|
<Editor :model-value="row.content" read-only="true" />
|
||||||
|
</template>
|
||||||
|
</Descriptions>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<!-- 按钮:保存 -->
|
<!-- 按钮:保存 -->
|
||||||
<XButton
|
<XButton
|
||||||
@ -77,6 +81,7 @@ import { FormExpose } from '@/components/Form'
|
|||||||
// 业务相关的 import
|
// 业务相关的 import
|
||||||
import * as NoticeApi from '@/api/system/notice'
|
import * as NoticeApi from '@/api/system/notice'
|
||||||
import { rules, allSchemas } from './notice.data'
|
import { rules, allSchemas } from './notice.data'
|
||||||
|
import { Editor } from '@/components/Editor'
|
||||||
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
|
@ -39,7 +39,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
title: '公告内容',
|
title: '公告内容',
|
||||||
field: 'content',
|
field: 'content',
|
||||||
table: {
|
table: {
|
||||||
type: 'html' // TODO 芋艿:详情展示,会是 html 的原始内容。要不改成直接使用富文本展示,设置个 readonly?
|
type: 'html'
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
component: 'Editor',
|
component: 'Editor',
|
||||||
|
Loading…
Reference in New Issue
Block a user