mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 01:11:15 +08:00
81 lines
1.8 KiB
TypeScript
81 lines
1.8 KiB
TypeScript
|
/**
|
||
|
* @file Echarts title 的配置
|
||
|
*/
|
||
|
|
||
|
export default {
|
||
|
name: 'title',
|
||
|
type: 'combo',
|
||
|
label: '',
|
||
|
noBorder: true,
|
||
|
multiLine: true,
|
||
|
controls: [
|
||
|
{
|
||
|
type: 'switch',
|
||
|
name: 'show',
|
||
|
value: true,
|
||
|
label: '是否显示标题组件'
|
||
|
},
|
||
|
{
|
||
|
type: 'container',
|
||
|
visibleOn: 'data.show',
|
||
|
controls: [
|
||
|
{
|
||
|
type: 'text',
|
||
|
name: 'text',
|
||
|
label: '主标题文本'
|
||
|
},
|
||
|
{
|
||
|
type: 'text',
|
||
|
name: 'link',
|
||
|
visibleOn: 'data.text',
|
||
|
label: '主标题文本超链接',
|
||
|
validations: {
|
||
|
isUrl: true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
type: 'switch',
|
||
|
name: 'target',
|
||
|
value: 'blank',
|
||
|
visibleOn: 'data.link',
|
||
|
label: '指定窗口打开主标题超链接',
|
||
|
options: [
|
||
|
{label: '但前窗口打开', value: 'self'},
|
||
|
{label: '新窗口打开', value: 'blank'}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
type: 'text',
|
||
|
name: 'subtext',
|
||
|
label: '副标题文本'
|
||
|
},
|
||
|
{
|
||
|
type: 'text',
|
||
|
name: 'sublink',
|
||
|
visibleOn: 'data.subtext',
|
||
|
label: '副标题文本超链接',
|
||
|
validations: {
|
||
|
isUrl: true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
type: 'switch',
|
||
|
name: 'subtarget',
|
||
|
value: 'blank',
|
||
|
visibleOn: 'data.sublink',
|
||
|
label: '指定窗口打开副标题超链接',
|
||
|
options: [
|
||
|
{label: '但前窗口打开', value: 'self'},
|
||
|
{label: '新窗口打开', value: 'blank'}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
type: 'switch',
|
||
|
name: 'triggerEvent',
|
||
|
label: '是否触发事件'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
};
|