@easyv/config 1.1.32 → 1.1.34

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/index.js CHANGED
@@ -227,6 +227,12 @@ Object.defineProperty(exports, "pieSeries", {
227
227
  return _series.pieSeries;
228
228
  }
229
229
  });
230
+ Object.defineProperty(exports, "pieTooltip", {
231
+ enumerable: true,
232
+ get: function get() {
233
+ return _pieTooltip["default"];
234
+ }
235
+ });
230
236
  Object.defineProperty(exports, "purePieSeries", {
231
237
  enumerable: true,
232
238
  get: function get() {
@@ -338,5 +344,6 @@ var _shadow = _interopRequireDefault(require("./shadow"));
338
344
  var _textOverflow = _interopRequireDefault(require("./textOverflow"));
339
345
  var _baseLine = _interopRequireDefault(require("./baseLine"));
340
346
  var _control = require("./control");
347
+ var _pieTooltip = _interopRequireDefault(require("./pieTooltip"));
341
348
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
342
349
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
package/lib/label.js CHANGED
@@ -96,7 +96,9 @@ var _default = function _default() {
96
96
  }
97
97
  }, _objectSpread({
98
98
  _rule: [["show", "$eq", true]]
99
- }, (0, _.translate)(x, y))].filter(function (item) {
99
+ }, (0, _.translate)(x, y)), (0, _.sc)("suffix", "后缀", "", [(0, _.sc)("content", "内容", "input", ""), (0, _.sc)("font", "字体样式", "textStyle", (0, _.font)()), (0, _.translate)()], {
100
+ defaultOpen: true
101
+ }, (0, _.showRule)())].filter(function (item) {
100
102
  return !!item;
101
103
  })
102
104
  };
@@ -0,0 +1,314 @@
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
+ manual: true,
10
+ tip: {
11
+ translate: {
12
+ x: 0,
13
+ y: 0
14
+ },
15
+ image: "",
16
+ size: {
17
+ width: 120,
18
+ height: 40
19
+ },
20
+ margin: {
21
+ marginTop: 10,
22
+ marginBottom: 10,
23
+ marginLeft: 10,
24
+ marginRight: 10
25
+ },
26
+ data: {
27
+ lineHeight: 18,
28
+ iconSize: 10,
29
+ num: "",
30
+ name: {
31
+ fontFamily: "Mircosoft Yahei",
32
+ fontSize: 12,
33
+ color: "#C8E7FF",
34
+ bold: false,
35
+ italic: false,
36
+ letterSpacing: 0
37
+ },
38
+ value: {
39
+ font: {
40
+ fontFamily: "Mircosoft Yahei",
41
+ fontSize: 12,
42
+ color: "#D4EFFC",
43
+ bold: false,
44
+ italic: false,
45
+ letterSpacing: 0
46
+ }
47
+ },
48
+ percentage: {
49
+ font: {
50
+ fontFamily: "Mircosoft Yahei",
51
+ fontSize: 12,
52
+ color: "#D4EFFC",
53
+ bold: false,
54
+ italic: false,
55
+ letterSpacing: 0
56
+ }
57
+ },
58
+ suffix: {
59
+ font: {
60
+ fontFamily: "Mircosoft Yahei",
61
+ fontSize: 12,
62
+ color: "#D4EFFC",
63
+ bold: false,
64
+ italic: false,
65
+ letterSpacing: 0
66
+ },
67
+ translate: {
68
+ x: 0,
69
+ y: 0
70
+ }
71
+ }
72
+ }
73
+ }
74
+ };
75
+ var _default = function _default() {
76
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultTooltip,
77
+ _ref$manual = _ref.manual,
78
+ manual = _ref$manual === void 0 ? defaultTooltip.manual : _ref$manual,
79
+ _ref$tip = _ref.tip,
80
+ _ref$tip2 = _ref$tip === void 0 ? defaultTooltip.tip : _ref$tip,
81
+ _ref$tip2$translate = _ref$tip2.translate,
82
+ _ref$tip2$translate2 = _ref$tip2$translate === void 0 ? defaultTooltip.tip.translate : _ref$tip2$translate,
83
+ _ref$tip2$translate2$ = _ref$tip2$translate2.x,
84
+ tipTranslateX = _ref$tip2$translate2$ === void 0 ? defaultTooltip.tip.translate.x : _ref$tip2$translate2$,
85
+ _ref$tip2$translate2$2 = _ref$tip2$translate2.y,
86
+ tipTranslateY = _ref$tip2$translate2$2 === void 0 ? defaultTooltip.tip.translate.y : _ref$tip2$translate2$2,
87
+ _ref$tip2$image = _ref$tip2.image,
88
+ image = _ref$tip2$image === void 0 ? defaultTooltip.tip.image : _ref$tip2$image,
89
+ _ref$tip2$size = _ref$tip2.size,
90
+ _ref$tip2$size2 = _ref$tip2$size === void 0 ? defaultTooltip.tip.size : _ref$tip2$size,
91
+ _ref$tip2$size2$width = _ref$tip2$size2.width,
92
+ tipWidth = _ref$tip2$size2$width === void 0 ? defaultTooltip.tip.size.width : _ref$tip2$size2$width,
93
+ _ref$tip2$size2$heigh = _ref$tip2$size2.height,
94
+ tipHeight = _ref$tip2$size2$heigh === void 0 ? defaultTooltip.tip.size.height : _ref$tip2$size2$heigh,
95
+ _ref$tip2$margin = _ref$tip2.margin,
96
+ _ref$tip2$margin2 = _ref$tip2$margin === void 0 ? defaultTooltip.tip.margin : _ref$tip2$margin,
97
+ _ref$tip2$margin2$mar = _ref$tip2$margin2.marginTop,
98
+ marginTop = _ref$tip2$margin2$mar === void 0 ? defaultTooltip.tip.margin.marginTop : _ref$tip2$margin2$mar,
99
+ _ref$tip2$margin2$mar2 = _ref$tip2$margin2.marginBottom,
100
+ marginBottom = _ref$tip2$margin2$mar2 === void 0 ? defaultTooltip.tip.margin.marginBottom : _ref$tip2$margin2$mar2,
101
+ _ref$tip2$margin2$mar3 = _ref$tip2$margin2.marginLeft,
102
+ marginLeft = _ref$tip2$margin2$mar3 === void 0 ? defaultTooltip.tip.margin.marginLeft : _ref$tip2$margin2$mar3,
103
+ _ref$tip2$margin2$mar4 = _ref$tip2$margin2.marginRight,
104
+ marginRight = _ref$tip2$margin2$mar4 === void 0 ? defaultTooltip.tip.margin.marginRight : _ref$tip2$margin2$mar4,
105
+ _ref$tip2$data = _ref$tip2.data,
106
+ _ref$tip2$data$lineHe = _ref$tip2$data.lineHeight,
107
+ lineHeight = _ref$tip2$data$lineHe === void 0 ? defaultTooltip.tip.data.lineHeight : _ref$tip2$data$lineHe,
108
+ _ref$tip2$data$iconSi = _ref$tip2$data.iconSize,
109
+ iconSize = _ref$tip2$data$iconSi === void 0 ? defaultTooltip.tip.data.iconSize : _ref$tip2$data$iconSi,
110
+ _ref$tip2$data$num = _ref$tip2$data.num,
111
+ num = _ref$tip2$data$num === void 0 ? defaultTooltip.tip.data.num : _ref$tip2$data$num,
112
+ _ref$tip2$data$name = _ref$tip2$data.name,
113
+ _ref$tip2$data$name2 = _ref$tip2$data$name === void 0 ? defaultTooltip.tip.data.name : _ref$tip2$data$name,
114
+ nameFontFamily = _ref$tip2$data$name2.fontFamily,
115
+ nameFontSize = _ref$tip2$data$name2.fontSize,
116
+ nameColor = _ref$tip2$data$name2.color,
117
+ nameBold = _ref$tip2$data$name2.bold,
118
+ nameItalic = _ref$tip2$data$name2.italic,
119
+ nameLetterSpacing = _ref$tip2$data$name2.letterSpacing,
120
+ _ref$tip2$data$value = _ref$tip2$data.value,
121
+ _ref$tip2$data$value2 = _ref$tip2$data$value === void 0 ? defaultTooltip.tip.data.value : _ref$tip2$data$value,
122
+ _ref$tip2$data$value3 = _ref$tip2$data$value2.font,
123
+ valueFontFamily = _ref$tip2$data$value3.fontFamily,
124
+ valueFontSize = _ref$tip2$data$value3.fontSize,
125
+ valueFontColor = _ref$tip2$data$value3.color,
126
+ valueFontBold = _ref$tip2$data$value3.bold,
127
+ valueFontItalic = _ref$tip2$data$value3.italic,
128
+ valueFontLetterSpacing = _ref$tip2$data$value3.letterSpacing,
129
+ _ref$tip2$data$percen = _ref$tip2$data.percentage,
130
+ _ref$tip2$data$percen2 = _ref$tip2$data$percen === void 0 ? defaultTooltip.tip.data.percentage : _ref$tip2$data$percen,
131
+ _ref$tip2$data$percen3 = _ref$tip2$data$percen2.font,
132
+ percentageFontFamily = _ref$tip2$data$percen3.fontFamily,
133
+ percentageFontSize = _ref$tip2$data$percen3.fontSize,
134
+ percentageFontColor = _ref$tip2$data$percen3.color,
135
+ percentageFontBold = _ref$tip2$data$percen3.bold,
136
+ percentageFontItalic = _ref$tip2$data$percen3.italic,
137
+ percentageFontLetterSpacing = _ref$tip2$data$percen3.letterSpacing,
138
+ _ref$tip2$data$suffix = _ref$tip2$data.suffix,
139
+ _ref$tip2$data$suffix2 = _ref$tip2$data$suffix === void 0 ? defaultTooltip.tip.data.suffix : _ref$tip2$data$suffix,
140
+ _ref$tip2$data$suffix3 = _ref$tip2$data$suffix2.font,
141
+ _ref$tip2$data$suffix4 = _ref$tip2$data$suffix3 === void 0 ? defaultTooltip.tip.data.suffix.font : _ref$tip2$data$suffix3,
142
+ suffixFontFamily = _ref$tip2$data$suffix4.fontFamily,
143
+ suffixFontSize = _ref$tip2$data$suffix4.fontSize,
144
+ suffixColor = _ref$tip2$data$suffix4.color,
145
+ suffixBold = _ref$tip2$data$suffix4.bold,
146
+ suffixItalic = _ref$tip2$data$suffix4.italic,
147
+ suffixLetterSpacing = _ref$tip2$data$suffix4.letterSpacing;
148
+ return {
149
+ name: "tooltip",
150
+ displayName: "提示框",
151
+ value: [{
152
+ name: "manual",
153
+ displayName: "悬停触发",
154
+ value: manual,
155
+ type: "boolean"
156
+ }, {
157
+ name: "tip",
158
+ displayName: "提示框",
159
+ value: [(0, _.translate)(tipTranslateX, tipTranslateY), {
160
+ type: "uploadImage",
161
+ name: "image",
162
+ displayName: "背景",
163
+ value: image
164
+ }, {
165
+ name: "size",
166
+ displayName: "尺寸",
167
+ value: [{
168
+ name: "width",
169
+ displayName: "宽度",
170
+ value: tipWidth,
171
+ config: {
172
+ span: 12,
173
+ suffix: "W"
174
+ }
175
+ }, {
176
+ name: "height",
177
+ displayName: "高度",
178
+ value: tipHeight,
179
+ config: {
180
+ span: 12,
181
+ suffix: "H"
182
+ }
183
+ }],
184
+ type: "group"
185
+ }, (0, _.margin)({
186
+ marginTop: marginTop,
187
+ marginRight: marginRight,
188
+ marginBottom: marginBottom,
189
+ marginLeft: marginLeft
190
+ }), {
191
+ displayName: "数据",
192
+ name: "data",
193
+ value: [{
194
+ displayName: "图标尺寸",
195
+ type: "number",
196
+ value: iconSize,
197
+ name: "iconSize"
198
+ }, {
199
+ name: "name",
200
+ displayName: "系列名称",
201
+ value: {
202
+ fontFamily: nameFontFamily,
203
+ fontSize: nameFontSize,
204
+ color: nameColor,
205
+ bold: nameBold,
206
+ italic: nameItalic,
207
+ letterSpacing: nameLetterSpacing
208
+ },
209
+ type: "textStyle",
210
+ markColorType: "textColor"
211
+ }, {
212
+ name: "value",
213
+ displayName: "系列值",
214
+ value: [{
215
+ name: "show",
216
+ displayName: "显示",
217
+ value: true,
218
+ type: "boolean"
219
+ }, {
220
+ name: "fontStyle",
221
+ displayName: "文本样式",
222
+ value: {
223
+ fontFamily: valueFontFamily,
224
+ fontSize: valueFontSize,
225
+ color: valueFontColor,
226
+ bold: valueFontBold,
227
+ italic: valueFontItalic,
228
+ letterSpacing: valueFontLetterSpacing
229
+ },
230
+ type: "textStyle",
231
+ markColorType: "textColor"
232
+ }, {
233
+ name: "suffix",
234
+ displayName: "后缀",
235
+ value: [{
236
+ name: "show",
237
+ displayName: "显示",
238
+ value: false,
239
+ type: "boolean"
240
+ }, {
241
+ name: "content",
242
+ displayName: "内容",
243
+ type: "input",
244
+ value: "$"
245
+ }, {
246
+ name: "font",
247
+ displayName: "文本样式",
248
+ value: {
249
+ fontFamily: suffixFontFamily,
250
+ fontSize: suffixFontSize,
251
+ color: suffixColor,
252
+ bold: suffixBold,
253
+ italic: suffixItalic,
254
+ letterSpacing: suffixLetterSpacing
255
+ },
256
+ type: "textStyle",
257
+ markColorType: "textColor"
258
+ }, (0, _.translate)(0, 0)]
259
+ }]
260
+ }, {
261
+ name: "percentage",
262
+ displayName: "百分比",
263
+ value: [{
264
+ name: "show",
265
+ displayName: "显示",
266
+ value: true,
267
+ type: "boolean"
268
+ }, {
269
+ name: "fontStyle",
270
+ displayName: "文本样式",
271
+ value: {
272
+ fontFamily: percentageFontFamily,
273
+ fontSize: percentageFontSize,
274
+ color: percentageFontColor,
275
+ bold: percentageFontBold,
276
+ italic: percentageFontItalic,
277
+ letterSpacing: percentageFontLetterSpacing
278
+ },
279
+ type: "textStyle",
280
+ markColorType: "textColor"
281
+ }, {
282
+ name: "suffix",
283
+ displayName: "后缀",
284
+ value: [{
285
+ name: "show",
286
+ displayName: "显示",
287
+ value: true,
288
+ type: "boolean"
289
+ }, {
290
+ name: "content",
291
+ displayName: "内容",
292
+ type: "input",
293
+ value: "%"
294
+ }, {
295
+ name: "font",
296
+ displayName: "文本样式",
297
+ value: {
298
+ fontFamily: suffixFontFamily,
299
+ fontSize: suffixFontSize,
300
+ color: suffixColor,
301
+ bold: suffixBold,
302
+ italic: suffixItalic,
303
+ letterSpacing: suffixLetterSpacing
304
+ },
305
+ type: "textStyle",
306
+ markColorType: "textColor"
307
+ }, (0, _.translate)(0, 0)]
308
+ }]
309
+ }]
310
+ }]
311
+ }]
312
+ };
313
+ };
314
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/config",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -48,7 +48,9 @@ import shadow from './shadow';
48
48
  import textOverflow from './textOverflow';
49
49
  import baseLine from './baseLine';
50
50
  import { control } from './control';
51
+ import pieTooltip from './pieTooltip';
51
52
  export {
53
+ pieTooltip,
52
54
  control,
53
55
  show,
54
56
  showRule,
@@ -0,0 +1,321 @@
1
+ import { translate, margin } from ".";
2
+ const defaultTooltip = {
3
+ manual: true,
4
+ tip: {
5
+ translate: { x: 0, y: 0 },
6
+ image: "",
7
+ size: { width: 120, height: 40 },
8
+ margin: {
9
+ marginTop: 10,
10
+ marginBottom: 10,
11
+ marginLeft: 10,
12
+ marginRight: 10,
13
+ },
14
+ data: {
15
+ lineHeight: 18,
16
+ iconSize: 10,
17
+ num: "",
18
+ name: {
19
+ fontFamily: "Mircosoft Yahei",
20
+ fontSize: 12,
21
+ color: "#C8E7FF",
22
+ bold: false,
23
+ italic: false,
24
+ letterSpacing: 0,
25
+ },
26
+ value: {
27
+ font: {
28
+ fontFamily: "Mircosoft Yahei",
29
+ fontSize: 12,
30
+ color: "#D4EFFC",
31
+ bold: false,
32
+ italic: false,
33
+ letterSpacing: 0,
34
+ },
35
+ },
36
+ percentage: {
37
+ font: {
38
+ fontFamily: "Mircosoft Yahei",
39
+ fontSize: 12,
40
+ color: "#D4EFFC",
41
+ bold: false,
42
+ italic: false,
43
+ letterSpacing: 0,
44
+ },
45
+ },
46
+ suffix: {
47
+ font: {
48
+ fontFamily: "Mircosoft Yahei",
49
+ fontSize: 12,
50
+ color: "#D4EFFC",
51
+ bold: false,
52
+ italic: false,
53
+ letterSpacing: 0,
54
+ },
55
+ translate: { x: 0, y: 0 },
56
+ },
57
+ },
58
+ },
59
+ };
60
+ export default ({
61
+ manual = defaultTooltip.manual,
62
+ tip: {
63
+ translate: {
64
+ x: tipTranslateX = defaultTooltip.tip.translate.x,
65
+ y: tipTranslateY = defaultTooltip.tip.translate.y,
66
+ } = defaultTooltip.tip.translate,
67
+ image = defaultTooltip.tip.image,
68
+ size: {
69
+ width: tipWidth = defaultTooltip.tip.size.width,
70
+ height: tipHeight = defaultTooltip.tip.size.height,
71
+ } = defaultTooltip.tip.size,
72
+ margin: {
73
+ marginTop = defaultTooltip.tip.margin.marginTop,
74
+ marginBottom = defaultTooltip.tip.margin.marginBottom,
75
+ marginLeft = defaultTooltip.tip.margin.marginLeft,
76
+ marginRight = defaultTooltip.tip.margin.marginRight,
77
+ } = defaultTooltip.tip.margin,
78
+ data: {
79
+ lineHeight = defaultTooltip.tip.data.lineHeight,
80
+ iconSize = defaultTooltip.tip.data.iconSize,
81
+ num = defaultTooltip.tip.data.num,
82
+ name: {
83
+ fontFamily: nameFontFamily,
84
+ fontSize: nameFontSize,
85
+ color: nameColor,
86
+ bold: nameBold,
87
+ italic: nameItalic,
88
+ letterSpacing: nameLetterSpacing,
89
+ } = defaultTooltip.tip.data.name,
90
+ value: {
91
+ font: {
92
+ fontFamily: valueFontFamily,
93
+ fontSize: valueFontSize,
94
+ color: valueFontColor,
95
+ bold: valueFontBold,
96
+ italic: valueFontItalic,
97
+ letterSpacing: valueFontLetterSpacing,
98
+ },
99
+ } = defaultTooltip.tip.data.value,
100
+ percentage: {
101
+ font: {
102
+ fontFamily: percentageFontFamily,
103
+ fontSize: percentageFontSize,
104
+ color: percentageFontColor,
105
+ bold: percentageFontBold,
106
+ italic: percentageFontItalic,
107
+ letterSpacing: percentageFontLetterSpacing,
108
+ },
109
+ } = defaultTooltip.tip.data.percentage,
110
+ suffix: {
111
+ font: {
112
+ fontFamily: suffixFontFamily,
113
+ fontSize: suffixFontSize,
114
+ color: suffixColor,
115
+ bold: suffixBold,
116
+ italic: suffixItalic,
117
+ letterSpacing: suffixLetterSpacing,
118
+ } = defaultTooltip.tip.data.suffix.font,
119
+ } = defaultTooltip.tip.data.suffix,
120
+ },
121
+ } = defaultTooltip.tip,
122
+ } = defaultTooltip) => ({
123
+ name: "tooltip",
124
+ displayName: "提示框",
125
+ value: [
126
+ {
127
+ name: "manual",
128
+ displayName: "悬停触发",
129
+ value: manual,
130
+ type: "boolean",
131
+ },
132
+ {
133
+ name: "tip",
134
+ displayName: "提示框",
135
+ value: [
136
+ translate(tipTranslateX, tipTranslateY),
137
+ {
138
+ type: "uploadImage",
139
+ name: "image",
140
+ displayName: "背景",
141
+ value: image,
142
+ },
143
+ {
144
+ name: "size",
145
+ displayName: "尺寸",
146
+ value: [
147
+ {
148
+ name: "width",
149
+ displayName: "宽度",
150
+ value: tipWidth,
151
+ config: {
152
+ span: 12,
153
+ suffix: "W",
154
+ },
155
+ },
156
+ {
157
+ name: "height",
158
+ displayName: "高度",
159
+ value: tipHeight,
160
+ config: {
161
+ span: 12,
162
+ suffix: "H",
163
+ },
164
+ },
165
+ ],
166
+ type: "group",
167
+ },
168
+ margin({
169
+ marginTop,
170
+ marginRight,
171
+ marginBottom,
172
+ marginLeft,
173
+ }),
174
+ {
175
+ displayName: "数据",
176
+ name: "data",
177
+ value: [
178
+ {
179
+ displayName: "图标尺寸",
180
+ type: "number",
181
+ value: iconSize,
182
+ name: "iconSize",
183
+ },
184
+ {
185
+ name: "name",
186
+ displayName: "系列名称",
187
+ value: {
188
+ fontFamily: nameFontFamily,
189
+ fontSize: nameFontSize,
190
+ color: nameColor,
191
+ bold: nameBold,
192
+ italic: nameItalic,
193
+ letterSpacing: nameLetterSpacing,
194
+ },
195
+ type: "textStyle",
196
+ markColorType: "textColor",
197
+ },
198
+ {
199
+ name: "value",
200
+ displayName: "系列值",
201
+ value: [
202
+ {
203
+ name: "show",
204
+ displayName: "显示",
205
+ value: true,
206
+ type: "boolean",
207
+ },
208
+ {
209
+ name: "fontStyle",
210
+ displayName: "文本样式",
211
+ value: {
212
+ fontFamily: valueFontFamily,
213
+ fontSize: valueFontSize,
214
+ color: valueFontColor,
215
+ bold: valueFontBold,
216
+ italic: valueFontItalic,
217
+ letterSpacing: valueFontLetterSpacing,
218
+ },
219
+ type: "textStyle",
220
+ markColorType: "textColor",
221
+ },
222
+ {
223
+ name: "suffix",
224
+ displayName: "后缀",
225
+ value: [
226
+ {
227
+ name: "show",
228
+ displayName: "显示",
229
+ value: false,
230
+ type: "boolean",
231
+ },
232
+ {
233
+ name: "content",
234
+ displayName: "内容",
235
+ type: "input",
236
+ value: "$",
237
+ },
238
+ {
239
+ name: "font",
240
+ displayName: "文本样式",
241
+ value: {
242
+ fontFamily: suffixFontFamily,
243
+ fontSize: suffixFontSize,
244
+ color: suffixColor,
245
+ bold: suffixBold,
246
+ italic: suffixItalic,
247
+ letterSpacing: suffixLetterSpacing,
248
+ },
249
+ type: "textStyle",
250
+ markColorType: "textColor",
251
+ },
252
+ translate(0, 0),
253
+ ],
254
+ },
255
+ ],
256
+ },
257
+ {
258
+ name: "percentage",
259
+ displayName: "百分比",
260
+ value: [
261
+ {
262
+ name: "show",
263
+ displayName: "显示",
264
+ value: true,
265
+ type: "boolean",
266
+ },
267
+ {
268
+ name: "fontStyle",
269
+ displayName: "文本样式",
270
+ value: {
271
+ fontFamily: percentageFontFamily,
272
+ fontSize: percentageFontSize,
273
+ color: percentageFontColor,
274
+ bold: percentageFontBold,
275
+ italic: percentageFontItalic,
276
+ letterSpacing: percentageFontLetterSpacing,
277
+ },
278
+ type: "textStyle",
279
+ markColorType: "textColor",
280
+ },
281
+ {
282
+ name: "suffix",
283
+ displayName: "后缀",
284
+ value: [
285
+ {
286
+ name: "show",
287
+ displayName: "显示",
288
+ value: true,
289
+ type: "boolean",
290
+ },
291
+ {
292
+ name: "content",
293
+ displayName: "内容",
294
+ type: "input",
295
+ value: "%",
296
+ },
297
+ {
298
+ name: "font",
299
+ displayName: "文本样式",
300
+ value: {
301
+ fontFamily: suffixFontFamily,
302
+ fontSize: suffixFontSize,
303
+ color: suffixColor,
304
+ bold: suffixBold,
305
+ italic: suffixItalic,
306
+ letterSpacing: suffixLetterSpacing,
307
+ },
308
+ type: "textStyle",
309
+ markColorType: "textColor",
310
+ },
311
+ translate(0, 0),
312
+ ],
313
+ },
314
+ ],
315
+ },
316
+ ],
317
+ },
318
+ ],
319
+ },
320
+ ],
321
+ });