tiny-vue/examples/sites/demos/apis/fluent-editor.js

59 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
mode: ['pc', 'mobile-first'],
apis: [
{
name: 'fluent-editor',
type: 'component',
props: [
{
name: 'data-type',
type: 'boolean',
defaultValue: 'true',
desc: {
'zh-CN': '初始化的富文本数据格式是否为 Delta 格式,默认为 Delta 格式,设置成 false则为 HTML 格式',
'en-US': ''
},
mode: ['pc', 'mobile-first'],
pcDemo: 'data-switch'
},
{
name: 'data-upgrade',
type: 'boolean',
defaultValue: 'true',
desc: {
'zh-CN': '富文本数据输出格式是否为 Delta 格式,默认为 Delta 格式,设置成 false则为 HTML 格式',
'en-US': ''
},
mode: ['pc', 'mobile-first'],
pcDemo: 'data-switch'
},
{
name: 'disabled',
type: 'boolean',
defaultValue: 'false',
desc: {
'zh-CN': '是否为不可编辑状态',
'en-US': ''
},
mode: ['pc', 'mobile-first'],
pcDemo: 'disabled'
},
{
name: 'modelValue / v-model',
type: 'string',
defaultValue: "''",
desc: {
'zh-CN': '绑定值',
'en-US': 'Bound Value'
},
mode: ['pc', 'mobile-first'],
pcDemo: 'basic-usage'
}
],
events: [],
methods: [],
slots: []
}
]
}