@zjhc/ui 0.0.0-stage → 0.1.0

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 (207) hide show
  1. package/LICENSE +51 -0
  2. package/NOTICE +23 -0
  3. package/README.md +177 -2
  4. package/dist/component.d.ts +3 -0
  5. package/dist/components/autocomplete/index.d.ts +5 -0
  6. package/dist/components/autocomplete/src/autoComplete.vue.d.ts +511 -0
  7. package/dist/components/autocomplete/src/autocomplete.d.ts +50 -0
  8. package/dist/components/collapse-container/index.d.ts +6 -0
  9. package/dist/components/collapse-container/src/collapseContainer.vue.d.ts +47 -0
  10. package/dist/components/collapse-container/src/instance.d.ts +2 -0
  11. package/dist/components/collapse-panel/index.d.ts +6 -0
  12. package/dist/components/collapse-panel/src/collapsePanel.vue.d.ts +68 -0
  13. package/dist/components/collapse-panel/src/instance.d.ts +2 -0
  14. package/dist/components/complex-table/index.d.ts +7 -0
  15. package/dist/components/complex-table/src/ComplexTable.vue.d.ts +1428 -0
  16. package/dist/components/complex-table/src/TableOperator.vue.d.ts +41 -0
  17. package/dist/components/complex-table/src/instance.d.ts +4 -0
  18. package/dist/components/dialog/index.d.ts +5 -0
  19. package/dist/components/dialog/src/dialog-content.d.ts +20 -0
  20. package/dist/components/dialog/src/dialog.d.ts +76 -0
  21. package/dist/components/dialog/src/dialog.vue.d.ts +456 -0
  22. package/dist/components/dialog/src/dialogContent.vue.d.ts +74 -0
  23. package/dist/components/dialog/src/use-dialog.d.ts +23 -0
  24. package/dist/components/edit-table-column/EditTableColumn.vue.d.ts +79 -0
  25. package/dist/components/edit-table-column/index.d.ts +6 -0
  26. package/dist/components/edit-table-column/registerComp.d.ts +3 -0
  27. package/dist/components/edit-table-column/type.d.ts +14 -0
  28. package/dist/components/group-container/index.d.ts +6 -0
  29. package/dist/components/group-container/src/groupContainer.vue.d.ts +43 -0
  30. package/dist/components/group-container/src/instance.d.ts +2 -0
  31. package/dist/components/index.d.ts +13 -0
  32. package/dist/components/loading/index.d.ts +11 -0
  33. package/dist/components/loading/src/directive.d.ts +13 -0
  34. package/dist/components/loading/src/loading.d.ts +27 -0
  35. package/dist/components/loading/src/service.d.ts +3 -0
  36. package/dist/components/loading/src/types.d.ts +61 -0
  37. package/dist/components/search-layout/index.d.ts +6 -0
  38. package/dist/components/search-layout/src/instance.d.ts +2 -0
  39. package/dist/components/search-layout/src/searchLayout.vue.d.ts +22 -0
  40. package/dist/components/search-panel/index.d.ts +6 -0
  41. package/dist/components/search-panel/src/instance.d.ts +2 -0
  42. package/dist/components/search-panel/src/searchPanel.vue.d.ts +17 -0
  43. package/dist/components/search-panel-layout/index.d.ts +6 -0
  44. package/dist/components/search-panel-layout/src/layout.d.ts +95 -0
  45. package/dist/components/sticky-toolbar/index.d.ts +6 -0
  46. package/dist/components/sticky-toolbar/src/instance.d.ts +2 -0
  47. package/dist/components/sticky-toolbar/src/stickyToolbar.vue.d.ts +43 -0
  48. package/dist/components/switch-mode/index.d.ts +7 -0
  49. package/dist/components/switch-theme/index.d.ts +7 -0
  50. package/dist/components/table-toolbar/index.d.ts +7 -0
  51. package/dist/components/table-toolbar/src/buttonGroup.vue.d.ts +79 -0
  52. package/dist/components/table-toolbar/src/interface.d.ts +21 -0
  53. package/dist/components/table-toolbar/src/tableToolbar.vue.d.ts +71 -0
  54. package/dist/constants/aria.d.ts +17 -0
  55. package/dist/constants/date.d.ts +3 -0
  56. package/dist/constants/event.d.ts +3 -0
  57. package/dist/constants/index.d.ts +5 -0
  58. package/dist/constants/key.d.ts +1 -0
  59. package/dist/constants/size.d.ts +7 -0
  60. package/dist/defaults.d.ts +5 -0
  61. package/dist/hooks/complex-table/index.d.ts +33 -0
  62. package/dist/hooks/get-cookie/index.d.ts +4 -0
  63. package/dist/hooks/index.d.ts +6 -0
  64. package/dist/hooks/oper-modal/index.d.ts +8 -0
  65. package/dist/hooks/post-message/index.d.ts +19 -0
  66. package/dist/hooks/set-theme/index.d.ts +2 -0
  67. package/dist/hooks/use-draggable-resize/index.d.ts +10 -0
  68. package/dist/hooks/use-loading/index.d.ts +4 -0
  69. package/dist/hooks/use-namespace/index.d.ts +20 -0
  70. package/dist/icons/arrow-down.vue.d.ts +2 -0
  71. package/dist/icons/arrow-up.vue.d.ts +2 -0
  72. package/dist/icons/check.vue.d.ts +2 -0
  73. package/dist/icons/close.vue.d.ts +2 -0
  74. package/dist/icons/copy-document.vue.d.ts +2 -0
  75. package/dist/icons/filter.vue.d.ts +2 -0
  76. package/dist/icons/full-screen.vue.d.ts +2 -0
  77. package/dist/icons/index.d.ts +9 -0
  78. package/dist/icons/loading.vue.d.ts +2 -0
  79. package/dist/icons/minus.vue.d.ts +2 -0
  80. package/dist/index.cjs +3985 -0
  81. package/dist/index.css +2661 -0
  82. package/dist/index.d.ts +10 -0
  83. package/dist/index.mjs +3985 -0
  84. package/dist/make-installer.d.ts +5 -0
  85. package/dist/plugin.d.ts +3 -0
  86. package/dist/types/enhance/accessory.d.ts +45 -0
  87. package/dist/types/enhance/biztrace.d.ts +75 -0
  88. package/dist/types/enhance/form.d.ts +83 -0
  89. package/dist/types/enhance/heai.d.ts +47 -0
  90. package/dist/types/enhance/workflow.d.ts +385 -0
  91. package/dist/types/extension/extension.d.ts +58 -0
  92. package/dist/types/extension/frame.d.ts +48 -0
  93. package/dist/types/extension/job.d.ts +36 -0
  94. package/dist/types/framework/auth.d.ts +38 -0
  95. package/dist/types/framework/config.d.ts +13 -0
  96. package/dist/types/framework/core.d.ts +24 -0
  97. package/dist/types/index.d.ts +11 -0
  98. package/dist/utils/index.d.ts +6 -0
  99. package/dist/utils/style.d.ts +10 -0
  100. package/dist/utils/tools/istype.d.ts +11 -0
  101. package/dist/utils/tools/security.d.ts +2 -0
  102. package/dist/utils/tools/throw-error.d.ts +1 -0
  103. package/dist/utils/tools/tree.d.ts +2 -0
  104. package/dist/utils/vue/index.d.ts +2 -0
  105. package/dist/utils/vue/install.d.ts +6 -0
  106. package/dist/utils/vue/shared.d.ts +10 -0
  107. package/dist/utils/vue/typescript.d.ts +5 -0
  108. package/dist/version.d.ts +1 -0
  109. package/package.json +76 -4
  110. package/theme-chalk/autocomplete.css +144 -0
  111. package/theme-chalk/base-var.css +1037 -0
  112. package/theme-chalk/base.css +120 -0
  113. package/theme-chalk/collapse-container.css +71 -0
  114. package/theme-chalk/collapse-panel.css +49 -0
  115. package/theme-chalk/complextable.css +72 -0
  116. package/theme-chalk/dark.css +134 -0
  117. package/theme-chalk/dialog.css +0 -0
  118. package/theme-chalk/document-tables.css +175 -0
  119. package/theme-chalk/group-container.css +159 -0
  120. package/theme-chalk/index.css +2661 -0
  121. package/theme-chalk/loading.css +86 -0
  122. package/theme-chalk/page.css +34 -0
  123. package/theme-chalk/pub-class.css +417 -0
  124. package/theme-chalk/reset.css +152 -0
  125. package/theme-chalk/search-panel.css +31 -0
  126. package/theme-chalk/searchlayout.css +125 -0
  127. package/theme-chalk/src/autocomplete.scss +103 -0
  128. package/theme-chalk/src/base-var.scss +489 -0
  129. package/theme-chalk/src/base.scss +1 -0
  130. package/theme-chalk/src/black/index.scss +4 -0
  131. package/theme-chalk/src/collapse-container.scss +44 -0
  132. package/theme-chalk/src/collapse-panel.scss +26 -0
  133. package/theme-chalk/src/common/var.scss +154 -0
  134. package/theme-chalk/src/complextable.scss +47 -0
  135. package/theme-chalk/src/dark/css-vars.scss +35 -0
  136. package/theme-chalk/src/dark/var.scss +198 -0
  137. package/theme-chalk/src/dialog.scss +0 -0
  138. package/theme-chalk/src/document-tables.scss +133 -0
  139. package/theme-chalk/src/group-container.scss +139 -0
  140. package/theme-chalk/src/index.scss +17 -0
  141. package/theme-chalk/src/light/css-vars.scss +4 -0
  142. package/theme-chalk/src/light/var.scss +158 -0
  143. package/theme-chalk/src/loading.scss +68 -0
  144. package/theme-chalk/src/mixins/_var.scss +48 -0
  145. package/theme-chalk/src/mixins/config.scss +5 -0
  146. package/theme-chalk/src/mixins/function.scss +133 -0
  147. package/theme-chalk/src/mixins/mixins.scss +211 -0
  148. package/theme-chalk/src/page.scss +8 -0
  149. package/theme-chalk/src/pub-class.scss +127 -0
  150. package/theme-chalk/src/reset.scss +155 -0
  151. package/theme-chalk/src/search-panel.scss +10 -0
  152. package/theme-chalk/src/searchlayout.scss +114 -0
  153. package/theme-chalk/src/sticky-toolbar.scss +59 -0
  154. package/theme-chalk/src/table-toolbar.scss +36 -0
  155. package/theme-chalk/src/var.scss +32 -0
  156. package/theme-chalk/src/zjhc/alert.scss +16 -0
  157. package/theme-chalk/src/zjhc/anchor.scss +10 -0
  158. package/theme-chalk/src/zjhc/autocomplete.scss +11 -0
  159. package/theme-chalk/src/zjhc/backtop.scss +8 -0
  160. package/theme-chalk/src/zjhc/breadcrumb.scss +3 -0
  161. package/theme-chalk/src/zjhc/button.scss +82 -0
  162. package/theme-chalk/src/zjhc/calendar.scss +5 -0
  163. package/theme-chalk/src/zjhc/card.scss +5 -0
  164. package/theme-chalk/src/zjhc/cascader.scss +26 -0
  165. package/theme-chalk/src/zjhc/checkbox.scss +59 -0
  166. package/theme-chalk/src/zjhc/collapse.scss +8 -0
  167. package/theme-chalk/src/zjhc/dateEditor.scss +14 -0
  168. package/theme-chalk/src/zjhc/descriptions.scss +32 -0
  169. package/theme-chalk/src/zjhc/dialog.scss +148 -0
  170. package/theme-chalk/src/zjhc/drawer.scss +4 -0
  171. package/theme-chalk/src/zjhc/dropdown.scss +16 -0
  172. package/theme-chalk/src/zjhc/empty.scss +3 -0
  173. package/theme-chalk/src/zjhc/fontsize.scss +42 -0
  174. package/theme-chalk/src/zjhc/form.scss +33 -0
  175. package/theme-chalk/src/zjhc/index.scss +48 -0
  176. package/theme-chalk/src/zjhc/input.scss +47 -0
  177. package/theme-chalk/src/zjhc/link.scss +20 -0
  178. package/theme-chalk/src/zjhc/main.scss +3 -0
  179. package/theme-chalk/src/zjhc/mention.scss +9 -0
  180. package/theme-chalk/src/zjhc/menu.scss +0 -0
  181. package/theme-chalk/src/zjhc/message-box.scss +57 -0
  182. package/theme-chalk/src/zjhc/message.scss +13 -0
  183. package/theme-chalk/src/zjhc/notification.scss +4 -0
  184. package/theme-chalk/src/zjhc/number.scss +9 -0
  185. package/theme-chalk/src/zjhc/overlay.scss +3 -0
  186. package/theme-chalk/src/zjhc/page.scss +3 -0
  187. package/theme-chalk/src/zjhc/pagination.scss +64 -0
  188. package/theme-chalk/src/zjhc/picker.scss +85 -0
  189. package/theme-chalk/src/zjhc/popover.scss +13 -0
  190. package/theme-chalk/src/zjhc/popper.scss +13 -0
  191. package/theme-chalk/src/zjhc/radio.scss +49 -0
  192. package/theme-chalk/src/zjhc/scrollbar.scss +5 -0
  193. package/theme-chalk/src/zjhc/segmented.scss +18 -0
  194. package/theme-chalk/src/zjhc/select.scss +49 -0
  195. package/theme-chalk/src/zjhc/steps.scss +40 -0
  196. package/theme-chalk/src/zjhc/switch.scss +11 -0
  197. package/theme-chalk/src/zjhc/table-v2.scss +16 -0
  198. package/theme-chalk/src/zjhc/table.scss +44 -0
  199. package/theme-chalk/src/zjhc/tabs.scss +15 -0
  200. package/theme-chalk/src/zjhc/tags.scss +25 -0
  201. package/theme-chalk/src/zjhc/timeline.scss +16 -0
  202. package/theme-chalk/src/zjhc/tour.scss +9 -0
  203. package/theme-chalk/src/zjhc/tree.scss +6 -0
  204. package/theme-chalk/src/zjhc/upload.scss +6 -0
  205. package/theme-chalk/sticky-toolbar.css +71 -0
  206. package/theme-chalk/table-toolbar.css +53 -0
  207. package/theme-chalk/var.css +120 -0
@@ -0,0 +1,154 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use 'sass:math';
4
+
5
+ // 定义可用的主题类型
6
+ $types: primary, success, warning, danger, error, info;
7
+ // 默认颜色映射,使用 deep-merge 来允许用户自定义颜色映射覆盖默认值
8
+ $colors: () !default;
9
+ $colors: map.deep-merge(
10
+ (
11
+ 'white': #ffffff,
12
+ // 白色和黑色作为基本颜色选项
13
+ 'black': #000000,
14
+ 'primary': (
15
+ 'base': #094194,
16
+ ),
17
+ 'success': (
18
+ 'base': #1ebcaf,
19
+ ),
20
+ 'warning': (
21
+ 'base': #ffc23e,
22
+ ),
23
+ 'danger': (
24
+ 'base': #fa5e45,
25
+ ),
26
+ 'error': (
27
+ 'base': #fa5e45,
28
+ ),
29
+ 'info': (
30
+ 'base': #909399,
31
+ ),
32
+ ),
33
+ $colors
34
+ );
35
+ // 主色调
36
+ $color-white: map.get($colors, 'white') !default; // 白色
37
+ $color-black: map.get($colors, 'black') !default; // 黑色
38
+
39
+ // 应用场景颜色
40
+ $color-primary: map.get(
41
+ $colors,
42
+ 'primary',
43
+ 'base'
44
+ ) !default; // 主要颜色,默认使用'base'色调
45
+ $color-success: map.get(
46
+ $colors,
47
+ 'success',
48
+ 'base'
49
+ ) !default; // 成功状态颜色,默认使用'base'色调
50
+ $color-warning: map.get(
51
+ $colors,
52
+ 'warning',
53
+ 'base'
54
+ ) !default; // 警告状态颜色,默认使用'base'色调
55
+ $color-error: map.get(
56
+ $colors,
57
+ 'error',
58
+ 'base'
59
+ ) !default; // 错误状态颜色,默认使用'base'色调
60
+ $color-info: map.get(
61
+ $colors,
62
+ 'info',
63
+ 'base'
64
+ ) !default; // 信息状态颜色,默认使用'base'色调
65
+
66
+ /**
67
+ * 该@mixin用于根据指定的颜色类型、级别和混合模式,创建一个新颜色等级并将其添加到全局颜色地图中。
68
+ * @param $type {string} - 颜色的类型(例如:primary, success等)。
69
+ * @param $number {int} - 颜色的级别,用于计算颜色的混合程度。
70
+ * @param $mode {string} - 混合模式,默认为'light'。可用于指定颜色是明度混合还是饱和度混合等。
71
+ * @param $mix-color {color} - 用于混合的颜色,默认为白色($color-white)。
72
+ */
73
+
74
+ @mixin set-color-mix-level(
75
+ $type,
76
+ $number,
77
+ $mode: 'light',
78
+ $mix-color: $color-white
79
+ ) {
80
+ // 深度合并颜色地图,添加新的颜色等级
81
+ $colors: map.deep-merge(
82
+ (
83
+ $type: (
84
+ '#{$mode}-#{$number}':
85
+ color.mix(
86
+ $mix-color,
87
+ map.get($colors, $type, 'base'),
88
+ math.percentage(math.div($number, 10))
89
+ ),
90
+ ),
91
+ ),
92
+ $colors
93
+ ) !global; // 将局部变量转换为全局变量,确保新的颜色等级可以在整个项目中使用
94
+ }
95
+
96
+ @each $type in $types {
97
+ @for $i from 1 through 9 {
98
+ @include set-color-mix-level($type, $i, 'light', $color-white);
99
+ }
100
+ }
101
+
102
+ @each $type in $types {
103
+ @include set-color-mix-level($type, 2, 'dark', $color-black);
104
+ }
105
+
106
+ // 文本颜色
107
+ $text-color: () !default;
108
+ $text-color: map.merge(
109
+ (
110
+ 'primary': #333133,
111
+ 'regular': #606266,
112
+ 'secondary': #909399,
113
+ 'placeholder': #a8abb2,
114
+ 'disabled': #c0c4cc,
115
+ ),
116
+ $text-color
117
+ );
118
+ // 边框颜色
119
+ $border-color: () !default;
120
+ $border-color: map.merge(
121
+ (
122
+ '': #dcdfe6,
123
+ 'light': #e4e7ed,
124
+ 'lighter': #ebeef5,
125
+ 'extra-light': #f2f6fc,
126
+ 'dark': #d4d7de,
127
+ 'darker': #cdd0d6,
128
+ ),
129
+ $border-color
130
+ );
131
+ // 填充颜色
132
+ $fill-color: () !default;
133
+ $fill-color: map.merge(
134
+ (
135
+ '': #f0f2f5,
136
+ 'light': #f5f7fa,
137
+ 'lighter': #fafafa,
138
+ 'extra-light': #fafcff,
139
+ 'dark': #ebedf0,
140
+ 'darker': #e6e8eb,
141
+ 'blank': #ffffff,
142
+ ),
143
+ $fill-color
144
+ );
145
+ // 背景颜色
146
+ $bg-color: () !default;
147
+ $bg-color: map.merge(
148
+ (
149
+ '': #ffffff,
150
+ 'page': #f2f3f5,
151
+ 'overlay': #ffffff,
152
+ ),
153
+ $bg-color
154
+ );
@@ -0,0 +1,47 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/function' as *;
3
+
4
+ // background-color: var();
5
+ @include b(advance) {
6
+ @include e(layout) {
7
+ width: 100%;
8
+ height: 100%;
9
+ display: flex;
10
+ flex-direction: column;
11
+ overflow: hidden;
12
+ // padding: 20px;
13
+ }
14
+ @include e(toolbar) {
15
+ margin-bottom: 12px;
16
+ &.is-line {
17
+ display: flex;
18
+ align-items: center;
19
+ @include meb(false, toolbar, table) {
20
+ flex: 1;
21
+ }
22
+ }
23
+ }
24
+ @include e(grid) {
25
+ display: flex;
26
+ flex: 1;
27
+ flex-direction: column;
28
+ overflow: hidden;
29
+ & {
30
+ .el-table {
31
+ height: 100%;
32
+ .el-link + .el-link {
33
+ margin-left: 0;
34
+ }
35
+ .el-link {
36
+ margin-right: 12px;
37
+ &:last-child {
38
+ margin-right: 0;
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ @include e(pagination) {
45
+ margin-top: 16px;
46
+ }
47
+ }
@@ -0,0 +1,35 @@
1
+ // CSS3 var
2
+ @use './var' as *;
3
+ @use '../mixins/_var.scss' as *;
4
+ @use '../mixins/mixins.scss' as *;
5
+
6
+ html.dark {
7
+ color-scheme: dark;
8
+
9
+ // hex colors
10
+ @each $type in (primary, success, warning, danger, error, info) {
11
+ @include set-css-color-type($colors, $type);
12
+ }
13
+
14
+ // --el-box-shadow-#{$type}
15
+ @include set-component-css-var('box-shadow', $box-shadow);
16
+
17
+ // color-scheme
18
+ // Background --el-bg-color-#{$type}
19
+ @include set-component-css-var('bg-color', $bg-color);
20
+ // --el-text-color-#{$type}
21
+ @include set-component-css-var('text-color', $text-color);
22
+ // --el-border-color-#{$type}
23
+ @include set-component-css-var('border-color', $border-color);
24
+ // Fill --el-fill-color-#{$type}
25
+ @include set-component-css-var('fill-color', $fill-color);
26
+ @include set-component-css-var('mask-color', $mask-color);
27
+ }
28
+
29
+ @include dark(card) {
30
+ @include set-component-css-var('card', $card);
31
+ }
32
+
33
+ @include dark(empty) {
34
+ @include set-component-css-var('empty', $empty);
35
+ }
@@ -0,0 +1,198 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use 'sass:math';
4
+
5
+ @use '../common/var.scss' as common;
6
+ @use '../mixins/mixins.scss' as *;
7
+ @use '../mixins/function' as *;
8
+ // @use '../color/index.scss' as *;
9
+
10
+
11
+ $colors: (
12
+ ) !default;
13
+
14
+ @each $type in common.$types {
15
+ $colors: map.deep-merge(($type: ('base': map.get(common.$colors, $type, 'base'),
16
+ ),
17
+ ),
18
+ $colors ) !global;
19
+ }
20
+
21
+ // https://sass-lang.com/documentation/values/maps#immutability
22
+ // mix colors with white/black to generate light/dark level
23
+ @mixin set-color-mix-level($type,
24
+ $number,
25
+ $mode: 'light',
26
+ $mix-color: $color-white) {
27
+ // hex mix color
28
+ $colors: map.deep-merge(($type: ('#{$mode}-#{$number}': color.mix($mix-color,
29
+ map.get($colors, $type, 'base'),
30
+ math.percentage(math.div($number, 10))),
31
+ ),
32
+ ),
33
+ $colors ) !global;
34
+
35
+ // for designer to view transparent
36
+ // $colors: map.deep-merge(
37
+ // (
38
+ // $type: (
39
+ // '#{$mode}-#{$number}':
40
+ // rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
41
+ // ),
42
+ // ),
43
+ // $colors
44
+ // ) !global;
45
+ }
46
+
47
+ // Background
48
+ $bg-color: (
49
+ ) !default;
50
+ $bg-color: map.merge(('page': #0a0a0a,
51
+ '': #141414,
52
+ 'overlay': #1d1e1f,
53
+ ),
54
+ $bg-color
55
+ );
56
+
57
+ // dark-mode
58
+ @each $type in common.$types {
59
+ @for $i from 1 through 9 {
60
+ @include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
61
+ }
62
+ }
63
+
64
+ @each $type in common.$types {
65
+ @include set-color-mix-level($type, 2, 'dark', common.$color-white);
66
+ }
67
+
68
+ // border
69
+ $border-color-base: #f5f8ff;
70
+ $border-color: (
71
+ ) !default;
72
+ $border-color: map.merge(('darker': rgba($border-color-base, 0.35),
73
+ 'dark': rgba($border-color-base, 0.3),
74
+ '': rgba($border-color-base, 0.25),
75
+ 'light': rgba($border-color-base, 0.2),
76
+ 'lighter': rgba($border-color-base, 0.15),
77
+ 'extra-light': rgba($border-color-base, 0.1),
78
+ ),
79
+ $border-color
80
+ );
81
+
82
+ // mix to hex to avoid overlay issues
83
+ @each $key,
84
+ $val in $border-color {
85
+ $border-color: map.merge($border-color,
86
+ ($key: mix-overlay-color($val, map.get($bg-color, '')),
87
+ )) !global;
88
+ }
89
+
90
+ // Box-shadow
91
+ $box-shadow: (
92
+ ) !default;
93
+ $box-shadow: map.merge(('': (0px 12px 32px 4px rgba(0, 0, 0, 0.36),
94
+ 0px 8px 20px rgba(0, 0, 0, 0.72),
95
+ ),
96
+ 'light': (0px 0px 12px rgba(0, 0, 0, 0.72),
97
+ ),
98
+ 'lighter': (0px 0px 6px rgba(0, 0, 0, 0.72),
99
+ ),
100
+ 'dark': (0px 16px 48px 16px rgba(0, 0, 0, 0.72),
101
+ 0px 12px 32px #000000,
102
+ 0px 8px 16px -8px #000000,
103
+ ),
104
+ ),
105
+ $box-shadow
106
+ );
107
+
108
+ // fill
109
+ $fill-color-base: #fafcff;
110
+ $fill-color: (
111
+ ) !default;
112
+ $fill-color: map.merge(('darker': rgba($fill-color-base, 0.2),
113
+ 'dark': rgba($fill-color-base, 0.16),
114
+ '': rgba($fill-color-base, 0.12),
115
+ 'light': rgba($fill-color-base, 0.08),
116
+ 'lighter': rgba($fill-color-base, 0.04),
117
+ 'extra-light': rgba($fill-color-base, 0.02),
118
+ 'blank': transparent,
119
+ ),
120
+ $fill-color
121
+ );
122
+
123
+ // mix to hex to avoid overlay issues
124
+ @each $key,
125
+ $val in $fill-color {
126
+ @if ($key !='blank') {
127
+ $fill-color: map.merge($fill-color,
128
+ ($key: mix-overlay-color($val, map.get($bg-color, '')),
129
+ )) !global;
130
+ }
131
+ }
132
+
133
+ // text
134
+ $text-color-base: #f0f5ff;
135
+ $text-color: (
136
+ ) !default;
137
+ $text-color: map.merge(('primary': rgba($text-color-base, 0.95),
138
+ 'regular': rgba($text-color-base, 0.85),
139
+ 'secondary': rgba($text-color-base, 0.65),
140
+ 'placeholder': rgba($text-color-base, 0.55),
141
+ 'disabled': rgba($text-color-base, 0.4),
142
+ ),
143
+ $text-color
144
+ );
145
+
146
+ // mix to hex to avoid overlay issues
147
+ @each $key,
148
+ $val in $text-color {
149
+ $text-color: map.merge($text-color,
150
+ ($key: mix-overlay-color($val, map.get($bg-color, '')),
151
+ )) !global;
152
+ }
153
+
154
+ // mask
155
+ $mask-color: (
156
+ ) !default;
157
+ $mask-color: map.merge(('': rgba(0, 0, 0, 0.8),
158
+ 'extra-light': rgba(0, 0, 0, 0.3),
159
+ ),
160
+ $mask-color
161
+ );
162
+
163
+ // Button
164
+ // css3 var in packages/theme-chalk/src/button.scss
165
+ $button: (
166
+ ) !default;
167
+ $button: map.merge(('disabled-text-color': rgba(255, 255, 255, 0.5),
168
+ ),
169
+ $button
170
+ );
171
+
172
+
173
+
174
+ // card
175
+ $card: (
176
+ ) !default;
177
+ $card: map.merge(('bg-color': getCssVar('bg-color', 'overlay'),
178
+ ),
179
+ $card
180
+ );
181
+
182
+ // Empty
183
+ // css3 var in packages/theme-chalk/src/empty.scss
184
+ $empty: (
185
+ ) !default;
186
+ $empty: map.merge(('fill-color-0': getCssVar('color-black'),
187
+ 'fill-color-1': #4b4b52,
188
+ 'fill-color-2': #36383d,
189
+ 'fill-color-3': #1e1e20,
190
+ 'fill-color-4': #262629,
191
+ 'fill-color-5': #202124,
192
+ 'fill-color-6': #212224,
193
+ 'fill-color-7': #1b1c1f,
194
+ 'fill-color-8': #1c1d1f,
195
+ 'fill-color-9': #18181a,
196
+ ),
197
+ $empty
198
+ );
File without changes
@@ -0,0 +1,133 @@
1
+ @use 'mixins/config' as *;
2
+ @use 'mixins/mixins' as *;
3
+
4
+
5
+
6
+ @include b(tab) {
7
+ @include e(item){
8
+ @include m(text){
9
+ padding: 0 15px;
10
+ width: 100%;
11
+ display: block;
12
+ white-space: nowrap; /* 保持文本在一行内 */
13
+ overflow: hidden; /* 隐藏溢出的内容 */
14
+ text-overflow: ellipsis;
15
+ display: block;
16
+ }
17
+ }
18
+ }
19
+ .cn-zjhc-my-label {
20
+ width: 112px;
21
+ max-width: 112px;
22
+ min-width: 50px;
23
+ overflow: hidden;
24
+ text-overflow: ellipsis;
25
+ white-space: nowrap;
26
+ &.cn-zjhc-label_large {
27
+ width: 122px;
28
+ max-width: 122px;
29
+ }
30
+ &.cn-zjhc-label_mini {
31
+ width: 80px;
32
+ max-width: 80px;
33
+ }
34
+ }
35
+ .cn-zjhc-label-text {
36
+ flex: 1;
37
+ overflow: hidden;
38
+ text-overflow: ellipsis;
39
+ white-space: nowrap;
40
+ }
41
+ .cn-zjhc-value {
42
+ overflow: hidden;
43
+ text-overflow: ellipsis;
44
+ white-space: nowrap;
45
+ }
46
+ .cn-zjhc-my-content {
47
+ min-width: 50px;
48
+ max-width: 130px;
49
+ &.cn-zjhc-content_mini {
50
+ width: 80px;
51
+ }
52
+ &.cn-zjhc-content_common {
53
+ width: 130px;
54
+ }
55
+ }
56
+
57
+ .cn-zjhc-my-content_grey {
58
+ background: var(--zjhc-light-backgound-color);
59
+ }
60
+ .cn-zjhc-my-content_white {
61
+ background: #fff;
62
+ }
63
+ .cn-zjhc-my-label_yellow {
64
+ background: #fef9e5 !important;
65
+ }
66
+ .cn-zjhc-my-label_blue {
67
+ background: rgba(223, 240, 255, 1) !important;
68
+ }
69
+ .cn-zjhc-my-content_yellow {
70
+ background: #fefbef;
71
+ }
72
+ .cn-zjhc-my-content_blue {
73
+ background: rgba(244, 250, 255, 0.9);
74
+ }
75
+ .cn-zjhc-has-option {
76
+ color: var(--el-color-primary);
77
+ cursor: pointer;
78
+ i {
79
+ color: var(--el-color-primary);
80
+ margin-right: 4px;
81
+ }
82
+ }
83
+ .cn-zjhc-has-option .cn-zjhc-underline:hover {
84
+ text-decoration: underline;
85
+ }
86
+ .cn-zjhc-table_group-title {
87
+ color: #333;
88
+ font-size: 15px;
89
+ border-left: 3px solid var(--el-color-primary);
90
+ padding-left: 10px;
91
+ margin: 10px 0;
92
+ }
93
+ .cn-zjhc-table_group-title .cn-zjhc-edit-btn {
94
+ color: var(--el-color-primary);
95
+ margin-left: 20px;
96
+ }
97
+ .cn-zjhc-pagination {
98
+ margin: 10px 0;
99
+ }
100
+
101
+ .el-descriptions__cell {
102
+ white-space: nowrap;
103
+ }
104
+ .cn-zjhc-my-label-hide {
105
+ display: none;
106
+ }
107
+ .cn-zjhc-grey-text {
108
+ color: #aaa !important;
109
+ }
110
+ .tip-tooltip {
111
+ max-width: 268px;
112
+ }
113
+ .cn-zjhc-content-right-button {
114
+ min-width: 50px;
115
+ max-width: 130px;
116
+ height: 28px;
117
+ padding: 0 22px 0 11px;
118
+ float: right;
119
+ border: none;
120
+ border-left: 1px solid var(--el-border-color-lighter);
121
+ position: relative;
122
+ right: -11px;
123
+ z-index: 1;
124
+ }
125
+ .cn-zjhc-content-right-button.cn-zjhc-disabled {
126
+ background: rgb(250, 251, 252);
127
+ color: rgba(9, 65, 148, 0.4);
128
+ }
129
+ .cn-zjhc-content-right-button.el-button--text:not(.is-disabled):hover {
130
+ border-left: 1px solid var(--el-border-color-lighter);
131
+ background: rgb(250, 251, 252);
132
+ color: rgba(9, 65, 148, 0.4);
133
+ }
@@ -0,0 +1,139 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/function' as *;
3
+
4
+ @include b(complex) {
5
+ @include e(table) {
6
+ min-width: 1422px;
7
+ display: flex;
8
+ & {
9
+ .el-row {
10
+ border-left: 1px solid var(--el-border-color);
11
+ border-top: 1px solid var(--el-border-color);
12
+ font-size: var(--el-font-size-base);
13
+ position: relative;
14
+ }
15
+ .el-row + .el-row {
16
+ border-left: none;
17
+ }
18
+ .el-col {
19
+ border-right: 1px solid var(--el-border-color);
20
+ border-bottom: 1px solid var(--el-border-color);
21
+ padding: 0 10px;
22
+ height: var(--el-height-size-base);
23
+ line-height: var(--el-height-size-base);
24
+ white-space: nowrap; /* 保持文本在一行内 */
25
+ overflow: hidden; /* 隐藏溢出的内容 */
26
+ text-overflow: ellipsis;
27
+ color: #000;
28
+ }
29
+ }
30
+ }
31
+ @include e(nesting) {
32
+ @include m(col) {
33
+ padding: 0 !important;
34
+ height: auto !important;
35
+ border-bottom: none !important ;
36
+ border-right: none !important ;
37
+ }
38
+ @include m(row) {
39
+ border-left: none !important;
40
+ border-top: none !important;
41
+ }
42
+ }
43
+ @include e(coltext) {
44
+ @include m(disabled) {
45
+ color: #aaa !important;
46
+ }
47
+ }
48
+ @include e(labellink) {
49
+ @include m(disabled) {
50
+ color: var(--el-primary-opactiy05) !important;
51
+ & {
52
+ .el-icon {
53
+ vertical-align: middle;
54
+ margin-right: 6px;
55
+ margin-top: -4px;
56
+ font-size: 16px;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ @include e(label) {
62
+ @include m(title) {
63
+ background: var(--el-table-label-bg-color);
64
+ color: var(--el-text-color-regular) !important;
65
+ }
66
+ @include m(yellow) {
67
+ background: var(--el-table-sub-label-bg-color);
68
+ color: var(--el-text-color-regular) !important;
69
+ }
70
+ @include m(link) {
71
+ color: var(--el-color-primary) !important;
72
+ cursor: pointer;
73
+ &:hover {
74
+ text-decoration: underline;
75
+ }
76
+ & {
77
+ .el-icon {
78
+ vertical-align: middle;
79
+ margin-right: 6px;
80
+ font-size: 18px;
81
+ margin-top: -4px;
82
+ }
83
+ }
84
+ }
85
+ }
86
+ @include e(value) {
87
+ @include m(yellow01) {
88
+ background: var(--el-table-sub-value-bg-color);
89
+ }
90
+ @include m(grey01) {
91
+ background: var(--el-table-value-bg-color);
92
+ }
93
+ }
94
+ }
95
+ @include b(group) {
96
+ @include e(container) {
97
+ padding: 8px 16px;
98
+ &.is-border {
99
+ border: 1px solid var(--el-border-color);
100
+ border-radius: 5px;
101
+ padding: 15px;
102
+ }
103
+ & {
104
+ @include meb(false, layout, advance) {
105
+ padding: 0;
106
+ }
107
+ }
108
+ }
109
+ @include e(header) {
110
+ margin-bottom: 12px;
111
+ display: flex;
112
+ align-items: center;
113
+ }
114
+ @include e(box) {
115
+ border: 1px solid var(--el-border-color);
116
+ background-color: var(--el-bg-color);
117
+ border-radius: 5px;
118
+ padding: 8px 0; //避免嵌套container的时候左右间距过大
119
+ }
120
+ @include e(title) {
121
+ font-size: getCssVar('group', 'header', 'title', 'size');
122
+ font-weight: bold;
123
+ border-left: 4px solid var(--el-color-primary);
124
+ color: getCssVar('group', 'header', 'title', 'color');
125
+ position: relative;
126
+ line-height: 1;
127
+ padding-left: 8px;
128
+ margin-right: 24px;
129
+ }
130
+ @include e(toolbar) {
131
+ display: flex;
132
+ .el-button--text {
133
+ padding: 0;
134
+ }
135
+ .el-button--text + .el-button--text {
136
+ margin-left: 12px;
137
+ }
138
+ }
139
+ }