vue2-client 1.16.81 → 1.16.83
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 +112 -112
- package/src/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +394 -379
- package/src/base-client/components/common/HIS/HTab/HTab.vue +418 -418
- package/src/base-client/components/common/XCollapse/XCollapse.vue +833 -833
- package/src/base-client/components/common/XFormGroupDetails/XFormGroupDetails.vue +1 -1
- package/src/base-client/components/common/XInput/XInput.vue +194 -194
- package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
- package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
- package/src/base-client/components/his/XCheckbox/XCheckbox.vue +31 -2
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +1031 -1022
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XList/XList.vue +829 -829
- package/src/base-client/components/his/XRadio/XRadio.vue +1 -1
- package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +159 -159
- package/src/base-client/components/his/XTitle/XTitle.vue +255 -255
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src/router/async/router.map.js +2 -1
- package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
|
@@ -1,379 +1,394 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
3
|
-
import { ref, computed, useAttrs, nextTick } from 'vue'
|
|
4
|
-
|
|
5
|
-
const props = defineProps({
|
|
6
|
-
// HFormTable特有的属性
|
|
7
|
-
tableStyle: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: 'formtable-col1'
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
// 兼容多种样式配置
|
|
14
|
-
const attrs = useAttrs()
|
|
15
|
-
const wrapperClassObject = computed(() => {
|
|
16
|
-
const a = attrs
|
|
17
|
-
const classes = {}
|
|
18
|
-
|
|
19
|
-
// 通用布尔样式开关(以存在/空字符串/'true' 为真)
|
|
20
|
-
const booleanStyleKeys = [
|
|
21
|
-
'button-row-0margin',
|
|
22
|
-
'top-hidden',
|
|
23
|
-
'dialog-style'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
mutation.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
f.dataset.syncedHeight
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
f.style.setProperty('
|
|
101
|
-
f.style.setProperty('
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
tds.
|
|
106
|
-
|
|
107
|
-
td.style.setProperty('
|
|
108
|
-
td.style.setProperty('
|
|
109
|
-
td.style.setProperty('
|
|
110
|
-
td.style.setProperty('
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
f.
|
|
117
|
-
f.style.removeProperty('
|
|
118
|
-
f.style.removeProperty('
|
|
119
|
-
|
|
120
|
-
tds.
|
|
121
|
-
|
|
122
|
-
td.style.removeProperty('
|
|
123
|
-
td.style.removeProperty('
|
|
124
|
-
td.style.removeProperty('
|
|
125
|
-
td.style.removeProperty('
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
getXFormTableInstance
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
border-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
//
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
padding-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
padding-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
&.h-form-table-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
}
|
|
379
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
3
|
+
import { ref, computed, useAttrs, nextTick } from 'vue'
|
|
4
|
+
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
// HFormTable特有的属性
|
|
7
|
+
tableStyle: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: 'formtable-col1'
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
// 兼容多种样式配置
|
|
14
|
+
const attrs = useAttrs()
|
|
15
|
+
const wrapperClassObject = computed(() => {
|
|
16
|
+
const a = attrs
|
|
17
|
+
const classes = {}
|
|
18
|
+
|
|
19
|
+
// 通用布尔样式开关(以存在/空字符串/'true' 为真)
|
|
20
|
+
const booleanStyleKeys = [
|
|
21
|
+
'button-row-0margin',
|
|
22
|
+
'top-hidden',
|
|
23
|
+
'dialog-style',
|
|
24
|
+
'button-style'
|
|
25
|
+
]
|
|
26
|
+
for (const key of booleanStyleKeys) {
|
|
27
|
+
const val = a[key]
|
|
28
|
+
const truthy = val === true || val === '' || val === 'true'
|
|
29
|
+
if (truthy) classes[`h-form-table-${key}`] = true
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// 兼容通过 attrs 透传的分页样式:将值映射为当前样式中存在的类名
|
|
33
|
+
const paginationAttr = a && a.paginationStyle
|
|
34
|
+
if (paginationAttr && ['pagination-center', 'custom-pagination'].includes(paginationAttr)) {
|
|
35
|
+
classes[`h-form-table-${paginationAttr}`] = true
|
|
36
|
+
}
|
|
37
|
+
return classes
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
// 通过暴露的实例访问 $slots,避免直接依赖 Composition API 的 useSlots
|
|
41
|
+
// 在模板中使用 `$slots` 遍历以保持与 Vue2 兼容
|
|
42
|
+
// 创建对XFormTable组件的引用
|
|
43
|
+
const xFormTableRef = ref()
|
|
44
|
+
|
|
45
|
+
// 使用 MutationObserver 监听展开行高度变化,实时同步固定列
|
|
46
|
+
let observer = null
|
|
47
|
+
const setupHeightSync = () => {
|
|
48
|
+
try {
|
|
49
|
+
const wrapper = document.querySelector('.h-form-table-wrapper')
|
|
50
|
+
if (!wrapper || observer) return
|
|
51
|
+
|
|
52
|
+
observer = new MutationObserver((mutations) => {
|
|
53
|
+
// 只在展开行相关变化时同步,避免不必要的计算
|
|
54
|
+
const hasRelevantChange = mutations.some(mutation =>
|
|
55
|
+
mutation.type === 'attributes' &&
|
|
56
|
+
(mutation.attributeName === 'style' || mutation.attributeName === 'class') ||
|
|
57
|
+
mutation.type === 'childList'
|
|
58
|
+
)
|
|
59
|
+
if (hasRelevantChange) {
|
|
60
|
+
syncFixedExpandedHeights()
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
// 监听主表展开行的属性变化
|
|
65
|
+
const mainTable = wrapper.querySelector('.ant-table-body > table > tbody')
|
|
66
|
+
if (mainTable) {
|
|
67
|
+
observer.observe(mainTable, {
|
|
68
|
+
childList: true,
|
|
69
|
+
subtree: true,
|
|
70
|
+
attributes: true,
|
|
71
|
+
attributeFilter: ['style', 'class']
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
} catch (e) {
|
|
75
|
+
console.warn('[HFormTable] setupHeightSync error:', e)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// 同步固定列中的"展开行"高度到主表展开行高度,避免错位
|
|
80
|
+
const syncFixedExpandedHeights = () => {
|
|
81
|
+
try {
|
|
82
|
+
const wrapper = document.querySelector('.h-form-table-wrapper')
|
|
83
|
+
if (!wrapper) return
|
|
84
|
+
const mainRows = Array.from(wrapper.querySelectorAll('.ant-table-body > table > tbody > tr'))
|
|
85
|
+
const fixedRows = Array.from(wrapper.querySelectorAll('.ant-table-fixed-right .ant-table-body-inner > table > tbody > tr'))
|
|
86
|
+
const len = Math.min(mainRows.length, fixedRows.length)
|
|
87
|
+
|
|
88
|
+
for (let i = 0; i < len; i++) {
|
|
89
|
+
const m = mainRows[i]
|
|
90
|
+
const f = fixedRows[i]
|
|
91
|
+
if (!f) continue
|
|
92
|
+
|
|
93
|
+
if (m.classList.contains('ant-table-expanded-row')) {
|
|
94
|
+
const h = m.clientHeight
|
|
95
|
+
// 缓存高度,避免重复设置
|
|
96
|
+
if (f.dataset.syncedHeight === h.toString()) continue
|
|
97
|
+
f.dataset.syncedHeight = h.toString()
|
|
98
|
+
|
|
99
|
+
// 强制同步高度,使用 !important 覆盖其他样式
|
|
100
|
+
f.style.setProperty('height', h + 'px', 'important')
|
|
101
|
+
f.style.setProperty('min-height', h + 'px', 'important')
|
|
102
|
+
f.style.setProperty('max-height', h + 'px', 'important')
|
|
103
|
+
|
|
104
|
+
// 同步单元格高度,确保完全一致
|
|
105
|
+
const tds = f.querySelectorAll('td')
|
|
106
|
+
tds.forEach(td => {
|
|
107
|
+
td.style.setProperty('height', h + 'px', 'important')
|
|
108
|
+
td.style.setProperty('min-height', h + 'px', 'important')
|
|
109
|
+
td.style.setProperty('max-height', h + 'px', 'important')
|
|
110
|
+
td.style.setProperty('padding', '0', 'important')
|
|
111
|
+
td.style.setProperty('border', 'none', 'important')
|
|
112
|
+
})
|
|
113
|
+
} else {
|
|
114
|
+
// 清理非展开行的内联样式和缓存
|
|
115
|
+
if (f.dataset.syncedHeight) {
|
|
116
|
+
f.removeAttribute('data-synced-height')
|
|
117
|
+
f.style.removeProperty('height')
|
|
118
|
+
f.style.removeProperty('min-height')
|
|
119
|
+
f.style.removeProperty('max-height')
|
|
120
|
+
const tds = f.querySelectorAll('td')
|
|
121
|
+
tds.forEach(td => {
|
|
122
|
+
td.style.removeProperty('height')
|
|
123
|
+
td.style.removeProperty('min-height')
|
|
124
|
+
td.style.removeProperty('max-height')
|
|
125
|
+
td.style.removeProperty('padding')
|
|
126
|
+
td.style.removeProperty('border')
|
|
127
|
+
})
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
} catch (e) {
|
|
132
|
+
console.warn('[HFormTable] syncFixedExpandedHeights error:', e)
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const onExpandLog = (expanded, record) => {
|
|
137
|
+
// 等DOM完成再测量
|
|
138
|
+
nextTick(() => {
|
|
139
|
+
// 设置实时监听(如果还没设置)
|
|
140
|
+
if (!observer) {
|
|
141
|
+
setupHeightSync()
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// 立即同步一次(避免第一次展开时错位)
|
|
145
|
+
syncFixedExpandedHeights()
|
|
146
|
+
|
|
147
|
+
// 短延迟再同步一次(应对异步渲染)
|
|
148
|
+
setTimeout(() => {
|
|
149
|
+
syncFixedExpandedHeights()
|
|
150
|
+
}, 20)
|
|
151
|
+
})
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// 暴露方法给父组件使用
|
|
155
|
+
defineExpose({
|
|
156
|
+
// 为了兼容性,保留getXFormTableInstance方法
|
|
157
|
+
getXFormTableInstance: () => xFormTableRef.value
|
|
158
|
+
})
|
|
159
|
+
|
|
160
|
+
// 计算是否使用自定义分页(兼容 attrs 透传与 tableStyle 配置)
|
|
161
|
+
const isCustomPagination = computed(() => {
|
|
162
|
+
const a = attrs
|
|
163
|
+
const paginationAttr = (a && a.paginationStyle) || ''
|
|
164
|
+
return props.tableStyle === 'custom-pagination' || paginationAttr === 'custom-pagination'
|
|
165
|
+
})
|
|
166
|
+
</script>
|
|
167
|
+
|
|
168
|
+
<template>
|
|
169
|
+
<div
|
|
170
|
+
class="h-form-table-wrapper"
|
|
171
|
+
:class="[
|
|
172
|
+
`h-form-table-${tableStyle}`,
|
|
173
|
+
wrapperClassObject
|
|
174
|
+
]"
|
|
175
|
+
>
|
|
176
|
+
<x-form-table
|
|
177
|
+
ref="xFormTableRef"
|
|
178
|
+
v-bind="$attrs"
|
|
179
|
+
:customPagination="isCustomPagination"
|
|
180
|
+
@expand="onExpandLog"
|
|
181
|
+
v-on="$listeners"
|
|
182
|
+
>
|
|
183
|
+
<template v-for="(_, name) in $slots" #[name]="slotData">
|
|
184
|
+
<slot :name="name" v-bind="slotData" />
|
|
185
|
+
</template>
|
|
186
|
+
</x-form-table>
|
|
187
|
+
</div>
|
|
188
|
+
</template>
|
|
189
|
+
|
|
190
|
+
<style scoped lang="less">
|
|
191
|
+
.h-form-table-wrapper {
|
|
192
|
+
// 基础样式
|
|
193
|
+
:deep(.table-wrapper) {
|
|
194
|
+
.ant-table {
|
|
195
|
+
.ant-table-row {
|
|
196
|
+
margin: 0px;
|
|
197
|
+
|
|
198
|
+
.ant-form-item {
|
|
199
|
+
margin: 0px;
|
|
200
|
+
|
|
201
|
+
.ant-form-item-control-wrapper {
|
|
202
|
+
.ant-form-item-control {
|
|
203
|
+
line-height: 0px;
|
|
204
|
+
|
|
205
|
+
.ant-select-selection--multiple {
|
|
206
|
+
padding-bottom: 2px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
width: 100%;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
font-size: 16px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ant-alert-info {
|
|
217
|
+
display: none;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:deep(.ant-card) {
|
|
222
|
+
margin: -10px 0px 29px 0px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:deep(.ant-btn) {
|
|
226
|
+
border: 0px;
|
|
227
|
+
box-shadow: none;
|
|
228
|
+
padding: 0px;
|
|
229
|
+
color: #5D5C5C;
|
|
230
|
+
font-weight: bold;
|
|
231
|
+
letter-spacing: 0em;
|
|
232
|
+
font-size: 18px;
|
|
233
|
+
line-height: normal;
|
|
234
|
+
font-family: "Source Han Sans";
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:deep(.ant-card-body) {
|
|
238
|
+
padding: 0 6px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
:deep(.ant-table-small) {
|
|
242
|
+
border-width: 0;
|
|
243
|
+
|
|
244
|
+
.ant-table-fixed {
|
|
245
|
+
border-radius: 0;
|
|
246
|
+
border-bottom: 1px solid #f0f0f0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// 表格高度样式
|
|
251
|
+
&.h-form-table-height {
|
|
252
|
+
:deep(.table-wrapper) {
|
|
253
|
+
.ant-select-open ~ .ant-table-content {
|
|
254
|
+
height: 500px !important;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// 表格样式
|
|
260
|
+
&.h-form-table-table {
|
|
261
|
+
:deep(.ant-table-small .ant-table-fixed-header) {
|
|
262
|
+
.ant-table-content {
|
|
263
|
+
.ant-table-content {
|
|
264
|
+
.ant-table-body {
|
|
265
|
+
border-radius: 0 0 4px 4px;
|
|
266
|
+
// 修复展开行后固定列与主体错位:保持表体滚动容器为自动滚动
|
|
267
|
+
overflow: auto !important;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
// 移除之前隐藏固定列占位行的样式,保持与主体行数一致
|
|
274
|
+
// 展开行单元格去除额外内边距,避免高度不一致
|
|
275
|
+
:deep(.ant-table-expanded-row > td) {
|
|
276
|
+
padding: 0 !important;
|
|
277
|
+
}
|
|
278
|
+
// 展开内容中的表单/控件去掉外边距,避免撑高
|
|
279
|
+
:deep(.ant-table-expanded-row .ant-form-item) {
|
|
280
|
+
margin-bottom: 0 !important;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// 移除之前的隐藏固定列样式,避免展开/合并后操作列消失
|
|
284
|
+
&.h-form-table-dialog-style {
|
|
285
|
+
/* 选择前面的兄弟元素 */
|
|
286
|
+
:global(.ant-col.ant-col-24[name="trGroup"]:has(+ .ant-card .ant-card-body .h-form-table-wrapper.h-form-table-dialog-style)) {
|
|
287
|
+
padding-top: 0px !important;
|
|
288
|
+
padding-left: 0px !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
:global(.ant-card-body:has(.h-form-table-wrapper.h-form-table-dialog-style)) {
|
|
292
|
+
padding-top: 0px !important;
|
|
293
|
+
padding-left: 0px !important;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// 隐藏按钮区域
|
|
297
|
+
&.h-form-table-button-area-hide {
|
|
298
|
+
:deep(.ant-btn) {
|
|
299
|
+
display: none;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
:deep(.table-wrapper) {
|
|
303
|
+
margin-top: -39px;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// 顶部区域隐藏(与按钮隐藏一致的视觉需求)
|
|
308
|
+
&.h-form-table-top-hidden {
|
|
309
|
+
:deep(.ant-btn) {
|
|
310
|
+
display: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:deep(.table-wrapper) {
|
|
314
|
+
margin-top: -39px;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// 列样式1
|
|
319
|
+
&.h-form-table-formtable-col1 {
|
|
320
|
+
:deep(.table-wrapper) {
|
|
321
|
+
.ant-row {
|
|
322
|
+
.ant-col span {
|
|
323
|
+
border: none;
|
|
324
|
+
width: auto;
|
|
325
|
+
margin-bottom: auto;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ant-table {
|
|
330
|
+
.ant-table-body {
|
|
331
|
+
.ant-table-fixed colgroup col:nth-child(2) {
|
|
332
|
+
width: 50px;
|
|
333
|
+
min-width: 50px;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.ant-table-header {
|
|
338
|
+
.ant-table-fixed colgroup col:nth-child(2) {
|
|
339
|
+
width: 50px;
|
|
340
|
+
min-width: 50px;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// 底部分页居中 & 自定义分页样式(共用样式)
|
|
348
|
+
&.h-form-table-bottom-center,
|
|
349
|
+
&.h-form-table-custom-pagination {
|
|
350
|
+
:deep(.table-wrapper) {
|
|
351
|
+
.ant-row-flex-start {
|
|
352
|
+
position: relative;
|
|
353
|
+
display: flex;
|
|
354
|
+
align-items: center;
|
|
355
|
+
margin-top: 12px !important;
|
|
356
|
+
height: 32px;
|
|
357
|
+
|
|
358
|
+
// 防止第一个子元素无限拉伸,影响分页居中
|
|
359
|
+
> :first-child {
|
|
360
|
+
flex: 0 0 auto;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// 将第二个子元素(分页)绝对居中
|
|
364
|
+
> :nth-child(2) {
|
|
365
|
+
position: absolute;
|
|
366
|
+
left: 50%;
|
|
367
|
+
transform: translateX(-50%);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// 按钮行0margin
|
|
374
|
+
&.h-form-table-button-row-0margin {
|
|
375
|
+
:deep(.ant-row) {
|
|
376
|
+
margin: 0px;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
// crud按钮样式
|
|
380
|
+
&.h-form-table-button-style {
|
|
381
|
+
:deep(.ant-btn){
|
|
382
|
+
border-radius: 6px;
|
|
383
|
+
background-color: #FFFFFF;
|
|
384
|
+
border: 1px solid #9499A0;
|
|
385
|
+
color: #313131;
|
|
386
|
+
font-weight: normal;
|
|
387
|
+
letter-spacing: 0em;
|
|
388
|
+
font-size: 16px;
|
|
389
|
+
font-family: "Source Han Sans";
|
|
390
|
+
line-height: normal;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
</style>
|