提交 ce0d093b 编写于 作者: Shine-zwj's avatar Shine-zwj

直接内容项update

上级 0fcb569c
......@@ -6,7 +6,7 @@
{{rawContent ? rawContent : ''}}
</template>
<template v-else-if="Object.is(contentType,'HTML')">
{{htmlContent ? htmlContent : ''}}
<span v-html="htmlContent"/>
</template>
<template v-else-if="Object.is(contentType,'IMAGE')">
<i :class="imageClass ? imageClass : ''"></i>
......@@ -21,6 +21,22 @@ import { Component, Vue, Prop, Model, Watch } from "vue-property-decorator";
@Component({})
export default class AppRawItem extends Vue {
/**
* 应用上下文
*
* @type {string}
* @memberof AppRawItem
*/
@Prop() public context!: string;
/**
* 视图参数
*
* @type {string}
* @memberof AppRawItem
*/
@Prop() public viewparams!: string;
/**
* 内容类型
*
......@@ -46,7 +62,7 @@ export default class AppRawItem extends Vue {
@Prop() public htmlContent?: string;
/**
* html内容
* 图片
*
* @type {strin}
* @memberof AppRawItem
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册