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 = { export const markdown = {
title: 'Markdown', title: 'Markdown',
group: 'media', group: 'media',
@ -114,6 +113,7 @@ export const markdown = {
export const wysiwyg = { export const wysiwyg = {
title: '可视化编辑器', title: '可视化编辑器',
group: 'media', group: 'media',
disabled: true,
options: { options: {
interface: 'wysiwyg', interface: 'wysiwyg',
type: 'json', type: 'json',

View File

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

View File

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