fix: modify text

This commit is contained in:
chenos 2021-03-26 10:14:53 +08:00
parent 281c1b3f1d
commit 489d7c27dd
4 changed files with 52 additions and 24 deletions

View File

@ -13,7 +13,7 @@ export default {
interface: 'string', interface: 'string',
type: 'string', type: 'string',
name: 'title', name: 'title',
title: '标签名称', title: '标签名称',
component: { component: {
type: 'string', type: 'string',
}, },
@ -23,7 +23,7 @@ export default {
type: 'belongsTo', type: 'belongsTo',
name: 'view', name: 'view',
target: 'views_v2', target: 'views_v2',
title: '当前标签页视图', title: '标签页显示的视图',
labelField: 'title', labelField: 'title',
valueField: 'id', valueField: 'id',
multiple: false, multiple: false,

View File

@ -34,16 +34,6 @@ export default {
}, },
developerMode: true, developerMode: true,
}, },
// {
// interface: 'string',
// type: 'string',
// name: 'path',
// title: '路径',
// required: true,
// unique: true,
// createOnly: true,
// developerMode: true,
// },
{ {
interface: 'radio', interface: 'radio',
type: 'string', type: 'string',
@ -51,8 +41,8 @@ export default {
title: '数据来源', title: '数据来源',
defaultValue: 'collection', defaultValue: 'collection',
dataSource: [ dataSource: [
{ label: '当前数据表', value: 'collection' }, { label: '所属数据表', value: 'collection' },
{ label: '相关数据', value: 'association' }, { label: '所属数据表的相关数据', value: 'association' },
], ],
linkages: [ linkages: [
{ {

View File

@ -25,6 +25,7 @@ export function getOptions() {
key: type, key: type,
value: type, value: type,
label: view.title, label: view.title,
disabled: !!view.disabled,
}); });
} }
return options; return options;

View File

@ -21,7 +21,7 @@ const actions = {
const details = { const details = {
interface: 'json', interface: 'json',
type: 'virtual', type: 'virtual',
title: '详情标签页里要显示的视图', title: '单条数据页面的标签页和视图',
target: 'views_details_v2', target: 'views_details_v2',
component: { component: {
type: 'subTable', type: 'subTable',
@ -31,11 +31,25 @@ const details = {
const detailsOpenMode = { const detailsOpenMode = {
interface: 'radio', interface: 'radio',
// type: 'string', // type: 'string',
title: '单条数据详情页的打开方式', title: '单条数据的打开方式',
required: true, required: true,
dataSource: [ dataSource: [
{ label: '常规页面', value: 'window' }, {
{ label: '快捷抽屉', value: 'drawer' }, label: '{{ markdown(\'<span>常规页面 <span style="color: #999;">点击数据进入独立的页面</i></span>\') }}',
value: 'window',
style: {
display: 'block',
lineHeight: '32px',
},
},
{
label: '{{ markdown(\'<span>快捷抽屉 <span style="color: #999;">点击数据不离开当前页面,在右侧抽屉里打开操作界面</i></span>\') }}',
value: 'drawer',
style: {
display: 'block',
lineHeight: '32px',
},
},
], ],
defaultValue: 'drawer', defaultValue: 'drawer',
component: { component: {
@ -257,7 +271,7 @@ export const calendar = {
interface: 'select', interface: 'select',
type: 'virtual', type: 'virtual',
title: '开始日期字段', title: '开始日期字段',
// required: true, required: true,
component: { component: {
type: 'remoteSelect', type: 'remoteSelect',
placeholder: '默认为创建时间字段', placeholder: '默认为创建时间字段',
@ -445,11 +459,34 @@ export const wysiwyg = {
target: 'dataSourceType', target: 'dataSourceType',
condition: `{{ $self.value && $self.value !== 'wysiwyg' }}`, condition: `{{ $self.value && $self.value !== 'wysiwyg' }}`,
}, },
// {
// type: "value:visible",
// target: 'targetField',
// condition: `{{ $self.value && $self.value !== 'wysiwyg' }}`,
// },
], ],
}, },
}; };
export const map = {
title: '地图',
disabled: true,
options: {},
properties: {},
};
export const chart = {
title: '图表',
disabled: true,
options: {},
properties: {},
};
export const report = {
title: '报表',
disabled: true,
options: {},
properties: {},
};
export const aggregate = {
title: '汇总指标',
disabled: true,
options: {},
properties: {},
};