@easyv/config 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/shadow.js DELETED
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var defaultShadow = {
8
- color: "#fff",
9
- vShadow: 8,
10
- hShadow: 8,
11
- blur: 8
12
- };
13
- var _default = function _default() {
14
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultShadow,
15
- _ref$color = _ref.color,
16
- color = _ref$color === void 0 ? defaultShadow.color : _ref$color,
17
- _ref$vShadow = _ref.vShadow,
18
- vShadow = _ref$vShadow === void 0 ? defaultShadow.vShadow : _ref$vShadow,
19
- _ref$hShadow = _ref.hShadow,
20
- hShadow = _ref$hShadow === void 0 ? defaultShadow.hShadow : _ref$hShadow,
21
- _ref$blur = _ref.blur,
22
- blur = _ref$blur === void 0 ? defaultShadow.blur : _ref$blur;
23
- return {
24
- color: color,
25
- vShadow: vShadow,
26
- hShadow: hShadow,
27
- blur: blur
28
- };
29
- };
30
- exports["default"] = _default;
package/lib/show.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.showRule = exports["default"] = void 0;
7
- var _default = function _default() {
8
- var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
9
- return {
10
- name: 'show',
11
- value: show,
12
- type: 'boolean'
13
- };
14
- };
15
- exports["default"] = _default;
16
- var showRule = function showRule() {
17
- var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "show";
18
- var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "$eq";
19
- var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
20
- return {
21
- rule: [[name, type, value]]
22
- };
23
- };
24
- exports.showRule = showRule;
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var defaultTextOverflow = {
8
- textOverflow: 'ellipsis',
9
- speed: 5
10
- };
11
- var _default = function _default() {
12
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultTextOverflow,
13
- _ref$textOverflow = _ref.textOverflow,
14
- textOverflow = _ref$textOverflow === void 0 ? defaultTextOverflow.textOverflow : _ref$textOverflow,
15
- _ref$speed = _ref.speed,
16
- speed = _ref$speed === void 0 ? defaultTextOverflow.speed : _ref$speed;
17
- return [{
18
- name: 'textOverflow',
19
- displayName: '文本溢出',
20
- value: textOverflow,
21
- type: 'select',
22
- config: {
23
- options: [{
24
- name: '换行',
25
- value: 'break-word'
26
- }, {
27
- name: '省略号',
28
- value: 'ellipsis'
29
- }, {
30
- name: '跑马灯',
31
- value: 'marquee'
32
- }]
33
- }
34
- }, {
35
- rule: [['textOverflow', '$eq', 'marquee'], ["LegendType", "$eq", "FixedWidth"]],
36
- name: 'speed',
37
- displayName: '滚动速度',
38
- type: 'number',
39
- value: speed,
40
- config: {
41
- min: 1
42
- }
43
- }];
44
- };
45
- exports["default"] = _default;
package/lib/tickLine.js DELETED
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var defaultTickLine = {
8
- show: false,
9
- color: 'RGBA(255, 255, 255, .3)',
10
- lineWidth: 1,
11
- tickSize: 2
12
- };
13
- var _default = function _default() {
14
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultTickLine,
15
- _ref$show = _ref.show,
16
- show = _ref$show === void 0 ? defaultTickLine.show : _ref$show,
17
- _ref$color = _ref.color,
18
- color = _ref$color === void 0 ? defaultTickLine.color : _ref$color,
19
- _ref$lineWidth = _ref.lineWidth,
20
- lineWidth = _ref$lineWidth === void 0 ? defaultTickLine.lineWidth : _ref$lineWidth,
21
- _ref$tickSize = _ref.tickSize,
22
- tickSize = _ref$tickSize === void 0 ? defaultTickLine.tickSize : _ref$tickSize;
23
- return {
24
- name: 'tickLine',
25
- displayName: '刻度',
26
- value: [{
27
- name: 'show',
28
- displayName: '显示',
29
- value: show,
30
- type: 'boolean'
31
- }, {
32
- rule: [['show', '$eq', true]],
33
- name: 'color',
34
- displayName: '颜色',
35
- value: color,
36
- type: 'color',
37
- markColorType: 'assistColor'
38
- }, {
39
- rule: [['show', '$eq', true]],
40
- name: 'lineWidth',
41
- displayName: '粗细',
42
- value: lineWidth,
43
- type: 'number',
44
- config: {
45
- suffix: 'px'
46
- }
47
- }, {
48
- rule: [['show', '$eq', true]],
49
- name: 'tickSize',
50
- displayName: '长度',
51
- value: tickSize,
52
- type: 'number',
53
- config: {
54
- suffix: 'px'
55
- }
56
- }]
57
- };
58
- };
59
- exports["default"] = _default;
package/lib/tooltip.js DELETED
@@ -1,500 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ = require(".");
8
- var defaultTooltip = {
9
- auto: false,
10
- manual: true,
11
- interval: 4,
12
- tip: {
13
- translate: {
14
- x: 0,
15
- y: 0
16
- },
17
- bgType: 'image',
18
- bgColor: 'rgba(48, 55, 66, 0.85)',
19
- image: 'components/static-image/vectorShapeV2/tipboxBg.png',
20
- size: {
21
- width: 120,
22
- height: 110
23
- },
24
- margin: {
25
- marginTop: 13,
26
- marginBottom: 10,
27
- marginLeft: 12,
28
- marginRight: 12
29
- },
30
- data: {
31
- xAxis: {
32
- background: "",
33
- gap: 5,
34
- font: {
35
- fontFamily: 'SourceHanSansCN-Medium',
36
- fontSize: 16,
37
- color: '#E6F6FF',
38
- bold: false,
39
- italic: false,
40
- letterSpacing: 0
41
- },
42
- align: 'left',
43
- translate: {
44
- x: 0,
45
- y: 0
46
- }
47
- },
48
- data: {
49
- lineHeight: 18,
50
- gap: 5,
51
- iconSize: 10,
52
- background: "",
53
- num: "",
54
- name: {
55
- fontFamily: 'SourceHanSansCN-Medium',
56
- fontSize: 12,
57
- color: '#C8E7FF',
58
- bold: false,
59
- italic: false,
60
- letterSpacing: 0
61
- },
62
- value: {
63
- fontFamily: 'SourceHanSansCN-Medium',
64
- fontSize: 12,
65
- color: '#D4EFFC',
66
- bold: false,
67
- italic: false,
68
- letterSpacing: 0
69
- },
70
- suffix: {
71
- font: {
72
- fontFamily: 'SourceHanSansCN-Medium',
73
- fontSize: 12,
74
- color: '#D4EFFC',
75
- bold: false,
76
- italic: false,
77
- letterSpacing: 0
78
- },
79
- translate: {
80
- x: 0,
81
- y: 0
82
- }
83
- }
84
- }
85
- }
86
- },
87
- indicator: {
88
- zIndex: "bottom",
89
- width: 12,
90
- color: 'RGBA(255,255,255,0.3)'
91
- }
92
- };
93
- var _default = function _default() {
94
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultTooltip,
95
- _ref$auto = _ref.auto,
96
- auto = _ref$auto === void 0 ? defaultTooltip.auto : _ref$auto,
97
- _ref$manual = _ref.manual,
98
- manual = _ref$manual === void 0 ? defaultTooltip.manual : _ref$manual,
99
- _ref$interval = _ref.interval,
100
- interval = _ref$interval === void 0 ? defaultTooltip.interval : _ref$interval,
101
- _ref$tip = _ref.tip;
102
- _ref$tip = _ref$tip === void 0 ? defaultTooltip.tip : _ref$tip;
103
- var _ref$tip$translate = _ref$tip.translate;
104
- _ref$tip$translate = _ref$tip$translate === void 0 ? defaultTooltip.tip.translate : _ref$tip$translate;
105
- var _ref$tip$translate$x = _ref$tip$translate.x,
106
- tipTranslateX = _ref$tip$translate$x === void 0 ? defaultTooltip.tip.translate.x : _ref$tip$translate$x,
107
- _ref$tip$translate$y = _ref$tip$translate.y,
108
- tipTranslateY = _ref$tip$translate$y === void 0 ? defaultTooltip.tip.translate.y : _ref$tip$translate$y,
109
- _ref$tip$bgType = _ref$tip.bgType,
110
- bgType = _ref$tip$bgType === void 0 ? defaultTooltip.tip.bgType : _ref$tip$bgType,
111
- _ref$tip$bgColor = _ref$tip.bgColor,
112
- bgColor = _ref$tip$bgColor === void 0 ? defaultTooltip.tip.bgColor : _ref$tip$bgColor,
113
- _ref$tip$image = _ref$tip.image,
114
- image = _ref$tip$image === void 0 ? defaultTooltip.tip.image : _ref$tip$image,
115
- _ref$tip$size = _ref$tip.size;
116
- _ref$tip$size = _ref$tip$size === void 0 ? defaultTooltip.tip.size : _ref$tip$size;
117
- var _ref$tip$size$width = _ref$tip$size.width,
118
- tipWidth = _ref$tip$size$width === void 0 ? defaultTooltip.tip.size.width : _ref$tip$size$width,
119
- _ref$tip$size$height = _ref$tip$size.height,
120
- tipHeight = _ref$tip$size$height === void 0 ? defaultTooltip.tip.size.height : _ref$tip$size$height,
121
- _ref$tip$margin = _ref$tip.margin;
122
- _ref$tip$margin = _ref$tip$margin === void 0 ? defaultTooltip.tip.margin : _ref$tip$margin;
123
- var _ref$tip$margin$margi = _ref$tip$margin.marginTop,
124
- marginTop = _ref$tip$margin$margi === void 0 ? defaultTooltip.tip.margin.marginTop : _ref$tip$margin$margi,
125
- _ref$tip$margin$margi2 = _ref$tip$margin.marginBottom,
126
- marginBottom = _ref$tip$margin$margi2 === void 0 ? defaultTooltip.tip.margin.marginBottom : _ref$tip$margin$margi2,
127
- _ref$tip$margin$margi3 = _ref$tip$margin.marginLeft,
128
- marginLeft = _ref$tip$margin$margi3 === void 0 ? defaultTooltip.tip.margin.marginLeft : _ref$tip$margin$margi3,
129
- _ref$tip$margin$margi4 = _ref$tip$margin.marginRight,
130
- marginRight = _ref$tip$margin$margi4 === void 0 ? defaultTooltip.tip.margin.marginRight : _ref$tip$margin$margi4,
131
- _ref$tip$data = _ref$tip.data;
132
- _ref$tip$data = _ref$tip$data === void 0 ? defaultTooltip.tip.data : _ref$tip$data;
133
- var _ref$tip$data$xAxis = _ref$tip$data.xAxis;
134
- _ref$tip$data$xAxis = _ref$tip$data$xAxis === void 0 ? defaultTooltip.tip.data.xAxis : _ref$tip$data$xAxis;
135
- var _ref$tip$data$xAxis$b = _ref$tip$data$xAxis.background,
136
- xAxisBg = _ref$tip$data$xAxis$b === void 0 ? defaultTooltip.tip.data.xAxis.background : _ref$tip$data$xAxis$b,
137
- _ref$tip$data$xAxis$g = _ref$tip$data$xAxis.gap,
138
- xAxisGap = _ref$tip$data$xAxis$g === void 0 ? defaultTooltip.tip.data.xAxis.gap : _ref$tip$data$xAxis$g,
139
- _ref$tip$data$xAxis$f = _ref$tip$data$xAxis.font;
140
- _ref$tip$data$xAxis$f = _ref$tip$data$xAxis$f === void 0 ? defaultTooltip.tip.data.xAxis.font : _ref$tip$data$xAxis$f;
141
- var xAxisFontFamily = _ref$tip$data$xAxis$f.fontFamily,
142
- xAxisFontSize = _ref$tip$data$xAxis$f.fontSize,
143
- xAxisColor = _ref$tip$data$xAxis$f.color,
144
- xAxisBold = _ref$tip$data$xAxis$f.bold,
145
- xAxisItalic = _ref$tip$data$xAxis$f.italic,
146
- xAxisLetterSpacing = _ref$tip$data$xAxis$f.letterSpacing,
147
- _ref$tip$data$xAxis$a = _ref$tip$data$xAxis.align,
148
- align = _ref$tip$data$xAxis$a === void 0 ? defaultTooltip.tip.data.xAxis.align : _ref$tip$data$xAxis$a,
149
- _ref$tip$data$xAxis$t = _ref$tip$data$xAxis.translate;
150
- _ref$tip$data$xAxis$t = _ref$tip$data$xAxis$t === void 0 ? defaultTooltip.tip.data.xAxis.translate : _ref$tip$data$xAxis$t;
151
- var x = _ref$tip$data$xAxis$t.x,
152
- y = _ref$tip$data$xAxis$t.y,
153
- _ref$tip$data$data = _ref$tip$data.data;
154
- _ref$tip$data$data = _ref$tip$data$data === void 0 ? defaultTooltip.tip.data.data : _ref$tip$data$data;
155
- var _ref$tip$data$data$li = _ref$tip$data$data.lineHeight,
156
- lineHeight = _ref$tip$data$data$li === void 0 ? defaultTooltip.tip.data.lineHeight : _ref$tip$data$data$li,
157
- _ref$tip$data$data$ga = _ref$tip$data$data.gap,
158
- dataGap = _ref$tip$data$data$ga === void 0 ? defaultTooltip.tip.data.gap : _ref$tip$data$data$ga,
159
- _ref$tip$data$data$ic = _ref$tip$data$data.iconSize,
160
- iconSize = _ref$tip$data$data$ic === void 0 ? defaultTooltip.tip.data.iconSize : _ref$tip$data$data$ic,
161
- _ref$tip$data$data$nu = _ref$tip$data$data.num,
162
- num = _ref$tip$data$data$nu === void 0 ? defaultTooltip.tip.data.num : _ref$tip$data$data$nu,
163
- _ref$tip$data$data$ba = _ref$tip$data$data.background,
164
- dataBg = _ref$tip$data$data$ba === void 0 ? defaultTooltip.tip.data.background : _ref$tip$data$data$ba,
165
- _ref$tip$data$data$na = _ref$tip$data$data.name;
166
- _ref$tip$data$data$na = _ref$tip$data$data$na === void 0 ? defaultTooltip.tip.data.data.name : _ref$tip$data$data$na;
167
- var nameFontFamily = _ref$tip$data$data$na.fontFamily,
168
- nameFontSize = _ref$tip$data$data$na.fontSize,
169
- nameColor = _ref$tip$data$data$na.color,
170
- nameBold = _ref$tip$data$data$na.bold,
171
- nameItalic = _ref$tip$data$data$na.italic,
172
- nameLetterSpacing = _ref$tip$data$data$na.letterSpacing,
173
- _ref$tip$data$data$va = _ref$tip$data$data.value;
174
- _ref$tip$data$data$va = _ref$tip$data$data$va === void 0 ? defaultTooltip.tip.data.data.value : _ref$tip$data$data$va;
175
- var valueFontFamily = _ref$tip$data$data$va.fontFamily,
176
- valueFontSize = _ref$tip$data$data$va.fontSize,
177
- valueFontColor = _ref$tip$data$data$va.color,
178
- valueFontBold = _ref$tip$data$data$va.bold,
179
- valueFontItalic = _ref$tip$data$data$va.italic,
180
- valueFontLetterSpacing = _ref$tip$data$data$va.letterSpacing,
181
- _ref$tip$data$data$su = _ref$tip$data$data.suffix;
182
- _ref$tip$data$data$su = _ref$tip$data$data$su === void 0 ? defaultTooltip.tip.data.data.suffix : _ref$tip$data$data$su;
183
- var _ref$tip$data$data$su2 = _ref$tip$data$data$su.font;
184
- _ref$tip$data$data$su2 = _ref$tip$data$data$su2 === void 0 ? defaultTooltip.tip.data.data.suffix.font : _ref$tip$data$data$su2;
185
- var suffixFontFamily = _ref$tip$data$data$su2.fontFamily,
186
- suffixFontSize = _ref$tip$data$data$su2.fontSize,
187
- suffixColor = _ref$tip$data$data$su2.color,
188
- suffixBold = _ref$tip$data$data$su2.bold,
189
- suffixItalic = _ref$tip$data$data$su2.italic,
190
- suffixLetterSpacing = _ref$tip$data$data$su2.letterSpacing,
191
- _ref$indicator = _ref.indicator;
192
- _ref$indicator = _ref$indicator === void 0 ? defaultTooltip.indicator : _ref$indicator;
193
- var _ref$indicator$zIndex = _ref$indicator.zIndex,
194
- zIndex = _ref$indicator$zIndex === void 0 ? defaultTooltip.indicator.zIndex : _ref$indicator$zIndex,
195
- _ref$indicator$width = _ref$indicator.width,
196
- width = _ref$indicator$width === void 0 ? defaultTooltip.indicator.width : _ref$indicator$width,
197
- _ref$indicator$color = _ref$indicator.color,
198
- color = _ref$indicator$color === void 0 ? defaultTooltip.indicator.color : _ref$indicator$color;
199
- return {
200
- name: 'tooltip',
201
- displayName: '提示框',
202
- value: [{
203
- name: 'auto',
204
- displayName: '自动轮播',
205
- value: auto,
206
- type: 'boolean'
207
- }, {
208
- name: 'manual',
209
- displayName: '悬停触发',
210
- value: manual,
211
- type: 'boolean'
212
- }, {
213
- rule: [['auto', '$eq', true]],
214
- name: 'interval',
215
- displayName: '停留时间',
216
- value: interval,
217
- type: 'number',
218
- config: {
219
- suffix: 's'
220
- }
221
- }, {
222
- name: 'tip',
223
- displayName: '提示框',
224
- value: [(0, _.translate)(tipTranslateX, tipTranslateY), {
225
- name: "bgType",
226
- displayName: "背景类型",
227
- type: "radio",
228
- value: bgType,
229
- config: {
230
- options: [{
231
- name: "颜色",
232
- value: "color"
233
- }, {
234
- name: "图片",
235
- value: "image"
236
- }]
237
- }
238
- }, {
239
- rule: [["bgType", "$eq", "color"]],
240
- name: "bgColor",
241
- displayName: "颜色",
242
- type: "color",
243
- value: bgColor
244
- }, {
245
- rule: [["bgType", "$eq", "image"]],
246
- type: 'uploadImage',
247
- name: 'image',
248
- displayName: '图片',
249
- value: image
250
- }, {
251
- name: 'size',
252
- displayName: '尺寸',
253
- value: [{
254
- name: 'width',
255
- displayName: '宽度',
256
- value: tipWidth,
257
- config: {
258
- span: 12,
259
- suffix: 'W'
260
- }
261
- }, {
262
- name: 'height',
263
- displayName: '高度',
264
- value: tipHeight,
265
- config: {
266
- span: 12,
267
- suffix: 'H'
268
- }
269
- }],
270
- type: 'group'
271
- }, (0, _.margin)({
272
- marginTop: marginTop,
273
- marginRight: marginRight,
274
- marginBottom: marginBottom,
275
- marginLeft: marginLeft
276
- }), {
277
- name: 'data',
278
- displayName: '框内数据',
279
- value: [{
280
- name: 'xAxis',
281
- displayName: '类目标签',
282
- value: [{
283
- name: "background",
284
- displayName: "背景图",
285
- type: "image",
286
- value: xAxisBg
287
- }, {
288
- name: "gap",
289
- displayName: "下间距",
290
- type: "number",
291
- value: xAxisGap
292
- }, {
293
- name: 'font',
294
- displayName: '文本样式',
295
- value: {
296
- fontFamily: xAxisFontFamily,
297
- fontSize: xAxisFontSize,
298
- color: xAxisColor,
299
- bold: xAxisBold,
300
- italic: xAxisItalic,
301
- letterSpacing: xAxisLetterSpacing
302
- },
303
- type: 'textStyle',
304
- markColorType: 'textColor'
305
- }, {
306
- name: 'align',
307
- displayName: '对齐方式',
308
- value: align,
309
- type: 'radio',
310
- config: {
311
- options: [{
312
- name: '左对齐',
313
- value: 'left',
314
- icon: 'align-left'
315
- }, {
316
- name: '居中对齐',
317
- value: 'center',
318
- icon: 'align-center'
319
- }, {
320
- name: '右对齐',
321
- value: 'right',
322
- icon: 'align-right'
323
- }],
324
- mode: 'icon'
325
- }
326
- }, (0, _.translate)(x, y)]
327
- }, {
328
- displayName: '数据',
329
- name: 'data',
330
- value: [{
331
- displayName: '行高',
332
- type: 'number',
333
- value: lineHeight,
334
- name: 'lineHeight'
335
- }, {
336
- displayName: '行间距',
337
- type: 'number',
338
- value: dataGap,
339
- name: 'gap'
340
- }, {
341
- displayName: '图标尺寸',
342
- type: 'number',
343
- value: iconSize,
344
- name: 'iconSize'
345
- }, {
346
- name: "background",
347
- displayName: "背景图",
348
- type: "image",
349
- value: dataBg
350
- }, {
351
- displayName: "保留小数",
352
- type: "input",
353
- value: num,
354
- name: "num"
355
- }, {
356
- name: 'name',
357
- displayName: '系列名称',
358
- value: {
359
- fontFamily: nameFontFamily,
360
- fontSize: nameFontSize,
361
- color: nameColor,
362
- bold: nameBold,
363
- italic: nameItalic,
364
- letterSpacing: nameLetterSpacing
365
- },
366
- type: 'textStyle',
367
- markColorType: 'textColor'
368
- }, {
369
- name: 'value',
370
- displayName: '系列值',
371
- value: {
372
- fontFamily: valueFontFamily,
373
- fontSize: valueFontSize,
374
- color: valueFontColor,
375
- bold: valueFontBold,
376
- italic: valueFontItalic,
377
- letterSpacing: valueFontLetterSpacing
378
- },
379
- type: 'textStyle',
380
- markColorType: 'textColor'
381
- }, {
382
- name: 'suffix',
383
- displayName: '后缀',
384
- value: [{
385
- name: 'show',
386
- displayName: '显示',
387
- value: false,
388
- type: 'boolean'
389
- }, {
390
- name: 'content',
391
- displayName: '内容',
392
- value: [{
393
- name: "suffixText1",
394
- displayName: "后缀",
395
- type: "object",
396
- value: [{
397
- name: "suffix",
398
- displayName: "后缀",
399
- type: "group",
400
- value: [{
401
- name: "name",
402
- displayName: "系列名",
403
- value: "系列一",
404
- type: "input",
405
- config: {
406
- span: 12
407
- }
408
- }, {
409
- name: "suffix",
410
- displayName: "后缀",
411
- value: "%",
412
- type: "input",
413
- config: {
414
- span: 12
415
- }
416
- }]
417
- }]
418
- }],
419
- config: {
420
- template: [{
421
- name: "suffixText",
422
- displayName: "后缀",
423
- type: "object",
424
- value: [{
425
- name: "suffix",
426
- displayName: "后缀",
427
- type: "group",
428
- value: [{
429
- name: "name",
430
- displayName: "系列名",
431
- value: "",
432
- type: "input",
433
- config: {
434
- span: 12
435
- }
436
- }, {
437
- name: "suffix",
438
- displayName: "后缀",
439
- value: "",
440
- type: "input",
441
- config: {
442
- span: 12
443
- }
444
- }]
445
- }]
446
- }]
447
- },
448
- type: 'array'
449
- }, {
450
- name: 'font',
451
- displayName: '文本样式',
452
- value: {
453
- fontFamily: suffixFontFamily,
454
- fontSize: suffixFontSize,
455
- color: suffixColor,
456
- bold: suffixBold,
457
- italic: suffixItalic,
458
- letterSpacing: suffixLetterSpacing
459
- },
460
- type: 'textStyle',
461
- markColorType: 'textColor'
462
- }, (0, _.translate)(x, y)]
463
- }]
464
- }]
465
- }]
466
- }, {
467
- name: 'indicator',
468
- displayName: '指示器',
469
- value: [{
470
- name: 'zIndex',
471
- displayName: '层级',
472
- value: zIndex,
473
- type: 'radio',
474
- config: {
475
- options: [{
476
- name: "顶层",
477
- value: "top"
478
- }, {
479
- name: "底层",
480
- value: "bottom"
481
- }]
482
- }
483
- }, {
484
- name: 'width',
485
- displayName: '粗细',
486
- value: width,
487
- type: 'number',
488
- config: {
489
- suffix: '%'
490
- }
491
- }, {
492
- name: 'color',
493
- displayName: '颜色',
494
- value: color,
495
- type: 'color'
496
- }]
497
- }]
498
- };
499
- };
500
- exports["default"] = _default;