feat: markdown support

This commit is contained in:
chenos 2021-03-28 12:34:56 +08:00
parent 3c18ecc796
commit 5e9959b987
3 changed files with 12 additions and 12 deletions

View File

@ -98,7 +98,6 @@ export const percent = {
},
};
export const markdown = {
title: 'Markdown',
group: 'media',
@ -114,6 +113,7 @@ export const markdown = {
export const wysiwyg = {
title: '可视化编辑器',
group: 'media',
disabled: true,
options: {
interface: 'wysiwyg',
type: 'json',

View File

@ -115,12 +115,12 @@ export default {
},
},
{
interface: 'wysiwyg',
interface: 'markdown',
type: 'json',
title: '显示文字信息',
name: 'message',
component: {
type: 'wysiwyg',
type: 'markdown',
},
},
{
@ -168,12 +168,12 @@ export default {
},
},
{
interface: 'wysiwyg',
interface: 'markdown',
type: 'virtual',
title: '显示文字信息',
name: 'draft.message',
component: {
type: 'wysiwyg',
type: 'markdown',
},
}
],

View File

@ -431,19 +431,19 @@ export const kanban = {
},
};
export const wysiwyg = {
title: '富文本',
export const markdown = {
title: 'Markdown',
options: {
// html,
},
properties: {
// 数据配置
html: {
interface: 'wysiwyg',
interface: 'markdown',
type: 'virtual',
title: '富文本内容',
title: 'Markdown 内容',
component: {
type: 'wysiwyg',
type: 'markdown',
},
},
},
@ -452,12 +452,12 @@ export const wysiwyg = {
{
type: "value:visible",
target: 'collection',
condition: `{{ $self.value && $self.value !== 'wysiwyg' }}`,
condition: `{{ $self.value && $self.value !== 'markdown' }}`,
},
{
type: "value:visible",
target: 'dataSourceType',
condition: `{{ $self.value && $self.value !== 'wysiwyg' }}`,
condition: `{{ $self.value && $self.value !== 'markdown' }}`,
},
],
},