aldehyde 0.2.525 → 0.2.527

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.
Files changed (65) hide show
  1. package/lib/controls/icon-selector/icon/phonenode-menu-icon/iconfont.css +99 -99
  2. package/lib/draw-canvas-edit/components/asset-bar/index.less +35 -35
  3. package/lib/draw-canvas-edit/components/main-header/index.less +23 -23
  4. package/lib/lowcode-components/base-table/index.less +61 -61
  5. package/lib/lowcode-components/data-number/index.less +10 -10
  6. package/lib/lowcode-components/date-time/index.less +4 -4
  7. package/lib/lowcode-components/four-angle-glow-border/index.less +49 -49
  8. package/lib/lowcode-components/line-chart/index.d.ts.map +1 -1
  9. package/lib/lowcode-components/line-chart/index.js +13 -7
  10. package/lib/lowcode-components/line-chart/index.js.map +1 -1
  11. package/lib/lowcode-components/lowcode-view/component/font/FontGlobal.css +26 -26
  12. package/lib/lowcode-components/lowcode-view/component/screen-fit/index.less +13 -13
  13. package/lib/lowcode-components/text-scroller/index.less +28 -28
  14. package/package.json +1 -1
  15. package/src/aldehyde/controls/icon-selector/icon/phonenode-menu-icon/iconfont.css +99 -99
  16. package/src/aldehyde/controls/icon-selector/icon/phonenode-menu-icon/iconfont.json +156 -156
  17. package/src/aldehyde/draw-canvas-edit/components/asset-bar/index.less +35 -35
  18. package/src/aldehyde/draw-canvas-edit/components/asset-bar/index.tsx +110 -110
  19. package/src/aldehyde/draw-canvas-edit/components/main-header/index.less +23 -23
  20. package/src/aldehyde/draw-canvas-edit/components/main-header/index.tsx +263 -263
  21. package/src/aldehyde/draw-canvas-edit/components/render/draws/index.ts +7 -7
  22. package/src/aldehyde/draw-canvas-edit/components/render/graphs/base-graph.ts +241 -241
  23. package/src/aldehyde/draw-canvas-edit/components/render/graphs/circle.ts +699 -699
  24. package/src/aldehyde/draw-canvas-edit/components/render/graphs/curve.ts +500 -500
  25. package/src/aldehyde/draw-canvas-edit/components/render/graphs/index.ts +5 -5
  26. package/src/aldehyde/draw-canvas-edit/components/render/graphs/line.ts +493 -493
  27. package/src/aldehyde/draw-canvas-edit/components/render/graphs/rect.ts +680 -680
  28. package/src/aldehyde/draw-canvas-edit/components/render/handlers/drag-handlers.ts +68 -68
  29. package/src/aldehyde/draw-canvas-edit/components/render/handlers/graph-handlers.ts +113 -113
  30. package/src/aldehyde/draw-canvas-edit/components/render/handlers/index.ts +9 -9
  31. package/src/aldehyde/draw-canvas-edit/components/render/handlers/key-move-handlers.ts +49 -49
  32. package/src/aldehyde/draw-canvas-edit/components/render/handlers/link-handlers.ts +45 -45
  33. package/src/aldehyde/draw-canvas-edit/components/render/handlers/shutcut-handlers.ts +45 -45
  34. package/src/aldehyde/draw-canvas-edit/components/render/handlers/text-handlers.ts +81 -81
  35. package/src/aldehyde/draw-canvas-edit/components/render/handlers/zoom-handlers.ts +59 -59
  36. package/src/aldehyde/draw-canvas-edit/components/render/tools/align-tool.ts +89 -89
  37. package/src/aldehyde/draw-canvas-edit/components/render/tools/asset-tool.ts +154 -154
  38. package/src/aldehyde/draw-canvas-edit/components/render/tools/link-tool.ts +222 -222
  39. package/src/aldehyde/draw-canvas-edit/components/render/tools/z-index-tool.ts +224 -224
  40. package/src/aldehyde/draw-canvas-edit/components/render/utils/a-star.ts +116 -116
  41. package/src/aldehyde/draw-canvas-edit/components/render/utils/bezier-scene-func.ts +72 -72
  42. package/src/aldehyde/draw-canvas-edit/components/setting-form/imag-upload.tsx +119 -119
  43. package/src/aldehyde/layout4/imgs/user.svg +26 -26
  44. package/src/aldehyde/lowcode-components/base-color-block/index.tsx +31 -31
  45. package/src/aldehyde/lowcode-components/base-table/index.less +61 -61
  46. package/src/aldehyde/lowcode-components/data-number/index.less +10 -10
  47. package/src/aldehyde/lowcode-components/date-time/index.less +4 -4
  48. package/src/aldehyde/lowcode-components/date-time/index.tsx +64 -64
  49. package/src/aldehyde/lowcode-components/four-angle-glow-border/index.less +49 -49
  50. package/src/aldehyde/lowcode-components/four-angle-glow-border/index.tsx +53 -53
  51. package/src/aldehyde/lowcode-components/line-chart/index.tsx +13 -7
  52. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-controller.ts +64 -64
  53. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-definition.ts +77 -77
  54. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-designer-loader.ts +36 -36
  55. package/src/aldehyde/lowcode-components/lowcode-view/component/component-container.tsx +144 -144
  56. package/src/aldehyde/lowcode-components/lowcode-view/component/font/FontGlobal.css +26 -26
  57. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/controller.ts +36 -36
  58. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/definition.ts +53 -53
  59. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/index.tsx +15 -15
  60. package/src/aldehyde/lowcode-components/lowcode-view/component/layer-builder.tsx +98 -98
  61. package/src/aldehyde/lowcode-components/lowcode-view/component/screen-fit/index.less +13 -13
  62. package/src/aldehyde/lowcode-components/lowcode-view/component/screen-fit/index.tsx +121 -121
  63. package/src/aldehyde/lowcode-components/placeholder-component/index.tsx +81 -81
  64. package/src/aldehyde/lowcode-components/text-scroller/index.less +28 -28
  65. package/src/aldehyde/lowcode-components/text-scroller/index.tsx +173 -173
@@ -1,99 +1,99 @@
1
- @font-face {
2
- font-family: "iconfont"; /* Project id 5037136 */
3
- src: url('iconfont.woff2?t=1786005256785') format('woff2'),
4
- url('iconfont.woff?t=1786005256785') format('woff'),
5
- url('iconfont.ttf?t=1786005256785') format('truetype');
6
- }
7
-
8
- .iconfont {
9
- font-family: "iconfont" !important;
10
- font-size: 16px;
11
- font-style: normal;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- .icon-yewurenyuanxinxiguanli:before {
17
- content: "\e60e";
18
- }
19
-
20
- .icon-dingdanchulizhong:before {
21
- content: "\e896";
22
- }
23
-
24
- .icon-cheliangxinxi:before {
25
- content: "\e755";
26
- }
27
-
28
- .icon-a-SalesOrderManagement:before {
29
- content: "\e635";
30
- }
31
-
32
- .icon-a-caigoudingdan3x:before {
33
- content: "\e615";
34
- }
35
-
36
- .icon-guobangjilu:before {
37
- content: "\e64d";
38
- }
39
-
40
- .icon-canshupeizhi:before {
41
- content: "\e609";
42
- }
43
-
44
- .icon-wuchatongji:before {
45
- content: "\e890";
46
- }
47
-
48
- .icon-binggouzhongzu:before {
49
- content: "\e660";
50
- }
51
-
52
- .icon-tingchewei:before {
53
- content: "\e664";
54
- }
55
-
56
- .icon-quanxian:before {
57
- content: "\e63f";
58
- }
59
-
60
- .icon-gongwei:before {
61
- content: "\e641";
62
- }
63
-
64
- .icon-weixiu:before {
65
- content: "\e690";
66
- }
67
-
68
- .icon-bumen:before {
69
- content: "\e686";
70
- }
71
-
72
- .icon-shengchanjidi:before {
73
- content: "\e63b";
74
- }
75
-
76
- .icon-shouye:before {
77
- content: "\e63c";
78
- }
79
-
80
- .icon-renyuan:before {
81
- content: "\e66c";
82
- }
83
-
84
- .icon-apply:before {
85
- content: "\e61c";
86
- }
87
-
88
- .icon-changquguanli:before {
89
- content: "\e607";
90
- }
91
-
92
- .icon-kuaidi:before {
93
- content: "\e6c0";
94
- }
95
-
96
- .icon-menu:before {
97
- content: "\e677";
98
- }
99
-
1
+ @font-face {
2
+ font-family: "iconfont"; /* Project id 5037136 */
3
+ src: url('iconfont.woff2?t=1786005256785') format('woff2'),
4
+ url('iconfont.woff?t=1786005256785') format('woff'),
5
+ url('iconfont.ttf?t=1786005256785') format('truetype');
6
+ }
7
+
8
+ .iconfont {
9
+ font-family: "iconfont" !important;
10
+ font-size: 16px;
11
+ font-style: normal;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ .icon-yewurenyuanxinxiguanli:before {
17
+ content: "\e60e";
18
+ }
19
+
20
+ .icon-dingdanchulizhong:before {
21
+ content: "\e896";
22
+ }
23
+
24
+ .icon-cheliangxinxi:before {
25
+ content: "\e755";
26
+ }
27
+
28
+ .icon-a-SalesOrderManagement:before {
29
+ content: "\e635";
30
+ }
31
+
32
+ .icon-a-caigoudingdan3x:before {
33
+ content: "\e615";
34
+ }
35
+
36
+ .icon-guobangjilu:before {
37
+ content: "\e64d";
38
+ }
39
+
40
+ .icon-canshupeizhi:before {
41
+ content: "\e609";
42
+ }
43
+
44
+ .icon-wuchatongji:before {
45
+ content: "\e890";
46
+ }
47
+
48
+ .icon-binggouzhongzu:before {
49
+ content: "\e660";
50
+ }
51
+
52
+ .icon-tingchewei:before {
53
+ content: "\e664";
54
+ }
55
+
56
+ .icon-quanxian:before {
57
+ content: "\e63f";
58
+ }
59
+
60
+ .icon-gongwei:before {
61
+ content: "\e641";
62
+ }
63
+
64
+ .icon-weixiu:before {
65
+ content: "\e690";
66
+ }
67
+
68
+ .icon-bumen:before {
69
+ content: "\e686";
70
+ }
71
+
72
+ .icon-shengchanjidi:before {
73
+ content: "\e63b";
74
+ }
75
+
76
+ .icon-shouye:before {
77
+ content: "\e63c";
78
+ }
79
+
80
+ .icon-renyuan:before {
81
+ content: "\e66c";
82
+ }
83
+
84
+ .icon-apply:before {
85
+ content: "\e61c";
86
+ }
87
+
88
+ .icon-changquguanli:before {
89
+ content: "\e607";
90
+ }
91
+
92
+ .icon-kuaidi:before {
93
+ content: "\e6c0";
94
+ }
95
+
96
+ .icon-menu:before {
97
+ content: "\e677";
98
+ }
99
+
@@ -1,36 +1,36 @@
1
- .asset-bar {
2
- background-color: #f5f5f5;
3
- width: 200px;
4
- min-height: 100%;
5
-
6
- .asset-list {
7
- display: flex;
8
- flex-wrap: wrap;
9
- padding: 4px;
10
- margin: 0;
11
- list-style: none;
12
-
13
- &>li {
14
- width: 20%;
15
- padding-top: 20%;
16
- flex-shrink: 0;
17
- cursor: pointer;
18
- position: relative;
19
- border-radius: 4px;
20
-
21
- &:hover {
22
- background-color: #ddd;
23
- }
24
-
25
- &>img {
26
- position: absolute;
27
- top: 6px;
28
- left: 6px;
29
- object-fit: contain;
30
- width: calc(~"100% - 12px");
31
- height: calc(~"100% - 12px");
32
- pointer-events: none;
33
- }
34
- }
35
- }
1
+ .asset-bar {
2
+ background-color: #f5f5f5;
3
+ width: 200px;
4
+ min-height: 100%;
5
+
6
+ .asset-list {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ padding: 4px;
10
+ margin: 0;
11
+ list-style: none;
12
+
13
+ &>li {
14
+ width: 20%;
15
+ padding-top: 20%;
16
+ flex-shrink: 0;
17
+ cursor: pointer;
18
+ position: relative;
19
+ border-radius: 4px;
20
+
21
+ &:hover {
22
+ background-color: #ddd;
23
+ }
24
+
25
+ &>img {
26
+ position: absolute;
27
+ top: 6px;
28
+ left: 6px;
29
+ object-fit: contain;
30
+ width: calc(~"100% - 12px");
31
+ height: calc(~"100% - 12px");
32
+ pointer-events: none;
33
+ }
34
+ }
35
+ }
36
36
  }
@@ -1,24 +1,24 @@
1
- .main-header {
2
- min-height: 40px;
3
- padding: 4px 8px;
4
- display: flex;
5
- justify-content: space-between;
6
- align-items: center;
7
- background: var(--ant-layout-body-bg);
8
- overflow-x: auto;
9
- overflow-y: hidden;
10
-
11
- button {
12
- padding: 4px 8px;
13
- font-size: 16px;
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
-
18
- &.active {
19
- background-color: var(--ant-color-primary);
20
- color: #fff;
21
- }
22
-
23
- }
1
+ .main-header {
2
+ min-height: 40px;
3
+ padding: 4px 8px;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ align-items: center;
7
+ background: var(--ant-layout-body-bg);
8
+ overflow-x: auto;
9
+ overflow-y: hidden;
10
+
11
+ button {
12
+ padding: 4px 8px;
13
+ font-size: 16px;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+
18
+ &.active {
19
+ background-color: var(--ant-color-primary);
20
+ color: #fff;
21
+ }
22
+
23
+ }
24
24
  }
@@ -1,62 +1,62 @@
1
- .base-table {
2
- width: 100%;
3
- height: 100%;
4
- overflow: hidden;
5
-
6
- .base-table-empty {
7
- width: 100%;
8
- height: 100%;
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- }
13
-
14
- table {
15
- width: 100%;
16
- text-align: center;
17
- table-layout: fixed;
18
- /* 关键:合并相邻边框,消除双线 */
19
- border-collapse: collapse;
20
- margin-top: -2px;
21
-
22
- thead {
23
- position: relative;
24
- z-index: 1;
25
-
26
- th {
27
- padding: 0 4px;
28
- }
29
- }
30
-
31
-
32
- .scroll-body {
33
- overflow: hidden;
34
- animation: scroll 10s linear infinite;
35
-
36
- td {
37
- padding: 0 4px;
38
- overflow: hidden;
39
- white-space: nowrap;
40
- text-overflow: ellipsis;
41
- }
42
- }
43
- }
44
-
45
- table:hover {
46
- .scroll-body {
47
- animation-play-state: paused !important;
48
- }
49
- }
50
-
51
- }
52
-
53
-
54
- @keyframes scroll {
55
- 0% {
56
- transform: translateY(0);
57
- }
58
-
59
- 100% {
60
- transform: translateY(-100%);
61
- }
1
+ .base-table {
2
+ width: 100%;
3
+ height: 100%;
4
+ overflow: hidden;
5
+
6
+ .base-table-empty {
7
+ width: 100%;
8
+ height: 100%;
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ }
13
+
14
+ table {
15
+ width: 100%;
16
+ text-align: center;
17
+ table-layout: fixed;
18
+ /* 关键:合并相邻边框,消除双线 */
19
+ border-collapse: collapse;
20
+ margin-top: -2px;
21
+
22
+ thead {
23
+ position: relative;
24
+ z-index: 1;
25
+
26
+ th {
27
+ padding: 0 4px;
28
+ }
29
+ }
30
+
31
+
32
+ .scroll-body {
33
+ overflow: hidden;
34
+ animation: scroll 10s linear infinite;
35
+
36
+ td {
37
+ padding: 0 4px;
38
+ overflow: hidden;
39
+ white-space: nowrap;
40
+ text-overflow: ellipsis;
41
+ }
42
+ }
43
+ }
44
+
45
+ table:hover {
46
+ .scroll-body {
47
+ animation-play-state: paused !important;
48
+ }
49
+ }
50
+
51
+ }
52
+
53
+
54
+ @keyframes scroll {
55
+ 0% {
56
+ transform: translateY(0);
57
+ }
58
+
59
+ 100% {
60
+ transform: translateY(-100%);
61
+ }
62
62
  }
@@ -1,11 +1,11 @@
1
- .data-number-component {
2
- --stroke-color: #000000;
3
- --stroke-width: 0;
4
-
5
- height: 100%;
6
- display: flex;
7
- -webkit-text-stroke-color: var(--stroke-color);
8
- -webkit-text-stroke-width: var(--stroke-width);
9
- stroke-color: var(--stroke-color);
10
- stroke-width: var(--stroke-width);
1
+ .data-number-component {
2
+ --stroke-color: #000000;
3
+ --stroke-width: 0;
4
+
5
+ height: 100%;
6
+ display: flex;
7
+ -webkit-text-stroke-color: var(--stroke-color);
8
+ -webkit-text-stroke-width: var(--stroke-width);
9
+ stroke-color: var(--stroke-color);
10
+ stroke-width: var(--stroke-width);
11
11
  }
@@ -1,5 +1,5 @@
1
- .date-time-component {
2
- width: 100%;
3
- height: 100%;
4
- display: flex;
1
+ .date-time-component {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
5
  }
@@ -1,50 +1,50 @@
1
- .four-angle-glow {
2
- --fagb-color: #00ebff;
3
- --fagb-width: 2px;
4
- --fagb-length: 8px;
5
- --fagb-radius: 3px;
6
- width: 100%;
7
- height: 100%;
8
- position: relative;
9
-
10
- .angle {
11
- position: absolute;
12
- border: var(--fagb-width) solid var(--fagb-color);
13
- width: var(--fagb-length);
14
- height: var(--fagb-length);
15
- }
16
-
17
- .angle-tl {
18
- margin: -1px 0 0 -1px;
19
- border-right: 0;
20
- border-bottom: 0;
21
- border-top-left-radius: var(--fagb-radius);
22
- }
23
-
24
- .angle-tr {
25
- top: 0;
26
- right: 0;
27
- border-left: 0;
28
- border-bottom: 0;
29
- margin: -1px -1px 0 0;
30
- border-top-right-radius: var(--fagb-radius);
31
- }
32
-
33
- .angle-bl {
34
- bottom: 0;
35
- left: 0;
36
- border-top: 0;
37
- border-right: 0;
38
- margin: 0 0 -1px -1px;
39
- border-bottom-left-radius: var(--fagb-radius);
40
- }
41
-
42
- .angle-br {
43
- bottom: 0;
44
- right: 0;
45
- border-left: 0;
46
- border-top: 0;
47
- margin: 0 -1px -1px 0;
48
- border-bottom-right-radius: var(--fagb-radius);
49
- }
1
+ .four-angle-glow {
2
+ --fagb-color: #00ebff;
3
+ --fagb-width: 2px;
4
+ --fagb-length: 8px;
5
+ --fagb-radius: 3px;
6
+ width: 100%;
7
+ height: 100%;
8
+ position: relative;
9
+
10
+ .angle {
11
+ position: absolute;
12
+ border: var(--fagb-width) solid var(--fagb-color);
13
+ width: var(--fagb-length);
14
+ height: var(--fagb-length);
15
+ }
16
+
17
+ .angle-tl {
18
+ margin: -1px 0 0 -1px;
19
+ border-right: 0;
20
+ border-bottom: 0;
21
+ border-top-left-radius: var(--fagb-radius);
22
+ }
23
+
24
+ .angle-tr {
25
+ top: 0;
26
+ right: 0;
27
+ border-left: 0;
28
+ border-bottom: 0;
29
+ margin: -1px -1px 0 0;
30
+ border-top-right-radius: var(--fagb-radius);
31
+ }
32
+
33
+ .angle-bl {
34
+ bottom: 0;
35
+ left: 0;
36
+ border-top: 0;
37
+ border-right: 0;
38
+ margin: 0 0 -1px -1px;
39
+ border-bottom-left-radius: var(--fagb-radius);
40
+ }
41
+
42
+ .angle-br {
43
+ bottom: 0;
44
+ right: 0;
45
+ border-left: 0;
46
+ border-top: 0;
47
+ margin: 0 -1px -1px 0;
48
+ border-bottom-right-radius: var(--fagb-radius);
49
+ }
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/aldehyde/lowcode-components/line-chart/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqF,MAAM,OAAO,CAAC;AAM1G,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAyD1C,eAAO,MAAM,kBAAkB,GAAI,MAAM;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,EAAE,MAAM,MAAM,EAAE,cAAc,OAAO,eAcrG,CAAA;AAGD,e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AE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC7C;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;CAChE;AAED,QAAA,MAAM,KAAK,qFAwQT,CAAC;AAEH,eAAe,KAAK,CAAC"}
@@ -39,12 +39,14 @@ const defOption = {
39
39
  boundaryGap: true,
40
40
  axisTick: { show: true },
41
41
  axisLabel: {},
42
- min: undefined
42
+ min: undefined,
43
+ max: undefined
43
44
  },
44
45
  yAxis: {
45
46
  type: 'value',
46
47
  axisLabel: {},
47
- min: undefined
48
+ min: undefined,
49
+ max: undefined
48
50
  },
49
51
  legend: { show: false },
50
52
  dataZoom: [],
@@ -295,24 +297,28 @@ const Index = forwardRef((props, ref) => {
295
297
  const option = _.cloneDeep(defOption);
296
298
  const yAxisLabel = yAxis === null || yAxis === void 0 ? void 0 : yAxis.axisLabel;
297
299
  const xAxisLabel = xAxis === null || xAxis === void 0 ? void 0 : xAxis.axisLabel;
298
- let xAxisMin, yAxisMin;
300
+ let xAxisMin, yAxisMin, xAxisMax, yAxisMax;
299
301
  // 编辑态无数据显示默认数据
300
302
  const temData = isDesignMode && !(tData === null || tData === void 0 ? void 0 : tData.length) ? option.series : tData;
301
303
  if ((temData === null || temData === void 0 ? void 0 : temData.length) && (xAxis === null || xAxis === void 0 ? void 0 : xAxis.type) === "time" && (xAxis === null || xAxis === void 0 ? void 0 : xAxis.timeCompleteZero)) { // 时间轴配置-时间轴0点补全
302
304
  const dataTime = temData.map(r => r.data || []).flat().map(item => new Date(item[0]).getTime());
303
305
  const minTime = Math.min(...dataTime);
304
- xAxisMin = dayjs(minTime).startOf("day").valueOf();
306
+ const maxTime = Math.max(...dataTime);
307
+ xAxisMin = dayjs(minTime).startOf("day").valueOf() + 1; // 时间轴0点补全,+1毫秒,避免显示日期
308
+ xAxisMax = dayjs(maxTime).endOf("day").valueOf();
305
309
  }
306
310
  if ((temData === null || temData === void 0 ? void 0 : temData.length) && (yAxis === null || yAxis === void 0 ? void 0 : yAxis.type) === "time" && (yAxis === null || yAxis === void 0 ? void 0 : yAxis.timeCompleteZero)) {
307
311
  const dataTime = temData.map(r => r.data || []).flat().map(item => new Date(item[1]).getTime());
308
312
  const minTime = Math.min(...dataTime);
309
- yAxisMin = dayjs(minTime).startOf("day").valueOf();
313
+ const maxTime = Math.max(...dataTime);
314
+ yAxisMin = dayjs(minTime).startOf("day").valueOf() + 1;
315
+ yAxisMax = dayjs(maxTime).endOf("day").valueOf();
310
316
  }
311
317
  option.grid = grid;
312
318
  option.legend = Object.assign(Object.assign(Object.assign({}, legend), legends[legend === null || legend === void 0 ? void 0 : legend.position]), { data: temData === null || temData === void 0 ? void 0 : temData.filter((item) => !item.isMarkLine && item.name).map((r) => r.name) });
313
319
  option.tooltip = Object.assign({ trigger: "axis" }, tooltip);
314
- option.xAxis = Object.assign(Object.assign(Object.assign({}, option.xAxis), xAxis), { min: xAxisMin, axisTick: { show: (_a = xAxis === null || xAxis === void 0 ? void 0 : xAxis.axisLine) === null || _a === void 0 ? void 0 : _a.show }, axisLabel: xAxisLabel.numFormat && xAxis.type === "value" ? Object.assign(Object.assign({}, xAxisLabel), { formatter: formatNumberUnit }) : Object.assign(Object.assign({}, xAxisLabel), { showMinLabel: xAxisMin ? false : null }) });
315
- option.yAxis = Object.assign(Object.assign(Object.assign({}, option.yAxis), yAxis), { min: yAxisMin, axisLabel: yAxisLabel.numFormat && yAxis.type === "value" ? Object.assign(Object.assign({}, yAxisLabel), { formatter: formatNumberUnit }) : Object.assign(Object.assign({}, yAxisLabel), { showMinLabel: yAxisMin ? false : null }) });
320
+ option.xAxis = Object.assign(Object.assign(Object.assign({}, option.xAxis), xAxis), { min: xAxisMin, max: xAxisMax, axisTick: { show: (_a = xAxis === null || xAxis === void 0 ? void 0 : xAxis.axisLine) === null || _a === void 0 ? void 0 : _a.show }, axisLabel: xAxisLabel.numFormat && xAxis.type === "value" ? Object.assign(Object.assign({}, xAxisLabel), { formatter: formatNumberUnit }) : Object.assign(Object.assign({}, xAxisLabel), { showMinLabel: xAxisMin ? false : null }) });
321
+ option.yAxis = Object.assign(Object.assign(Object.assign({}, option.yAxis), yAxis), { min: yAxisMin, max: yAxisMax, axisLabel: yAxisLabel.numFormat && yAxis.type === "value" ? Object.assign(Object.assign({}, yAxisLabel), { formatter: formatNumberUnit }) : Object.assign(Object.assign({}, yAxisLabel), { showMinLabel: yAxisMin ? false : null }) });
316
322
  option.dataZoom = dataZoom ? [slider ? { type: "slider" } : undefined, { type: "inside", disabled: false }].filter(Boolean) : [];
317
323
  option.title.text = translate("${暂无数据}");
318
324
  option.title.show = !(temData === null || temData === void 0 ? void 0 : temData.length);