@agile-team/wl-skills-kit 2.9.3 → 2.9.4

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.
@@ -1,264 +1,264 @@
1
- /*
2
- * @Author: ChenYu ycyplus@gmail.com
3
- * @Date: 2025-12-31 15:25:40
4
- * @LastEditors: ChenYu ycyplus@gmail.com
5
- * @LastEditTime: 2026-01-03 23:47:09
6
- * @FilePath: \cx-ui-sale\src\views\sale\demo\metallurgical-spec\index.scss
7
- * @Description: 冶金规范模板 - 样式表
8
- * Copyright (c) 2025 by CHENY, All Rights Reserved 😎.
9
- */
10
-
11
- .metallurgical-spec-page {
12
- // 变量定义
13
- $spacing: 16px;
14
- $small-spacing: 12px;
15
- $tiny-spacing: 10px;
16
- $border-radius: 4px;
17
- $transition-fast: 0.2s;
18
- $transition-normal: 0.3s;
19
-
20
- // 性能优化
21
- contain: layout style;
22
- will-change: auto;
23
- height: 100%;
24
- display: flex;
25
- flex-direction: column;
26
- padding: 8px;
27
- background: #fff;
28
- margin: 8px;
29
-
30
- // 顶部标签页
31
- .main-tabs {
32
- margin-bottom: $spacing;
33
- background: #fff;
34
- padding: 0 $spacing;
35
- border-radius: $border-radius;
36
- }
37
-
38
- // 明细表格容器(替代Splitter)
39
- .detail-tables-container {
40
- flex: 1;
41
- display: flex;
42
- flex-direction: column;
43
- gap: $spacing;
44
- overflow: hidden;
45
- contain: layout style;
46
- transform: translateZ(0); // 强制硬件加速
47
-
48
- // 未选择树节点时的提示
49
- .no-tree-selection-tip {
50
- flex: 1;
51
- display: flex;
52
- align-items: center;
53
- justify-content: center;
54
- background: #fff;
55
- border-radius: $border-radius;
56
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
57
-
58
- :deep(.el-empty) {
59
- .el-empty__description {
60
- font-size: 16px;
61
- color: #909399;
62
- margin-top: $spacing;
63
- }
64
- }
65
- }
66
-
67
- // 表格内容容器
68
- .tables-content {
69
- flex: 1;
70
- display: flex;
71
- flex-direction: column;
72
- gap: $spacing;
73
- overflow: hidden;
74
- }
75
- .main-table-section,
76
- .experiment-section {
77
- display: flex;
78
- flex-direction: column;
79
- overflow: hidden;
80
- contain: layout style;
81
- background: #fff;
82
- border-radius: $border-radius;
83
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
84
- }
85
-
86
- .main-table-section {
87
- padding: $spacing;
88
- }
89
-
90
- .experiment-section {
91
- padding: $spacing;
92
- max-height: 350px;
93
- overflow: hidden;
94
- display: flex;
95
- flex-direction: column;
96
-
97
- .experiment-header {
98
- flex-shrink: 0;
99
- margin-bottom: $small-spacing;
100
- }
101
- // 强制表格滚动
102
- :deep(.base-table) {
103
- overflow: auto !important;
104
-
105
- .el-table {
106
- .el-table__body-wrapper {
107
- max-height: 250px !important;
108
- overflow-y: scroll !important;
109
- overflow-x: auto !important;
110
- }
111
- }
112
-
113
- // 确保滚动条可见
114
- .el-table__body-wrapper::-webkit-scrollbar {
115
- width: 12px;
116
- background: #f0f0f0;
117
- }
118
-
119
- .el-table__body-wrapper::-webkit-scrollbar-thumb {
120
- background: #c0c0c0;
121
- border-radius: 6px;
122
-
123
- &:hover {
124
- background: #a0a0a0;
125
- }
126
- }
127
- }
128
- }
129
- }
130
-
131
- // 拖动提示图标
132
- .drag-hint-icon {
133
- font-size: 18px;
134
- color: #909399;
135
- margin-right: 8px;
136
- cursor: ns-resize;
137
- user-select: none;
138
- font-weight: bold;
139
- }
140
-
141
- // 列表页内容
142
- .list-content {
143
- flex: 1;
144
- display: flex;
145
- flex-direction: column;
146
- background: #fff;
147
- border-radius: $border-radius;
148
- padding: $spacing;
149
- overflow: hidden;
150
- // 分页器包装器
151
- .pagination-wrapper {
152
- display: flex;
153
- justify-content: flex-end;
154
- align-items: center;
155
- margin-top: $spacing;
156
- padding-top: $small-spacing;
157
- }
158
-
159
- .list-table-container {
160
- flex: 1;
161
- min-height: 0;
162
- overflow: hidden;
163
- }
164
- }
165
-
166
- // 详情包装器
167
- .detail-wrapper {
168
- flex: 1;
169
- display: flex;
170
- flex-direction: column;
171
- overflow: hidden;
172
-
173
- // 主内容区域包装器(左右拖动布局)
174
- .detail-content-wrapper {
175
- flex: 1;
176
- overflow: hidden;
177
- }
178
- }
179
-
180
- // 顶部搜索区域间距
181
- :deep(.base-query) {
182
- margin-bottom: $spacing;
183
- }
184
-
185
- // 详情区域(右侧内容)
186
- .detail-area {
187
- height: 100%;
188
- display: flex;
189
- flex-direction: column;
190
- background: #fff;
191
- border-radius: $border-radius;
192
- padding: $spacing;
193
- }
194
-
195
- // 详情标签页按钮组
196
- .detail-tabs-buttons {
197
- flex-shrink: 0;
198
- margin-bottom: $spacing;
199
- }
200
-
201
- // 详情内容区域
202
- .detail-content {
203
- flex: 1;
204
- display: flex;
205
- flex-direction: column;
206
- overflow: hidden;
207
-
208
- // 工具栏下间距
209
- .toolbar-spacing {
210
- margin-bottom: $tiny-spacing;
211
- flex-shrink: 0;
212
- }
213
-
214
- // 表格容器
215
- .table-container {
216
- flex: 1;
217
- min-height: 0;
218
- overflow: hidden;
219
- }
220
-
221
- // 明细信息的表格容器(固定高度,给实验表格留空间)
222
- &[data-tab="detail"] {
223
- // 移除 table-container 固定高度,让 jh-drag-row 控制
224
- .detail-tables-splitter {
225
- flex: 1;
226
- }
227
- }
228
-
229
- // 实验项目信息区域头部
230
- .experiment-header {
231
- display: flex;
232
- justify-content: space-between;
233
- align-items: center;
234
- margin-bottom: $small-spacing;
235
-
236
- .experiment-title {
237
- display: flex;
238
- align-items: center;
239
- gap: 6px;
240
-
241
- .title-arrow {
242
- font-size: 16px;
243
- color: #606266;
244
- }
245
-
246
- .title-text {
247
- font-size: 14px;
248
- font-weight: 600;
249
- color: #303133;
250
- }
251
- }
252
- }
253
-
254
- // 明细信息占位
255
- .detail-info-placeholder {
256
- flex: 1;
257
- display: flex;
258
- align-items: center;
259
- justify-content: center;
260
- color: #909399;
261
- font-size: 16px;
262
- }
263
- }
264
- }
1
+ /*
2
+ * @Author: ChenYu ycyplus@gmail.com
3
+ * @Date: 2025-12-31 15:25:40
4
+ * @LastEditors: ChenYu ycyplus@gmail.com
5
+ * @LastEditTime: 2026-01-03 23:47:09
6
+ * @FilePath: \cx-ui-sale\src\views\sale\demo\metallurgical-spec\index.scss
7
+ * @Description: 冶金规范模板 - 样式表
8
+ * Copyright (c) 2025 by CHENY, All Rights Reserved 😎.
9
+ */
10
+
11
+ .metallurgical-spec-page {
12
+ // 变量定义
13
+ $spacing: 16px;
14
+ $small-spacing: 12px;
15
+ $tiny-spacing: 10px;
16
+ $border-radius: 4px;
17
+ $transition-fast: 0.2s;
18
+ $transition-normal: 0.3s;
19
+
20
+ // 性能优化
21
+ contain: layout style;
22
+ will-change: auto;
23
+ height: 100%;
24
+ display: flex;
25
+ flex-direction: column;
26
+ padding: 8px;
27
+ background: #fff;
28
+ margin: 8px;
29
+
30
+ // 顶部标签页
31
+ .main-tabs {
32
+ margin-bottom: $spacing;
33
+ background: #fff;
34
+ padding: 0 $spacing;
35
+ border-radius: $border-radius;
36
+ }
37
+
38
+ // 明细表格容器(替代Splitter)
39
+ .detail-tables-container {
40
+ flex: 1;
41
+ display: flex;
42
+ flex-direction: column;
43
+ gap: $spacing;
44
+ overflow: hidden;
45
+ contain: layout style;
46
+ transform: translateZ(0); // 强制硬件加速
47
+
48
+ // 未选择树节点时的提示
49
+ .no-tree-selection-tip {
50
+ flex: 1;
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ background: #fff;
55
+ border-radius: $border-radius;
56
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
57
+
58
+ :deep(.el-empty) {
59
+ .el-empty__description {
60
+ font-size: 16px;
61
+ color: #909399;
62
+ margin-top: $spacing;
63
+ }
64
+ }
65
+ }
66
+
67
+ // 表格内容容器
68
+ .tables-content {
69
+ flex: 1;
70
+ display: flex;
71
+ flex-direction: column;
72
+ gap: $spacing;
73
+ overflow: hidden;
74
+ }
75
+ .main-table-section,
76
+ .experiment-section {
77
+ display: flex;
78
+ flex-direction: column;
79
+ overflow: hidden;
80
+ contain: layout style;
81
+ background: #fff;
82
+ border-radius: $border-radius;
83
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
84
+ }
85
+
86
+ .main-table-section {
87
+ padding: $spacing;
88
+ }
89
+
90
+ .experiment-section {
91
+ padding: $spacing;
92
+ max-height: 350px;
93
+ overflow: hidden;
94
+ display: flex;
95
+ flex-direction: column;
96
+
97
+ .experiment-header {
98
+ flex-shrink: 0;
99
+ margin-bottom: $small-spacing;
100
+ }
101
+ // 强制表格滚动
102
+ :deep(.base-table) {
103
+ overflow: auto !important;
104
+
105
+ .el-table {
106
+ .el-table__body-wrapper {
107
+ max-height: 250px !important;
108
+ overflow-y: scroll !important;
109
+ overflow-x: auto !important;
110
+ }
111
+ }
112
+
113
+ // 确保滚动条可见
114
+ .el-table__body-wrapper::-webkit-scrollbar {
115
+ width: 12px;
116
+ background: #f0f0f0;
117
+ }
118
+
119
+ .el-table__body-wrapper::-webkit-scrollbar-thumb {
120
+ background: #c0c0c0;
121
+ border-radius: 6px;
122
+
123
+ &:hover {
124
+ background: #a0a0a0;
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ // 拖动提示图标
132
+ .drag-hint-icon {
133
+ font-size: 18px;
134
+ color: #909399;
135
+ margin-right: 8px;
136
+ cursor: ns-resize;
137
+ user-select: none;
138
+ font-weight: bold;
139
+ }
140
+
141
+ // 列表页内容
142
+ .list-content {
143
+ flex: 1;
144
+ display: flex;
145
+ flex-direction: column;
146
+ background: #fff;
147
+ border-radius: $border-radius;
148
+ padding: $spacing;
149
+ overflow: hidden;
150
+ // 分页器包装器
151
+ .pagination-wrapper {
152
+ display: flex;
153
+ justify-content: flex-end;
154
+ align-items: center;
155
+ margin-top: $spacing;
156
+ padding-top: $small-spacing;
157
+ }
158
+
159
+ .list-table-container {
160
+ flex: 1;
161
+ min-height: 0;
162
+ overflow: hidden;
163
+ }
164
+ }
165
+
166
+ // 详情包装器
167
+ .detail-wrapper {
168
+ flex: 1;
169
+ display: flex;
170
+ flex-direction: column;
171
+ overflow: hidden;
172
+
173
+ // 主内容区域包装器(左右拖动布局)
174
+ .detail-content-wrapper {
175
+ flex: 1;
176
+ overflow: hidden;
177
+ }
178
+ }
179
+
180
+ // 顶部搜索区域间距
181
+ :deep(.base-query) {
182
+ margin-bottom: $spacing;
183
+ }
184
+
185
+ // 详情区域(右侧内容)
186
+ .detail-area {
187
+ height: 100%;
188
+ display: flex;
189
+ flex-direction: column;
190
+ background: #fff;
191
+ border-radius: $border-radius;
192
+ padding: $spacing;
193
+ }
194
+
195
+ // 详情标签页按钮组
196
+ .detail-tabs-buttons {
197
+ flex-shrink: 0;
198
+ margin-bottom: $spacing;
199
+ }
200
+
201
+ // 详情内容区域
202
+ .detail-content {
203
+ flex: 1;
204
+ display: flex;
205
+ flex-direction: column;
206
+ overflow: hidden;
207
+
208
+ // 工具栏下间距
209
+ .toolbar-spacing {
210
+ margin-bottom: $tiny-spacing;
211
+ flex-shrink: 0;
212
+ }
213
+
214
+ // 表格容器
215
+ .table-container {
216
+ flex: 1;
217
+ min-height: 0;
218
+ overflow: hidden;
219
+ }
220
+
221
+ // 明细信息的表格容器(固定高度,给实验表格留空间)
222
+ &[data-tab="detail"] {
223
+ // 移除 table-container 固定高度,让 jh-drag-row 控制
224
+ .detail-tables-splitter {
225
+ flex: 1;
226
+ }
227
+ }
228
+
229
+ // 实验项目信息区域头部
230
+ .experiment-header {
231
+ display: flex;
232
+ justify-content: space-between;
233
+ align-items: center;
234
+ margin-bottom: $small-spacing;
235
+
236
+ .experiment-title {
237
+ display: flex;
238
+ align-items: center;
239
+ gap: 6px;
240
+
241
+ .title-arrow {
242
+ font-size: 16px;
243
+ color: #606266;
244
+ }
245
+
246
+ .title-text {
247
+ font-size: 14px;
248
+ font-weight: 600;
249
+ color: #303133;
250
+ }
251
+ }
252
+ }
253
+
254
+ // 明细信息占位
255
+ .detail-info-placeholder {
256
+ flex: 1;
257
+ display: flex;
258
+ align-items: center;
259
+ justify-content: center;
260
+ color: #909399;
261
+ font-size: 16px;
262
+ }
263
+ }
264
+ }