@easyv/config 1.1.32 → 1.1.33

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,324 @@
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: lineHeight,
197
+ name: "lineHeight"
198
+ }, {
199
+ displayName: "图标尺寸",
200
+ type: "number",
201
+ value: iconSize,
202
+ name: "iconSize"
203
+ }, {
204
+ displayName: "保留小数",
205
+ type: "input",
206
+ value: num,
207
+ name: "num"
208
+ }, {
209
+ name: "name",
210
+ displayName: "系列名称",
211
+ value: {
212
+ fontFamily: nameFontFamily,
213
+ fontSize: nameFontSize,
214
+ color: nameColor,
215
+ bold: nameBold,
216
+ italic: nameItalic,
217
+ letterSpacing: nameLetterSpacing
218
+ },
219
+ type: "textStyle",
220
+ markColorType: "textColor"
221
+ }, {
222
+ name: "value",
223
+ displayName: "系列值",
224
+ value: [{
225
+ name: "show",
226
+ displayName: "显示",
227
+ value: true,
228
+ type: "boolean"
229
+ }, {
230
+ name: "fontStyle",
231
+ displayName: "文本样式",
232
+ value: {
233
+ fontFamily: valueFontFamily,
234
+ fontSize: valueFontSize,
235
+ color: valueFontColor,
236
+ bold: valueFontBold,
237
+ italic: valueFontItalic,
238
+ letterSpacing: valueFontLetterSpacing
239
+ },
240
+ type: "textStyle",
241
+ markColorType: "textColor"
242
+ }, {
243
+ name: "suffix",
244
+ displayName: "后缀",
245
+ value: [{
246
+ name: "show",
247
+ displayName: "显示",
248
+ value: false,
249
+ type: "boolean"
250
+ }, {
251
+ name: "content",
252
+ displayName: "内容",
253
+ type: "input",
254
+ value: "$"
255
+ }, {
256
+ name: "font",
257
+ displayName: "文本样式",
258
+ value: {
259
+ fontFamily: suffixFontFamily,
260
+ fontSize: suffixFontSize,
261
+ color: suffixColor,
262
+ bold: suffixBold,
263
+ italic: suffixItalic,
264
+ letterSpacing: suffixLetterSpacing
265
+ },
266
+ type: "textStyle",
267
+ markColorType: "textColor"
268
+ }, (0, _.translate)(0, 0)]
269
+ }]
270
+ }, {
271
+ name: "percentage",
272
+ displayName: "百分比",
273
+ value: [{
274
+ name: "show",
275
+ displayName: "显示",
276
+ value: true,
277
+ type: "boolean"
278
+ }, {
279
+ name: "fontStyle",
280
+ displayName: "文本样式",
281
+ value: {
282
+ fontFamily: percentageFontFamily,
283
+ fontSize: percentageFontSize,
284
+ color: percentageFontColor,
285
+ bold: percentageFontBold,
286
+ italic: percentageFontItalic,
287
+ letterSpacing: percentageFontLetterSpacing
288
+ },
289
+ type: "textStyle",
290
+ markColorType: "textColor"
291
+ }, {
292
+ name: "suffix",
293
+ displayName: "后缀",
294
+ value: [{
295
+ name: "show",
296
+ displayName: "显示",
297
+ value: true,
298
+ type: "boolean"
299
+ }, {
300
+ name: "content",
301
+ displayName: "内容",
302
+ type: "input",
303
+ value: "%"
304
+ }, {
305
+ name: "font",
306
+ displayName: "文本样式",
307
+ value: {
308
+ fontFamily: suffixFontFamily,
309
+ fontSize: suffixFontSize,
310
+ color: suffixColor,
311
+ bold: suffixBold,
312
+ italic: suffixItalic,
313
+ letterSpacing: suffixLetterSpacing
314
+ },
315
+ type: "textStyle",
316
+ markColorType: "textColor"
317
+ }, (0, _.translate)(0, 0)]
318
+ }]
319
+ }]
320
+ }]
321
+ }]
322
+ };
323
+ };
324
+ 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.33",
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,333 @@
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: lineHeight,
182
+ name: "lineHeight",
183
+ },
184
+ {
185
+ displayName: "图标尺寸",
186
+ type: "number",
187
+ value: iconSize,
188
+ name: "iconSize",
189
+ },
190
+ {
191
+ displayName: "保留小数",
192
+ type: "input",
193
+ value: num,
194
+ name: "num",
195
+ },
196
+ {
197
+ name: "name",
198
+ displayName: "系列名称",
199
+ value: {
200
+ fontFamily: nameFontFamily,
201
+ fontSize: nameFontSize,
202
+ color: nameColor,
203
+ bold: nameBold,
204
+ italic: nameItalic,
205
+ letterSpacing: nameLetterSpacing,
206
+ },
207
+ type: "textStyle",
208
+ markColorType: "textColor",
209
+ },
210
+ {
211
+ name: "value",
212
+ displayName: "系列值",
213
+ value: [
214
+ {
215
+ name: "show",
216
+ displayName: "显示",
217
+ value: true,
218
+ type: "boolean",
219
+ },
220
+ {
221
+ name: "fontStyle",
222
+ displayName: "文本样式",
223
+ value: {
224
+ fontFamily: valueFontFamily,
225
+ fontSize: valueFontSize,
226
+ color: valueFontColor,
227
+ bold: valueFontBold,
228
+ italic: valueFontItalic,
229
+ letterSpacing: valueFontLetterSpacing,
230
+ },
231
+ type: "textStyle",
232
+ markColorType: "textColor",
233
+ },
234
+ {
235
+ name: "suffix",
236
+ displayName: "后缀",
237
+ value: [
238
+ {
239
+ name: "show",
240
+ displayName: "显示",
241
+ value: false,
242
+ type: "boolean",
243
+ },
244
+ {
245
+ name: "content",
246
+ displayName: "内容",
247
+ type: "input",
248
+ value: "$",
249
+ },
250
+ {
251
+ name: "font",
252
+ displayName: "文本样式",
253
+ value: {
254
+ fontFamily: suffixFontFamily,
255
+ fontSize: suffixFontSize,
256
+ color: suffixColor,
257
+ bold: suffixBold,
258
+ italic: suffixItalic,
259
+ letterSpacing: suffixLetterSpacing,
260
+ },
261
+ type: "textStyle",
262
+ markColorType: "textColor",
263
+ },
264
+ translate(0, 0),
265
+ ],
266
+ },
267
+ ],
268
+ },
269
+ {
270
+ name: "percentage",
271
+ displayName: "百分比",
272
+ value: [
273
+ {
274
+ name: "show",
275
+ displayName: "显示",
276
+ value: true,
277
+ type: "boolean",
278
+ },
279
+ {
280
+ name: "fontStyle",
281
+ displayName: "文本样式",
282
+ value: {
283
+ fontFamily: percentageFontFamily,
284
+ fontSize: percentageFontSize,
285
+ color: percentageFontColor,
286
+ bold: percentageFontBold,
287
+ italic: percentageFontItalic,
288
+ letterSpacing: percentageFontLetterSpacing,
289
+ },
290
+ type: "textStyle",
291
+ markColorType: "textColor",
292
+ },
293
+ {
294
+ name: "suffix",
295
+ displayName: "后缀",
296
+ value: [
297
+ {
298
+ name: "show",
299
+ displayName: "显示",
300
+ value: true,
301
+ type: "boolean",
302
+ },
303
+ {
304
+ name: "content",
305
+ displayName: "内容",
306
+ type: "input",
307
+ value: "%",
308
+ },
309
+ {
310
+ name: "font",
311
+ displayName: "文本样式",
312
+ value: {
313
+ fontFamily: suffixFontFamily,
314
+ fontSize: suffixFontSize,
315
+ color: suffixColor,
316
+ bold: suffixBold,
317
+ italic: suffixItalic,
318
+ letterSpacing: suffixLetterSpacing,
319
+ },
320
+ type: "textStyle",
321
+ markColorType: "textColor",
322
+ },
323
+ translate(0, 0),
324
+ ],
325
+ },
326
+ ],
327
+ },
328
+ ],
329
+ },
330
+ ],
331
+ },
332
+ ],
333
+ });