@easyv/config 1.3.10 → 1.3.11

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/label.js CHANGED
@@ -452,7 +452,7 @@ var labelOfRose = function labelOfRose() {
452
452
  exports.labelOfRose = labelOfRose;
453
453
  var defaultAxisLabel = {
454
454
  show: true,
455
- type: "date",
455
+ type: "category",
456
456
  showType: "MM月",
457
457
  appearance: {
458
458
  count: 3,
@@ -461,7 +461,7 @@ var defaultAxisLabel = {
461
461
  textOverflow: "ellipsis",
462
462
  speed: 5
463
463
  },
464
- adaptive: false,
464
+ adaptive: true,
465
465
  showLast: false,
466
466
  autoSort: false,
467
467
  textAlign: "center",
@@ -773,7 +773,7 @@ var defaultValueAxisLabel = {
773
773
  min: 80,
774
774
  max: 120
775
775
  },
776
- auto: false,
776
+ auto: true,
777
777
  mode: "count",
778
778
  numericalRangeModel: "value",
779
779
  count: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/config",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/label.js CHANGED
@@ -95,7 +95,7 @@ export default ({
95
95
  translate(),
96
96
  ],
97
97
  { defaultOpen: true },
98
- showRule()
98
+ showRule(),
99
99
  ),
100
100
  ].filter((item) => !!item),
101
101
  });
@@ -281,7 +281,7 @@ export const labelOfPie = ({
281
281
  "number",
282
282
  maxWidth,
283
283
  { suffix: "px" },
284
- showRule()
284
+ showRule(),
285
285
  ),
286
286
  ...textOverflow(overflow),
287
287
  translate(nameX, nameY),
@@ -432,7 +432,7 @@ export const labelOfRose = ({
432
432
 
433
433
  const defaultAxisLabel = {
434
434
  show: true,
435
- type: "date",
435
+ type: "category",
436
436
  showType: "MM月",
437
437
  appearance: {
438
438
  count: 3,
@@ -441,7 +441,7 @@ const defaultAxisLabel = {
441
441
  textOverflow: "ellipsis",
442
442
  speed: 5,
443
443
  },
444
- adaptive:false,
444
+ adaptive: true,
445
445
  showLast: false,
446
446
  autoSort: false,
447
447
  textAlign: "center",
@@ -459,7 +459,7 @@ export const axisLabel = ({
459
459
  textOverflow = defaultAxisLabel.appearance.textOverflow,
460
460
  speed = defaultAxisLabel.appearance.speed,
461
461
  } = defaultAxisLabel.appearance,
462
- adaptive=defaultAxisLabel.adaptive,
462
+ adaptive = defaultAxisLabel.adaptive,
463
463
  showLast = defaultAxisLabel.showLast,
464
464
  autoSort = defaultAxisLabel.autoSort,
465
465
  textAlign = defaultAxisLabel.textAlign,
@@ -655,17 +655,16 @@ export const axisLabel = ({
655
655
  },
656
656
  },
657
657
  {
658
- rule: [
659
- ["show", "$eq", true]
660
- ],
658
+ rule: [["show", "$eq", true]],
661
659
  name: "adaptive",
662
660
  displayName: "刻度自适应",
663
661
  value: adaptive,
664
- type: "boolean"
662
+ type: "boolean",
665
663
  },
666
664
  {
667
665
  rule: [
668
- ["show", "$eq", true],["adaptive", "$eq", false]
666
+ ["show", "$eq", true],
667
+ ["adaptive", "$eq", false],
669
668
  ],
670
669
  name: "appearance",
671
670
  displayName: "展示",
@@ -745,7 +744,7 @@ export const axisLabel = ({
745
744
  tip: "数据按时间自动排序展示",
746
745
  },
747
746
  },
748
- showRule("format", "$eq", "date")
747
+ showRule("format", "$eq", "date"),
749
748
  ),
750
749
  {
751
750
  rule: [["adaptive", "$eq", false]],
@@ -781,7 +780,7 @@ const defaultValueAxisLabel = {
781
780
  show: true,
782
781
  extent: { min: "0", max: "" },
783
782
  percentageExtent: { min: 80, max: 120 },
784
- auto: false,
783
+ auto: true,
785
784
  mode: "count",
786
785
  numericalRangeModel: "value",
787
786
  count: 3,