@lambo-design/shared 1.0.0-beta.241 → 1.0.0-beta.243

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 (170) hide show
  1. package/config/config.js +51 -51
  2. package/config/env.js +4 -4
  3. package/config/index.js +7 -7
  4. package/config/themes/atrovirens/atrovirens.less +667 -667
  5. package/config/themes/atrovirens/var.less +674 -674
  6. package/config/themes/blue/blue.less +669 -669
  7. package/config/themes/blue/var.less +677 -677
  8. package/config/themes/blue-white/blue-white.less +669 -669
  9. package/config/themes/blue-white/var.less +676 -676
  10. package/config/themes/blue-white-tight/blue-white-tight.less +672 -672
  11. package/config/themes/blue-white-tight/var.less +677 -677
  12. package/config/themes/danqing/danqing.less +668 -668
  13. package/config/themes/danqing/danqing.wxss +572 -572
  14. package/config/themes/danqing/var.less +679 -679
  15. package/config/themes/deep/deep.less +669 -669
  16. package/config/themes/deep/var.less +677 -677
  17. package/config/themes/default/default.less +671 -671
  18. package/config/themes/default/var.less +677 -677
  19. package/config/themes/eap/eap.less +671 -671
  20. package/config/themes/eap/var.less +677 -677
  21. package/config/themes/gold/gold.less +671 -671
  22. package/config/themes/gold/var.less +677 -677
  23. package/config/themes/index.js +28 -28
  24. package/config/themes/lime/lime.less +671 -671
  25. package/config/themes/lime/var.less +678 -678
  26. package/config/themes/orange/orange.less +671 -671
  27. package/config/themes/orange/var.less +678 -678
  28. package/config/themes/red/red.less +671 -671
  29. package/config/themes/red/var.less +677 -677
  30. package/config/themes/theme-atrovirens.js +558 -558
  31. package/config/themes/theme-blue.js +558 -558
  32. package/config/themes/theme-bw.js +558 -558
  33. package/config/themes/theme-bwt.js +559 -559
  34. package/config/themes/theme-danqing.js +558 -558
  35. package/config/themes/theme-deep.js +558 -558
  36. package/config/themes/theme-default.js +558 -558
  37. package/config/themes/theme-eap.js +558 -558
  38. package/config/themes/theme-gold.js +558 -558
  39. package/config/themes/theme-lime.js +558 -558
  40. package/config/themes/theme-orange.js +559 -559
  41. package/config/themes/theme-red.js +558 -558
  42. package/config/themes/theme-white.js +557 -557
  43. package/config/themes/white/var.less +675 -675
  44. package/config/themes/white/white.less +668 -668
  45. package/directives/index.js +23 -23
  46. package/directives/module/draggable.js +56 -56
  47. package/directives/module/permission.js +49 -49
  48. package/directives/module/print.js +1 -1
  49. package/directives/module/vue-print-nb/README.md +63 -63
  50. package/directives/module/vue-print-nb/print.js +94 -94
  51. package/directives/module/vue-print-nb/printarea.js +532 -532
  52. package/index.js +10 -10
  53. package/nstyles/common.less +197 -197
  54. package/nstyles/components/404.less +46 -46
  55. package/nstyles/components/button.less +34 -34
  56. package/nstyles/components/date-picker.less +37 -37
  57. package/nstyles/components/drawer.less +20 -20
  58. package/nstyles/components/dropdown.less +18 -18
  59. package/nstyles/components/excel-flow.less +72 -72
  60. package/nstyles/components/form.less +313 -313
  61. package/nstyles/components/index.less +23 -23
  62. package/nstyles/components/layout/collect.less +10 -10
  63. package/nstyles/components/layout/detail-view.less +107 -107
  64. package/nstyles/components/layout/full-screen.less +7 -7
  65. package/nstyles/components/layout/index.less +7 -7
  66. package/nstyles/components/layout/other-menu.less +142 -142
  67. package/nstyles/components/layout/page-view.less +101 -101
  68. package/nstyles/components/layout/sider-trigger.less +41 -41
  69. package/nstyles/components/layout/tags-nav.less +113 -113
  70. package/nstyles/components/modal.less +85 -85
  71. package/nstyles/components/n-button.less +131 -131
  72. package/nstyles/components/n-image-preview.less +131 -131
  73. package/nstyles/components/n-model/index.less +19 -19
  74. package/nstyles/components/n-model/report-index.less +43 -43
  75. package/nstyles/components/n-panel.less +40 -40
  76. package/nstyles/components/n-picker.less +37 -37
  77. package/nstyles/components/n-sign.less +17 -17
  78. package/nstyles/components/n-tooltip.less +10 -10
  79. package/nstyles/components/panel.less +31 -31
  80. package/nstyles/components/select.less +3 -3
  81. package/nstyles/components/sign.less +27 -27
  82. package/nstyles/components/table.less +315 -315
  83. package/nstyles/components/tree.less +158 -158
  84. package/nstyles/components/upload.less +164 -164
  85. package/nstyles/index.less +5 -5
  86. package/nstyles/reset.less +65 -65
  87. package/nstyles/third/ag.less +174 -174
  88. package/nstyles/third/index.less +11 -11
  89. package/nstyles/third/view-design.less +366 -366
  90. package/nstyles/variables/base.less +143 -143
  91. package/nstyles/variables/index.less +4 -4
  92. package/nstyles/variables/theme/default/button.less +7 -7
  93. package/nstyles/variables/theme/default/common.less +57 -57
  94. package/nstyles/variables/theme/default/index.less +7 -7
  95. package/nstyles/variables/theme/default/layout.less +40 -40
  96. package/nstyles/variables/theme/default/table.less +37 -37
  97. package/nstyles/variables/theme/default/tag.less +3 -3
  98. package/nstyles/variables/theme/default/upload.less +3 -3
  99. package/nstyles/variables/theme/index.less +13 -13
  100. package/nstyles/variables/theme/small/button.less +7 -7
  101. package/nstyles/variables/theme/small/common.less +39 -39
  102. package/nstyles/variables/theme/small/index.less +5 -5
  103. package/nstyles/variables/theme/small/layout.less +21 -21
  104. package/nstyles/variables/theme/small/table.less +17 -17
  105. package/nstyles/variables/theme/small/tag.less +3 -3
  106. package/package.json +1 -1
  107. package/plugin/index.js +12 -12
  108. package/plugin/module/date-format.js +30 -30
  109. package/plugin/module/loading.js +26 -26
  110. package/plugin/module/warn-handler.js +11 -11
  111. package/styles/variables.less +21 -21
  112. package/utils/ajax/cacheconf.js +19 -19
  113. package/utils/ajax/content-type.js +30 -30
  114. package/utils/ajax/index.js +12 -12
  115. package/utils/ajax/interceptors.js +97 -97
  116. package/utils/assist.js +147 -147
  117. package/utils/base64.js +126 -126
  118. package/utils/blob.js +47 -47
  119. package/utils/bus.js +3 -3
  120. package/utils/crypto/index.js +48 -48
  121. package/utils/crypto/md5.js +152 -152
  122. package/utils/crypto/sm3.js +235 -235
  123. package/utils/date.js +381 -381
  124. package/utils/dict/built-in-dict.js +20 -20
  125. package/utils/dict/index.js +167 -167
  126. package/utils/dom.js +38 -38
  127. package/utils/event.js +72 -72
  128. package/utils/excel.js +655 -655
  129. package/utils/file.js +19 -19
  130. package/utils/form/validate.js +29 -29
  131. package/utils/half-year.js +68 -68
  132. package/utils/index.js +41 -41
  133. package/utils/json.js +29 -29
  134. package/utils/lodop.js +165 -165
  135. package/utils/menu/before-close.js +17 -17
  136. package/utils/menu/index.js +395 -395
  137. package/utils/mime_type.js +67 -67
  138. package/utils/modelerUtil.js +227 -227
  139. package/utils/n/api.js +22 -22
  140. package/utils/n/date.js +57 -57
  141. package/utils/n/index.js +9 -9
  142. package/utils/n/is-type.js +176 -176
  143. package/utils/n/number.js +144 -144
  144. package/utils/n/permission-cache.js +11 -11
  145. package/utils/n/reuqest/axiosN.js +17 -17
  146. package/utils/n/reuqest/content-type.js +19 -19
  147. package/utils/n/reuqest/interceptors.js +95 -95
  148. package/utils/n/reuqest/url-params.js +12 -12
  149. package/utils/n/storage.js +51 -51
  150. package/utils/n/token.js +51 -51
  151. package/utils/n/user-cache.js +11 -11
  152. package/utils/n/user.js +34 -34
  153. package/utils/n/uuid.js +16 -16
  154. package/utils/n-generator-routers.js +208 -208
  155. package/utils/n-router.js +205 -205
  156. package/utils/n-theme.js +30 -30
  157. package/utils/number.js +180 -180
  158. package/utils/oss.js +57 -57
  159. package/utils/platform.js +1334 -1334
  160. package/utils/quarter.js +58 -58
  161. package/utils/storage.js +198 -198
  162. package/utils/style.js +24 -24
  163. package/utils/theme.js +138 -138
  164. package/utils/transfer-queue.js +7 -7
  165. package/utils/transform.js +204 -204
  166. package/utils/type.js +102 -102
  167. package/utils/util.js +795 -795
  168. package/utils/validator.js +181 -181
  169. package/utils/vxetable/index.js +25 -25
  170. package/utils/zoomScroll.js +9 -9
@@ -1,101 +1,101 @@
1
- @menu-name-padding: var(--menu-name-padding); // 15px 28px 15px 30px; // 标题行padding
2
- @menu-title-font-size: var(--menu-title-font-size); // 20px;
3
- @menu-title-color: var(--menu-title-color); // #17233d;
4
- @page-content-padding: var(--page-content-padding); // 12px;
5
-
6
- .ind-page-view {
7
- height: 100%;
8
- background-color: var(--ind-bg-color-dark);
9
- overflow: auto;
10
-
11
- .header {
12
- display: flex;
13
- align-items: center;
14
- padding: @menu-name-padding;
15
- // padding: 0 var(--ind-page-padding);
16
- border-bottom: 1px solid var(--ind-border-color);
17
- background: white;
18
- z-index: 15;
19
-
20
- .title {
21
- font-size: @menu-title-font-size;
22
- font-weight: 500;
23
- line-height: 32px;
24
- color: @menu-title-color;
25
- }
26
-
27
- .back-btn + .title {
28
- margin-left: 8px;
29
- }
30
-
31
- .function-wrapper {
32
- flex-grow: 1;
33
- display: flex;
34
- justify-content: flex-end;
35
- align-items: center;
36
-
37
- .ivu-btn + .ivu-btn {
38
- margin-left: 10px;
39
- }
40
- }
41
- }
42
-
43
- .content {
44
- // padding: var(--ind-page-padding);
45
- padding: @page-content-padding @page-content-padding 0;
46
- box-sizing: border-box;
47
-
48
- .top-search-content {
49
- margin-bottom: var(--ind-panel-vertical-margin);
50
- }
51
-
52
- .body-content {
53
- display: flex;
54
- height: 10px; // 为了不被撑开,给个高度
55
-
56
- .body-left-content {
57
- flex: 0 0 16.67%;
58
- // margin-right: var(--ind-panel-horizon-margin);
59
- margin-right: 5px;
60
- overflow: auto;
61
- }
62
-
63
- .body-right-content {
64
- flex: auto;
65
-
66
- .ind-loading-panel {
67
- height: 100% !important;
68
- }
69
-
70
- .main-content {
71
- overflow-y: auto;
72
- overflow-x: hidden;
73
- }
74
-
75
- .body-right-content-footer {
76
- display: flex;
77
- justify-content: center;
78
- align-items: center;
79
- }
80
- }
81
- }
82
-
83
- .bottom {
84
- display: flex;
85
- justify-content: center;
86
- align-items: center;
87
- // margin-top: var(--ind-panel-vertical-margin);
88
-
89
- // from emp
90
- margin-top: 4px;
91
- margin-left: calc(0px - @page-content-padding);
92
- padding: 6px 0;
93
- width: calc(100% + @page-content-padding * 2);
94
- border-top: 1px solid var(--ind-border-color);
95
- background: #fff;
96
- .ivu-btn + .ivu-btn {
97
- margin-left: 10px;
98
- }
99
- }
100
- }
101
- }
1
+ @menu-name-padding: var(--menu-name-padding); // 15px 28px 15px 30px; // 标题行padding
2
+ @menu-title-font-size: var(--menu-title-font-size); // 20px;
3
+ @menu-title-color: var(--menu-title-color); // #17233d;
4
+ @page-content-padding: var(--page-content-padding); // 12px;
5
+
6
+ .ind-page-view {
7
+ height: 100%;
8
+ background-color: var(--ind-bg-color-dark);
9
+ overflow: auto;
10
+
11
+ .header {
12
+ display: flex;
13
+ align-items: center;
14
+ padding: @menu-name-padding;
15
+ // padding: 0 var(--ind-page-padding);
16
+ border-bottom: 1px solid var(--ind-border-color);
17
+ background: white;
18
+ z-index: 15;
19
+
20
+ .title {
21
+ font-size: @menu-title-font-size;
22
+ font-weight: 500;
23
+ line-height: 32px;
24
+ color: @menu-title-color;
25
+ }
26
+
27
+ .back-btn + .title {
28
+ margin-left: 8px;
29
+ }
30
+
31
+ .function-wrapper {
32
+ flex-grow: 1;
33
+ display: flex;
34
+ justify-content: flex-end;
35
+ align-items: center;
36
+
37
+ .ivu-btn + .ivu-btn {
38
+ margin-left: 10px;
39
+ }
40
+ }
41
+ }
42
+
43
+ .content {
44
+ // padding: var(--ind-page-padding);
45
+ padding: @page-content-padding @page-content-padding 0;
46
+ box-sizing: border-box;
47
+
48
+ .top-search-content {
49
+ margin-bottom: var(--ind-panel-vertical-margin);
50
+ }
51
+
52
+ .body-content {
53
+ display: flex;
54
+ height: 10px; // 为了不被撑开,给个高度
55
+
56
+ .body-left-content {
57
+ flex: 0 0 16.67%;
58
+ // margin-right: var(--ind-panel-horizon-margin);
59
+ margin-right: 5px;
60
+ overflow: auto;
61
+ }
62
+
63
+ .body-right-content {
64
+ flex: auto;
65
+
66
+ .ind-loading-panel {
67
+ height: 100% !important;
68
+ }
69
+
70
+ .main-content {
71
+ overflow-y: auto;
72
+ overflow-x: hidden;
73
+ }
74
+
75
+ .body-right-content-footer {
76
+ display: flex;
77
+ justify-content: center;
78
+ align-items: center;
79
+ }
80
+ }
81
+ }
82
+
83
+ .bottom {
84
+ display: flex;
85
+ justify-content: center;
86
+ align-items: center;
87
+ // margin-top: var(--ind-panel-vertical-margin);
88
+
89
+ // from emp
90
+ margin-top: 4px;
91
+ margin-left: calc(0px - @page-content-padding);
92
+ padding: 6px 0;
93
+ width: calc(100% + @page-content-padding * 2);
94
+ border-top: 1px solid var(--ind-border-color);
95
+ background: #fff;
96
+ .ivu-btn + .ivu-btn {
97
+ margin-left: 10px;
98
+ }
99
+ }
100
+ }
101
+ }
@@ -1,41 +1,41 @@
1
- .ind-sider-trigger {
2
- display: flex;
3
- justify-content: space-between;
4
- align-items: center;
5
- padding: 6px;
6
- width: 100%;
7
- height: 50px;
8
- color: var(--ind-text-color);
9
- background: #fff;
10
- overflow: hidden;
11
- box-sizing: border-box;
12
- cursor: pointer;
13
-
14
- .title {
15
- margin-left: 10px;
16
- height: 32px;
17
- line-height: 32px;
18
- font-size: 16px;
19
- width: 100%;
20
- font-weight: bold;
21
- overflow: hidden;
22
- }
23
-
24
- .trans {
25
- transition: transform 0.2s ease;
26
- }
27
-
28
- i {
29
- .trans;
30
- }
31
-
32
- &.collapsed {
33
- justify-content: center;
34
- transition: width 0.2s ease-in-out;
35
-
36
- i {
37
- transform: rotateZ(90deg);
38
- .trans;
39
- }
40
- }
41
- }
1
+ .ind-sider-trigger {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ align-items: center;
5
+ padding: 6px;
6
+ width: 100%;
7
+ height: 50px;
8
+ color: var(--ind-text-color);
9
+ background: #fff;
10
+ overflow: hidden;
11
+ box-sizing: border-box;
12
+ cursor: pointer;
13
+
14
+ .title {
15
+ margin-left: 10px;
16
+ height: 32px;
17
+ line-height: 32px;
18
+ font-size: 16px;
19
+ width: 100%;
20
+ font-weight: bold;
21
+ overflow: hidden;
22
+ }
23
+
24
+ .trans {
25
+ transition: transform 0.2s ease;
26
+ }
27
+
28
+ i {
29
+ .trans;
30
+ }
31
+
32
+ &.collapsed {
33
+ justify-content: center;
34
+ transition: width 0.2s ease-in-out;
35
+
36
+ i {
37
+ transform: rotateZ(90deg);
38
+ .trans;
39
+ }
40
+ }
41
+ }
@@ -1,113 +1,113 @@
1
- @nav-height: 44px;
2
- @nav-padding: 6px 0;
3
- @nav-margin: 0 10px;
4
-
5
- .ind-tags-nav {
6
- position: relative;
7
- padding: @nav-padding;
8
- margin: @nav-margin;
9
- height: 44px;
10
- width: calc(100% - 20px);
11
- border-top: 1px solid var(--ind-border-color);
12
- border-bottom: 1px solid var(--ind-border-color);
13
- box-sizing: border-box;
14
- user-select: none;
15
-
16
- .ind-tags-nav-content {
17
- display: flex;
18
- justify-content: space-between;
19
- align-items: center;
20
- height: 100%;
21
-
22
- .btn-con {
23
- height: 100%;
24
- flex-shrink: 0;
25
- box-sizing: border-box;
26
- z-index: 10;
27
-
28
- button {
29
- height: 100%;
30
- padding: 2px 4px;
31
- line-height: 1;
32
- text-align: center;
33
- background: #fff;
34
- box-sizing: border-box;
35
- }
36
- }
37
- }
38
-
39
- .ivu-tag {
40
- height: 30px;
41
- line-height: 30px;
42
- background: white;
43
- margin: 0 5px 0 0;
44
- border: none;
45
- cursor: pointer;
46
-
47
- &.ivu-tag-primary {
48
- color: var(--ind-primary-color) !important;
49
- .ivu-tag-color-white {
50
- color: var(--ind-primary-color) !important;
51
- font-weight: var(--ind-font-weight-bold);
52
- }
53
- }
54
-
55
- .ivu-tag-text {
56
- font-size: var(--ind-font-size-md);
57
- color: var(--ind-text-color);
58
- }
59
-
60
- .ivu-icon-ios-close {
61
- color: #666 !important;
62
- }
63
- }
64
- .ivu-btn-text:hover {
65
- background: none;
66
- color: var(--ind-text-color);
67
- }
68
- .ivu-btn-text {
69
- color: var(--ind-text-color);
70
- }
71
-
72
- .scroll-outer {
73
- position: relative;
74
- width: 100%;
75
- height: 100%;
76
- overflow: hidden;
77
-
78
- .scroll-body {
79
- position: absolute;
80
- display: inline-block;
81
- padding: 1px 4px 0;
82
- height: ~'calc(100% - 1px)';
83
- overflow: visible;
84
- white-space: nowrap;
85
- transition: left 0.3s ease;
86
- }
87
- }
88
-
89
- .contextmenu {
90
- position: absolute;
91
- margin: 0;
92
- padding: 5px 0;
93
- background: #fff;
94
- z-index: 1000;
95
- list-style-type: none;
96
- border-radius: 4px;
97
- box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.1);
98
- li {
99
- margin: 0;
100
- padding: 5px 15px;
101
- cursor: pointer;
102
- &:hover {
103
- background: #eee;
104
- }
105
- }
106
- }
107
-
108
- .ivu-tag-primary.ivu-tag-dot {
109
- .ivu-tag-dot-inner {
110
- background-color: var(--ind-primary-color);
111
- }
112
- }
113
- }
1
+ @nav-height: 44px;
2
+ @nav-padding: 6px 0;
3
+ @nav-margin: 0 10px;
4
+
5
+ .ind-tags-nav {
6
+ position: relative;
7
+ padding: @nav-padding;
8
+ margin: @nav-margin;
9
+ height: 44px;
10
+ width: calc(100% - 20px);
11
+ border-top: 1px solid var(--ind-border-color);
12
+ border-bottom: 1px solid var(--ind-border-color);
13
+ box-sizing: border-box;
14
+ user-select: none;
15
+
16
+ .ind-tags-nav-content {
17
+ display: flex;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ height: 100%;
21
+
22
+ .btn-con {
23
+ height: 100%;
24
+ flex-shrink: 0;
25
+ box-sizing: border-box;
26
+ z-index: 10;
27
+
28
+ button {
29
+ height: 100%;
30
+ padding: 2px 4px;
31
+ line-height: 1;
32
+ text-align: center;
33
+ background: #fff;
34
+ box-sizing: border-box;
35
+ }
36
+ }
37
+ }
38
+
39
+ .ivu-tag {
40
+ height: 30px;
41
+ line-height: 30px;
42
+ background: white;
43
+ margin: 0 5px 0 0;
44
+ border: none;
45
+ cursor: pointer;
46
+
47
+ &.ivu-tag-primary {
48
+ color: var(--ind-primary-color) !important;
49
+ .ivu-tag-color-white {
50
+ color: var(--ind-primary-color) !important;
51
+ font-weight: var(--ind-font-weight-bold);
52
+ }
53
+ }
54
+
55
+ .ivu-tag-text {
56
+ font-size: var(--ind-font-size-md);
57
+ color: var(--ind-text-color);
58
+ }
59
+
60
+ .ivu-icon-ios-close {
61
+ color: #666 !important;
62
+ }
63
+ }
64
+ .ivu-btn-text:hover {
65
+ background: none;
66
+ color: var(--ind-text-color);
67
+ }
68
+ .ivu-btn-text {
69
+ color: var(--ind-text-color);
70
+ }
71
+
72
+ .scroll-outer {
73
+ position: relative;
74
+ width: 100%;
75
+ height: 100%;
76
+ overflow: hidden;
77
+
78
+ .scroll-body {
79
+ position: absolute;
80
+ display: inline-block;
81
+ padding: 1px 4px 0;
82
+ height: ~'calc(100% - 1px)';
83
+ overflow: visible;
84
+ white-space: nowrap;
85
+ transition: left 0.3s ease;
86
+ }
87
+ }
88
+
89
+ .contextmenu {
90
+ position: absolute;
91
+ margin: 0;
92
+ padding: 5px 0;
93
+ background: #fff;
94
+ z-index: 1000;
95
+ list-style-type: none;
96
+ border-radius: 4px;
97
+ box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.1);
98
+ li {
99
+ margin: 0;
100
+ padding: 5px 15px;
101
+ cursor: pointer;
102
+ &:hover {
103
+ background: #eee;
104
+ }
105
+ }
106
+ }
107
+
108
+ .ivu-tag-primary.ivu-tag-dot {
109
+ .ivu-tag-dot-inner {
110
+ background-color: var(--ind-primary-color);
111
+ }
112
+ }
113
+ }
@@ -1,85 +1,85 @@
1
- :root {
2
- --modal-top-height: 100px;
3
- --modal-header-height: 52px;
4
- --modal-footer-height: 57px;
5
-
6
- --modal-other-height: calc(
7
- var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
8
- );
9
- }
10
-
11
- .ibp-mode {
12
- --modal-top-height: 10px;
13
- // 改了css变量,用到它的需要重新定义。。。
14
- --modal-other-height: calc(
15
- var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
16
- );
17
- }
18
-
19
- .ind-modal {
20
- .ivu-modal {
21
- top: var(--modal-top-height);
22
- }
23
- .ivu-modal-fullscreen {
24
- top: 0;
25
- }
26
- .ivu-modal:not(.ivu-modal-fullscreen) {
27
- .ivu-modal-body {
28
- max-height: calc(100vh - var(--modal-other-height));
29
- overflow: auto;
30
- }
31
-
32
- .ivu-modal-footer {
33
- button + button {
34
- margin-left: 0;
35
- }
36
- }
37
- }
38
- .ivu-modal.ivu-modal-fullscreen {
39
- .ivu-modal-close .ivu-icon-ios-close {
40
- color: white;
41
- }
42
- }
43
- }
44
-
45
- .report-index-model-panel {
46
- .left-panel {
47
- padding: var(--report-index-model-panel-padding);
48
- border: 1px solid var(--ind-border-color);
49
- .report-index-dimension1-panel {
50
- width: 100px;
51
- height: fit-content;
52
- border: 1px solid var(--ind-border-color);
53
- border-radius: 4px;
54
- .report-index-dimension1 {
55
- text-align: center;
56
- line-height: 30px;
57
- border-bottom: 1px solid var(--ind-border-color);
58
- cursor: pointer;
59
- &:last-child {
60
- border-bottom: none;
61
- }
62
- &.selected {
63
- background-color: var(--ind-blue);
64
- color: var(--ind-white);
65
- }
66
- }
67
- }
68
- .report-index-index-panel {
69
- border-left: 1px solid var(--ind-border-color);
70
- }
71
- .report-index-options {
72
- padding: 0 var(--report-index-model-panel-padding);
73
- padding-right: var(--report-index-options-padding-right);
74
- }
75
- }
76
- .opt-panel {
77
- padding: 0 20px;
78
- height: 600px;
79
- justify-content: center;
80
- }
81
- .right-panel {
82
- padding: var(--report-index-model-panel-padding);
83
- border: 1px solid var(--ind-border-color);
84
- }
85
- }
1
+ :root {
2
+ --modal-top-height: 100px;
3
+ --modal-header-height: 52px;
4
+ --modal-footer-height: 57px;
5
+
6
+ --modal-other-height: calc(
7
+ var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
8
+ );
9
+ }
10
+
11
+ .ibp-mode {
12
+ --modal-top-height: 10px;
13
+ // 改了css变量,用到它的需要重新定义。。。
14
+ --modal-other-height: calc(
15
+ var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
16
+ );
17
+ }
18
+
19
+ .ind-modal {
20
+ .ivu-modal {
21
+ top: var(--modal-top-height);
22
+ }
23
+ .ivu-modal-fullscreen {
24
+ top: 0;
25
+ }
26
+ .ivu-modal:not(.ivu-modal-fullscreen) {
27
+ .ivu-modal-body {
28
+ max-height: calc(100vh - var(--modal-other-height));
29
+ overflow: auto;
30
+ }
31
+
32
+ .ivu-modal-footer {
33
+ button + button {
34
+ margin-left: 0;
35
+ }
36
+ }
37
+ }
38
+ .ivu-modal.ivu-modal-fullscreen {
39
+ .ivu-modal-close .ivu-icon-ios-close {
40
+ color: white;
41
+ }
42
+ }
43
+ }
44
+
45
+ .report-index-model-panel {
46
+ .left-panel {
47
+ padding: var(--report-index-model-panel-padding);
48
+ border: 1px solid var(--ind-border-color);
49
+ .report-index-dimension1-panel {
50
+ width: 100px;
51
+ height: fit-content;
52
+ border: 1px solid var(--ind-border-color);
53
+ border-radius: 4px;
54
+ .report-index-dimension1 {
55
+ text-align: center;
56
+ line-height: 30px;
57
+ border-bottom: 1px solid var(--ind-border-color);
58
+ cursor: pointer;
59
+ &:last-child {
60
+ border-bottom: none;
61
+ }
62
+ &.selected {
63
+ background-color: var(--ind-blue);
64
+ color: var(--ind-white);
65
+ }
66
+ }
67
+ }
68
+ .report-index-index-panel {
69
+ border-left: 1px solid var(--ind-border-color);
70
+ }
71
+ .report-index-options {
72
+ padding: 0 var(--report-index-model-panel-padding);
73
+ padding-right: var(--report-index-options-padding-right);
74
+ }
75
+ }
76
+ .opt-panel {
77
+ padding: 0 20px;
78
+ height: 600px;
79
+ justify-content: center;
80
+ }
81
+ .right-panel {
82
+ padding: var(--report-index-model-panel-padding);
83
+ border: 1px solid var(--ind-border-color);
84
+ }
85
+ }