@easyv/config 1.0.45 → 1.0.46

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/.babelrc CHANGED
@@ -1,9 +1,9 @@
1
- {
2
- "presets": ["@babel/preset-env", "@babel/preset-react"],
3
- "plugins": [
4
- "@babel/plugin-proposal-export-default-from",
5
- "@babel/plugin-transform-runtime",
6
- "@babel/plugin-proposal-class-properties",
7
- "babel-plugin-transform-import-styles"
8
- ]
9
- }
1
+ {
2
+ "presets": ["@babel/preset-env", "@babel/preset-react"],
3
+ "plugins": [
4
+ "@babel/plugin-proposal-export-default-from",
5
+ "@babel/plugin-transform-runtime",
6
+ "@babel/plugin-proposal-class-properties",
7
+ "babel-plugin-transform-import-styles"
8
+ ]
9
+ }
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- const config = require('./lib');
2
-
3
- module.exports = config;
1
+ const config = require('./lib');
2
+
3
+ module.exports = config;
@@ -9,8 +9,8 @@ exports["default"] = void 0;
9
9
 
10
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
11
 
12
- /**
13
- * TODO:有个触发回调的类型
12
+ /**
13
+ * TODO:有个触发回调的类型
14
14
  */
15
15
  var defaultAction = 'click';
16
16
  var defaultCallback = {
package/lib/tooltip.js CHANGED
@@ -43,8 +43,9 @@ var defaultTooltip = {
43
43
  y: 0
44
44
  }
45
45
  },
46
- lineHeight: 18,
47
46
  data: {
47
+ lineHeight: 18,
48
+ iconSize: 10,
48
49
  name: {
49
50
  fontFamily: 'Mircosoft Yahei',
50
51
  fontSize: 12,
@@ -60,6 +61,20 @@ var defaultTooltip = {
60
61
  bold: false,
61
62
  italic: false,
62
63
  letterSpacing: 0
64
+ },
65
+ suffix: {
66
+ font: {
67
+ fontFamily: 'Mircosoft Yahei',
68
+ fontSize: 12,
69
+ color: '#D4EFFC',
70
+ bold: false,
71
+ italic: false,
72
+ letterSpacing: 0
73
+ },
74
+ translate: {
75
+ x: 0,
76
+ y: 0
77
+ }
63
78
  }
64
79
  }
65
80
  }
@@ -123,11 +138,13 @@ var _default = function _default() {
123
138
  _ref$tip$data$xAxis$t = _ref$tip$data$xAxis$t === void 0 ? defaultTooltip.tip.data.xAxis.translate : _ref$tip$data$xAxis$t;
124
139
  var x = _ref$tip$data$xAxis$t.x,
125
140
  y = _ref$tip$data$xAxis$t.y,
126
- _ref$tip$data$lineHei = _ref$tip$data.lineHeight,
127
- lineHeight = _ref$tip$data$lineHei === void 0 ? defaultTooltip.tip.data.lineHeight : _ref$tip$data$lineHei,
128
141
  _ref$tip$data$data = _ref$tip$data.data;
129
142
  _ref$tip$data$data = _ref$tip$data$data === void 0 ? defaultTooltip.tip.data.data : _ref$tip$data$data;
130
- var _ref$tip$data$data$na = _ref$tip$data$data.name;
143
+ var _ref$tip$data$data$li = _ref$tip$data$data.lineHeight,
144
+ lineHeight = _ref$tip$data$data$li === void 0 ? defaultTooltip.tip.data.lineHeight : _ref$tip$data$data$li,
145
+ _ref$tip$data$data$ic = _ref$tip$data$data.iconSize,
146
+ iconSize = _ref$tip$data$data$ic === void 0 ? defaultTooltip.tip.data.iconSize : _ref$tip$data$data$ic,
147
+ _ref$tip$data$data$na = _ref$tip$data$data.name;
131
148
  _ref$tip$data$data$na = _ref$tip$data$data$na === void 0 ? defaultTooltip.tip.data.data.name : _ref$tip$data$data$na;
132
149
  var nameFontFamily = _ref$tip$data$data$na.fontFamily,
133
150
  nameFontSize = _ref$tip$data$data$na.fontSize,
@@ -143,6 +160,16 @@ var _default = function _default() {
143
160
  valueFontBold = _ref$tip$data$data$va.bold,
144
161
  valueFontItalic = _ref$tip$data$data$va.italic,
145
162
  valueFontLetterSpacing = _ref$tip$data$data$va.letterSpacing,
163
+ _ref$tip$data$data$su = _ref$tip$data$data.suffix;
164
+ _ref$tip$data$data$su = _ref$tip$data$data$su === void 0 ? defaultTooltip.tip.data.data.suffix : _ref$tip$data$data$su;
165
+ var _ref$tip$data$data$su2 = _ref$tip$data$data$su.font;
166
+ _ref$tip$data$data$su2 = _ref$tip$data$data$su2 === void 0 ? defaultTooltip.tip.data.data.suffix.font : _ref$tip$data$data$su2;
167
+ var suffixFontFamily = _ref$tip$data$data$su2.fontFamily,
168
+ suffixFontSize = _ref$tip$data$data$su2.fontSize,
169
+ suffixColor = _ref$tip$data$data$su2.color,
170
+ suffixBold = _ref$tip$data$data$su2.bold,
171
+ suffixItalic = _ref$tip$data$data$su2.italic,
172
+ suffixLetterSpacing = _ref$tip$data$data$su2.letterSpacing,
146
173
  _ref$indicator = _ref.indicator;
147
174
  _ref$indicator = _ref$indicator === void 0 ? defaultTooltip.indicator : _ref$indicator;
148
175
  var _ref$indicator$width = _ref$indicator.width,
@@ -210,7 +237,7 @@ var _default = function _default() {
210
237
  displayName: '框内数据',
211
238
  value: [{
212
239
  name: 'xAxis',
213
- displayName: 'X轴标签',
240
+ displayName: '类目标签',
214
241
  value: [{
215
242
  name: 'font',
216
243
  displayName: '文本样式',
@@ -246,14 +273,19 @@ var _default = function _default() {
246
273
  }
247
274
  }, (0, _.translate)(x, y)]
248
275
  }, {
249
- displayName: '行高',
250
- type: 'number',
251
- value: lineHeight,
252
- name: 'lineHeight'
253
- }, {
254
- displayName: '数据样式',
276
+ displayName: '数据',
255
277
  name: 'data',
256
278
  value: [{
279
+ displayName: '行间距',
280
+ type: 'number',
281
+ value: lineHeight,
282
+ name: 'lineHeight'
283
+ }, {
284
+ displayName: '图标尺寸',
285
+ type: 'number',
286
+ value: iconSize,
287
+ name: 'iconSize'
288
+ }, {
257
289
  name: 'name',
258
290
  displayName: '系列名称',
259
291
  value: {
@@ -277,6 +309,87 @@ var _default = function _default() {
277
309
  letterSpacing: valueFontLetterSpacing
278
310
  },
279
311
  type: 'textStyle'
312
+ }, {
313
+ name: 'suffix',
314
+ displayName: '后缀',
315
+ value: [{
316
+ name: 'show',
317
+ displayName: '显示',
318
+ value: false,
319
+ type: 'boolean'
320
+ }, {
321
+ name: 'content',
322
+ displayName: '内容',
323
+ value: [{
324
+ name: "suffixText1",
325
+ displayName: "后缀",
326
+ type: "object",
327
+ value: [{
328
+ name: "suffix",
329
+ displayName: "后缀",
330
+ type: "group",
331
+ value: [{
332
+ name: "name",
333
+ displayName: "系列名",
334
+ value: "系列一",
335
+ type: "input",
336
+ config: {
337
+ span: 12
338
+ }
339
+ }, {
340
+ name: "suffix",
341
+ displayName: "后缀",
342
+ value: "%",
343
+ type: "input",
344
+ config: {
345
+ span: 12
346
+ }
347
+ }]
348
+ }]
349
+ }],
350
+ config: {
351
+ template: [{
352
+ name: "suffixText",
353
+ displayName: "后缀",
354
+ type: "object",
355
+ value: [{
356
+ name: "suffix",
357
+ displayName: "后缀",
358
+ type: "group",
359
+ value: [{
360
+ name: "name",
361
+ displayName: "系列名",
362
+ value: "",
363
+ type: "input",
364
+ config: {
365
+ span: 12
366
+ }
367
+ }, {
368
+ name: "suffix",
369
+ displayName: "后缀",
370
+ value: "",
371
+ type: "input",
372
+ config: {
373
+ span: 12
374
+ }
375
+ }]
376
+ }]
377
+ }]
378
+ },
379
+ type: 'array'
380
+ }, {
381
+ name: 'font',
382
+ displayName: '文本样式',
383
+ value: {
384
+ fontFamily: suffixFontFamily,
385
+ fontSize: suffixFontSize,
386
+ color: suffixColor,
387
+ bold: suffixBold,
388
+ italic: suffixItalic,
389
+ letterSpacing: suffixLetterSpacing
390
+ },
391
+ type: 'textStyle'
392
+ }, (0, _.translate)(x, y)]
280
393
  }]
281
394
  }]
282
395
  }]
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "name": "@easyv/config",
3
- "version": "1.0.45",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "make": "babel src -d lib"
8
- },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC",
12
- "devDependencies": {
13
- "@babel/cli": "^7.6.0",
14
- "@babel/core": "^7.11.5",
15
- "@babel/plugin-proposal-class-properties": "^7.10.4",
16
- "@babel/plugin-proposal-export-default-from": "^7.10.4",
17
- "@babel/plugin-transform-runtime": "^7.11.5",
18
- "@babel/preset-env": "^7.11.5",
19
- "@babel/preset-react": "^7.10.4",
20
- "babel-plugin-transform-import-styles": "0.0.11",
21
- "babel-preset-env": "^1.7.0"
22
- }
23
- }
1
+ {
2
+ "name": "@easyv/config",
3
+ "version": "1.0.46",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "make": "babel src -d lib"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "devDependencies": {
13
+ "@babel/cli": "^7.6.0",
14
+ "@babel/core": "^7.11.5",
15
+ "@babel/plugin-proposal-class-properties": "^7.10.4",
16
+ "@babel/plugin-proposal-export-default-from": "^7.10.4",
17
+ "@babel/plugin-transform-runtime": "^7.11.5",
18
+ "@babel/preset-env": "^7.11.5",
19
+ "@babel/preset-react": "^7.10.4",
20
+ "babel-plugin-transform-import-styles": "0.0.11",
21
+ "babel-preset-env": "^1.7.0"
22
+ }
23
+ }