mirror of
https://gitee.com/hoslay/ddei-editor.git
synced 2025-12-06 17:18:36 +08:00
支持了i18n国际化,修复了属性过多,属性分组栏出现滚动时,弹出框位置不正确问题
This commit is contained in:
parent
ee05b79f4c
commit
6e18f7bbad
@ -37,7 +37,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'width',
|
||||
'name': '宽度',
|
||||
'name': 'ddei.property.width',
|
||||
'desc': '控件的宽度',
|
||||
'controlType': 'text',
|
||||
'dataSource': null,
|
||||
@ -46,7 +46,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'height',
|
||||
'name': '高度',
|
||||
'name': 'ddei.property.height',
|
||||
'desc': '控件的高度',
|
||||
'controlType': 'text',
|
||||
'dataSource': null,
|
||||
@ -56,10 +56,10 @@ export default {
|
||||
{
|
||||
'id': '100500003',
|
||||
'code': 'border.type',
|
||||
'name': '边框类型',
|
||||
'name': 'ddei.property.borderType',
|
||||
'desc': '用来快速选择边框的类型,以便于套用相关的样式',
|
||||
'controlType': 'border-type',
|
||||
'dataSource': [{ 'text': '无线条', 'value': '0' }, { 'text': '实线', 'value': '1' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': 0 }, { 'text': 'ddei.property.ds.line', 'value': 1 }],
|
||||
'dataType': 'string',
|
||||
'defaultValue': '1',
|
||||
'hiddenTitle': true,
|
||||
@ -68,7 +68,7 @@ export default {
|
||||
{
|
||||
'id': '100500004',
|
||||
'code': 'border.color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '图形的边框显示颜色,在高级设置中,可以分别设置不同方向边框的样式',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -76,7 +76,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的边框的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -89,7 +89,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderWidth',
|
||||
'name': '粗细',
|
||||
'name': 'ddei.property.width',
|
||||
'desc': '图形的边框的粗细,0为无边框',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -101,7 +101,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderDash',
|
||||
'name': '虚线',
|
||||
'name': 'ddei.property.dash',
|
||||
'desc': '图形的边框的是否为虚线样式,虚线由长短不一的线段构成',
|
||||
'controlType': 'border-dash',
|
||||
'dataSource': [
|
||||
@ -125,7 +125,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderRound',
|
||||
'name': '圆角',
|
||||
'name': 'ddei.property.round',
|
||||
'desc': '图形的边框的是否为为圆角的弧度',
|
||||
'controlType': 'range',
|
||||
'mapping': ["border.round"],
|
||||
@ -137,11 +137,11 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.type',
|
||||
'name': '填充类型',
|
||||
'name': 'ddei.property.fillType',
|
||||
'desc': '图形填充的类型快速设置',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '无', 'value': 0 }, { 'text': '纯色', 'value': 1 }, { 'text': '图片', 'value': 2 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': 0 }, { 'text': 'ddei.property.ds.color', 'value': 1 }, { 'text': 'ddei.property.ds.image', 'value': 2 }],
|
||||
'defaultValue': 1,
|
||||
'type': 1,
|
||||
'orderNo': 2,
|
||||
@ -151,7 +151,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '图形的填充颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -159,7 +159,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.image',
|
||||
'name': '图片',
|
||||
'name': 'ddei.property.image',
|
||||
'desc': '图形的填充图片',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
@ -168,7 +168,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.opacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的填充的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -182,7 +182,7 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'font.family',
|
||||
'name': '字体',
|
||||
'name': 'ddei.property.font',
|
||||
'desc': '文本的字体名称',
|
||||
'controlType': 'combox',
|
||||
'dataType': 'string',
|
||||
@ -200,7 +200,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'font.size',
|
||||
'name': '大小',
|
||||
'name': 'ddei.property.size',
|
||||
'desc': '文本的字体大小',
|
||||
'max': 50,
|
||||
'min': 5,
|
||||
@ -211,7 +211,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'font.color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '文本的颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -219,7 +219,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fontAlign',
|
||||
'name': '对齐',
|
||||
'name': 'ddei.property.align',
|
||||
'desc': '文本的对齐,采用九宫格式设置',
|
||||
'controlType': 'align-type',
|
||||
'mapping': [],
|
||||
@ -227,79 +227,79 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.feed',
|
||||
'name': '换行',
|
||||
'name': 'ddei.property.feed',
|
||||
'desc': '自动换行',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.scale',
|
||||
'name': '缩小字体',
|
||||
'name': 'ddei.property.outSize',
|
||||
'desc': '文本的自动缩小字体填充',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.hollow',
|
||||
'name': '镂空',
|
||||
'name': 'ddei.property.hollow',
|
||||
'desc': '文本的镂空显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.bold',
|
||||
'name': '粗体',
|
||||
'name': 'ddei.property.bold',
|
||||
'desc': '文本的加粗显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.italic',
|
||||
'name': '斜体',
|
||||
'name': 'ddei.property.italic',
|
||||
'desc': '文本的斜体显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.underline',
|
||||
'name': '下划线',
|
||||
'name': 'ddei.property.underline',
|
||||
'desc': '文本的下划线显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.deleteline',
|
||||
'name': '删除线',
|
||||
'name': 'ddei.property.deleteline',
|
||||
'desc': '文本的删除线显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.topline',
|
||||
'name': '顶部线',
|
||||
'name': 'ddei.property.topline',
|
||||
'desc': '文本的删除线显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.bgcolor',
|
||||
'name': '文字背景',
|
||||
'name': 'ddei.property.textbg',
|
||||
'desc': '文本的背景颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -307,17 +307,17 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.subtype',
|
||||
'name': '标注类型',
|
||||
'name': 'ddei.property.subtype',
|
||||
'desc': '文本的标注类型',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'integer',
|
||||
'dataSource': [{ 'text': '正常', 'value': 0 }, { 'text': '上标', 'value': 1 }, { 'text': '中标', 'value': 2 }, { 'text': '下标', 'value': 3 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.subType', 'value': 0 }, { 'text': 'ddei.property.ds.subType1', 'value': 1 }, { 'text': 'ddei.property.ds.subType2', 'value': 2 }, { 'text': 'ddei.property.ds.subType3', 'value': 3 }],
|
||||
'defaultValue': 0,
|
||||
},
|
||||
|
||||
{
|
||||
'code': 'textStyle.align',
|
||||
'name': '水平对齐',
|
||||
'name': 'ddei.property.textAlign',
|
||||
'desc': '文本的水平对齐',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -325,7 +325,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.valign',
|
||||
'name': '垂直对齐',
|
||||
'name': 'ddei.property.textValign',
|
||||
'desc': '文本的垂直对齐',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -333,7 +333,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.hspace',
|
||||
'name': '水平间距',
|
||||
'name': 'ddei.property.hspace',
|
||||
'desc': '文本之间的水平间距',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -344,7 +344,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.vspace',
|
||||
'name': '垂直间距',
|
||||
'name': 'ddei.property.vspace',
|
||||
'desc': '文本之间的垂直间距',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -355,7 +355,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderCreatingOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的边框的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'text',
|
||||
'mapping': ["border.creating.top.opacity", "border.creating.right.opacity", "border.creating.bottom.opacity", "border.creating.left.opacity"],
|
||||
@ -365,7 +365,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fillCreatingOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的填充的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'text',
|
||||
'mapping': ["fill.creating.opacity"],
|
||||
@ -375,7 +375,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'imageCreatingOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的填充图片的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'text',
|
||||
'mapping': ["fill.creating.opacity"],
|
||||
@ -385,7 +385,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'id',
|
||||
'name': 'id',
|
||||
'name': 'ddei.property.id',
|
||||
'desc': '控件在画布的全局唯一ID',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
@ -393,15 +393,15 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'code',
|
||||
'name': '编码',
|
||||
'name': 'ddei.property.code',
|
||||
'desc': '控件在业务上的唯一编码,缺省和控件ID一致',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
'defaultValue': '编码001',
|
||||
'defaultValue': 'ddei.property.code001',
|
||||
},
|
||||
{
|
||||
'code': 'text',
|
||||
'name': '文本',
|
||||
'name': 'ddei.property.text',
|
||||
'desc': '控件的主体显示文本',
|
||||
'controlType': 'textarea',
|
||||
'defaultValue': '',
|
||||
@ -411,18 +411,18 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.type',
|
||||
'name': '格式',
|
||||
'name': 'ddei.format',
|
||||
'desc': '文本的显示格式',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'integer',
|
||||
'dataSource': [{ 'text': '文本', 'value': 0 }, { 'text': '数字', 'value': 1 }, { 'text': '金额', 'value': 2 }, { 'text': '时间', 'value': 3 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.text', 'value': 0 }, { 'text': 'ddei.property.ds.decimal', 'value': 1 }, { 'text': 'ddei.property.ds.money', 'value': 2 }, { 'text': 'ddei.property.ds.time', 'value': 3 }],
|
||||
'defaultValue': 0,
|
||||
'type': [1, 2],
|
||||
'cascadeDisplay': { 1: { show: ['fmt.nscale', 'fmt.tmark'], hidden: ['fmt.mmark', 'fmt.munit', 'fmt.dtype', 'fmt.format', 'fmt.mrmb'] }, 2: { show: ['fmt.nscale', 'fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.mrmb'], hidden: ['fmt.dtype', 'fmt.format'] }, 3: { show: ['fmt.dtype', 'fmt.format'], hidden: ['fmt.mrmb', 'fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.nscale'] }, default: { hidden: ['fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.nscale', 'fmt.dtype', 'fmt.format', 'fmt.mrmb'] }, empty: { hidden: ['fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.nscale', 'fmt.dtype', 'fmt.format', 'fmt.mrmb'] } },
|
||||
},
|
||||
{
|
||||
'code': 'fmt.nscale',
|
||||
'name': '小数位数',
|
||||
'name': 'ddei.property.nscale',
|
||||
'desc': '格式化小数位数',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -433,7 +433,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.tmark',
|
||||
'name': '千分符',
|
||||
'name': 'ddei.property.tmark',
|
||||
'desc': '显示逗号千分符',
|
||||
'controlType': 'switch-checkbox',
|
||||
'dataType': 'integer',
|
||||
@ -444,10 +444,10 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.mmark',
|
||||
'name': '货币符号',
|
||||
'name': 'ddei.property.mmark',
|
||||
'desc': '显示货币符号',
|
||||
'controlType': 'combox',
|
||||
'dataSource': [{ 'text': '无', 'value': '' }, { 'text': '人民币', 'value': '¥' }, { 'text': '美元', 'value': '$' }, { 'text': '欧元', 'value': '€' }, { 'text': '英镑', 'value': '£' }, { 'text': '日元', 'value': '¥' }, { 'text': '卢布', 'value': '₽' }, { 'text': '法郎', 'value': '€' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': '' }, { 'text': 'ddei.property.ds.money1', 'value': '¥' }, { 'text': 'ddei.property.ds.money2', 'value': '$' }, { 'text': 'ddei.property.ds.money3', 'value': '€' }, { 'text': 'ddei.property.ds.money4', 'value': '£' }, { 'text': 'ddei.property.ds.money5', 'value': '¥' }, { 'text': 'ddei.property.ds.money6', 'value': '₽' }, { 'text': 'ddei.property.ds.money7', 'value': '€' }],
|
||||
'defaultValue': '',
|
||||
'dataType': 'string',
|
||||
'type': [1, 2],
|
||||
@ -455,7 +455,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.munit',
|
||||
'name': '货币单位',
|
||||
'name': 'ddei.property.moneyUnit',
|
||||
'desc': '显示在后方的货币单位',
|
||||
'controlType': 'text',
|
||||
'defaultValue': '',
|
||||
@ -464,7 +464,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.mrmb',
|
||||
'name': '人民币大写',
|
||||
'name': 'ddei.property.moneyUpCase',
|
||||
'desc': '显示为人民币大写',
|
||||
'controlType': 'switch-checkbox',
|
||||
'dataType': 'integer',
|
||||
@ -475,10 +475,10 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.dtype',
|
||||
'name': '日期类型',
|
||||
'name': 'ddei.property.dateType',
|
||||
'desc': '日期和时间的格式化类型',
|
||||
'controlType': 'radio',
|
||||
'dataSource': [{ 'text': '2023-01-01', 'value': 1 }, { 'text': '23:59:59', 'value': 2 }, { 'text': '2023-01-01 23:59:59', 'value': 3 }, { 'text': '自定义', 'value': 99 }],
|
||||
'dataSource': [{ 'text': '2023-01-01', 'value': 1 }, { 'text': '23:59:59', 'value': 2 }, { 'text': '2023-01-01 23:59:59', 'value': 3 }, { 'text': 'ddei.property.ds.custom', 'value': 99 }],
|
||||
'dataType': 'integer',
|
||||
'defaultValue': 1,
|
||||
'hiddenTitle': true,
|
||||
@ -487,7 +487,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.format',
|
||||
'name': '格式化',
|
||||
'name': 'ddei.property.format',
|
||||
'desc': '自定义格式化字符串',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
@ -500,19 +500,19 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "布局",
|
||||
name: "ddei.layout",
|
||||
attrs: ["layout"]
|
||||
},
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100401',
|
||||
'name': '连接线',
|
||||
'name': 'ddei.control.line',
|
||||
'code': 'line',
|
||||
'desc': '直线、折线、曲线三种连接线',
|
||||
'type': 'DDeiLine',
|
||||
@ -19,10 +19,10 @@ export default {
|
||||
attrs: [
|
||||
{
|
||||
'code': 'type',
|
||||
'name': '类型',
|
||||
'name': 'ddei.lineType',
|
||||
'desc': '用来快速连线类型,以便于套用相关的样式',
|
||||
'controlType': 'radio',
|
||||
'dataSource': [{ 'text': '直线', 'value': 1 }, { 'text': '折线', 'value': 2 }, { 'text': '曲线', 'value': 3 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.lineType1', 'value': 1 }, { 'text': 'ddei.property.ds.lineType2', 'value': 2 }, { 'text': 'ddei.property.ds.lineType3', 'value': 3 }],
|
||||
'dataType': 'integer',
|
||||
'defaultValue': 1,
|
||||
'cascadeDisplay': { 2: { show: ['round'], hidden: [] }, default: { show: [], hidden: ['round'] }, notempty: { hidden: ['round'] } },
|
||||
@ -31,7 +31,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'weight',
|
||||
'name': '线段',
|
||||
'name': 'ddei.property.weight',
|
||||
'desc': '控件的宽度',
|
||||
'controlType': 'range',
|
||||
'min': 0.1,
|
||||
@ -42,7 +42,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '线段的边框显示颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -50,7 +50,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.weight',
|
||||
'name': '填充',
|
||||
'name': 'ddei.fill',
|
||||
'desc': '填充的大小',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -61,7 +61,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.color',
|
||||
'name': '填充色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '线段的边框显示颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -70,7 +70,7 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'dash',
|
||||
'name': '虚线',
|
||||
'name': 'ddei.property.dash',
|
||||
'desc': '图形的边框的是否为虚线样式,虚线由长短不一的线段构成',
|
||||
'controlType': 'border-dash',
|
||||
'dataSource': [
|
||||
@ -93,7 +93,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'opacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的边框的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -107,22 +107,22 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'sp.type',
|
||||
'name': '起点类型',
|
||||
'name': 'ddei.property.startPointType',
|
||||
'desc': '起点的样式样式',
|
||||
'controlType': 'combox',
|
||||
'dataSource': [
|
||||
{ 'text': '无', 'value': -1 },
|
||||
{ 'text': '箭头', 'value': 1 },
|
||||
{ 'text': '圆形', 'value': 2 },
|
||||
{ 'text': '圆形-实心', 'value': 21 },
|
||||
{ 'text': '方形', 'value': 3 },
|
||||
{ 'text': '方形-实心', 'value': 31 },
|
||||
{ 'text': '菱形', 'value': 4 },
|
||||
{ 'text': '菱形-实心', 'value': 41 },
|
||||
{ 'text': '三角形', 'value': 5 },
|
||||
{ 'text': '三角形-实心', 'value': 51 },
|
||||
{ 'text': '半圆', 'value': 6 },
|
||||
{ 'text': '半圆-实心', 'value': 61 },
|
||||
{ 'text': 'ddei.property.ds.none', 'value': -1 },
|
||||
{ 'text': 'ddei.property.ds.pointType1', 'value': 1 },
|
||||
{ 'text': 'ddei.property.ds.pointType2', 'value': 2 },
|
||||
{ 'text': 'ddei.property.ds.pointType21', 'value': 21 },
|
||||
{ 'text': 'ddei.property.ds.pointType3', 'value': 3 },
|
||||
{ 'text': 'ddei.property.ds.pointType31', 'value': 31 },
|
||||
{ 'text': 'ddei.property.ds.pointType4', 'value': 4 },
|
||||
{ 'text': 'ddei.property.ds.pointType41', 'value': 41 },
|
||||
{ 'text': 'ddei.property.ds.pointType5', 'value': 5 },
|
||||
{ 'text': 'ddei.property.ds.pointType51', 'value': 51 },
|
||||
{ 'text': 'ddei.property.ds.pointType6', 'value': 6 },
|
||||
{ 'text': 'ddei.property.ds.pointType61', 'value': 61 },
|
||||
|
||||
],
|
||||
'itemStyle': { width: 80, height: 25, col: 2, row: 6 },
|
||||
@ -132,7 +132,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'sp.weight',
|
||||
'name': '大小',
|
||||
'name': 'ddei.property.weight',
|
||||
'desc': '起点的箭头的宽度',
|
||||
'controlType': 'range',
|
||||
'min': 1,
|
||||
@ -143,22 +143,22 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'ep.type',
|
||||
'name': '终点类型',
|
||||
'name': 'ddei.property.endPointType',
|
||||
'desc': '终点的样式样式',
|
||||
'controlType': 'combox',
|
||||
'dataSource': [
|
||||
{ 'text': '无', 'value': -1 },
|
||||
{ 'text': '箭头', 'value': 1 },
|
||||
{ 'text': '圆形', 'value': 2 },
|
||||
{ 'text': '圆形-实心', 'value': 21 },
|
||||
{ 'text': '方形', 'value': 3 },
|
||||
{ 'text': '方形-实心', 'value': 31 },
|
||||
{ 'text': '菱形', 'value': 4 },
|
||||
{ 'text': '菱形-实心', 'value': 41 },
|
||||
{ 'text': '三角形', 'value': 5 },
|
||||
{ 'text': '三角形-实心', 'value': 51 },
|
||||
{ 'text': '半圆', 'value': 6 },
|
||||
{ 'text': '半圆-实心', 'value': 61 },
|
||||
{ 'text': 'ddei.property.ds.none', 'value': -1 },
|
||||
{ 'text': 'ddei.property.ds.pointType1', 'value': 1 },
|
||||
{ 'text': 'ddei.property.ds.pointType2', 'value': 2 },
|
||||
{ 'text': 'ddei.property.ds.pointType21', 'value': 21 },
|
||||
{ 'text': 'ddei.property.ds.pointType3', 'value': 3 },
|
||||
{ 'text': 'ddei.property.ds.pointType31', 'value': 31 },
|
||||
{ 'text': 'ddei.property.ds.pointType4', 'value': 4 },
|
||||
{ 'text': 'ddei.property.ds.pointType41', 'value': 41 },
|
||||
{ 'text': 'ddei.property.ds.pointType5', 'value': 5 },
|
||||
{ 'text': 'ddei.property.ds.pointType51', 'value': 51 },
|
||||
{ 'text': 'ddei.property.ds.pointType6', 'value': 6 },
|
||||
{ 'text': 'ddei.property.ds.pointType61', 'value': 61 },
|
||||
],
|
||||
'itemStyle': { width: 80, height: 25, col: 2, row: 6 },
|
||||
'dataType': 'integer',
|
||||
@ -167,7 +167,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'ep.weight',
|
||||
'name': '大小',
|
||||
'name': 'ddei.property.weight',
|
||||
'desc': '终点的箭头的宽度',
|
||||
'controlType': 'range',
|
||||
'min': 1,
|
||||
@ -179,7 +179,7 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'round',
|
||||
'name': '圆角',
|
||||
'name': 'ddei.property.round',
|
||||
'desc': '图形的边框的是否为为圆角的弧度',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -190,17 +190,17 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'jumpline',
|
||||
'name': '跳线',
|
||||
'name': 'ddei.jumpline',
|
||||
'desc': '用来控制当前线段的跳线类型',
|
||||
'controlType': 'radio',
|
||||
'dataSource': [{ 'text': '是', 'value': 1 }, { 'text': '否', 'value': 2 }, { 'text': '全局', 'value': 0 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': 1 }, { 'text': 'ddei.property.ds.no', 'value': 2 }, { 'text': 'ddei.property.ds.global', 'value': 0 }],
|
||||
'dataType': 'integer',
|
||||
'defaultValue': 0,
|
||||
'type': 1,
|
||||
},
|
||||
{
|
||||
'code': 'id',
|
||||
'name': 'id',
|
||||
'name': 'ddei.property.id',
|
||||
'desc': '控件在画布的全局唯一ID',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
@ -208,11 +208,11 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'code',
|
||||
'name': '编码',
|
||||
'name': 'ddei.property.code',
|
||||
'desc': '控件在业务上的唯一编码,缺省和控件ID一致',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
'defaultValue': '编码001',
|
||||
'defaultValue': 'ddei.property.code001',
|
||||
},
|
||||
],
|
||||
/**
|
||||
@ -220,12 +220,12 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["type", "weight", "color", "fill.weight", "fill.color", "dash", "opacity",
|
||||
"sp.type", "sp.weight", "ep.type", "ep.weight", "round", "jumpline"
|
||||
]
|
||||
@ -233,11 +233,11 @@ export default {
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "属性",
|
||||
name: "ddei.propertyName",
|
||||
icon: 'icon-edit-properies',
|
||||
subGroups: [
|
||||
{
|
||||
name: "属性",
|
||||
name: "ddei.propertyName",
|
||||
attrs: ["code"]
|
||||
},
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100500',
|
||||
'name': '多边形',
|
||||
'name': 'ddei.control.polygon',
|
||||
'code': 'polygon',
|
||||
'desc': '多个3-N边构成的多边形',
|
||||
'type': 'DDeiPolygon',
|
||||
@ -20,7 +20,7 @@ export default {
|
||||
attrs: [
|
||||
{
|
||||
'code': 'width',
|
||||
'name': '宽度',
|
||||
'name': 'ddei.property.width',
|
||||
'desc': '控件的宽度',
|
||||
'controlType': 'text',
|
||||
'dataSource': null,
|
||||
@ -29,7 +29,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'height',
|
||||
'name': '高度',
|
||||
'name': 'ddei.property.height',
|
||||
'desc': '控件的高度',
|
||||
'controlType': 'text',
|
||||
'dataSource': null,
|
||||
@ -38,11 +38,11 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'border.type',
|
||||
'name': '边框类型',
|
||||
'name': 'ddei.property.borderType',
|
||||
'desc': '用来快速选择边框的类型,以便于套用相关的样式',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '无线条', 'value': 0 }, { 'text': '实线', 'value': 1 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': 0 }, { 'text': 'ddei.property.ds.line', 'value': 1 }],
|
||||
'defaultValue': 1,
|
||||
'hiddenTitle': true,
|
||||
'display': 'column',
|
||||
@ -50,7 +50,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'border.color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '图形的边框显示颜色,在高级设置中,可以分别设置不同方向边框的样式',
|
||||
'controlType': 'color-combo',
|
||||
|
||||
@ -59,7 +59,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的边框的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -72,7 +72,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderWidth',
|
||||
'name': '粗细',
|
||||
'name': 'ddei.property.width',
|
||||
'desc': '图形的边框的粗细,0为无边框',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -84,7 +84,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderDash',
|
||||
'name': '虚线',
|
||||
'name': 'ddei.property.dash',
|
||||
'desc': '图形的边框的是否为虚线样式,虚线由长短不一的线段构成',
|
||||
'controlType': 'border-dash',
|
||||
'dataSource': [
|
||||
@ -108,7 +108,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderRound',
|
||||
'name': '圆角',
|
||||
'name': 'ddei.property.round',
|
||||
'desc': '图形的边框的是否为为圆角的弧度',
|
||||
'controlType': 'range',
|
||||
'mapping': ["border.round"],
|
||||
@ -120,11 +120,11 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.type',
|
||||
'name': '填充类型',
|
||||
'name': 'ddei.property.fillType',
|
||||
'desc': '图形填充的类型快速设置',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '无', 'value': 0 }, { 'text': '纯色', 'value': 1 }, { 'text': '图片', 'value': 2 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': 0 }, { 'text': 'ddei.property.ds.color', 'value': 1 }, { 'text': 'ddei.property.ds.image', 'value': 2 }],
|
||||
'defaultValue': 1,
|
||||
'type': 1,
|
||||
'orderNo': 2,
|
||||
@ -134,7 +134,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '图形的填充颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -142,7 +142,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.image',
|
||||
'name': '图片',
|
||||
'name': 'ddei.property.image',
|
||||
'desc': '图形的填充图片',
|
||||
'controlType': 'image',
|
||||
'dataType': 'string',
|
||||
@ -151,7 +151,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fill.opacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的填充的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -165,7 +165,7 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'font.family',
|
||||
'name': '字体',
|
||||
'name': 'ddei.property.font',
|
||||
'desc': '文本的字体名称',
|
||||
'controlType': 'combox',
|
||||
'dataType': 'string',
|
||||
@ -183,7 +183,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'font.size',
|
||||
'name': '大小',
|
||||
'name': 'ddei.property.size',
|
||||
'desc': '文本的字体大小',
|
||||
'max': 50,
|
||||
'min': 5,
|
||||
@ -194,7 +194,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'font.color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '文本的颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -202,7 +202,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fontAlign',
|
||||
'name': '对齐',
|
||||
'name': 'ddei.property.align',
|
||||
'desc': '文本的对齐,采用九宫格式设置',
|
||||
'controlType': 'align-type',
|
||||
'mapping': [],
|
||||
@ -210,26 +210,26 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.feed',
|
||||
'name': '换行',
|
||||
'name': 'ddei.property.feed',
|
||||
'desc': '自动换行',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '1',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.scale',
|
||||
'name': '超出范围',
|
||||
'name': 'ddei.property.outSize',
|
||||
'desc': '文本的超出范围后的策略',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '隐藏', 'value': '0' }, { 'text': '省略', 'value': '2' }, { 'text': '缩小', 'value': '1' }, { 'text': '扩展', 'value': '3' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.hidden', 'value': '0' }, { 'text': 'ddei.property.ds.ellipsis', 'value': '2' }, { 'text': 'ddei.property.ds.narrow', 'value': '1' }, { 'text': 'ddei.property.ds.ext', 'value': '3' }],
|
||||
'defaultValue': '0',
|
||||
'cascadeDisplay': { 3: { show: ['textStyle.lockWidth', "textStyle.paddingWeight"], hidden: [] }, default: { hidden: ['textStyle.lockWidth', "textStyle.paddingWeight"] }, empty: { hidden: ['textStyle.lockWidth', "textStyle.paddingWeight"] }, notempty: { hidden: ['textStyle.lockWidth', "textStyle.paddingWeight"] } }
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.lockWidth',
|
||||
'name': '锁定宽度',
|
||||
'name': 'ddei.property.lockWidth',
|
||||
'desc': '超范围自动扩展的情况下锁定宽度',
|
||||
'controlType': 'switch-checkbox',
|
||||
'dataType': 'integer',
|
||||
@ -240,7 +240,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.paddingWeight',
|
||||
'name': '间隔大小',
|
||||
'name': 'ddei.property.paddingWeight',
|
||||
'desc': '超范围自动扩展的情况下保留的宽度',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -251,61 +251,61 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.hollow',
|
||||
'name': '镂空',
|
||||
'name': 'ddei.property.hollow',
|
||||
'desc': '文本的镂空显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.bold',
|
||||
'name': '粗体',
|
||||
'name': 'ddei.property.bold',
|
||||
'desc': '文本的加粗显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.italic',
|
||||
'name': '斜体',
|
||||
'name': 'ddei.property.italic',
|
||||
'desc': '文本的斜体显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.underline',
|
||||
'name': '下划线',
|
||||
'name': 'ddei.property.underline',
|
||||
'desc': '文本的下划线显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.deleteline',
|
||||
'name': '删除线',
|
||||
'name': 'ddei.property.deleteline',
|
||||
'desc': '文本的删除线显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.topline',
|
||||
'name': '顶部线',
|
||||
'name': 'ddei.property.topline',
|
||||
'desc': '文本的删除线显示',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.bgcolor',
|
||||
'name': '文字背景',
|
||||
'name': 'ddei.property.textbg',
|
||||
'desc': '文本的背景颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -313,17 +313,17 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.subtype',
|
||||
'name': '标注类型',
|
||||
'name': 'ddei.property.subtype',
|
||||
'desc': '文本的标注类型',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'integer',
|
||||
'dataSource': [{ 'text': '正常', 'value': 0 }, { 'text': '上标', 'value': 1 }, { 'text': '中标', 'value': 2 }, { 'text': '下标', 'value': 3 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.subType', 'value': 0 }, { 'text': 'ddei.property.ds.subType1', 'value': 1 }, { 'text': 'ddei.property.ds.subType2', 'value': 2 }, { 'text': 'ddei.property.ds.subType3', 'value': 3 }],
|
||||
'defaultValue': 0,
|
||||
},
|
||||
|
||||
{
|
||||
'code': 'textStyle.align',
|
||||
'name': '水平对齐',
|
||||
'name': 'ddei.property.textAlign',
|
||||
'desc': '文本的水平对齐',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -331,7 +331,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.valign',
|
||||
'name': '垂直对齐',
|
||||
'name': 'ddei.property.textValign',
|
||||
'desc': '文本的垂直对齐',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -339,7 +339,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.hspace',
|
||||
'name': '水平间距',
|
||||
'name': 'ddei.property.hspace',
|
||||
'desc': '文本之间的水平间距',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -350,7 +350,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.vspace',
|
||||
'name': '垂直间距',
|
||||
'name': 'ddei.property.vspace',
|
||||
'desc': '文本之间的垂直间距',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -361,7 +361,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'borderCreatingOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的边框的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'text',
|
||||
'mapping': ["border.creating.top.opacity", "border.creating.right.opacity", "border.creating.bottom.opacity", "border.creating.left.opacity"],
|
||||
@ -371,7 +371,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fillCreatingOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的填充的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'text',
|
||||
'mapping': ["fill.creating.opacity"],
|
||||
@ -381,7 +381,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'imageCreatingOpacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '图形的填充图片的透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'text',
|
||||
'mapping': ["fill.creating.opacity"],
|
||||
@ -391,7 +391,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'id',
|
||||
'name': 'id',
|
||||
'name': 'ddei.property.id',
|
||||
'desc': '控件在画布的全局唯一ID',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
@ -399,15 +399,15 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'code',
|
||||
'name': '编码',
|
||||
'name': 'ddei.property.code',
|
||||
'desc': '控件在业务上的唯一编码,缺省和控件ID一致',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
'defaultValue': '编码001',
|
||||
'defaultValue': 'ddei.property.code001',
|
||||
},
|
||||
{
|
||||
'code': 'text',
|
||||
'name': '文本',
|
||||
'name': 'ddei.property.text',
|
||||
'desc': '控件的主体显示文本',
|
||||
'controlType': 'textarea',
|
||||
'defaultValue': '',
|
||||
@ -417,18 +417,18 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.type',
|
||||
'name': '格式',
|
||||
'name': 'ddei.format',
|
||||
'desc': '文本的显示格式',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'integer',
|
||||
'dataSource': [{ 'text': '文本', 'value': 0 }, { 'text': '数字', 'value': 1 }, { 'text': '金额', 'value': 2 }, { 'text': '时间', 'value': 3 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.text', 'value': 0 }, { 'text': 'ddei.property.ds.decimal', 'value': 1 }, { 'text': 'ddei.property.ds.money', 'value': 2 }, { 'text': 'ddei.property.ds.time', 'value': 3 }],
|
||||
'defaultValue': 0,
|
||||
'type': [1, 2],
|
||||
'cascadeDisplay': { 1: { show: ['fmt.nscale', 'fmt.tmark'], hidden: ['fmt.mmark', 'fmt.munit', 'fmt.dtype', 'fmt.format', 'fmt.mrmb'] }, 2: { show: ['fmt.nscale', 'fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.mrmb'], hidden: ['fmt.dtype', 'fmt.format'] }, 3: { show: ['fmt.dtype', 'fmt.format'], hidden: ['fmt.mrmb', 'fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.nscale'] }, default: { hidden: ['fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.nscale', 'fmt.dtype', 'fmt.format', 'fmt.mrmb'] }, empty: { hidden: ['fmt.tmark', 'fmt.mmark', 'fmt.munit', 'fmt.nscale', 'fmt.dtype', 'fmt.format', 'fmt.mrmb'] } },
|
||||
},
|
||||
{
|
||||
'code': 'fmt.nscale',
|
||||
'name': '小数位数',
|
||||
'name': 'ddei.property.nscale',
|
||||
'desc': '格式化小数位数',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -439,7 +439,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.tmark',
|
||||
'name': '千分符',
|
||||
'name': 'ddei.property.tmark',
|
||||
'desc': '显示逗号千分符',
|
||||
'controlType': 'switch-checkbox',
|
||||
'dataType': 'integer',
|
||||
@ -450,10 +450,10 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.mmark',
|
||||
'name': '货币符号',
|
||||
'name': 'ddei.property.mmark',
|
||||
'desc': '显示货币符号',
|
||||
'controlType': 'combox',
|
||||
'dataSource': [{ 'text': '无', 'value': '' }, { 'text': '人民币', 'value': '¥' }, { 'text': '美元', 'value': '$' }, { 'text': '欧元', 'value': '€' }, { 'text': '英镑', 'value': '£' }, { 'text': '日元', 'value': '¥' }, { 'text': '卢布', 'value': '₽' }, { 'text': '法郎', 'value': '€' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': '' }, { 'text': 'ddei.property.ds.money1', 'value': '¥' }, { 'text': 'ddei.property.ds.money2', 'value': '$' }, { 'text': 'ddei.property.ds.money3', 'value': '€' }, { 'text': 'ddei.property.ds.money4', 'value': '£' }, { 'text': 'ddei.property.ds.money5', 'value': '¥' }, { 'text': 'ddei.property.ds.money6', 'value': '₽' }, { 'text': 'ddei.property.ds.money7', 'value': '€' }],
|
||||
'defaultValue': '',
|
||||
'dataType': 'string',
|
||||
'type': [1, 2],
|
||||
@ -461,7 +461,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.munit',
|
||||
'name': '货币单位',
|
||||
'name': 'ddei.property.moneyUnit',
|
||||
'desc': '显示在后方的货币单位',
|
||||
'controlType': 'text',
|
||||
'defaultValue': '',
|
||||
@ -470,7 +470,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.mrmb',
|
||||
'name': '人民币大写',
|
||||
'name': 'ddei.property.moneyUpCase',
|
||||
'desc': '显示为人民币大写',
|
||||
'controlType': 'switch-checkbox',
|
||||
'dataType': 'integer',
|
||||
@ -481,10 +481,10 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.dtype',
|
||||
'name': '日期类型',
|
||||
'name': 'ddei.property.dateType',
|
||||
'desc': '日期和时间的格式化类型',
|
||||
'controlType': 'radio',
|
||||
'dataSource': [{ 'text': '2023-01-01', 'value': 1 }, { 'text': '23:59:59', 'value': 2 }, { 'text': '2023-01-01 23:59:59', 'value': 3 }, { 'text': '自定义', 'value': 99 }],
|
||||
'dataSource': [{ 'text': '2023-01-01', 'value': 1 }, { 'text': '23:59:59', 'value': 2 }, { 'text': '2023-01-01 23:59:59', 'value': 3 }, { 'text': 'ddei.property.ds.custom', 'value': 99 }],
|
||||
'dataType': 'integer',
|
||||
'defaultValue': 1,
|
||||
'hiddenTitle': true,
|
||||
@ -493,7 +493,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'fmt.format',
|
||||
'name': '格式化',
|
||||
'name': 'ddei.property.format',
|
||||
'desc': '自定义格式化字符串',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
@ -506,20 +506,20 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.border",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
{
|
||||
name: "文本",
|
||||
name: "ddei.text",
|
||||
attrs: ["font.family", "font.size", "font.color", "fontAlign", "textStyle.feed"
|
||||
, "textStyle.scale", "textStyle.lockWidth","textStyle.paddingWeight", "textStyle.hollow", "textStyle.bold", "textStyle.italic"
|
||||
, "textStyle.underline", "textStyle.deleteline", "textStyle.topline", "textStyle.hspace", "textStyle.vspace"]
|
||||
@ -527,11 +527,11 @@ export default {
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "数据",
|
||||
name: "ddei.data",
|
||||
icon: 'icon-edit-properies',
|
||||
subGroups: [
|
||||
{
|
||||
name: "基础信息",
|
||||
name: "ddei.basic",
|
||||
attrs: ["code", "text", "fmt.type", "fmt.nscale", "fmt.tmark", "fmt.mmark", "fmt.munit", "fmt.mrmb", "fmt.dtype", "fmt.format"]
|
||||
},
|
||||
|
||||
|
||||
@ -266,7 +266,7 @@ export const styles = {
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 10,
|
||||
'visiable': true
|
||||
@ -274,12 +274,12 @@ export const styles = {
|
||||
{
|
||||
'id': '100302206',
|
||||
'code': 'textStyle.scale',
|
||||
'name': '缩小字体',
|
||||
'name': 'ddei.property.outSize',
|
||||
'desc': '文本的自动缩小字体填充',
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 11,
|
||||
'visiable': true
|
||||
@ -287,12 +287,12 @@ export const styles = {
|
||||
{
|
||||
'id': '100302207',
|
||||
'code': 'textStyle.hollow',
|
||||
'name': '镂空',
|
||||
'name': 'ddei.property.hollow',
|
||||
'desc': '文本的镂空显示',
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 9,
|
||||
'visiable': true
|
||||
@ -300,12 +300,12 @@ export const styles = {
|
||||
{
|
||||
'id': '100302208',
|
||||
'code': 'textStyle.bold',
|
||||
'name': '粗体',
|
||||
'name': 'ddei.property.bold',
|
||||
'desc': '文本的加粗显示',
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 5,
|
||||
'visiable': true
|
||||
@ -313,12 +313,12 @@ export const styles = {
|
||||
{
|
||||
'id': '100302209',
|
||||
'code': 'textStyle.italic',
|
||||
'name': '斜体',
|
||||
'name': 'ddei.property.italic',
|
||||
'desc': '文本的斜体显示',
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 6,
|
||||
'visiable': true
|
||||
@ -326,12 +326,12 @@ export const styles = {
|
||||
{
|
||||
'id': '100302210',
|
||||
'code': 'textStyle.underline',
|
||||
'name': '下划线',
|
||||
'name': 'ddei.property.underline',
|
||||
'desc': '文本的下划线显示',
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 7,
|
||||
'visiable': true
|
||||
@ -339,12 +339,12 @@ export const styles = {
|
||||
{
|
||||
'id': '100302211',
|
||||
'code': 'textStyle.deleteline',
|
||||
'name': '删除线',
|
||||
'name': 'ddei.property.deleteline',
|
||||
'desc': '文本的删除线显示',
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 8,
|
||||
'visiable': true
|
||||
@ -352,12 +352,12 @@ export const styles = {
|
||||
{
|
||||
'id': '100302212',
|
||||
'code': 'textStyle.topline',
|
||||
'name': '顶部线',
|
||||
'name': 'ddei.property.topline',
|
||||
'desc': '文本的删除线显示',
|
||||
'group': '文本',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '是', 'value': '1' }, { 'text': '否', 'value': '0' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.yes', 'value': '1' }, { 'text': 'ddei.property.ds.no', 'value': '0' }],
|
||||
'defaultValue': '0',
|
||||
'orderNo': 8,
|
||||
'visiable': true
|
||||
@ -366,7 +366,7 @@ export const styles = {
|
||||
{
|
||||
'id': '100302303',
|
||||
'code': 'textStyle.align',
|
||||
'name': '水平对齐',
|
||||
'name': 'ddei.property.textAlign',
|
||||
'desc': '文本的水平对齐',
|
||||
'group': '文本',
|
||||
'controlType': 'text',
|
||||
@ -377,7 +377,7 @@ export const styles = {
|
||||
{
|
||||
'id': '100302304',
|
||||
'code': 'textStyle.valign',
|
||||
'name': '垂直对齐',
|
||||
'name': 'ddei.property.textValign',
|
||||
'desc': '文本的垂直对齐',
|
||||
'group': '文本',
|
||||
'controlType': 'text',
|
||||
@ -400,7 +400,7 @@ export const datas = {
|
||||
{
|
||||
'id': '100302401',
|
||||
'code': 'id',
|
||||
'name': 'id',
|
||||
'name': 'ddei.property.id',
|
||||
'desc': '控件在画布的全局唯一ID',
|
||||
'group': '布局与文本',
|
||||
'controlType': 'text',
|
||||
@ -412,11 +412,11 @@ export const datas = {
|
||||
{
|
||||
'id': '100302403',
|
||||
'code': 'text',
|
||||
'name': '文本',
|
||||
'name': 'ddei.property.text',
|
||||
'desc': '控件的主体显示文本',
|
||||
'group': '布局与文本',
|
||||
'controlType': 'textarea',
|
||||
'defaultValue': '文本',
|
||||
'defaultValue': 'ddei.property.text',
|
||||
'hiddenTitle': false,
|
||||
'display': 'column',
|
||||
'dataType': 'string',
|
||||
|
||||
@ -198,7 +198,7 @@ export const datas = {
|
||||
{
|
||||
'id': '100301401',
|
||||
'code': 'id',
|
||||
'name': 'id',
|
||||
'name': 'ddei.property.id',
|
||||
'desc': '控件在画布的全局唯一ID',
|
||||
'group': '基础信息',
|
||||
'controlType': 'text',
|
||||
@ -210,12 +210,12 @@ export const datas = {
|
||||
{
|
||||
'id': '100301402',
|
||||
'code': 'code',
|
||||
'name': '编码',
|
||||
'name': 'ddei.property.code',
|
||||
'desc': '控件在业务上的唯一编码,缺省和控件ID一致',
|
||||
'group': '基础信息',
|
||||
'controlType': 'text',
|
||||
'dataType': 'string',
|
||||
'defaultValue': '编码001',
|
||||
'defaultValue': 'ddei.property.code001',
|
||||
'orderNo': 2,
|
||||
'visiable': true
|
||||
},
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100003',
|
||||
'name': '圆形',
|
||||
'name': 'ddei.control.circle',
|
||||
'code': 'circle',
|
||||
'desc': '由极坐标系构造的圆形,带有text',
|
||||
'from': '100103',
|
||||
@ -20,15 +20,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100103',
|
||||
'name': '圆形',
|
||||
'name': 'ddei.control.circle',
|
||||
'code': 'circle',
|
||||
'desc': '由极坐标系构造的圆形',
|
||||
'from': '100500',
|
||||
@ -48,15 +48,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100501',
|
||||
'name': '正方体',
|
||||
'name': 'ddei.control.cube',
|
||||
'code': 'cube',
|
||||
'desc': '正方体',
|
||||
'from': '100500',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100006',
|
||||
'name': '椭圆',
|
||||
'name': 'ddei.control.ellipse',
|
||||
'code': 'ellipse',
|
||||
'desc': '由极坐标系构造的椭圆形',
|
||||
'from': '100500',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100005',
|
||||
'name': '圆角矩形',
|
||||
'name': 'ddei.control.rectangleRound',
|
||||
'code': 'rect',
|
||||
'desc': '由4个点组成的矩形',
|
||||
'from': '100002',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100002',
|
||||
'name': '长方形-带文本',
|
||||
'name': 'ddei.control.rectangle',
|
||||
'code': 'rect',
|
||||
'desc': '由4个点组成的长方形',
|
||||
'from': '100008',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100008',
|
||||
'name': '长方形',
|
||||
'name': 'ddei.control.rectangle',
|
||||
'code': 'rect',
|
||||
'desc': '由4个点组成的长方形',
|
||||
'from': '100000',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100004',
|
||||
'name': '圆角正方形',
|
||||
'name': 'ddei.control.squareRound',
|
||||
'code': 'square',
|
||||
'desc': '由4个点组成的正方形',
|
||||
'from': '100001',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100001',
|
||||
'name': '正方形-带文本',
|
||||
'name': 'ddei.control.square',
|
||||
'code': 'square',
|
||||
'desc': '由4个点组成的正方形',
|
||||
'from': '100000',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100000',
|
||||
'name': '正方形',
|
||||
'name': 'ddei.control.square',
|
||||
'code': 'square',
|
||||
'desc': '由4个点组成的正方形',
|
||||
'from': '100500',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': '100200',
|
||||
'name': '文本',
|
||||
'name': 'ddei.control.text',
|
||||
'code': 'text',
|
||||
'desc': '跟随内容变化大小的文本',
|
||||
'from': '100002',
|
||||
@ -17,39 +17,39 @@ export default {
|
||||
fill: {
|
||||
type: 0
|
||||
},
|
||||
text: "文本",
|
||||
text: "ddei.property.text",
|
||||
ext: {
|
||||
/**
|
||||
* 定义分组,用于属性编辑
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "文本",
|
||||
name: "ddei.text",
|
||||
attrs: ["font.family", "font.size", "font.color", "fontAlign", "textStyle.feed"
|
||||
, "textStyle.scale", "textStyle.lockWidth","textStyle.paddingWeight", "textStyle.hollow", "textStyle.bold", "textStyle.italic"
|
||||
, "textStyle.underline", "textStyle.deleteline", "textStyle.topline", "textStyle.hspace", "textStyle.vspace"]
|
||||
},
|
||||
{
|
||||
name: "边框",
|
||||
name: "ddei.border",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "数据",
|
||||
name: "ddei.data",
|
||||
icon: 'icon-edit-properies',
|
||||
subGroups: [
|
||||
{
|
||||
name: "数据属性",
|
||||
name: "ddei.basic",
|
||||
attrs: ["code", "text", "fmt.type", "fmt.nscale", "fmt.tmark", "fmt.mmark", "fmt.munit", "fmt.mrmb", "fmt.dtype", "fmt.format"]
|
||||
},
|
||||
|
||||
@ -61,7 +61,7 @@ export default {
|
||||
attrs: [
|
||||
{
|
||||
'code': 'textStyle.paddingWeight',
|
||||
'name': '间隔大小',
|
||||
'name': 'ddei.property.paddingWeight',
|
||||
'desc': '超范围自动扩展的情况下保留的宽度',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -72,11 +72,11 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.scale',
|
||||
'name': '超出范围',
|
||||
'name': 'ddei.property.outSize',
|
||||
'desc': '文本的超出范围后的策略',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '隐藏', 'value': '0' }, { 'text': '省略', 'value': '2' }, { 'text': '缩小', 'value': '1' }, { 'text': '扩展', 'value': '3' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.hidden', 'value': '0' }, { 'text': 'ddei.property.ds.ellipsis', 'value': '2' }, { 'text': 'ddei.property.ds.narrow', 'value': '1' }, { 'text': 'ddei.property.ds.ext', 'value': '3' }],
|
||||
'defaultValue': 3,
|
||||
'cascadeDisplay': { 3: { show: ['textStyle.lockWidth', "textStyle.paddingWeight"], hidden: [] }, default: { show: ['textStyle.lockWidth', "textStyle.paddingWeight"] }, empty: { hidden: ['textStyle.lockWidth', "textStyle.paddingWeight"] }, notempty: { hidden: ['textStyle.lockWidth', "textStyle.paddingWeight"] } }
|
||||
}
|
||||
|
||||
@ -14,15 +14,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
]
|
||||
|
||||
@ -24,15 +24,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
]
|
||||
|
||||
@ -17,15 +17,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
]
|
||||
|
||||
@ -24,15 +24,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash"]
|
||||
},
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -182,11 +182,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -101,11 +101,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -69,11 +69,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -101,11 +101,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -67,11 +67,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -102,11 +102,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
|
||||
|
||||
@ -181,7 +181,7 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
@ -191,22 +191,22 @@ export default {
|
||||
, "textStyle.underline", "textStyle.deleteline", "textStyle.topline", "textStyle.hspace", "textStyle.vspace"]
|
||||
},
|
||||
{
|
||||
name: "边框",
|
||||
name: "ddei.border",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "数据",
|
||||
name: "ddei.data",
|
||||
icon: 'icon-edit-properies',
|
||||
subGroups: [
|
||||
{
|
||||
name: "数据属性",
|
||||
name: "ddei.basic",
|
||||
attrs: ["code", "text", "fmt.type", "fmt.nscale", "fmt.tmark", "fmt.mmark", "fmt.munit", "fmt.mrmb", "fmt.dtype", "fmt.format"]
|
||||
},
|
||||
|
||||
@ -218,7 +218,7 @@ export default {
|
||||
attrs: [
|
||||
{
|
||||
'code': 'textStyle.paddingWeight',
|
||||
'name': '间隔大小',
|
||||
'name': 'ddei.property.paddingWeight',
|
||||
'desc': '超范围自动扩展的情况下保留的宽度',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -229,11 +229,11 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'textStyle.scale',
|
||||
'name': '超出范围',
|
||||
'desc': '文本的超出范围后的策略',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '隐藏', 'value': '0' }, { 'text': '省略', 'value': '2' }, { 'text': '缩小', 'value': '1' }, { 'text': '扩展', 'value': '3' }],
|
||||
'name': 'ddei.property.outSize',
|
||||
'desc': '文本的超出范围后的策略',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.hidden', 'value': '0' }, { 'text': 'ddei.property.ds.ellipsis', 'value': '2' }, { 'text': 'ddei.property.ds.narrow', 'value': '1' }, { 'text': 'ddei.property.ds.ext', 'value': '3' }],
|
||||
'defaultValue': 3,
|
||||
'cascadeDisplay': { 3: { show: ['textStyle.lockWidth', "textStyle.paddingWeight"], hidden: [] }, default: { show: ['textStyle.lockWidth', "textStyle.paddingWeight"] }, empty: { hidden: ['textStyle.lockWidth', "textStyle.paddingWeight"] }, notempty: { hidden: ['textStyle.lockWidth', "textStyle.paddingWeight"] } }
|
||||
}
|
||||
|
||||
@ -98,15 +98,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash"]
|
||||
},
|
||||
|
||||
|
||||
@ -80,15 +80,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash"]
|
||||
},
|
||||
|
||||
|
||||
@ -98,15 +98,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash"]
|
||||
},
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': 'DDeiLayer',
|
||||
'name': '图层',
|
||||
'name': 'ddei.layerName',
|
||||
'code': 'layer',
|
||||
'desc': '整体图层的属性',
|
||||
'type': 'DDeiLayer',
|
||||
@ -19,11 +19,11 @@ export default {
|
||||
attrs: [
|
||||
{
|
||||
'code': 'bg.type',
|
||||
'name': '背景',
|
||||
'name': 'ddei.property.background',
|
||||
'desc': '背景的类型',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '无', 'value': -1 }, { 'text': '纯色', 'value': 1 }, { 'text': '图片', 'value': 2 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': -1 }, { 'text': 'ddei.property.ds.color', 'value': 1 }, { 'text': 'ddei.property.ds.image', 'value': 2 }],
|
||||
'defaultValue': 1,
|
||||
'type': 1,
|
||||
'cascadeDisplay': { 1: { show: ['bg.color', 'bg.opacity'], hidden: ['bg.image', 'bg.imageMode', 'bg.imageScale', 'bg.imageAlign'] }, 2: { show: ['bg.image', 'bg.imageMode', 'bg.imageScale', 'bg.imageAlign'], hidden: ['bg.color'] }, 0: { hidden: ['bg.opacity', 'bg.color', 'bg.image', 'bg.imageMode', 'bg.imageScale', 'bg.imageAlign'] }, default: { show: ['bg.color', 'bg.opacity'], hidden: ['bg.image', 'bg.imageMode', 'bg.imageScale', 'bg.imageAlign'] } },
|
||||
@ -33,7 +33,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'bg.color',
|
||||
'name': '背景颜色',
|
||||
'name': 'ddei.property.backgroundColor',
|
||||
'desc': '背景的颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -42,7 +42,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'bg.image',
|
||||
'name': '背景图片',
|
||||
'name': 'ddei.property.backgroundImage',
|
||||
'desc': '背景的图片',
|
||||
'controlType': 'image',
|
||||
'dataType': 'string',
|
||||
@ -51,7 +51,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'bg.opacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '背景的透明度',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -64,18 +64,18 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'bg.imageMode',
|
||||
'name': '模式',
|
||||
'name': 'ddei.property.bgImageMode',
|
||||
'desc': '背景的图片的模式',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'integer',
|
||||
'dataSource': [{ 'text': '原始', 'value': 0 }, { 'text': '缩放', 'value': 1 }, { 'text': '填充', 'value': 2 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.original', 'value': 0 }, { 'text': 'ddei.property.ds.scale', 'value': 1 }, { 'text': 'ddei.property.ds.fill', 'value': 2 }],
|
||||
'cascadeDisplay': { 1: { show: ['bg.imageScale', 'bg.imageAlign'] }, 2: { hidden: ['bg.imageScale', 'bg.imageAlign'] }, empty: { hidden: ['bg.imageScale'], show: ['bg.imageAlign'] } },
|
||||
'defaultValue': 2,
|
||||
'type': 1
|
||||
},
|
||||
{
|
||||
'code': 'bg.imageScale',
|
||||
'name': '缩放比例',
|
||||
'name': 'ddei.property.bgImageScale',
|
||||
'desc': '背景的图片的缩放比例',
|
||||
'controlType': 'range',
|
||||
'min': 0.01,
|
||||
@ -88,7 +88,7 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'bg.imageAlign',
|
||||
'name': '位置',
|
||||
'name': 'ddei.property.bgImagePosition',
|
||||
'desc': '背景的图片布局方位',
|
||||
'controlType': 'align-type',
|
||||
'dataType': 'string',
|
||||
@ -102,11 +102,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "背景",
|
||||
name: "ddei.background",
|
||||
icon: 'icon-background',
|
||||
subGroups: [
|
||||
{
|
||||
name: "背景",
|
||||
name: "ddei.background",
|
||||
attrs: ["bg.type", "bg.color", "bg.image", "bg.opacity", "bg.imageMode", "bg.imageScale", "bg.imageAlign"]
|
||||
},
|
||||
]
|
||||
|
||||
@ -142,11 +142,11 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash"]
|
||||
},
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'id': 'DDeiStage',
|
||||
'name': '画布',
|
||||
'name': 'ddei.control.stage',
|
||||
'code': 'stage',
|
||||
'desc': '整体画布的属性',
|
||||
'type': 'DDeiStage',
|
||||
@ -19,7 +19,7 @@ export default {
|
||||
attrs: [
|
||||
{
|
||||
'code': 'paper.type',
|
||||
'name': '纸张类型',
|
||||
'name': 'ddei.property.paperType',
|
||||
'desc': '用来快速选择纸张的类型,以便于套用相关的样式',
|
||||
'controlType': 'combox',
|
||||
'dataType': 'string',
|
||||
@ -33,12 +33,12 @@ export default {
|
||||
'canSearch': false,
|
||||
'itemStyle': { width: 170, align: 'left', paddingLeft: '10px', height: 25, col: 1, row: 8, imgWidth: 20, imgHeight: 20 },
|
||||
'defaultValue': 'A4',
|
||||
'cascadeDisplay': { '无': { hidden: ['paper.direct', 'paper.width', 'paper.height', 'paper.unit'] }, '自定义': { show: ['paper.direct', 'paper.width', 'paper.height', 'paper.unit'] }, notempty: { show: ['paper.direct'], hidden: ['paper.width', 'paper.height', 'paper.unit'] }, empty: { hidden: ['paper.width', 'paper.height', 'paper.unit'] }, default: { hidden: ['paper.width', 'paper.height', 'paper.unit'] } },
|
||||
'cascadeDisplay': { 'ddei.property.ds.none': { hidden: ['paper.direct', 'paper.width', 'paper.height', 'paper.unit'] }, 'ddei.property.ds.custom': { show: ['paper.direct', 'paper.width', 'paper.height', 'paper.unit'] }, notempty: { show: ['paper.direct'], hidden: ['paper.width', 'paper.height', 'paper.unit'] }, empty: { hidden: ['paper.width', 'paper.height', 'paper.unit'] }, default: { hidden: ['paper.width', 'paper.height', 'paper.unit'] } },
|
||||
'type': 1,
|
||||
},
|
||||
{
|
||||
'code': 'paper.width',
|
||||
'name': '宽度',
|
||||
'name': 'ddei.property.width',
|
||||
'desc': '用来设置纸张的宽度,以便于套用相关的样式',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -47,7 +47,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'paper.height',
|
||||
'name': '高度',
|
||||
'name': 'ddei.property.height',
|
||||
'desc': '用来设置纸张的高度,以便于套用相关的样式',
|
||||
'controlType': 'text',
|
||||
'dataType': 'integer',
|
||||
@ -56,19 +56,19 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'paper.unit',
|
||||
'name': '单位',
|
||||
'name': 'ddei.property.unit',
|
||||
'desc': '用来设置纸张的宽高单位,以便于套用相关的样式',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '毫米', 'value': 'mm' }, { 'text': '厘米', 'value': 'cm' }, { 'text': '米', 'value': 'm' }, { 'text': '英寸', 'value': 'inch' }, { 'text': '像素', 'value': 'px' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.mm', 'value': 'mm' }, { 'text': 'ddei.property.ds.cm', 'value': 'cm' }, { 'text': 'ddei.property.ds.m', 'value': 'm' }, { 'text': 'ddei.property.ds.inch', 'value': 'inch' }, { 'text': 'ddei.property.ds.px', 'value': 'px' }],
|
||||
'defaultValue': 'mm',
|
||||
},
|
||||
{
|
||||
'code': 'paper.direct',
|
||||
'name': '方向',
|
||||
'name': 'ddei.property.direct',
|
||||
'desc': '用来设置纸张的方向,以便于套用相关的样式',
|
||||
'controlType': 'radio',
|
||||
'dataSource': [{ 'text': '纵向', 'value': 1 }, { 'text': '横向', 'value': 2 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.transverse', 'value': 1 }, { 'text': 'ddei.property.ds.portrait', 'value': 2 }],
|
||||
'dataType': 'integer',
|
||||
'defaultValue': 2,
|
||||
'type': 1,
|
||||
@ -76,10 +76,10 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'mark.type',
|
||||
'name': '水印类型',
|
||||
'name': 'ddei.property.markType',
|
||||
'desc': '用来快速选择水印的类型,以便于套用相关的样式',
|
||||
'controlType': 'radio',
|
||||
'dataSource': [{ 'text': '无水印', 'value': 0 }, { 'text': '文本', 'value': 1 }, { 'text': '图片', 'value': 2 }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': 0 }, { 'text': 'ddei.property.ds.text', 'value': 1 }, { 'text': 'ddei.property.ds.image', 'value': 2 }],
|
||||
'dataType': 'integer',
|
||||
'defaultValue': 0,
|
||||
'hiddenTitle': true,
|
||||
@ -90,7 +90,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'mark.data',
|
||||
'name': '水印',
|
||||
'name': 'ddei.property.mark',
|
||||
'desc': '当水印类型为1时,此字段将显示文本,当类行为2时,此字段显示为图片',
|
||||
'controlType': 'image',
|
||||
'dataType': 'string',
|
||||
@ -100,17 +100,17 @@ export default {
|
||||
|
||||
{
|
||||
'code': 'mark.direct',
|
||||
'name': '方向',
|
||||
'name': 'ddei.property.markDirect',
|
||||
'desc': '水印的显示方向',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '从左往右', 'value': '1' }, { 'text': '从右往左', 'value': '2' }, { 'text': '水平显示', 'value': '3' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.ltrd', 'value': '1' }, { 'text': 'ddei.property.ds.rtld', 'value': '2' }, { 'text': 'ddei.property.ds.horizontal', 'value': '3' }],
|
||||
'defaultValue': '1',
|
||||
'type': 1,
|
||||
},
|
||||
{
|
||||
'code': 'mark.opacity',
|
||||
'name': '透明度',
|
||||
'name': 'ddei.property.opacity',
|
||||
'desc': '透明度,0完全透明~1完全不透明',
|
||||
'controlType': 'range',
|
||||
'min': 0,
|
||||
@ -122,7 +122,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'mark.font.family',
|
||||
'name': '字体',
|
||||
'name': 'ddei.property.font',
|
||||
'desc': '文本的字体名称',
|
||||
'controlType': 'combox',
|
||||
'dataType': 'string',
|
||||
@ -140,7 +140,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'mark.font.size',
|
||||
'name': '大小',
|
||||
'name': 'ddei.property.size',
|
||||
'desc': '文本的字体大小',
|
||||
'max': 50,
|
||||
'min': 5,
|
||||
@ -151,7 +151,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'mark.font.color',
|
||||
'name': '颜色',
|
||||
'name': 'ddei.property.color',
|
||||
'desc': '文本的颜色',
|
||||
'controlType': 'color-combo',
|
||||
'dataType': 'string',
|
||||
@ -159,7 +159,7 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'ruler.display',
|
||||
'name': '标尺',
|
||||
'name': 'ddei.property.ruler',
|
||||
'desc': '是否显示标尺',
|
||||
'controlType': 'switch-checkbox',
|
||||
'dataType': 'integer',
|
||||
@ -171,28 +171,28 @@ export default {
|
||||
},
|
||||
{
|
||||
'code': 'ruler.unit',
|
||||
'name': '单位',
|
||||
'name': 'ddei.property.unit',
|
||||
'desc': '用来设置标尺单位样式',
|
||||
'controlType': 'combox',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '毫米', 'value': 'mm' }, { 'text': '厘米', 'value': 'cm' }, { 'text': '米', 'value': 'm' }, { 'text': '英寸', 'value': 'inch' }, { 'text': '像素', 'value': 'px' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.mm', 'value': 'mm' }, { 'text': 'ddei.property.ds.cm', 'value': 'cm' }, { 'text': 'ddei.property.ds.m', 'value': 'm' }, { 'text': 'ddei.property.ds.inch', 'value': 'inch' }, { 'text': 'ddei.property.ds.px', 'value': 'px' }],
|
||||
'itemStyle': { width: 80, height: 25, col: 2, row: 0, imgWidth: 20, imgHeight: 20 },
|
||||
'defaultValue': 'mm',
|
||||
'type': 1,
|
||||
},
|
||||
{
|
||||
'code': 'grid.display',
|
||||
'name': '网格',
|
||||
'name': 'ddei.property.grid',
|
||||
'desc': '设置网格线样式',
|
||||
'controlType': 'radio',
|
||||
'dataType': 'string',
|
||||
'dataSource': [{ 'text': '无', 'value': '0' }, { 'text': '线条', 'value': '1' }, { 'text': '点阵', 'value': '2' }],
|
||||
'dataSource': [{ 'text': 'ddei.property.ds.none', 'value': '0' }, { 'text': 'ddei.property.ds.line', 'value': '1' }, { 'text': 'ddei.property.ds.point', 'value': '2' }],
|
||||
'defaultValue': '1',
|
||||
'type': 1,
|
||||
},
|
||||
{
|
||||
'code': 'global.jumpline',
|
||||
'name': '跳线',
|
||||
'name': 'ddei.property.jumpline',
|
||||
'desc': '遇到线交叉时,展示跳线',
|
||||
'controlType': 'switch-checkbox',
|
||||
'dataType': 'integer',
|
||||
@ -208,19 +208,19 @@ export default {
|
||||
*/
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-setting',
|
||||
subGroups: [
|
||||
{
|
||||
name: "纸张",
|
||||
name: "ddei.paper",
|
||||
attrs: ["paper.type", "paper.width", "paper.height", "paper.unit", "paper.direct"]
|
||||
},
|
||||
{
|
||||
name: "水印",
|
||||
name: "ddei.mark",
|
||||
attrs: ["mark.type", "mark.data", "mark.direct", "mark.opacity", "mark.font.family", "mark.font.size", "mark.font.color"]
|
||||
},
|
||||
{
|
||||
name: "辅助功能",
|
||||
name: "ddei.assistant",
|
||||
attrs: ["ruler.display", "ruler.unit", "grid.display", "global.jumpline"]
|
||||
}
|
||||
|
||||
|
||||
@ -9,195 +9,162 @@ export default {
|
||||
'controls': [
|
||||
{
|
||||
'id': '100200',
|
||||
'name': '文本',
|
||||
'orderNo': 0,
|
||||
},
|
||||
|
||||
{
|
||||
'id': '100001',
|
||||
'name': '正方形',
|
||||
'orderNo': 1,
|
||||
},
|
||||
{
|
||||
'id': '100002',
|
||||
'name': '长方形',
|
||||
'orderNo': 2
|
||||
},
|
||||
|
||||
{
|
||||
'id': '100003',
|
||||
'name': '圆形',
|
||||
'orderNo': 3
|
||||
},
|
||||
{
|
||||
'id': '100004',
|
||||
'name': '圆角正方形',
|
||||
'orderNo': 4
|
||||
},
|
||||
{
|
||||
'id': '100005',
|
||||
'name': '圆角矩形',
|
||||
'orderNo': 5
|
||||
},
|
||||
{
|
||||
'id': '100006',
|
||||
'name': '椭圆',
|
||||
'text': '',
|
||||
'orderNo': 6
|
||||
},
|
||||
{
|
||||
'id': '100007',
|
||||
'name': '矩形边框',
|
||||
'text': '',
|
||||
'orderNo': 7
|
||||
},
|
||||
|
||||
{
|
||||
'id': '100010',
|
||||
'name': '三角形',
|
||||
'text': '',
|
||||
'orderNo': 10
|
||||
},
|
||||
{
|
||||
'id': '100011',
|
||||
'name': '直角三角形',
|
||||
'text': '',
|
||||
'orderNo': 11
|
||||
},
|
||||
{
|
||||
'id': '100012',
|
||||
'name': '直角三角形',
|
||||
'text': '',
|
||||
'orderNo': 12
|
||||
},
|
||||
{
|
||||
'id': '100013',
|
||||
'name': '圆角三角形',
|
||||
'text': '',
|
||||
'orderNo': 13
|
||||
},
|
||||
{
|
||||
'id': '100014',
|
||||
'name': '圆角三角形',
|
||||
'text': '',
|
||||
'orderNo': 14
|
||||
},
|
||||
{
|
||||
'id': '100015',
|
||||
'name': '圆角三角形',
|
||||
'text': '',
|
||||
'orderNo': 15
|
||||
},
|
||||
{
|
||||
'id': '100020',
|
||||
'name': '五边形',
|
||||
'orderNo': 20
|
||||
},
|
||||
{
|
||||
'id': '100021',
|
||||
'name': '圆角五边形',
|
||||
'text': '',
|
||||
'orderNo': 21
|
||||
},
|
||||
{
|
||||
'id': '100030',
|
||||
'name': '六边形',
|
||||
'text': '',
|
||||
'orderNo': 30
|
||||
},
|
||||
{
|
||||
'id': '100031',
|
||||
'name': '圆角六边形',
|
||||
'text': '',
|
||||
'orderNo': 31
|
||||
},
|
||||
{
|
||||
'id': '100040',
|
||||
'name': '菱形',
|
||||
'orderNo': 40
|
||||
},
|
||||
{
|
||||
'id': '100041',
|
||||
'name': '圆角菱形',
|
||||
'text': '',
|
||||
'orderNo': 41
|
||||
},
|
||||
{
|
||||
'id': '100050',
|
||||
'name': '平行四边形',
|
||||
'text': '',
|
||||
'orderNo': 50
|
||||
},
|
||||
{
|
||||
'id': '100051',
|
||||
'name': '平行四边形',
|
||||
'text': '',
|
||||
'orderNo': 51
|
||||
},
|
||||
{
|
||||
'id': '100060',
|
||||
'name': '梯形',
|
||||
'text': '',
|
||||
'orderNo': 60
|
||||
},
|
||||
{
|
||||
'id': '100061',
|
||||
'name': '圆角梯形',
|
||||
'text': '',
|
||||
'orderNo': 61
|
||||
},
|
||||
{
|
||||
'id': '100070',
|
||||
'name': '五角星',
|
||||
'text': '',
|
||||
'orderNo': 70
|
||||
},
|
||||
{
|
||||
'id': '100076',
|
||||
'name': '六角形',
|
||||
'text': '',
|
||||
'orderNo': 75
|
||||
},
|
||||
{
|
||||
'id': '100075',
|
||||
'name': '六芒星',
|
||||
'text': '',
|
||||
'orderNo': 76
|
||||
},
|
||||
{
|
||||
'id': '100077',
|
||||
'name': '六芒星',
|
||||
'text': '',
|
||||
'orderNo': 77
|
||||
},
|
||||
{
|
||||
'id': '104001',
|
||||
'name': '角',
|
||||
'text': '',
|
||||
'orderNo': 80
|
||||
},
|
||||
|
||||
{
|
||||
'id': '104105',
|
||||
'name': '小括号',
|
||||
'text': '',
|
||||
'orderNo': 91
|
||||
},
|
||||
{
|
||||
'id': '104115',
|
||||
'name': '中括号',
|
||||
'text': '',
|
||||
'orderNo': 92
|
||||
},
|
||||
{
|
||||
'id': '104125',
|
||||
'name': '大括号',
|
||||
'text': '',
|
||||
'orderNo': 93
|
||||
},
|
||||
{
|
||||
'id': '100110',
|
||||
'name': '半圆',
|
||||
'text': '',
|
||||
'orderNo': 94
|
||||
},
|
||||
@ -205,12 +172,10 @@ export default {
|
||||
|
||||
{
|
||||
'id': '103005',
|
||||
'name': '注释',
|
||||
'orderNo': 305
|
||||
},
|
||||
{
|
||||
'id': '103008',
|
||||
'name': '注释',
|
||||
'orderNo': 308
|
||||
}
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-align" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">对齐</div>
|
||||
<div class="title">{{ editor.i18n('ddei.align') }}</div>
|
||||
<div class="group">
|
||||
<div class="title">对齐:</div>
|
||||
<div class="title">{{ editor.i18n('ddei.align') }}:</div>
|
||||
<div class="group_content">
|
||||
<div class="item" @click="changeAlign('left')">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
@ -38,7 +38,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="title">等距分布:</div>
|
||||
<div class="title">{{ editor.i18n('ddei.sort') }}:</div>
|
||||
<div class="group_content">
|
||||
<div class="item" @click="doAutoPos(2)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-changeratio" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">{{title}}</div>
|
||||
<div class="title">{{ editor.i18n('ddei.scale') }}</div>
|
||||
<div class="group">
|
||||
<div class="group_content">
|
||||
<div v-for="data in dataSource" v-show="data?.value >= iMin && data?.value <=iMax"
|
||||
@ -9,8 +9,9 @@
|
||||
{{ data.text}}
|
||||
</div>
|
||||
<div v-if="input" class="item" style="flex:1;border-top: 1px solid var(--panel-border)">
|
||||
百分比:<input type="number" :min="iMin*100" :max="iMax*100" @keydown="ratioInputChange($event)"
|
||||
v-model="ratioInputValue" @blur="ratioInputChange()" autocomplete="off" name="ddei_bottom_input" />%
|
||||
{{ editor.i18n('ddei.precent')}}:<input type="number" :min="iMin*100" :max="iMax*100"
|
||||
@keydown="ratioInputChange($event)" v-model="ratioInputValue" @blur="ratioInputChange()"
|
||||
autocomplete="off" name="ddei_bottom_input" />%
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -44,10 +45,6 @@ export default {
|
||||
type: Number,
|
||||
default: 10
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: "缩放"
|
||||
},
|
||||
dataSource: {
|
||||
type: Array,
|
||||
default: [
|
||||
@ -138,13 +135,13 @@ export default {
|
||||
border-radius: 6px;
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
width: 170px;
|
||||
width: 180px;
|
||||
position: absolute;
|
||||
background-color: var(--panel-background);
|
||||
z-index: 999;
|
||||
|
||||
.content {
|
||||
width: 170px;
|
||||
width: 180px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
@ -17,12 +17,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {DDeiEditor} from "ddei-framework";
|
||||
import {DDeiUtil} from "ddei-framework";
|
||||
import {DDeiEditorUtil} from "ddei-framework";
|
||||
import DialogBase from "./dialog"
|
||||
import { groupBy } from "lodash";
|
||||
|
||||
export default {
|
||||
name: "ddei-core-dialog-choosecontrol",
|
||||
extends: null,
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-choosecontrolgroup" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">选择需要的图形</div>
|
||||
<div class="title">{{ editor.i18n('ddei.chooseShapeGroups') }}</div>
|
||||
<div class="group">
|
||||
<div class="item" @mousemove="expandSubMenu('basic', $event)">
|
||||
<svg class="icon groupicon" aria-hidden="true">
|
||||
<use xlink:href="#icon-shapes-catalogy"></use>
|
||||
</svg>
|
||||
<div class="groupname">基本</div>
|
||||
<div class="groupname">{{ editor.i18n('ddei.basic') }}</div>
|
||||
<svg class="icon expand" aria-hidden="true">
|
||||
<use xlink:href="#icon-btn-right"></use>
|
||||
</svg>
|
||||
@ -16,14 +16,15 @@
|
||||
<svg class="icon groupicon" aria-hidden="true">
|
||||
<use xlink:href="#icon-groups"></use>
|
||||
</svg>
|
||||
<div class="groupname">UML</div>
|
||||
<div class="groupname">{{ editor.i18n('ddei.uml') }}</div>
|
||||
<svg class="icon expand" aria-hidden="true">
|
||||
<use xlink:href="#icon-btn-right"></use>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="subcontent" v-show="subGroups?.length > 0" :id="editor?.id + '_ddei-core-dialog-choosecontrolgroup_subcontent'">
|
||||
<div class="subcontent" v-show="subGroups?.length > 0"
|
||||
:id="editor?.id + '_ddei-core-dialog-choosecontrolgroup_subcontent'">
|
||||
<div class="group">
|
||||
<div class="item" v-for="group in subGroups" @click="chooseGroup(group.id)">
|
||||
<input type="checkbox" v-model="group.selected" style="pointer-events: none;" :name="group.id"
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<svg class="icon warn" aria-hidden="true">
|
||||
<use xlink:href="#icon-shoucang"></use>
|
||||
</svg>
|
||||
<span>收藏文件</span>
|
||||
<span>{{ editor.i18n('ddei.collection') }}</span>
|
||||
<div style="flex:1"></div>
|
||||
<svg class="icon close" aria-hidden="true" @click="cancel">
|
||||
<use xlink:href="#icon-close"></use>
|
||||
@ -14,8 +14,8 @@
|
||||
<div class="msg">
|
||||
</div>
|
||||
<div class="tail">
|
||||
<div class="button button-main" @click="ok">确定</div>
|
||||
<div class="button" @click="cancel">取消</div>
|
||||
<div class="button button-main" @click="ok">{{ editor.i18n('ddei.confirm') }}</div>
|
||||
<div class="button" @click="cancel">{{ editor.i18n('ddei.cancel') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -132,6 +132,7 @@ export default {
|
||||
.button {
|
||||
flex: 0 0 70px;
|
||||
height: 32px;
|
||||
white-space:nowrap;
|
||||
background: var(--panel-header);
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 6px;
|
||||
|
||||
@ -2,11 +2,11 @@
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-linepointtype" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="group">
|
||||
<div class="title">选择端点类型</div>
|
||||
<div class="title">{{ editor.i18n('ddei.property.linePointType') }}</div>
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item': true, 'item-selected': JSON.stringify(value) == JSON.stringify(data.value) }"
|
||||
v-for="data in dataSource" @click="select(data.value)" @dblclick="selectAndConfirm(data.value)">
|
||||
{{ data.text }}
|
||||
{{ editor.i18n(data.text) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-linetype" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">线段类型</div>
|
||||
<div class="title">{{ editor.i18n('ddei.lineType') }}</div>
|
||||
<div class="group">
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item': true, 'selected': value == 1 }" @click="changeType(1)" @dblclick="ok(1)">
|
||||
直线
|
||||
{{ editor.i18n('ddei.property.ds.lineType1') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 2 }" @click="changeType(2)" @dblclick="ok(2)">
|
||||
折线
|
||||
{{ editor.i18n('ddei.property.ds.lineType2') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 3 }" @click="changeType(3)" @dblclick="ok(3)">
|
||||
曲线
|
||||
{{ editor.i18n('ddei.property.ds.lineType3') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,27 +1,27 @@
|
||||
<template>
|
||||
<div :id="editor?.id+'_'+dialogId" v-if="forceRefresh && allowOpenMultLayers" class="ddei-core-dialog-managerlayers">
|
||||
<div class="content">
|
||||
<div class="title">图层</div>
|
||||
<div class="title">{{ editor.i18n('ddei.layerName') }}</div>
|
||||
<div class="group">
|
||||
<div class="group_content">
|
||||
<div class="item" @click="createNewLayer(0)" v-show="allowAddLayer">
|
||||
<span style="grid-column:1/8;">新建图层</span>
|
||||
<span style="grid-column:1/8;">{{ editor.i18n('ddei.newLayer') }}</span>
|
||||
<svg class="icon extbtn" aria-hidden="true">
|
||||
<use xlink:href="#icon-add-layer"></use>
|
||||
</svg>
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'current': currentStage?.layerIndex === index }"
|
||||
v-for="(layer, index) in currentStage?.layers" :draggable="allowEditLayes"
|
||||
@dragstart="layerDragStart(index, $event)" @dragover="layerDragOver($event)"
|
||||
@drop="layerDragDrop($event)" @dragleave="layerDragCancel($event)">
|
||||
@dragstart="layerDragStart(index, $event)" @dragover="layerDragOver($event)" @drop="layerDragDrop($event)"
|
||||
@dragleave="layerDragCancel($event)">
|
||||
<span style="grid-column:1/8;" @dblclick="allowEditLayes && startChangeLayerName(layer, $event)">{{
|
||||
layer.name
|
||||
? layer.name :
|
||||
'图层' }}</span>
|
||||
layer.name ? layer.name : editor.i18n('ddei.layerName') }}
|
||||
</span>
|
||||
<svg class="icon" aria-hidden="true" v-show="allowEditLayes" @click="removeLayer(index)">
|
||||
<use xlink:href="#icon-remove"></use>
|
||||
</svg>
|
||||
<span style="grid-column:1/4;font-weight:normal">形状:{{ layer.modelNumber }}</span>
|
||||
<span style="grid-column:1/4;font-weight:normal">{{ editor.i18n('ddei.shapes') }}:{{ layer.modelNumber
|
||||
}}</span>
|
||||
<svg class="icon" aria-hidden="true" @click="createNewLayer(index)" v-show="allowAddLayer">
|
||||
<use xlink:href="#icon-add-layer"></use>
|
||||
</svg>
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-mergecompose" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">组合</div>
|
||||
<div class="title">{{ editor.i18n('ddei.combina') }}</div>
|
||||
<div class="group">
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item_disabled': !canMerge(), 'item': canMerge() }" @click="canMerge() && doMerge()">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-merge"></use>
|
||||
</svg>
|
||||
<div class="text">组合</div>
|
||||
<div class="text">{{ editor.i18n('ddei.combina') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'item_disabled': !canCancelMerge(), 'item': canCancelMerge() }"
|
||||
@click="canCancelMerge() && doCancelMerge()">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-cancel-merge"></use>
|
||||
</svg>
|
||||
<div class="text">取消组合</div>
|
||||
<div class="text">{{ editor.i18n('ddei.cancelCombina') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-changeposition" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">位置</div>
|
||||
<div class="title">{{ editor.i18n('ddei.position') }}</div>
|
||||
<div class="group">
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item_disabled': !canPush('top'), 'item': canPush('top') }"
|
||||
@ -9,28 +9,28 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-move-top"></use>
|
||||
</svg>
|
||||
<div class="text">置于顶层</div>
|
||||
<div class="text">{{ editor.i18n('ddei.pushTop') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'item_disabled': !canPush('bottom'), 'item': canPush('bottom') }"
|
||||
@click="canPush('top') && doPush('bottom')">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-move-bottom"></use>
|
||||
</svg>
|
||||
<div class="text">置于底层</div>
|
||||
<div class="text">{{ editor.i18n('ddei.pushBottom') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'item_disabled': !canPush('up'), 'item': canPush('up') }"
|
||||
@click="canPush('up') && doPush('up')">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-move-up"></use>
|
||||
</svg>
|
||||
<div class="text">上移一层</div>
|
||||
<div class="text">{{ editor.i18n('ddei.pushUp') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'item_disabled': !canPush('down'), 'item': canPush('down') }"
|
||||
@click="canPush('down') && doPush('down')">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-move-down"></use>
|
||||
</svg>
|
||||
<div class="text">下移一层</div>
|
||||
<div class="text">{{ editor.i18n('ddei.pushDown') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class='ddei-core-dialog-setstyle' v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">快捷设置样式</div>
|
||||
<div class="title">{{ editor.i18n('ddei.style') }}</div>
|
||||
<div class="group">
|
||||
<div class="group_content">
|
||||
<div class="item"
|
||||
:style="{ 'color':data.text?data.text:'black','border-radius': data.round ? data.round + 'px' : '', 'border-color': data.border ? data.border : 'transparent', 'background-color': data.fill ? data.fill : 'transparent' }"
|
||||
v-for="data in ds" @click="select(data)" @dblclick="ok(data)">
|
||||
文本
|
||||
{{ editor.i18n('ddei.text') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-changerotate" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">翻转</div>
|
||||
<div class="title">{{ editor.i18n('ddei.flip') }}</div>
|
||||
<div class="group">
|
||||
<div class="title">镜像:</div>
|
||||
<div class="title">{{ editor.i18n('ddei.mirror') }}:</div>
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item': canMirror(), 'item_disabled': !canMirror() }" @click="canMirror() && doMirror(1)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="title">旋转:</div>
|
||||
<div class="title">{{ editor.i18n('ddei.rotate') }}:</div>
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item': canRotate(), 'item_disabled': !canRotate() }" @click="canRotate() && doRotate(90)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-selectborderdash" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="group">
|
||||
<div class="title">选择线段类型</div>
|
||||
<div class="title">{{ editor.i18n('ddei.lineDash') }}</div>
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item': true, 'item-selected': JSON.stringify(value) == JSON.stringify(data.value) }"
|
||||
v-for="data in dataSource" @click="select(data.value)" @dblclick="selectAndConfirm(data.value)">
|
||||
@ -14,8 +14,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tail">
|
||||
<div class="button button-main" @click="ok">确定</div>
|
||||
<div class="button" @click="cancel">取消</div>
|
||||
<div class="button button-main" @click="ok">{{ editor.i18n('ddei.confirm') }}</div>
|
||||
<div class="button" @click="cancel">{{ editor.i18n('ddei.cancel') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -179,6 +179,7 @@ export default {
|
||||
.button {
|
||||
flex: 0 0 70px;
|
||||
height: 32px;
|
||||
white-space: nowrap;
|
||||
background: var(--panel-background);
|
||||
border: 1px solid var(--panel-title);
|
||||
border-radius: 6px;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-selectboderweight" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="group">
|
||||
<div class="title">选择线段粗细</div>
|
||||
<div class="title">{{ editor.i18n('ddei.lineWeight') }}</div>
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item': true, 'item-selected': JSON.stringify(value) == JSON.stringify(data.value) }"
|
||||
v-for="data in dataSource" @click="select(data.value)" @dblclick="selectAndConfirm(data.value)">
|
||||
@ -14,8 +14,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tail">
|
||||
<div class="button button-main" @click="ok">确定</div>
|
||||
<div class="button" @click="cancel">取消</div>
|
||||
<div class="button button-main" @click="ok">{{ editor.i18n('ddei.confirm') }}</div>
|
||||
<div class="button" @click="cancel">{{ editor.i18n('ddei.cancel') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -182,6 +182,7 @@ export default {
|
||||
.button {
|
||||
flex: 0 0 70px;
|
||||
height: 32px;
|
||||
white-space: nowrap;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 6px;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-selectcolor" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="group">
|
||||
<div class="title">最近使用的颜色</div>
|
||||
<div class="title">{{ editor.i18n('ddei.selectColor.recently') }}</div>
|
||||
<div class="group_content color1">
|
||||
<div :class="{ 'item': true, 'item-selected': color == value }" v-for="color in ds1"
|
||||
@click="selectColor($event)" :style="{ 'background': color }" @dblclick="selectConfirmColor($event)">
|
||||
@ -17,7 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="title">标准颜色</div>
|
||||
<div class="title">{{ editor.i18n('ddei.selectColor.standard') }}</div>
|
||||
<div class="group_content color1">
|
||||
<div :class="{ 'item': true, 'item-selected': color == value }" v-for="color in ds3"
|
||||
@click="selectColor($event)" :style="{ 'background': color }" @dblclick="selectConfirmColor($event)">
|
||||
@ -25,16 +25,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="title">已选颜色</div>
|
||||
<div class="title">{{ editor.i18n('ddei.selectColor.choosed') }}</div>
|
||||
<div class=".group_content color3">
|
||||
<input type="color" v-model="value" class="colorinput" autocomplete="off">
|
||||
<input type="text" v-model="value" autocomplete="off">
|
||||
<div class="button button-small" @click="clear">清空</div>
|
||||
<div class="button button-small" @click="clear">{{ editor.i18n('ddei.clear') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tail">
|
||||
<div class="button button-main" @click="ok">确定</div>
|
||||
<div class="button" @click="cancel">取消</div>
|
||||
<div class="button button-main" @click="ok">{{ editor.i18n('ddei.confirm') }}</div>
|
||||
<div class="button" @click="cancel">{{ editor.i18n('ddei.cancel') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -345,6 +345,7 @@ export default {
|
||||
|
||||
.button {
|
||||
flex: 0 0 70px;
|
||||
white-space: nowrap;
|
||||
height: 32px;
|
||||
background: var(--panel-background);
|
||||
border: 1px solid var(--panel-title);
|
||||
|
||||
@ -1,36 +1,35 @@
|
||||
<template>
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-textalign"
|
||||
v-if="forceRefresh">
|
||||
<div :id="editor?.id + '_' + dialogId" class="ddei-core-dialog-textalign" v-if="forceRefresh">
|
||||
<div class="content">
|
||||
<div class="title">文本对齐</div>
|
||||
<div class="title">{{ editor.i18n('ddei.align') }}</div>
|
||||
<div class="group">
|
||||
<div class="group_content">
|
||||
<div :class="{ 'item': true, 'selected': value == 1 }" @click="changeAlign(1)" @dblclick="ok(1)">
|
||||
左上
|
||||
{{ editor.i18n('ddei.property.ds.pos1') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 2 }" @click="changeAlign(2)" @dblclick="ok(2)">
|
||||
中上
|
||||
{{ editor.i18n('ddei.property.ds.pos2') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 3 }" @click="changeAlign(3)" @dblclick="ok(3)">
|
||||
右上
|
||||
{{ editor.i18n('ddei.property.ds.pos3') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 4 }" @click="changeAlign(4)" @dblclick="ok(4)">
|
||||
左中
|
||||
{{ editor.i18n('ddei.property.ds.pos4') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 5 }" @click="changeAlign(5)" @dblclick="ok(5)">
|
||||
正中
|
||||
{{ editor.i18n('ddei.property.ds.pos5') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 6 }" @click="changeAlign(6)" @dblclick="ok(6)">
|
||||
右中
|
||||
{{ editor.i18n('ddei.property.ds.pos6') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 7 }" @click="changeAlign(7)" @dblclick="ok(7)">
|
||||
左下
|
||||
{{ editor.i18n('ddei.property.ds.pos7') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 8 }" @click="changeAlign(8)" @dblclick="ok(8)">
|
||||
中下
|
||||
{{ editor.i18n('ddei.property.ds.pos8') }}
|
||||
</div>
|
||||
<div :class="{ 'item': true, 'selected': value == 9 }" @click="changeAlign(9)" @dblclick="ok(9)">
|
||||
右下
|
||||
{{ editor.i18n('ddei.property.ds.pos9') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -226,6 +226,13 @@ class DDeiKeyActionStartQuickEdit extends DDeiKeyAction {
|
||||
|
||||
dataJson["fill"] = {type:1 ,color: 'white' }
|
||||
}
|
||||
for (let i in dataJson) {
|
||||
let value = dataJson[i]
|
||||
if (typeof (value) == 'string') {
|
||||
dataJson[i] = editor.i18n(value);
|
||||
}
|
||||
|
||||
}
|
||||
realModel = ddInstance.controlModelClasses["DDeiPolygon"].initByJSON(
|
||||
dataJson,
|
||||
{ currentStage: stage, currentDdInstance: ddInstance, currentContainer: model.pModel }
|
||||
|
||||
237
plugins/core/i18n/en_US.ts
Normal file
237
plugins/core/i18n/en_US.ts
Normal file
@ -0,0 +1,237 @@
|
||||
export default {
|
||||
ddei: {
|
||||
file: 'File',
|
||||
new: 'New',
|
||||
open: 'Open',
|
||||
save: 'Save',
|
||||
download: 'Download',
|
||||
export: 'Export',
|
||||
import: 'Import',
|
||||
clear: 'Clear',
|
||||
close: 'Close',
|
||||
collection: 'Collection',
|
||||
confirm: 'Confirm',
|
||||
cancel: 'Cancel',
|
||||
cutBoard: 'CutBoard',
|
||||
textEdit: 'TextEdit',
|
||||
tools: 'Tools',
|
||||
sortAndAlign: 'Sort',
|
||||
scale: 'Scale',
|
||||
style: 'Style',
|
||||
fill: 'Fill',
|
||||
border: 'Border',
|
||||
line: 'Line',
|
||||
layout: 'Layout',
|
||||
text: 'Text',
|
||||
code: 'Code',
|
||||
name: 'Name',
|
||||
desc: 'Description',
|
||||
format: 'Format',
|
||||
data: 'Data',
|
||||
setting: 'Setting',
|
||||
cut: 'Cut',
|
||||
copy: 'Copy',
|
||||
paste: 'Paste',
|
||||
more: 'More',
|
||||
page: 'Page',
|
||||
shapesCount: 'Shapes:',
|
||||
shapes: 'Shapes:',
|
||||
layerName: 'Layer',
|
||||
newLayer: 'New',
|
||||
background: 'Back Ground',
|
||||
backgroundColor: 'BGColor',
|
||||
position: "Position",
|
||||
align: "Align",
|
||||
combina: "Combina",
|
||||
cancelCombina: "Spread",
|
||||
sort: 'Sort',
|
||||
flip: "Flap",
|
||||
rotate: "Rotate",
|
||||
mirror: "Mirror",
|
||||
choose: "Choose",
|
||||
moveStage: "Move",
|
||||
linkLine: "Line",
|
||||
search: "Search",
|
||||
fileDescription: "DDei Design File",
|
||||
wholePage: "Whole Page",
|
||||
precent: "Pre",
|
||||
chooseShapeGroups: "Choose Shapes",
|
||||
basic: "Basic",
|
||||
uml: "UML",
|
||||
brush: "Brush",
|
||||
startPoint: 'Start',
|
||||
endPoint: 'End',
|
||||
lineType: 'Type',
|
||||
lineColor: 'Color',
|
||||
lineWeight: 'Weight',
|
||||
lineDash: 'Dash',
|
||||
pushUp: 'Up',
|
||||
pushDown: 'Down',
|
||||
pushTop: 'Top',
|
||||
pushBottom: 'Bottom',
|
||||
assistant: 'Assistant',
|
||||
mark: 'Mark',
|
||||
paper: 'Paper',
|
||||
propertyName: "Property",
|
||||
property: {
|
||||
id: 'id',
|
||||
code: 'Code',
|
||||
text: 'Text',
|
||||
format: 'Format',
|
||||
width: 'Width',
|
||||
height: 'Height',
|
||||
weight: 'Weight',
|
||||
borderType: 'Border Type',
|
||||
fillType: 'Fill Type',
|
||||
startPointType: "Start",
|
||||
endPointType: "End",
|
||||
type: 'Type',
|
||||
color: 'Color',
|
||||
opacity: 'Opacity',
|
||||
dash: 'Dash',
|
||||
round: 'Round',
|
||||
image: 'Image',
|
||||
font: 'Font',
|
||||
size: 'Size',
|
||||
align: 'Align',
|
||||
feed: 'Wrap',
|
||||
outSize: 'Out of Range',
|
||||
lockWidth: 'Lock Width',
|
||||
paddingWeight: 'Padding',
|
||||
hollow: 'Hollow',
|
||||
bold: 'Bold',
|
||||
italic: 'Italic',
|
||||
underline: 'Underline',
|
||||
deleteline: 'Strike Through',
|
||||
topline: 'Top Line',
|
||||
textbg: 'Text Background',
|
||||
subtype: 'Annotation Type',
|
||||
textAlign: 'Text Align',
|
||||
textValign: 'Vertical Align',
|
||||
hspace: 'Horizontal Space',
|
||||
vspace: 'Vertical Space',
|
||||
dateType: 'Date Type',
|
||||
nscale: 'Decimal',
|
||||
tmark: 'Thousands Separator',
|
||||
mmark: 'Currency Symbol',
|
||||
moneyUnit: 'Currency Unit',
|
||||
moneyUpCase: 'Currency in Uppercase',
|
||||
paperType: 'Paper',
|
||||
unit: 'Unit',
|
||||
direct: 'Direction',
|
||||
markType: 'Watermark',
|
||||
mark: 'Watermark',
|
||||
markDirect: 'Direction',
|
||||
ruler: 'Ruler',
|
||||
grid: 'Grid',
|
||||
jumpline: 'JumpLine',
|
||||
|
||||
background: 'Back Ground',
|
||||
backgroundColor: 'BG Color',
|
||||
backgroundImage: 'BG Image',
|
||||
bgImageMode: 'Mode',
|
||||
bgImageScale: 'Scale',
|
||||
bgImagePosition: 'Position',
|
||||
code001: "code001",
|
||||
linePointType: "Point Type",
|
||||
ds: {
|
||||
none: 'None',
|
||||
color: 'Color',
|
||||
image: 'Image',
|
||||
yes: 'Yes',
|
||||
no: 'No',
|
||||
global: 'Global',
|
||||
hidden: 'Hidden',
|
||||
ellipsis: 'Ellipsis',
|
||||
narrow: 'Narrow',
|
||||
ext: 'Extend',
|
||||
subType: 'Normal',
|
||||
subType1: 'Superscript',
|
||||
subType2: 'Subscript',
|
||||
subType3: 'Strike',
|
||||
text: 'Text',
|
||||
decimal: 'Decimal',
|
||||
money: 'Currency',
|
||||
time: 'Time',
|
||||
custom: 'Custom',
|
||||
money1: 'CNY',
|
||||
money2: 'USD',
|
||||
money3: 'EUR',
|
||||
money4: 'GBP',
|
||||
money5: 'JPY',
|
||||
money6: 'RUB',
|
||||
money7: 'CHF',
|
||||
line: 'Solid Line',
|
||||
point: 'Dotted',
|
||||
|
||||
pos1: 'TLeft',
|
||||
pos2: 'TCenter',
|
||||
pos3: 'TRight',
|
||||
pos4: 'MLeft',
|
||||
pos5: 'Center',
|
||||
pos6: 'MRight',
|
||||
pos7: 'BLeft',
|
||||
pos8: 'BCenter',
|
||||
pos9: 'BRight',
|
||||
|
||||
mm: 'mm',
|
||||
cm: 'cm',
|
||||
m: 'm',
|
||||
inch: 'in',
|
||||
px: 'px',
|
||||
|
||||
transverse: 'Landscape',
|
||||
portrait: 'Portrait',
|
||||
|
||||
ltrd: 'Left-Right',
|
||||
rtld: 'Right-Left',
|
||||
horizontal: 'Horizontal',
|
||||
|
||||
fill: 'Fill',
|
||||
scale: 'Scale',
|
||||
original: 'Original',
|
||||
|
||||
lineType1: "Straight",
|
||||
lineType2: "Broken",
|
||||
lineType3: "Curve",
|
||||
|
||||
pointType1: "Arrow",
|
||||
pointType2: "Circle",
|
||||
pointType21: "FillCir",
|
||||
pointType3: "Rect",
|
||||
pointType31: "FillRect",
|
||||
pointType4: "Diamond",
|
||||
pointType41: "FillDiam",
|
||||
pointType5: "Triangle",
|
||||
pointType51: "FillTria",
|
||||
pointType6: "HalfCir",
|
||||
pointType61: "FillHalfCir",
|
||||
},
|
||||
description: {
|
||||
|
||||
},
|
||||
},
|
||||
control: {
|
||||
polygon: 'Polygon',
|
||||
stage: 'Stage',
|
||||
text: 'Text',
|
||||
square: 'Square',
|
||||
rectangle: 'Rectangle',
|
||||
circle: 'Circle',
|
||||
squareRound: 'Square',
|
||||
rectangleRound: 'Rectangle',
|
||||
ellipse: 'Ellipse',
|
||||
cube:"Cube",
|
||||
line: 'Line',
|
||||
description: {
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
selectColor: {
|
||||
"standard": "Standard",
|
||||
"recently": "Recent",
|
||||
"choosed": "Selected",
|
||||
}
|
||||
}
|
||||
};
|
||||
245
plugins/core/i18n/zh_CN.ts
Normal file
245
plugins/core/i18n/zh_CN.ts
Normal file
@ -0,0 +1,245 @@
|
||||
export default {
|
||||
ddei: {
|
||||
file: '文件',
|
||||
new: '新建',
|
||||
open: '打开',
|
||||
save: '保存',
|
||||
download: '下载',
|
||||
export: '导出',
|
||||
import: '导入',
|
||||
clear: '清空',
|
||||
close: '关闭',
|
||||
collection: '收藏',
|
||||
confirm: '确定',
|
||||
cancel: '取消',
|
||||
cutBoard: '剪切板',
|
||||
textEdit: '文本编辑',
|
||||
tools: '工具',
|
||||
sortAndAlign: '排列与对齐',
|
||||
sort:'排列',
|
||||
|
||||
scale: '缩放',
|
||||
style: '样式',
|
||||
fill: '填充',
|
||||
border: '边框',
|
||||
line: '线条',
|
||||
layout: '布局',
|
||||
text: '文本',
|
||||
code: '编码',
|
||||
name: '名称',
|
||||
desc: '备注',
|
||||
format: '格式',
|
||||
data: '数据',
|
||||
setting: '设置',
|
||||
cut:'剪切',
|
||||
copy:'复制',
|
||||
paste:'粘贴',
|
||||
more: '更多',
|
||||
page: '页面',
|
||||
shapesCount: '形状数:',
|
||||
shapes: '形状',
|
||||
layerName: '图层',
|
||||
newLayer: '新建图层',
|
||||
background: '背景',
|
||||
backgroundColor: '背景颜色',
|
||||
position:"位置",
|
||||
align:"对齐",
|
||||
combina: "组合",
|
||||
cancelCombina: "取消组合",
|
||||
flip: "翻转",
|
||||
rotate:"旋转",
|
||||
mirror: "镜像",
|
||||
choose: "选择",
|
||||
moveStage: "移动画布",
|
||||
linkLine: "连接线",
|
||||
search:"搜索",
|
||||
fileDescription: "DDei设计文件",
|
||||
wholePage: "整页",
|
||||
precent: "百分比",
|
||||
chooseShapeGroups: "选择图形",
|
||||
basic:"基本",
|
||||
uml:"UML",
|
||||
brush:"格式刷",
|
||||
startPoint: "起点",
|
||||
endPoint: "终点",
|
||||
lineType: "类型",
|
||||
lineColor:'颜色',
|
||||
lineWeight:'粗细',
|
||||
lineDash:'虚线',
|
||||
pushUp: '上移一层',
|
||||
pushDown: '下移一层',
|
||||
pushTop: '置于顶层',
|
||||
pushBottom: '置于底层',
|
||||
|
||||
assistant: '辅助功能',
|
||||
mark: '水印',
|
||||
paper: '纸张',
|
||||
propertyName:"属性",
|
||||
property:{
|
||||
id:'id',
|
||||
code:'编码',
|
||||
text:'文本',
|
||||
format:'格式化',
|
||||
width: '宽度',
|
||||
weight:'大小',
|
||||
height: '高度',
|
||||
borderType:'边框类型',
|
||||
fillType:'填充类型',
|
||||
startPointType: "起点",
|
||||
endPointType: "终点",
|
||||
type: '类型',
|
||||
color: '颜色',
|
||||
opacity:'透明度',
|
||||
dash: '虚线',
|
||||
round:'圆角',
|
||||
image:'图片',
|
||||
font:'字体',
|
||||
size:'大小',
|
||||
align:'对齐',
|
||||
feed:'换行',
|
||||
outSize:'超出范围',
|
||||
lockWidth:'锁定宽度',
|
||||
paddingWeight: '间隔大小',
|
||||
hollow: '镂空',
|
||||
bold: '加粗',
|
||||
italic: '倾斜',
|
||||
underline: '下划线',
|
||||
deleteline: '删除线',
|
||||
topline:'顶部线',
|
||||
textbg:'文字背景',
|
||||
subtype:'标注类型',
|
||||
textAlign: '水平对齐',
|
||||
textValign: '垂直对齐',
|
||||
hspace: '水平间距',
|
||||
vspace: '垂直间距',
|
||||
dateType:'日期类型',
|
||||
nscale: '小数',
|
||||
tmark: '千分符',
|
||||
mmark: '货币符号',
|
||||
moneyUnit: '货币单位',
|
||||
moneyUpCase: '人民币大写',
|
||||
|
||||
paperType:'纸张类型',
|
||||
unit:'单位',
|
||||
direct:'方向',
|
||||
markType: '水印类型',
|
||||
mark: '水印',
|
||||
markDirect: '水印方向',
|
||||
ruler: '标尺',
|
||||
grid: '网格',
|
||||
jumpline:'自动跳线',
|
||||
background: '背景',
|
||||
backgroundColor: '背景颜色',
|
||||
backgroundImage: '背景图片',
|
||||
bgImageMode: '图片模式',
|
||||
bgImageScale: '缩放',
|
||||
bgImagePosition: '位置',
|
||||
code001: "编码001",
|
||||
linePointType:"端点类型",
|
||||
|
||||
ds:{
|
||||
none: '无',
|
||||
color: '纯色',
|
||||
image: '图片',
|
||||
yes: '是',
|
||||
no: '否',
|
||||
global:'全局',
|
||||
hidden:'隐藏',
|
||||
ellipsis:'省略',
|
||||
narrow:'缩小',
|
||||
ext:'扩展',
|
||||
subType: '正常',
|
||||
subType1: '上标',
|
||||
subType2: '中标',
|
||||
subType3: '下标',
|
||||
text: '文本',
|
||||
decimal: '数字',
|
||||
money: '金额',
|
||||
time: '时间',
|
||||
custom: '自定义',
|
||||
money1: '人民币',
|
||||
money2: '美元',
|
||||
money3: '欧元',
|
||||
money4: '英镑',
|
||||
money5: '日元',
|
||||
money6: '卢布',
|
||||
money7: '法郎',
|
||||
line: '实线',
|
||||
point: '点阵',
|
||||
|
||||
pos1: '左上',
|
||||
pos2: '中上',
|
||||
pos3: '右上',
|
||||
pos4: '左中',
|
||||
pos5: '正中',
|
||||
pos6: '右中',
|
||||
pos7: '左下',
|
||||
pos8: '中下',
|
||||
pos9: '右下',
|
||||
|
||||
|
||||
mm: '毫米',
|
||||
cm: '厘米',
|
||||
m: '米',
|
||||
inch: '英寸',
|
||||
px: '像素',
|
||||
|
||||
transverse:'横向',
|
||||
portrait:'纵向',
|
||||
|
||||
ltrd: '左上右下',
|
||||
rtld: '右上左下',
|
||||
horizontal: '水平显示',
|
||||
|
||||
|
||||
fill: '填充',
|
||||
scale: '缩放',
|
||||
original: '原始',
|
||||
|
||||
|
||||
lineType1: "直线",
|
||||
lineType2: "折线",
|
||||
lineType3: "曲线",
|
||||
|
||||
pointType1: "箭头",
|
||||
pointType2: "圆",
|
||||
pointType21: "实心圆",
|
||||
pointType3: "方形",
|
||||
pointType31: "实心方形",
|
||||
pointType4: "菱形",
|
||||
pointType41: "实心菱形",
|
||||
pointType5: "三角",
|
||||
pointType51: "实心三角",
|
||||
pointType6: "半圆",
|
||||
pointType61: "实心半圆",
|
||||
|
||||
|
||||
},
|
||||
description:{
|
||||
|
||||
},
|
||||
},
|
||||
control:{
|
||||
polygon:'多边形',
|
||||
stage:'画布',
|
||||
text: '文本',
|
||||
square: '正方形',
|
||||
rectangle: '长方形',
|
||||
circle: '圆形',
|
||||
squareRound: '圆角正方形',
|
||||
rectangleRound: '圆角矩形',
|
||||
ellipse:'椭圆',
|
||||
cube:'正方体',
|
||||
line:'连接线',
|
||||
description: {
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
selectColor:{
|
||||
"standard": "标准颜色",
|
||||
"recently": "最近使用",
|
||||
"choosed": "已选颜色",
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -57,6 +57,17 @@ class DDeiCore extends DDeiPluginBase {
|
||||
return options;
|
||||
}
|
||||
|
||||
getLangs(editor){
|
||||
const langModules = import.meta.glob('./i18n/*', { eager: true });
|
||||
let langs = {}
|
||||
for (let i in langModules) {
|
||||
let langModule = langModules[i];
|
||||
let newI = i.substring(i.lastIndexOf('/') + 1, i.lastIndexOf('.'))
|
||||
langs[newI] = langModule.default
|
||||
}
|
||||
return langs;
|
||||
}
|
||||
|
||||
getComponents(editor) {
|
||||
if (DDeiPluginBase.isSubclass(this.components, DDeiPluginBase)) {
|
||||
return this.components.defaultIns.getComponents(editor);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="ddei-core-panel-bottom-shapecount">
|
||||
{{title}} {{ editor?.files[editor?.currentFileIndex]?.modelNumber }}
|
||||
{{ editor.i18n('ddei.shapesCount') }} {{ editor?.files[editor?.currentFileIndex]?.modelNumber }}
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
@ -15,10 +15,6 @@ export default {
|
||||
options: {
|
||||
type: Object,
|
||||
default: null
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: "形状数: "
|
||||
}
|
||||
, editor: {
|
||||
type: DDeiEditor,
|
||||
|
||||
@ -358,10 +358,11 @@ export default {
|
||||
{ id: "stage" },
|
||||
{ currentDdInstance: ddInstance }
|
||||
);
|
||||
let pageText = this.editor.i18n('ddei.page');
|
||||
sheets.push(
|
||||
new DDeiSheet({
|
||||
name: "页面-" + i,
|
||||
desc: "页面-" + i,
|
||||
name: pageText+"-" + i,
|
||||
desc: pageText+"-" + i,
|
||||
stage: stage,
|
||||
})
|
||||
);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="ddei-core-panel-bottom-suitratio" v-if="allowStageRatio" @click="autoRatio(1)" title="整页">
|
||||
<div class="ddei-core-panel-bottom-suitratio" v-if="allowStageRatio" @click="autoRatio(1)" :title="editor.i18n('ddei.wholePage')">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-suit-ratio"></use>
|
||||
</svg>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-download"></use>
|
||||
</svg>
|
||||
<div class="text">下载</div>
|
||||
<div class="text">{{ editor.i18n('ddei.download') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="part">
|
||||
|
||||
@ -2,58 +2,42 @@
|
||||
<div class="ddei-core-panel-fileinfo">
|
||||
<div class="header"></div>
|
||||
<div class="content">
|
||||
<!-- <div class="part">
|
||||
<div class="button-h">
|
||||
<div class="button" title="导入">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-import"></use>
|
||||
</svg>
|
||||
<div class="text">导入</div>
|
||||
</div>
|
||||
<div class="button" @click="showExportDialog($event)" title="导出">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-share"></use>
|
||||
</svg>
|
||||
<div class="text">导出</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="part">
|
||||
<div class="button-v" @click="newFile" title="新建">
|
||||
<div class="button-v" @click="newFile" :title="editor.i18n('ddei.new') ">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-new-file"></use>
|
||||
</svg>
|
||||
<div class="text">新建</div>
|
||||
<div class="text">{{ editor.i18n('ddei.new')}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="part">
|
||||
<div class="button-v" @click="openFile" title="打开">
|
||||
<div class="button-v" @click="openFile" :title="editor.i18n('ddei.open') ">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-folder"></use>
|
||||
</svg>
|
||||
<div class="text">打开</div>
|
||||
<div class="text">{{ editor.i18n('ddei.open') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="part">
|
||||
<div class="button-v" @click="save" title="保存">
|
||||
<div class="button-v" @click="save" :title="editor.i18n('ddei.save') ">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-save"></use>
|
||||
</svg>
|
||||
<div class="text">保存</div>
|
||||
<div class="text">{{ editor.i18n('ddei.save') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="part">
|
||||
<div class="button-v" @click="download" title="下载">
|
||||
<div class="button-v" @click="download" :title="editor.i18n('ddei.download') ">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-download"></use>
|
||||
</svg>
|
||||
<div class="text">下载</div>
|
||||
<div class="text">{{ editor.i18n('ddei.download') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tail">
|
||||
文件
|
||||
{{ editor.i18n('ddei.file') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -100,24 +84,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
|
||||
// showExportDialog(evt: Event) {
|
||||
// let srcElement = evt.currentTarget;
|
||||
// DDeiEditorUtil.showOrCloseDialog("ddei-core-dialog-exportoption", {
|
||||
// callback: {
|
||||
// },
|
||||
// mode: 1,
|
||||
// group: "top-dialog",
|
||||
// background: "white",
|
||||
// opacity: "1%",
|
||||
// event: -1
|
||||
// }, {}, srcElement)
|
||||
|
||||
// if (DDeiEditor.ACTIVE_INSTANCE.tempDialogData && DDeiEditor.ACTIVE_INSTANCE.tempDialogData["ddei-core-dialog-exportoption"]) {
|
||||
// this.editor.changeState(DDeiEditorState.PROPERTY_EDITING);
|
||||
// } else {
|
||||
// this.editor.changeState(DDeiEditorState.DESIGNING);
|
||||
// }
|
||||
// },
|
||||
/**
|
||||
* 保存
|
||||
* @param evt
|
||||
@ -166,7 +132,7 @@ export default {
|
||||
let rsState = DDeiEditorUtil.invokeCallbackFunc("EVENT_ADD_FILE_BEFORE", "LOAD_FILE", null, this.editor.ddInstance, evt)
|
||||
if (rsState != -1) {
|
||||
let openFileHandle = await showOpenFilePicker({
|
||||
description: "DDei Design File",
|
||||
description: this.editor.i18n('ddei.fileDescription'),
|
||||
types: [{
|
||||
accept: {
|
||||
|
||||
@ -294,14 +260,17 @@ export default {
|
||||
newFile(evt) {
|
||||
if (this.editor?.ddInstance) {
|
||||
let ddInstance = this.editor.ddInstance;
|
||||
let fileText = this.editor.i18n('ddei.file')
|
||||
let newText = this.editor.i18n('ddei.new')
|
||||
let pageText = this.editor.i18n('ddei.page')
|
||||
let file = DDeiFile.loadFromJSON(
|
||||
{
|
||||
name: "新建文件_NEW",
|
||||
path: "/新建文件_NEW",
|
||||
name: newText+fileText+"_NEW",
|
||||
path: "/"+newText+fileText+"_NEW",
|
||||
sheets: [
|
||||
new DDeiSheet({
|
||||
name: "页面-1",
|
||||
desc: "页面-1",
|
||||
name: pageText+"-1",
|
||||
desc: pageText+"-1",
|
||||
stage: DDeiStage.initByJSON({ id: "stage_1" }, { currentDdInstance: ddInstance }),
|
||||
active: DDeiActiveType.ACTIVE,
|
||||
}),
|
||||
|
||||
@ -123,7 +123,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tail">
|
||||
文本编辑
|
||||
{{ editor.i18n('ddei.textEdit') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -5,46 +5,49 @@
|
||||
<div class="part">
|
||||
<div
|
||||
:class="{ 'button-v--selected': editor?.ddInstance?.stage?.copyMode == 'cut', 'button-v': editor?.ddInstance?.stage?.selectedModels?.size > 0, 'button-v--disabled': !canEdit || editor?.ddInstance?.stage?.selectedModels?.size == 0 || !editor?.ddInstance?.stage?.selectedModels }"
|
||||
title="剪切" @click="canEdit && editor?.ddInstance?.stage?.selectedModels?.size > 0 && execShearAction($event)">
|
||||
:title="editor.i18n('ddei.cut')"
|
||||
@click="canEdit && editor?.ddInstance?.stage?.selectedModels?.size > 0 && execShearAction($event)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-cut"></use>
|
||||
</svg>
|
||||
<div class="text">剪切</div>
|
||||
<div class="text">{{editor.i18n('ddei.cut')}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="part">
|
||||
<div
|
||||
:class="{ 'button-v--selected': editor?.ddInstance?.stage?.copyMode == 'copy', 'button-v': editor?.ddInstance?.stage?.selectedModels?.size > 0, 'button-v--disabled': editor?.ddInstance?.stage?.selectedModels?.size == 0 || !editor?.ddInstance?.stage?.selectedModels }"
|
||||
title="复制" @click="editor?.ddInstance?.stage?.selectedModels?.size > 0 && execCopyAction($event)">
|
||||
:title="editor.i18n('ddei.new')"
|
||||
@click="editor?.ddInstance?.stage?.selectedModels?.size > 0 && execCopyAction($event)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-copy-file"></use>
|
||||
</svg>
|
||||
<div class="text">复制</div>
|
||||
<div class="text">{{ editor.i18n('ddei.copy') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="part">
|
||||
<div :class="{ 'button-v': hasClipData, 'button-v--disabled': !canEdit || !hasClipData }" title="粘贴">
|
||||
<div :class="{ 'button-v': hasClipData, 'button-v--disabled': !canEdit || !hasClipData }"
|
||||
:title="editor.i18n('ddei.paste') ">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-paste"></use>
|
||||
</svg>
|
||||
<div class="text">粘贴</div>
|
||||
<div class="text">{{ editor.i18n('ddei.paste') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="part">
|
||||
<div
|
||||
:class="{ 'button-v--selected': canEdit && editor?.ddInstance?.stage?.brushData, 'button-v': canEdit && displayBrush, 'button-v--disabled': !canEdit || !displayBrush }"
|
||||
title="格式刷"
|
||||
:title="editor.i18n('ddei.brush') "
|
||||
@click="canEdit && editor?.ddInstance?.stage?.selectedModels?.size == 1 && execBrushAction($event)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-brush"></use>
|
||||
</svg>
|
||||
<div class="text">格式刷</div>
|
||||
<div class="text">{{ editor.i18n('ddei.brush') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tail">
|
||||
剪切板
|
||||
{{editor.i18n('ddei.cutBoard')}}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-position"></use>
|
||||
</svg>
|
||||
<div class="text">位置</div>
|
||||
<div class="text">{{ editor.i18n('ddei.position') }}</div>
|
||||
<svg class="icon extbtn" aria-hidden="true">
|
||||
<use xlink:href="#icon-btn-down"></use>
|
||||
</svg>
|
||||
@ -22,7 +22,7 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-align"></use>
|
||||
</svg>
|
||||
<div class="text">对齐</div>
|
||||
<div class="text">{{ editor.i18n('ddei.align') }}</div>
|
||||
<svg class="icon extbtn" aria-hidden="true">
|
||||
<use xlink:href="#icon-btn-down"></use>
|
||||
</svg>
|
||||
@ -35,7 +35,7 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-merge1"></use>
|
||||
</svg>
|
||||
<div class="text">组合</div>
|
||||
<div class="text">{{ editor.i18n('ddei.combina') }}</div>
|
||||
<svg class="icon extbtn" aria-hidden="true">
|
||||
<use xlink:href="#icon-btn-down"></use>
|
||||
</svg>
|
||||
@ -49,14 +49,14 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-flip"></use>
|
||||
</svg>
|
||||
<div class="text">翻转</div>
|
||||
<div class="text">{{ editor.i18n('ddei.flip') }}</div>
|
||||
<svg class="icon extbtn" aria-hidden="true">
|
||||
<use xlink:href="#icon-btn-down"></use>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tail">排列</div>
|
||||
<div class="tail">{{ editor.i18n('ddei.sortAndAlign') }}</div>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
</div>
|
||||
<div class="ddei-core-panel-quickstyle-item" style="grid-column:1/16;">
|
||||
<div class="ddei-core-panel-quickstyle-item-text">
|
||||
样式
|
||||
{{ editor.i18n('ddei.style') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -3,36 +3,36 @@
|
||||
<div class="header"></div>
|
||||
<div class="content">
|
||||
<div class="part">
|
||||
<div :class="{ 'button-v--selected': editor?.editMode == 1, 'button-v': editor?.editMode != 1 }" title="选择"
|
||||
@click="changeEditMode(1)">
|
||||
<div :class="{ 'button-v--selected': editor?.editMode == 1, 'button-v': editor?.editMode != 1 }"
|
||||
:title="editor.i18n('ddei.choose') " @click="changeEditMode(1)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-selector"></use>
|
||||
</svg>
|
||||
<div class="text">选择</div>
|
||||
<div class="text">{{ editor.i18n('ddei.choose') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="part">
|
||||
<div :class="{ 'button-v--selected': editor?.editMode == 2, 'button-v': editor?.editMode != 2 }" title="平移画布"
|
||||
@click="changeEditMode(2)">
|
||||
<div :class="{ 'button-v--selected': editor?.editMode == 2, 'button-v': editor?.editMode != 2 }"
|
||||
:title="editor.i18n('ddei.moveStage') " @click="changeEditMode(2)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-hand"></use>
|
||||
</svg>
|
||||
<div class="text">平移画布</div>
|
||||
<div class="text">{{ editor.i18n('ddei.moveStage') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="part">
|
||||
<div
|
||||
:class="{ 'button-v--selected': canEdit && editor?.editMode == 4, 'button-v': canEdit && editor?.editMode != 4, 'button-v--disabled': !canEdit }"
|
||||
title="连接线" @click="canEdit && changeEditMode(4)">
|
||||
:title="editor.i18n('ddei.linkLine')" @click="canEdit && changeEditMode(4)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-link-line"></use>
|
||||
</svg>
|
||||
<div class="text">连接线</div>
|
||||
<div class="text">{{ editor.i18n('ddei.linkLine') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tail">
|
||||
工具
|
||||
{{ editor.i18n('ddei.tools') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -208,14 +208,17 @@ export default {
|
||||
let rsState = DDeiEditorUtil.invokeCallbackFunc("EVENT_ADD_FILE_BEFORE", "ADD_FILE", null, this.editor.ddInstance, null)
|
||||
if (rsState != -1) {
|
||||
let ddInstance = this.editor.ddInstance;
|
||||
let fileText = this.editor.i18n('ddei.file')
|
||||
let newText = this.editor.i18n('ddei.new')
|
||||
let pageText = this.editor.i18n('ddei.page')
|
||||
let file = DDeiFile.loadFromJSON(
|
||||
{
|
||||
name: "新建文件_NEW",
|
||||
path: "/新建文件_NEW",
|
||||
name: newText + fileText + "_NEW",
|
||||
path: "/" + newText + fileText + "_NEW",
|
||||
sheets: [
|
||||
new DDeiSheet({
|
||||
name: "页面-1",
|
||||
desc: "页面-1",
|
||||
name: pageText + "-1",
|
||||
desc: pageText + "-1",
|
||||
stage: DDeiStage.initByJSON({ id: "stage_1" }, { currentDdInstance :ddInstance}),
|
||||
active: DDeiActiveType.ACTIVE,
|
||||
}),
|
||||
|
||||
@ -20,14 +20,14 @@
|
||||
:class="currentTopGroup?.subGroups.length > 1 && subGroup.selected ? 'propertyview-subgroup-tabtitle-item--selected' : 'propertyview-subgroup-tabtitle-item'"
|
||||
v-show="!subGroup.empty" v-for="subGroup in currentTopGroup?.subGroups" :title="subGroup.name"
|
||||
@mouseup="changeSubGroup(subGroup)">{{
|
||||
subGroup.name }}</div>
|
||||
editor.i18n(subGroup.name) }}</div>
|
||||
</div>
|
||||
<div class="propertyview-subgroup-tabpanel" @mousewheel="mouseWheel($event)">
|
||||
<div
|
||||
:class="{ 'propertyview-subgroup-tabpanel-editors-column': attrDefine.display == 'column', 'propertyview-subgroup-tabpanel-editors-row': attrDefine.display != 'column', 'empty-value': attrDefine.value ? false : true }"
|
||||
v-for="attrDefine in currentSubGroup?.children" :title="attrDefine.desc"
|
||||
v-show="attrDefine?.visiable && !attrDefine?.forceHidden">
|
||||
<div class="title" v-if="!attrDefine.hiddenTitle && attrDefine?.visiable != false">{{ attrDefine.name
|
||||
<div class="title" v-if="!attrDefine.hiddenTitle && attrDefine?.visiable != false">{{ editor.i18n(attrDefine.name)
|
||||
}}<span v-if="attrDefine.notNull">*</span>:
|
||||
</div>
|
||||
<div class="editor" v-if="attrDefine.visiable != false">
|
||||
|
||||
@ -5,16 +5,16 @@
|
||||
@mousedown="options?.drag == 1 && prepareDragBox()">
|
||||
</div>
|
||||
<div class="item" v-if="!options?.items" @click="newFile">
|
||||
新建
|
||||
{{ editor.i18n('ddei.new') }}
|
||||
</div>
|
||||
<div class="item" v-if="!options?.items" @click="openFile">
|
||||
打开
|
||||
{{ editor.i18n('ddei.open') }}
|
||||
</div>
|
||||
<div class="item" v-if="!options?.items" @click="save">
|
||||
保存
|
||||
{{ editor.i18n('ddei.save') }}
|
||||
</div>
|
||||
<div class="item" v-if="!options?.items" @click="download">
|
||||
下载
|
||||
{{ editor.i18n('ddei.download') }}
|
||||
</div>
|
||||
<div class="item" v-for="menu in options?.items">
|
||||
<div v-if="menu && !menu.viewer && menu.id" @click="internalAction(menu.id,$event)">{{ menu.name }}</div>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
</svg>
|
||||
<div class="header-3" v-if="custom"></div>
|
||||
<div class="ddei-core-panel-toolbox-header-morecontrol" v-if="custom" @click="showChooseDialog($event)">
|
||||
<div class="header-4">更多图形</div>
|
||||
<div class="header-4">{{editor.i18n('ddei.more')}}</div>
|
||||
<div class="header-3"></div>
|
||||
<svg class="icon icon2" aria-hidden="true">
|
||||
<use xlink:href="#icon-btn-down"></use>
|
||||
@ -21,11 +21,11 @@
|
||||
</div>
|
||||
<div class="ddei-core-panel-toolbox-searchbox" v-if="search">
|
||||
<div class="ddei-core-panel-toolbox-searchbox-group">
|
||||
<svg class="icon" aria-hidden="true" @click="searchControl" title="搜索">
|
||||
<svg class="icon" aria-hidden="true" @click="searchControl" :title="editor.i18n('ddei.search')">
|
||||
<use xlink:href="#icon-search"></use>
|
||||
</svg>
|
||||
<input v-model="searchText" class="input" @keypress="searchInputEnter" placeholder="搜索控件" autocomplete="off"
|
||||
name="ddei_toolbox_search_input">
|
||||
<input v-model="searchText" class="input" @keypress="searchInputEnter" :placeholder="editor.i18n('ddei.search')"
|
||||
autocomplete="off" name="ddei_toolbox_search_input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -35,9 +35,9 @@
|
||||
<div
|
||||
:class="{ 'ddei-core-panel-toolbox-groups-group-box': true, 'ddei-core-panel-toolbox-groups-group--expanded': group.expand }"
|
||||
@click="groupBoxExpand(group)">
|
||||
<span class="title">{{ group.name }}</span>
|
||||
<span class="title">{{ editor.i18n(group.name) }}</span>
|
||||
<svg v-if="custom && !group.cannotClose" class="icon close" aria-hidden="true" @click="groupBoxClose(group)"
|
||||
title="关闭">
|
||||
:title="editor.i18n('ddei.close') ">
|
||||
<use xlink:href="#icon-close"></use>
|
||||
</svg>
|
||||
</div>
|
||||
@ -46,7 +46,7 @@
|
||||
@mousedown="createControlPrepare(control, $event)" v-for="control in group.controls">
|
||||
<img class="icon" v-if="!control.icon" :src="editor?.icons[control.id]" />
|
||||
<div v-if="control.icon" v-html="control.icon"></div>
|
||||
<div class="text">{{ control.name }}</div>
|
||||
<div class="text">{{ editor.i18n(control.name) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -5,39 +5,39 @@
|
||||
<div class="ddei-pv-editor-aligntype-items">
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 1 }"
|
||||
style="text-align:left" @click="valueChange(1, $event)">
|
||||
<div style="vertical-align: top;">左上</div>
|
||||
<div style="vertical-align: top;">{{ editor.i18n('ddei.property.ds.pos1') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 2 }"
|
||||
style="text-align:center" @click="valueChange(2, $event)">
|
||||
<div style="vertical-align: top;">中上</div>
|
||||
<div style="vertical-align: top;">{{ editor.i18n('ddei.property.ds.pos2') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 3 }"
|
||||
style="text-align:right" @click="valueChange(3, $event)">
|
||||
<div style="vertical-align: top;">右上</div>
|
||||
<div style="vertical-align: top;">{{ editor.i18n('ddei.property.ds.pos3') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 4 }"
|
||||
style="text-align:left" @click="valueChange(4, $event)">
|
||||
<div style="vertical-align: middle;">左中</div>
|
||||
<div style="vertical-align: middle;">{{ editor.i18n('ddei.property.ds.pos4') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 5 }"
|
||||
style="text-align:center" @click="valueChange(5, $event)">
|
||||
<div style="vertical-align: middle;">正中</div>
|
||||
<div style="vertical-align: middle;">{{ editor.i18n('ddei.property.ds.pos5') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 6 }"
|
||||
style="text-align:right" @click="valueChange(6, $event)">
|
||||
<div style="vertical-align: middle;">右中</div>
|
||||
<div style="vertical-align: middle;">{{ editor.i18n('ddei.property.ds.pos6') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 7 }"
|
||||
style="text-align:left" @click="valueChange(7, $event)">
|
||||
<div style="vertical-align: bottom;">左下</div>
|
||||
<div style="vertical-align: bottom;">{{ editor.i18n('ddei.property.ds.pos7') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 8 }"
|
||||
style="text-align:center" @click="valueChange(8, $event)">
|
||||
<div style="vertical-align: bottom;">中下</div>
|
||||
<div style="vertical-align: bottom;">{{ editor.i18n('ddei.property.ds.pos8') }}</div>
|
||||
</div>
|
||||
<div :class="{ 'ddei-pv-editor-aligntype-item': true, 'ddei-pv-editor-aligntype-item--selected': value == 9 }"
|
||||
style="text-align:right" @click="valueChange(9, $event)">
|
||||
<div style="vertical-align: bottom;">右下</div>
|
||||
<div style="vertical-align: bottom;">{{ editor.i18n('ddei.property.ds.pos9') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</PVBaseCombox>
|
||||
@ -118,26 +118,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getTypeText(type) {
|
||||
switch (type) {
|
||||
case 1:
|
||||
return "左上";
|
||||
case 2:
|
||||
return "中上";
|
||||
case 3:
|
||||
return "右上";
|
||||
case 4:
|
||||
return "左中";
|
||||
case 5:
|
||||
return "正中";
|
||||
case 6:
|
||||
return "右中";
|
||||
case 7:
|
||||
return "右下";
|
||||
case 8:
|
||||
return "中下";
|
||||
case 9:
|
||||
return "右下";
|
||||
}
|
||||
return this.editor.i18n('ddei.property.ds.pos'+type)
|
||||
},
|
||||
|
||||
getTypeValue() {
|
||||
|
||||
@ -125,9 +125,17 @@ export default {
|
||||
let attrEditor = document.getElementById(
|
||||
this.getEditorId(this.attrDefine.code)
|
||||
);
|
||||
|
||||
let position = DDeiUtil.getDomAbsPosition(attrEditor, this.editor);
|
||||
|
||||
//获取panel滚动条高度
|
||||
let tabPanelEles = this.editor.htmlElement.getElementsByClassName("propertyview-subgroup-tabpanel");
|
||||
let tabPanelTop = 0
|
||||
if (tabPanelEles?.length > 0 ){
|
||||
tabPanelTop = tabPanelEles[0].scrollTop
|
||||
}
|
||||
dialog.style.left = position.left - dialog.offsetWidth + attrEditor.offsetWidth -9.5 + "px";
|
||||
dialog.style.top = position.top + attrEditor.offsetHeight + "px";
|
||||
dialog.style.top = position.top + attrEditor.offsetHeight - tabPanelTop + "px";
|
||||
|
||||
this.expanded = true;
|
||||
if (!DDeiEditor.ACTIVE_INSTANCE.tempDialogData) {
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { has, throttle } from "lodash";
|
||||
import { throttle } from "lodash";
|
||||
import {DDeiEditorArrtibute } from "ddei-framework";
|
||||
import {DDeiEditor} from "ddei-framework";
|
||||
import {DDeiEnumBusCommandType} from "ddei-framework";
|
||||
|
||||
@ -113,6 +113,7 @@ export default {
|
||||
* 获取数据源数据
|
||||
*/
|
||||
getDataSource(attrDefine) {
|
||||
|
||||
let dataSources = DDeiEditorUtil.getDataSource(this.editor, this.attrDefine);
|
||||
this.dataSource = dataSources;
|
||||
return this.dataSource;
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
:class="{ 'chk_state': attrDefine.value != 1, 'chk_state_checked': attrDefine.value == 1 || (attrDefine.value == null && attrDefine.defaultValue == 1) }">
|
||||
<span>{{ attrDefine.value == 1 || (attrDefine.value == null && attrDefine.defaultValue == 1) ? '✓' : '' }}</span>
|
||||
</div>
|
||||
<div class="title">{{ attrDefine.name }}</div>
|
||||
<div class="title">{{ editor.i18n(attrDefine.name) }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div :class="{ 'ddei-pv-editor-text': true, 'ddei-pv-editor-text--disabled': attrDefine.readonly }">
|
||||
<input :type="attrDefine?.itemStyle?.type ? attrDefine?.itemStyle?.type : 'input'" v-model="attrDefine.value"
|
||||
:disabled="attrDefine.readonly" :placeholder="attrDefine.defaultValue" autocomplete="off" />
|
||||
:disabled="attrDefine.readonly" :placeholder="editor.i18n(attrDefine.defaultValue)" autocomplete="off" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@ -18,14 +18,14 @@
|
||||
</div>
|
||||
<div class="panel12-content-5">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-addfontsize']" :addValue="-1" attrCode="font.size" img="icon-reduce-fontsize"
|
||||
extcls="magtop-1"></component>
|
||||
:is="editor?.panels['ddei-core-btn-addfontsize']" :addValue="-1" attrCode="font.size"
|
||||
img="icon-reduce-fontsize" extcls="magtop-1"></component>
|
||||
</div>
|
||||
|
||||
<div class="panel12-content-3">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-editbox']" selectedValue="1" attrCode="textStyle.bold"
|
||||
img="icon-bold"></component>
|
||||
:is="editor?.panels['ddei-core-btn-editbox']" selectedValue="1" attrCode="textStyle.bold" img="icon-bold">
|
||||
</component>
|
||||
</div>
|
||||
<div class="panel12-content-3">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
@ -61,12 +61,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel2" title="格式刷" style="border-right:none" @click="execBrushAction($event)">
|
||||
<div class="panel2" :title="editor.i18n('ddei.brush')" style="border-right:none" @click="execBrushAction($event)">
|
||||
<div :class="{ 'panel2-content': true, 'brush-selected': editor?.ddInstance?.stage?.brushDataText }">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-brush"></use>
|
||||
</svg>
|
||||
<div class="text">格式刷</div>
|
||||
<div class="text">{{ editor.i18n('ddei.brush') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -76,7 +76,7 @@
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-linepointtype']" attrCode="sp.type">
|
||||
</component>
|
||||
<div class="text">起点</div>
|
||||
<div class="text">{{ editor.i18n('ddei.startPoint') }}</div>
|
||||
</div>
|
||||
<div class="panel6-content1 exchange" @click="exchangeLinePoint">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
@ -87,7 +87,7 @@
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-linepointtype']" attrCode="ep.type">
|
||||
</component>
|
||||
<div class="text">终点</div>
|
||||
<div class="text">{{ editor.i18n('ddei.endPoint') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel6" style="border-left:1px solid #E2E2EB;">
|
||||
@ -95,26 +95,26 @@
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-linetype']" attrCode="type" img="icon-link-line">
|
||||
</component>
|
||||
<div class="text">类型</div>
|
||||
<div class="text">{{ editor.i18n('ddei.lineType') }}</div>
|
||||
</div>
|
||||
<div class="panel6-content color2">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-color']" attrCode="color" img="icon-border-pencil">
|
||||
</component>
|
||||
<div class="text">颜色</div>
|
||||
<div class="text">{{ editor.i18n('ddei.lineColor') }}</div>
|
||||
</div>
|
||||
<div class="panel6-content dash">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-borderweight']" attrCode="weight" hiddenCombo="1">
|
||||
</component>
|
||||
|
||||
<div class="text">粗细</div>
|
||||
<div class="text">{{ editor.i18n('ddei.lineWeight') }}</div>
|
||||
</div>
|
||||
<div class="panel6-content dash">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-borderdash']" attrCode="dash" hiddenCombo="1">
|
||||
</component>
|
||||
<div class="text">虚线</div>
|
||||
<div class="text">{{ editor.i18n('ddei.lineDash') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel6" style="border-left:1px solid #E2E2EB;">
|
||||
@ -123,7 +123,7 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-brush"></use>
|
||||
</svg>
|
||||
<div class="text">格式刷</div>
|
||||
<div class="text">{{ editor.i18n('ddei.brush') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -140,8 +140,8 @@
|
||||
</div>
|
||||
<div class="panel1-content-3">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-editbox']" selectedValue="1" attrCode="textStyle.bold"
|
||||
img="icon-bold"></component>
|
||||
:is="editor?.panels['ddei-core-btn-editbox']" selectedValue="1" attrCode="textStyle.bold" img="icon-bold">
|
||||
</component>
|
||||
</div>
|
||||
<div class="panel1-content-3">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
@ -165,12 +165,12 @@
|
||||
</component>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel2" title="格式刷" @click="execBrushAction($event)">
|
||||
<div class="panel2" :title="editor.i18n('ddei.brush') " @click="execBrushAction($event)">
|
||||
<div :class="{ 'panel2-content': true, 'brush-selected': editor?.ddInstance?.stage?.brushData }">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-brush"></use>
|
||||
</svg>
|
||||
<div class="text">格式刷</div>
|
||||
<div class="text">{{ editor.i18n('ddei.brush') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel3">
|
||||
@ -178,19 +178,19 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-shapes"></use>
|
||||
</svg>
|
||||
<div class="text">样式</div>
|
||||
<div class="text">{{ editor.i18n('ddei.style') }}</div>
|
||||
</div>
|
||||
<div class="panel3-content i2">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-color']" attrCode="fill.color" img="icon-background">
|
||||
</component>
|
||||
<div class="text">填充</div>
|
||||
<div class="text">{{ editor.i18n('ddei.fill') }}</div>
|
||||
</div>
|
||||
<div class="panel3-content i3">
|
||||
<component :editor="editor" :controlDefine="editor.currentControlDefine"
|
||||
:is="editor?.panels['ddei-core-btn-color']" attrCode="border.color" img="icon-border-pencil">
|
||||
</component>
|
||||
<div class="text">线条</div>
|
||||
<div class="text">{{ editor.i18n('ddei.border') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel4">
|
||||
@ -198,13 +198,13 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-move-top"></use>
|
||||
</svg>
|
||||
<div class="text">置于顶层</div>
|
||||
<div class="text">{{ editor.i18n('ddei.pushTop') }}</div>
|
||||
</div>
|
||||
<div class="panel4-content" @click="doPush('bottom')">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-move-bottom"></use>
|
||||
</svg>
|
||||
<div class="text">置于底层</div>
|
||||
<div class="text">{{ editor.i18n('ddei.pushBottom') }}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -213,19 +213,19 @@
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-merge"></use>
|
||||
</svg>
|
||||
<div class="text">组合</div>
|
||||
<div class="text">{{ editor.i18n('ddei.combina') }}</div>
|
||||
</div>
|
||||
<div class="panel5-content" v-show="canCancelMerge()" @click="canCancelMerge() && doCancelMerge()">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-cancel-merge"></use>
|
||||
</svg>
|
||||
<div class="text">取消组合</div>
|
||||
<div class="text">{{ editor.i18n('ddei.cancelCombina') }}</div>
|
||||
</div>
|
||||
<div class="panel5-content" v-show="canMerge()" @click="canMerge() && showAlignDialog($event)">
|
||||
<svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-a-ziyuan450"></use>
|
||||
<use xlink:href="#icon-align"></use>
|
||||
</svg>
|
||||
<div class="text">对齐</div>
|
||||
<div class="text">{{ editor.i18n('ddei.align') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -11,15 +11,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -20,15 +20,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -15,15 +15,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -16,15 +16,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -15,15 +15,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -33,15 +33,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -27,15 +27,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -27,15 +27,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -137,15 +137,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -24,15 +24,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -37,15 +37,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -61,15 +61,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -66,15 +66,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -58,15 +58,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -29,15 +29,15 @@ export default {
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -58,15 +58,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
}
|
||||
]
|
||||
|
||||
@ -18,15 +18,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
]
|
||||
|
||||
@ -42,15 +42,15 @@ Body`,
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
{
|
||||
|
||||
@ -62,15 +62,15 @@ export default {
|
||||
ext: {
|
||||
groups: [
|
||||
{
|
||||
name: "样式",
|
||||
name: "ddei.style",
|
||||
icon: 'icon-fill',
|
||||
subGroups: [
|
||||
{
|
||||
name: "填充",
|
||||
name: "ddei.fill",
|
||||
attrs: ["fill.type", "fill.color", "fill.image", "fill.opacity"]
|
||||
},
|
||||
{
|
||||
name: "线条",
|
||||
name: "ddei.line",
|
||||
attrs: ["border.type", "border.color", "borderOpacity", "borderWidth", "borderDash", "borderRound"]
|
||||
},
|
||||
]
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user