vue2-client 1.17.42 → 1.17.45
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/package.json
CHANGED
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
'x-charge',
|
|
63
63
|
'x-questionnaire',
|
|
64
64
|
'x-import-excel-button',
|
|
65
|
-
'x-chart'
|
|
65
|
+
'x-chart',
|
|
66
|
+
'h-chart'
|
|
66
67
|
].includes(cell.slotType)">
|
|
67
68
|
<component
|
|
68
69
|
:is="getComponentName(cell.slotConfig, cell.serviceName, cell.slotType)"
|
|
@@ -139,7 +140,8 @@
|
|
|
139
140
|
'x-charge',
|
|
140
141
|
'x-questionnaire',
|
|
141
142
|
'x-import-excel-button',
|
|
142
|
-
'x-chart'
|
|
143
|
+
'x-chart',
|
|
144
|
+
'h-chart'
|
|
143
145
|
].includes(cell.slotType)">
|
|
144
146
|
<component
|
|
145
147
|
:is="getComponentName(cell.slotConfig, cell.serviceName, cell.slotType)"
|
|
@@ -213,7 +215,8 @@ export default {
|
|
|
213
215
|
XCharge: () => import('@vue2-client/base-client/components/his/XCharge/XCharge.vue'),
|
|
214
216
|
XQuestionnaire: () => import('@vue2-client/base-client/components/his/XQuestionnaire/XQuestionnaire.vue'),
|
|
215
217
|
XImportExcelButton: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XImportExcelButton.vue'),
|
|
216
|
-
XChart: () => import('@vue2-client/base-client/components/his/XChart/XChart.vue')
|
|
218
|
+
XChart: () => import('@vue2-client/base-client/components/his/XChart/XChart.vue'),
|
|
219
|
+
HChart: () => import('@vue2-client/base-client/components/his/HChart/HChart.vue')
|
|
217
220
|
},
|
|
218
221
|
props: {
|
|
219
222
|
// 每一行的配置
|
|
@@ -333,12 +333,34 @@ export default {
|
|
|
333
333
|
return this.tableContext.expandedGrid ? this.$refs.expandableTable : this.$refs.simpleTable
|
|
334
334
|
},
|
|
335
335
|
realTableColumns () {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
336
|
+
// 1. 先过滤列并设置 ellipsis 属性
|
|
337
|
+
const filteredColumns = this.tableContext.tableColumns
|
|
338
|
+
.filter(item => item.slotType !== 'action' || !this.disableAction)
|
|
339
|
+
.map((item) => {
|
|
340
|
+
// 设置 ellipsis 属性
|
|
341
|
+
if (['ellipsis', 'badge', 'towDecimal', 'date', 'dateTime', 'fourDecimal', 'int'].includes(item.slotType)) {
|
|
342
|
+
item.ellipsis = true
|
|
343
|
+
}
|
|
344
|
+
return item
|
|
345
|
+
})
|
|
346
|
+
|
|
347
|
+
// 2. 分组:左固定、普通、右固定
|
|
348
|
+
const leftFixedColumns = []
|
|
349
|
+
const normalColumns = []
|
|
350
|
+
const rightFixedColumns = []
|
|
351
|
+
|
|
352
|
+
filteredColumns.forEach(col => {
|
|
353
|
+
if (col.fixed === 'left') {
|
|
354
|
+
leftFixedColumns.push(col)
|
|
355
|
+
} else if (col.fixed === 'right') {
|
|
356
|
+
rightFixedColumns.push(col)
|
|
357
|
+
} else {
|
|
358
|
+
normalColumns.push(col)
|
|
339
359
|
}
|
|
340
|
-
return item
|
|
341
360
|
})
|
|
361
|
+
|
|
362
|
+
// 3. 按顺序合并:左固定 + 普通 + 右固定
|
|
363
|
+
return [...leftFixedColumns, ...normalColumns, ...rightFixedColumns]
|
|
342
364
|
},
|
|
343
365
|
components () {
|
|
344
366
|
return {
|
|
@@ -653,6 +675,10 @@ export default {
|
|
|
653
675
|
vertical-align: middle !important;
|
|
654
676
|
border-bottom: 1px solid #f0f0f0;
|
|
655
677
|
}
|
|
678
|
+
/* 分页组件不换行 */
|
|
679
|
+
:deep(.ant-pagination > li) {
|
|
680
|
+
white-space: nowrap;
|
|
681
|
+
}
|
|
656
682
|
</style>
|
|
657
683
|
<style>
|
|
658
684
|
/* vue-draggable-resizable 拖动手柄样式 */
|
package/src/theme/global.less
CHANGED
|
@@ -147,8 +147,10 @@ ol {
|
|
|
147
147
|
display: none;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
// STable 表格行样式
|
|
151
|
-
.ant-table-tbody
|
|
150
|
+
// STable 表格行样式 - 同时应用于主表格和固定列
|
|
151
|
+
.ant-table-tbody,
|
|
152
|
+
.ant-table-fixed-left .ant-table-tbody,
|
|
153
|
+
.ant-table-fixed-right .ant-table-tbody {
|
|
152
154
|
// 统一为所有行添加平滑过渡效果
|
|
153
155
|
tr {
|
|
154
156
|
transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -162,8 +164,8 @@ ol {
|
|
|
162
164
|
.row-style-success {
|
|
163
165
|
background-color: rgba(82, 196, 26, 0.1) !important;
|
|
164
166
|
|
|
165
|
-
// 使用
|
|
166
|
-
|
|
167
|
+
// 使用 Ant Design 自动添加的 .ant-table-row-hover 类名
|
|
168
|
+
&.ant-table-row-hover,
|
|
167
169
|
&.row-clicked {
|
|
168
170
|
background-color: rgba(82, 196, 26, 0.2) !important;
|
|
169
171
|
}
|
|
@@ -193,7 +195,7 @@ ol {
|
|
|
193
195
|
.row-style-warn {
|
|
194
196
|
background-color: rgba(250, 173, 20, 0.1) !important;
|
|
195
197
|
|
|
196
|
-
|
|
198
|
+
&.ant-table-row-hover,
|
|
197
199
|
&.row-clicked {
|
|
198
200
|
background-color: rgba(250, 173, 20, 0.2) !important;
|
|
199
201
|
}
|
|
@@ -223,7 +225,7 @@ ol {
|
|
|
223
225
|
.row-style-danger {
|
|
224
226
|
background-color: rgba(245, 34, 47, 0.1) !important;
|
|
225
227
|
|
|
226
|
-
|
|
228
|
+
&.ant-table-row-hover,
|
|
227
229
|
&.row-clicked {
|
|
228
230
|
background-color: rgba(245, 34, 47, 0.2) !important;
|
|
229
231
|
}
|
|
@@ -252,7 +254,7 @@ ol {
|
|
|
252
254
|
.row-style-magic {
|
|
253
255
|
background-color: rgba(114, 46, 209, 0.1) !important;
|
|
254
256
|
|
|
255
|
-
|
|
257
|
+
&.ant-table-row-hover,
|
|
256
258
|
&.row-clicked {
|
|
257
259
|
background-color: rgba(114, 46, 209, 0.2) !important;
|
|
258
260
|
}
|
|
@@ -279,9 +281,9 @@ ol {
|
|
|
279
281
|
|
|
280
282
|
// 默认信息样式
|
|
281
283
|
.row-style-info {
|
|
282
|
-
|
|
284
|
+
&.ant-table-row-hover,
|
|
283
285
|
&.row-clicked {
|
|
284
|
-
// 使用主题色的
|
|
286
|
+
// 使用主题色的 10% 透明度
|
|
285
287
|
background-color: fade(@primary-color, 10%) !important;
|
|
286
288
|
}
|
|
287
289
|
|