vue2-client 1.22.19 → 1.22.21

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 (88) hide show
  1. package/.env.his +19 -19
  2. package/.env.message +19 -19
  3. package/.history/.eslintrc_20260521171150.js +74 -0
  4. package/.history/.eslintrc_20260521171213.js +74 -0
  5. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154443.vue +726 -0
  6. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154700.vue +478 -0
  7. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175435.vue +706 -0
  8. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175450.vue +694 -0
  9. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260611152602.vue +755 -0
  10. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513145941.vue +524 -0
  11. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513153133.vue +731 -0
  12. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513160316.vue +525 -0
  13. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260601144150.vue +1046 -0
  14. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310142713.vue +512 -0
  15. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310145118.vue +511 -0
  16. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260311094834.vue +696 -0
  17. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260320143028.vue +693 -0
  18. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260409101450.vue +677 -0
  19. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260625173703.vue +767 -0
  20. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260626112425.vue +803 -0
  21. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140637.vue +1455 -0
  22. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140935.vue +1441 -0
  23. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513150818.vue +1441 -0
  24. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153119.vue +1442 -0
  25. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153126.vue +1486 -0
  26. package/.history/src/base-client/components/common/XForm/XFormItem_20260513140854.vue +1607 -0
  27. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140403.vue +643 -0
  28. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140829.vue +628 -0
  29. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519142824.vue +104 -0
  30. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519143155.vue +102 -0
  31. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171231.vue +1241 -0
  32. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171441.vue +1223 -0
  33. package/.history/src/base-client/components/his/HAi/HAi_20260612174826.vue +472 -0
  34. package/.history/src/base-client/components/his/HAi/HAi_20260612175839.vue +538 -0
  35. package/.history/src/base-client/components/his/HAi/HAi_20260615103331.vue +650 -0
  36. package/.history/src/base-client/components/his/HAi/HAi_20260618140214.vue +1396 -0
  37. package/.history/src/base-client/components/his/HAi/HAi_20260618140556.vue +1396 -0
  38. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260424134504.vue +1469 -0
  39. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171133.vue +788 -0
  40. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171151.vue +780 -0
  41. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511170841.vue +585 -0
  42. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511171138.vue +787 -0
  43. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260512141830.vue +739 -0
  44. package/.history/src/components/STable/index_20260409155138.js +806 -0
  45. package/.history/src/components/STable/index_20260409155218.js +814 -0
  46. package/.history/src/expression/core/Expression_20260305164427.js +1371 -0
  47. package/.history/src/expression/core/Expression_20260305170258.js +1358 -0
  48. package/.history/src/expression/core/Program_20260305111830.js +944 -0
  49. package/.history/src/expression/core/Program_20260305112041.js +931 -0
  50. package/.history/src/logic/LogicRunner_20260304154306.js +170 -0
  51. package/.history/src/logic/LogicRunner_20260304155553.js +112 -0
  52. package/.history/src/logic/LogicRunner_20260305105834.js +112 -0
  53. package/.history/src/logic/LogicRunner_20260305112718.js +129 -0
  54. package/.history/src/logic/LogicRunner_20260305182436.js +133 -0
  55. package/.history/src/logic/LogicRunner_20260306151301.js +213 -0
  56. package/.history/src/logic/LogicRunner_20260306152419.js +213 -0
  57. package/.history/src/logic/plugins/common/DateTools_20260305154159.js +61 -0
  58. package/.history/src/logic/plugins/common/DateTools_20260305154217.js +44 -0
  59. package/.history/src/logic/plugins/common/DateTools_20260305161014.js +44 -0
  60. package/.history/src/logic/plugins/common/HttpTools_20260305164352.js +80 -0
  61. package/.history/src/logic/plugins/common/HttpTools_20260305170258.js +75 -0
  62. package/.history/src/logic/plugins/common/HttpTools_20260305171634.js +75 -0
  63. package/.history/src/logic/plugins/common/HttpTools_20260306152419.js +72 -0
  64. package/.history/src/services/api/restTools_20260427142149.js +245 -0
  65. package/.history/src/services/api/restTools_20260427142853.js +230 -0
  66. package/.history/src/services/api/restTools_20260519135558.js +230 -0
  67. package/.history/src/services/api/restTools_20260519140825.js +230 -0
  68. package/.history/src/services/api/restTools_20260519151223.js +230 -0
  69. package/.history/src/utils/indexedDB_20260306150918.js +593 -0
  70. package/.history/src/utils/indexedDB_20260306151301.js +586 -0
  71. package/.idea/af-vue2-client.iml +4 -7
  72. package/.idea/codeStyles/Project.xml +62 -0
  73. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  74. package/.idea/misc.xml +6 -0
  75. package/CHANGELOG.md +837 -837
  76. package/package.json +117 -117
  77. package/preview-input-box.html +180 -0
  78. package/src/base-client/components/common/HIS/HForm/HForm.vue +1186 -1186
  79. package/src/base-client/components/common/HIS/HTab/HTab.vue +790 -757
  80. package/src/base-client/components/common/ImagePreviewModal/index.js +3 -3
  81. package/src/base-client/components/common/XMarkdownViewer/demo.vue +102 -102
  82. package/src/base-client/components/his/HAi/HAi.vue +159 -30
  83. package/src/base-client/components/his/XTransfer/index.md +327 -327
  84. package/src/components/MarkdownEditor/demo.vue +300 -300
  85. package/src/components/MarkdownEditor/index.vue +590 -590
  86. package/src/router/async/router.map.js +141 -141
  87. package/src/services/api/restTools.js +1 -1
  88. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
@@ -0,0 +1,767 @@
1
+ <script setup>
2
+ import XTab from '@vue2-client/base-client/components/common/XTab/XTab.vue'
3
+ import { ref, computed, useAttrs, useSlots, onMounted } from 'vue'
4
+ import { getConfigByName } from '@vue2-client/services/api/common'
5
+
6
+ const props = defineProps({
7
+ // 标签栏右侧附加区域的配置名(可选)。提供时将自动加载配置并渲染到 tabBar 右侧。
8
+ tabBarExtraConfig: {
9
+ type: String,
10
+ default: undefined
11
+ },
12
+ // 控制标签间距,覆盖内部 XTab 的默认 10px;默认置 0 清除外边距
13
+ tabBarGutter: {
14
+ type: Number,
15
+ default: 0
16
+ }
17
+ })
18
+
19
+ // 兼容多种样式配置
20
+ const attrs = useAttrs()
21
+ const wrapperClassObject = computed(() => {
22
+ const a = attrs
23
+ const classes = {}
24
+
25
+ // 通用布尔样式开关(以存在/空字符串/'true' 为真)
26
+ // hasTopMargin: 标签增加顶部外边距,同时调整 ant-card-body 内边距
27
+ // useStyle7: 细下划线指示器样式,透明背景,支持配合 useCycle 显示圆点
28
+ // useCycle: 与 useStyle7 配合使用,在标签左侧显示蓝色圆点指示器
29
+ // useStyle8: 等宽卡片式标签,带边框和圆角,激活项高亮并隐藏底部边框
30
+ // out-tab: 去除标签栏所有外边距与内边距,实现紧凑贴边效果
31
+ // no-underline: 隐藏底部边框与 ink-bar 下划线指示器
32
+ // useStyle9: 圆角卡片标签,带边框,激活项填充品牌色,禁用切换动画
33
+ // useStyle10: 无下划线 + 左侧蓝色圆点,透明背景,激活项高亮品牌色
34
+ // useStyle11: 去除边框,选中显示蓝色下划线,字体 #313131 / #0057FE,标签宽度平均分配
35
+ const booleanStyleKeys = [
36
+ 'hasTopMargin', 'useStyle7', 'useCycle', 'useStyle8', 'out-tab', 'no-underline', 'useStyle9', 'useStyle10', 'useStyle11'
37
+ ]
38
+ for (const key of booleanStyleKeys) {
39
+ const val = a[key]
40
+ const truthy = val === true || val === '' || val === 'true'
41
+ if (truthy) classes[`h-tab-${key}`] = true
42
+ }
43
+ return classes
44
+ })
45
+
46
+ // 创建对XTab组件的引用
47
+ const xTabRef = ref()
48
+
49
+ // 获取插槽(避免模板中直接使用 $slots 触发类型检查错误)
50
+ const slots = useSlots()
51
+ const slotNames = computed(() => {
52
+ try {
53
+ return Object.keys(slots || {})
54
+ } catch (e) {
55
+ return []
56
+ }
57
+ })
58
+
59
+ // 右侧附加区域的动态配置
60
+ const extraConfig = ref(null)
61
+ const extraItems = computed(() => {
62
+ const cfg = extraConfig.value
63
+ return cfg && cfg.value ? cfg.value : []
64
+ })
65
+
66
+ // 本地异步组件映射(未全局注册时生效)
67
+ const localMap = {
68
+ 'x-input': () => import('@vue2-client/base-client/components/common/XInput/XInput.vue'),
69
+ 'x-select': () => import('@vue2-client/base-client/components/his/XSelect/XSelect.vue'),
70
+ 'x-radio': () => import('@vue2-client/base-client/components/his/XRadio/XRadio.vue'),
71
+ 'x-buttons': () => import('@vue2-client/base-client/components/common/XButtons/XButtons.vue'),
72
+ 'x-time-select': () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelect.vue'),
73
+ 'h-buttons': () => import('@vue2-client/base-client/components/common/HIS/HButtons/HButtons.vue')
74
+ }
75
+
76
+ // 从 attrs 中读取 serverName 与 env(保持向后兼容)
77
+ const serverName = computed(() => (attrs && attrs.serverName))
78
+ const env = computed(() => (attrs && attrs.env) || 'prod')
79
+
80
+ const loadExtraConfig = (configName) => {
81
+ if (!configName) {
82
+ extraConfig.value = null
83
+ return
84
+ }
85
+ getConfigByName(configName, serverName.value, (res) => {
86
+ extraConfig.value = res
87
+ }, env.value === 'dev')
88
+ }
89
+
90
+ onMounted(() => {
91
+ loadExtraConfig(props.tabBarExtraConfig)
92
+ })
93
+
94
+ // 暴露方法给父组件使用
95
+ defineExpose({
96
+ // 为了兼容性,保留getXTabInstance方法
97
+ getXTabInstance: () => xTabRef.value,
98
+ })
99
+ </script>
100
+
101
+ <template>
102
+ <div
103
+ class="h-tab-wrapper"
104
+ :class="[wrapperClassObject, extraItems.length > 1 ? 'h-tab-extra-wrapper-multiple' : '']">
105
+ <x-tab
106
+ ref="xTabRef"
107
+ :tabBarGutter="props.tabBarGutter"
108
+ v-bind="$attrs"
109
+ v-on="$listeners"
110
+ >
111
+ <template v-if="extraItems.length" #tabBarExtraContent>
112
+ <!-- 父级可接管渲染;未提供则按配置兜底渲染 -->
113
+ <slot name="tabBarExtraContent" :config="extraConfig" :items="extraItems">
114
+ <div class="h-tab-extra-wrapper">
115
+ <component
116
+ v-for="(item, idx) in extraItems"
117
+ :is="localMap[item.slotType] || item.slotType"
118
+ :key="idx"
119
+ :ref="item.slotRef || `extra_${idx}`"
120
+ :serviceName="item.serviceName || serverName"
121
+ :serverName="item.serviceName || serverName"
122
+ :queryParamsName="item.slotConfig"
123
+ :env="env"
124
+ v-on="$listeners"
125
+ v-bind="item.attrs"
126
+ />
127
+ </div>
128
+ </slot>
129
+ </template>
130
+ <template v-for="name in slotNames" #[name]="slotData">
131
+ <slot :name="name" v-bind="slotData" />
132
+ </template>
133
+ </x-tab>
134
+ </div>
135
+ </template>
136
+
137
+ <style scoped lang="less">
138
+ .h-tab-wrapper {
139
+ width: 100%;
140
+ overflow: visible !important;
141
+
142
+ // 基础样式
143
+ :deep(.ant-tabs-tab-next) {
144
+ display: none;
145
+ }
146
+ :deep(.ant-tabs-nav-wrap) {
147
+ margin-top: 18px;
148
+ margin-bottom: 0;
149
+ }
150
+ :deep(.ant-tabs-nav) {
151
+ // 去除导航容器默认左右内边距,避免收缩时左侧多出一截
152
+ .ant-tabs-nav-container,
153
+ .ant-tabs-nav-scroll {
154
+ margin: 0px;
155
+ }
156
+
157
+ // 移除左右切换箭头带来的占位
158
+ .ant-tabs-tab-prev,
159
+ .ant-tabs-tab-next {
160
+ display: none !important;
161
+ width: 0 !important;
162
+ }
163
+ .ant-tabs-tab-next-icon {
164
+ display: none;
165
+ }
166
+ .ant-tabs-tab {
167
+ background-color: transparent;
168
+ border-radius: 6px 6px 0 0;
169
+ color: #5D5C5C;
170
+ font-weight: bold;
171
+ min-width: 134px;
172
+ width: auto;
173
+ font-size: 18px;
174
+ line-height: 26px;
175
+ font-family: "Source Han Sans";
176
+ transition: all 0.3s;
177
+ height: 32px;
178
+ text-align: center;
179
+ margin: 0 !important;
180
+ padding: 0 12px !important;
181
+ }
182
+ .ant-tabs-tab-active {
183
+ background-color: #0057FE;
184
+ color: #ffffff;
185
+ min-width: 134px;
186
+ width: auto;
187
+ line-height: 26px;
188
+ height: 32px;
189
+ text-align: center;
190
+ margin: 0 !important;
191
+ padding: 0 12px !important;
192
+ }
193
+ }
194
+
195
+ :deep(.ant-tabs-bar) {
196
+ border-bottom: 2px solid #0057FE;
197
+ margin: 0px 0px;
198
+ width: 100%;
199
+ height: 50px;
200
+ }
201
+
202
+ // 滚动状态下的容器左右内边距清零,避免左侧多出一截
203
+ :deep(.ant-tabs-nav-container-scrolling) {
204
+ padding-left: 0 !important;
205
+ padding-right: 0 !important;
206
+ }
207
+
208
+ :deep(.ant-tabs-tab-arrow-show) {
209
+ display: none;
210
+ }
211
+
212
+ :deep(.ant-tabs-ink-bar) {
213
+ background-color: transparent;
214
+ bottom: 0px;
215
+ display: none;
216
+ height: 0;
217
+ }
218
+
219
+ :deep(.ant-tabs-tab-prev-icon-target) {
220
+ display: none;
221
+ }
222
+
223
+ // 带顶部边距的样式
224
+ &.h-tab-hasTopMargin {
225
+ :deep(.ant-tabs-nav) {
226
+ margin-top: 6px;
227
+ }
228
+
229
+ :deep(.ant-tabs-bar) {
230
+ margin: 0 6px;
231
+ }
232
+
233
+ :deep(.ant-card-body) {
234
+ padding: 6px 0;
235
+
236
+ .ant-card-body {
237
+ padding: 6px;
238
+ }
239
+ }
240
+ }
241
+
242
+ // 通用样式7:细下划线、透明背景、可配置宽度
243
+ &.h-tab-useStyle7 {
244
+ :deep(.ant-tabs-tab-next),
245
+ :deep(.ant-tabs-tab-prev-icon-target),
246
+ :deep(.ant-tabs-tab-next-icon) { display: none; }
247
+
248
+ :deep(.ant-tabs-bar) { border-bottom: 2px solid transparent; }
249
+
250
+ :deep(.ant-tabs-ink-bar) {
251
+ display: block !important;
252
+ background-color: #0057FE !important;
253
+ height: 4px !important;
254
+ /* 让 antd 自身计算宽度,与页签宽度匹配 */
255
+ margin-left: 0 !important;
256
+ }
257
+
258
+ :deep(.ant-tabs-nav-wrap) {
259
+ margin-top: 0;
260
+ padding-left: 0 !important; // 消除整个Tab的左间距
261
+ padding-right: 0 !important; // 消除整个Tab的右间距
262
+ }
263
+
264
+ :deep(.ant-tabs-nav-container) {
265
+ padding-left: 0 !important; // 确保容器也没有左右间距
266
+ padding-right: 0 !important;
267
+ }
268
+
269
+ :deep(.ant-tabs-nav) {
270
+ display: flex;
271
+ flex-wrap: wrap;
272
+ gap: 8px;
273
+ .ant-tabs-tab {
274
+ background-color: transparent;
275
+ border-radius: 0;
276
+ color: #313131;
277
+ font-weight: bold;
278
+ /* 自适应宽度,允许通过变量覆盖最小宽度 */
279
+ min-width: var(--tab-min-width, 96px);
280
+ width: auto;
281
+ padding: 0 12px 6px;
282
+ font-size: 16px;
283
+ line-height: normal;
284
+ font-family: "Source Han Sans";
285
+ transition: all 0.3s;
286
+ height: 23px;
287
+ opacity: 1;
288
+ text-align: center;
289
+ margin-right: 0 !important;
290
+ letter-spacing: 0em;
291
+ font-variation-settings: "opsz" auto;
292
+ font-feature-settings: "kern" on;
293
+ }
294
+ .ant-tabs-tab-active {
295
+ background-color: transparent;
296
+ color: #0057FE;
297
+ font-weight: bold;
298
+ width: auto;
299
+ padding: 0 12px 6px;
300
+ line-height: normal;
301
+ height: 23px;
302
+ opacity: 1;
303
+ text-align: center;
304
+ letter-spacing: 0em;
305
+ font-variation-settings: "opsz" auto;
306
+ font-feature-settings: "kern" on;
307
+ }
308
+ }
309
+
310
+ // 可选:标签左侧圆点
311
+ &.h-tab-useCycle {
312
+ :deep(.ant-tabs-tab) {
313
+ position: relative;
314
+ padding-left: 16px !important;
315
+ margin-right: 20px !important;
316
+ display: inline-flex !important; // 使用inline-flex保持水平布局
317
+ align-items: center !important; // 确保内容垂直居中
318
+ line-height: normal !important; // 重置line-height避免冲突
319
+ vertical-align: top !important; // 确保垂直对齐
320
+ height: 23px !important;
321
+ opacity: 1;
322
+ }
323
+ :deep(.ant-tabs-tab::before) {
324
+ content: "" !important;
325
+ position: absolute !important;
326
+ left: 0 !important;
327
+ top: 50% !important;
328
+ transform: translateY(-50%) !important;
329
+ width: 8px !important;
330
+ height: 8px !important;
331
+ background: #3362DA !important;
332
+ border-radius: 6px !important;
333
+ opacity: 1 !important;
334
+ display: block !important;
335
+ z-index: 1 !important; // 确保圆点在最上层
336
+ }
337
+ :deep(.ant-tabs-nav) {
338
+ display: flex !important;
339
+ flex-direction: row !important; // 明确指定水平方向
340
+ flex-wrap: nowrap !important;
341
+ align-items: center !important; // 确保导航栏垂直居中
342
+ }
343
+ }
344
+ }
345
+ // 用户词条使用样式
346
+ &.h-tab-useStyle8 {
347
+ :deep(.ant-tabs-tab-next),
348
+ :deep(.ant-tabs-tab-prev-icon-target),
349
+ :deep(.ant-tabs-tab-next-icon) {
350
+ display: none;
351
+ }
352
+
353
+ :deep(.ant-tabs-nav-wrap) {
354
+ margin-top: 0;
355
+ }
356
+
357
+ // Make the main Ant Design tabs container a flex column to arrange tab bar and content vertically
358
+ :deep(.ant-tabs) {
359
+ display: flex !important;
360
+ flex-direction: column !important; // 确保选项卡栏在顶部,内容区域在下方
361
+ height: auto !important; // 高度自适应
362
+ }
363
+
364
+ :deep(.ant-tabs-bar) {
365
+ border-bottom: 1px solid #d9d9d9; // 底部边框
366
+ border-right: none; // 移除右侧边框
367
+ margin-right: 0 !important; // 移除重叠修复
368
+ flex-shrink: 1 !important; // 允许收缩
369
+ height: auto !important; // 高度自适应
370
+ margin-bottom: 0px !important;
371
+ }
372
+
373
+ :deep(.ant-tabs-content) {
374
+ flex: none !important; // 移除 flex: 1,允许内容区域自然流淌
375
+ }
376
+
377
+ :deep(.ant-tabs-nav) {
378
+ .ant-tabs-nav-container,
379
+ .ant-tabs-nav-wrap,
380
+ .ant-tabs-nav-scroll,
381
+ & > div:first-child {
382
+ display: flex !important;
383
+ flex-direction: row !important;
384
+ flex-wrap: nowrap !important; // 确保不换行
385
+ width: 100% !important; // 占据全部宽度
386
+ height: auto !important;
387
+ }
388
+
389
+ height: auto !important; // 高度自适应内容
390
+ width: 100% !important; // 确保容器占据全部宽度
391
+
392
+ .ant-tabs-tab {
393
+ flex: 1 !important; // 宽度等分布局
394
+ margin-right: 0 !important;
395
+ margin-bottom: 0 !important; // 移除底部间距
396
+ border-top: 1px solid #d9d9d9;
397
+ border-left: 1px solid #d9d9d9;
398
+ border-bottom: 1px solid #d9d9d9; // 所有选项卡都有底部边框
399
+ border-right: none; // 默认没有右边框
400
+ &:last-child {
401
+ border-right: 1px solid #d9d9d9; // 最后一个选项卡有右边框
402
+ }
403
+ border-radius: 0; // 默认无圆角,避免中间相邻处出现圆角
404
+ background-color: #f5f5f5;
405
+ color: #333333;
406
+ font-weight: 500;
407
+ font-size: 16px;
408
+ height: 40px; // 固定高度
409
+ width: auto !important; // 移除固定宽度,以便等分
410
+ display: flex;
411
+ justify-content: center;
412
+ align-items: center;
413
+ padding: 0;
414
+ }
415
+ // 首项:仅左侧圆角
416
+ .ant-tabs-tab:first-child {
417
+ border-top-left-radius: 10px;
418
+ border-bottom-left-radius: 10px;
419
+ }
420
+ // 末项:仅右侧圆角
421
+ .ant-tabs-tab:last-child {
422
+ border-top-right-radius: 10px;
423
+ border-bottom-right-radius: 10px;
424
+ }
425
+ .ant-tabs-tab-active {
426
+ border-bottom: 1px solid transparent; // 激活时隐藏底部边框,与 ant-tabs-bar 的边框衔接
427
+ background-color: #0057FE;
428
+ color: #ffffff;
429
+ font-weight: 600;
430
+ }
431
+ }
432
+ :deep(.ant-tabs-ink-bar) {
433
+ display: none; // 隐藏下划线
434
+ }
435
+ }
436
+ &.h-tab-extra-wrapper-multiple {
437
+ :deep(.h-tab-extra-wrapper){
438
+ display: flex;
439
+ justify-content: end;
440
+ gap: 8px;
441
+ }
442
+ :deep(.x-radio-group){
443
+ height: 32px;
444
+ }
445
+ :deep(.x-radio-item){
446
+ height: 32px;
447
+ display: flex;
448
+ align-items: center;
449
+ margin-bottom: 0px;
450
+ }
451
+ :deep(.ant-tabs-tab){
452
+ height: 34px;
453
+ }
454
+ :deep(.ant-tabs-nav-container){
455
+ padding-top: 2px;
456
+ }
457
+ :deep(.ant-tabs-extra-content){
458
+ line-height: 0px !important;
459
+ }
460
+ }
461
+
462
+ &.h-tab-out-tab {
463
+ :deep(.ant-tabs-nav-wrap) {
464
+ margin-top: 0px !important;
465
+ margin-bottom: 0px !important;
466
+ }
467
+ :deep(.ant-tabs-nav) {
468
+ margin-bottom: 0px !important;
469
+ }
470
+ :deep(.ant-tabs-nav-container) {
471
+ padding-top: 0px !important;
472
+ padding-bottom: 0px !important;
473
+ }
474
+
475
+ :deep(.ant-tabs-bar) {
476
+ margin-top: 0px !important;
477
+ margin-bottom: 0px !important;
478
+ height: auto !important;
479
+ min-height: 0px !important;
480
+ }
481
+
482
+ :deep(.ant-tabs-content) {
483
+ margin-top: 0px !important;
484
+ }
485
+ }
486
+
487
+ // 无下划线样式:隐藏底部指示器线条和边框
488
+ &.h-tab-no-underline {
489
+ :deep(.ant-tabs-bar) {
490
+ border-bottom: none !important;
491
+ }
492
+ :deep(.ant-tabs-ink-bar) {
493
+ display: none !important;
494
+ }
495
+ }
496
+
497
+ // 样式9:圆角卡片式标签(带边框、居中文字、字体切换)
498
+ &.h-tab-useStyle9 {
499
+ :deep(.ant-tabs-tab-next),
500
+ :deep(.ant-tabs-tab-prev-icon-target),
501
+ :deep(.ant-tabs-tab-next-icon) { display: none; }
502
+
503
+ // 保持 ant-tabs 为 column 布局
504
+ :deep(.ant-tabs) {
505
+ display: flex !important;
506
+ flex-direction: column !important;
507
+ height: auto !important;
508
+ width: 100% !important;
509
+ }
510
+
511
+ // 移除 a-card 的默认样式影响
512
+ :deep(.ant-card) {
513
+ overflow: visible !important;
514
+ width: 100% !important;
515
+ }
516
+ :deep(.ant-card-body) {
517
+ padding: 0 !important;
518
+ overflow: visible !important;
519
+ }
520
+
521
+ :deep(.ant-tabs-bar) {
522
+ border-bottom: none !important;
523
+ flex-shrink: 0 !important;
524
+ height: auto !important;
525
+ margin-bottom: 0 !important;
526
+ width: 100% !important;
527
+ overflow: visible !important;
528
+ }
529
+
530
+ :deep(.ant-tabs-content) {
531
+ flex: 1 !important;
532
+ height: auto !important;
533
+ overflow: visible !important;
534
+ }
535
+
536
+ :deep(.ant-tabs-tabpane) {
537
+ overflow: visible !important;
538
+ display: block !important;
539
+ }
540
+
541
+ :deep(.ant-tabs-tabpane-active) {
542
+ overflow: visible !important;
543
+ }
544
+
545
+ // 禁用切换动画,避免抖动
546
+ :deep(.ant-tabs) {
547
+ transition: none !important;
548
+ }
549
+ :deep(.ant-tabs-tabpane) {
550
+ transition: none !important;
551
+ }
552
+
553
+ :deep(.ant-tabs-nav-wrap) {
554
+ margin: 0 !important;
555
+ padding: 0 !important;
556
+ overflow: visible !important;
557
+ position: relative !important;
558
+ display: block !important;
559
+ }
560
+
561
+ :deep(.ant-tabs-nav-container) {
562
+ padding: 0 !important;
563
+ overflow: visible !important;
564
+ display: block !important;
565
+ }
566
+
567
+ :deep(.ant-tabs-nav) {
568
+ display: flex !important;
569
+ flex-direction: row !important;
570
+ flex-wrap: nowrap !important;
571
+ width: auto !important;
572
+ max-width: 100% !important;
573
+ height: auto !important;
574
+ margin: 0 !important;
575
+ overflow: visible !important;
576
+
577
+ .ant-tabs-tab {
578
+ flex: none;
579
+ width: auto;
580
+ min-width: 100px;
581
+ box-sizing: border-box;
582
+ border: 1px solid #E5E9F0;
583
+ border-radius: 6px;
584
+ background: #FFFFFF;
585
+ color: #333333;
586
+ font-family: "Source Han Sans";
587
+ font-size: 18px;
588
+ font-weight: bold;
589
+ line-height: 32px;
590
+ height: 32px;
591
+ text-align: center;
592
+ margin: 0 !important;
593
+ padding: 0 16px !important;
594
+ overflow: hidden !important;
595
+ }
596
+ .ant-tabs-tab-active {
597
+ background-color: #0057FE;
598
+ color: #ffffff;
599
+ font-weight: bold;
600
+ border: 1px solid #0057FE;
601
+ }
602
+ }
603
+
604
+ :deep(.ant-tabs-ink-bar) {
605
+ display: none;
606
+ }
607
+ }
608
+ // 样式10:无下划线、左侧绿色圆点、字体样式切换
609
+ &.h-tab-useStyle10 {
610
+ :deep(.ant-tabs-tab-next),
611
+ :deep(.ant-tabs-tab-prev-icon-target),
612
+ :deep(.ant-tabs-tab-next-icon) { display: none; }
613
+
614
+ :deep(.ant-tabs-bar) {
615
+ border-bottom: none !important;
616
+ }
617
+
618
+ :deep(.ant-tabs-ink-bar) {
619
+ display: none !important;
620
+ }
621
+
622
+ :deep(.ant-tabs-nav-wrap) {
623
+ margin-top: 0;
624
+ padding-left: 0 !important;
625
+ padding-right: 0 !important;
626
+ }
627
+
628
+ :deep(.ant-tabs-nav-container) {
629
+ padding-left: 0 !important;
630
+ padding-right: 0 !important;
631
+ }
632
+
633
+ :deep(.ant-tabs-nav) {
634
+ display: flex;
635
+ flex-wrap: wrap;
636
+ gap: 8px;
637
+ .ant-tabs-tab {
638
+ position: relative;
639
+ background-color: transparent;
640
+ border-radius: 0;
641
+ color: #313131;
642
+ font-family: "Source Han Sans";
643
+ font-size: 16px;
644
+ font-weight: bold;
645
+ line-height: normal;
646
+ letter-spacing: 0em;
647
+ font-feature-settings: "kern" on;
648
+ font-variation-settings: "opsz" auto;
649
+ width: auto;
650
+ padding: 0 12px 6px;
651
+ padding-left: 18px !important;
652
+ transition: all 0.3s;
653
+ height: 40px;
654
+ text-align: center;
655
+ margin-right: 0px !important;
656
+ display: inline-flex !important;
657
+ align-items: center;
658
+ vertical-align: top;
659
+ }
660
+ .ant-tabs-tab::before {
661
+ content: "" !important;
662
+ position: absolute !important;
663
+ left: 0 !important;
664
+ top: 50% !important;
665
+ transform: translateY(-50%) !important;
666
+ width: 8px !important;
667
+ height: 8px !important;
668
+ background: #0057FE !important;
669
+ border-radius: 50% !important;
670
+ display: block !important;
671
+ z-index: 1 !important;
672
+ }
673
+ .ant-tabs-tab-active {
674
+ background-color: transparent;
675
+ color: #0057FE;
676
+ font-weight: bold;
677
+ width: auto;
678
+ padding: 0 12px 6px;
679
+ padding-left: 18px !important;
680
+ height: 40px;
681
+ text-align: center;
682
+ }
683
+ .ant-tabs-tab-active::before {
684
+ background: #0057FE !important;
685
+ }
686
+ }
687
+ }
688
+
689
+ // 样式11:去除边框、选中显示蓝色下划线,标签宽度平均分配
690
+ &.h-tab-useStyle11 {
691
+ :deep(.ant-tabs-tab-next),
692
+ :deep(.ant-tabs-tab-prev-icon-target),
693
+ :deep(.ant-tabs-tab-next-icon) { display: none; }
694
+
695
+ :deep(.ant-tabs-bar) {
696
+ border-bottom: none !important;
697
+ height: 32px !important;
698
+ line-height: 32px !important;
699
+ }
700
+
701
+ :deep(.ant-tabs-ink-bar) {
702
+ display: block !important;
703
+ background-color: #0057FE !important;
704
+ bottom: 0px !important;
705
+ height: 2px !important;
706
+ margin-left: 0 !important;
707
+ }
708
+
709
+ :deep(.ant-tabs-nav-wrap) {
710
+ margin-top: 0;
711
+ padding-left: 0 !important;
712
+ padding-right: 0 !important;
713
+ width: 100% !important;
714
+ }
715
+
716
+ :deep(.ant-tabs-nav-container) {
717
+ padding-left: 0 !important;
718
+ padding-right: 0 !important;
719
+ width: 100% !important;
720
+ }
721
+
722
+ :deep(.ant-tabs-nav-container-scrolling) {
723
+ padding-left: 0 !important;
724
+ padding-right: 0 !important;
725
+ }
726
+
727
+ :deep(.ant-tabs-nav) {
728
+ width: 100% !important;
729
+
730
+ .ant-tabs-nav-list {
731
+ width: 100% !important;
732
+ display: grid !important;
733
+ grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
734
+ }
735
+
736
+ .ant-tabs-tab {
737
+ width: 50%;
738
+ height: 32px;
739
+ box-sizing: border-box !important;
740
+ opacity: 1;
741
+ font-family: "Source Han Sans";
742
+ font-size: 16px;
743
+ font-weight: bold;
744
+ line-height: normal;
745
+ text-align: center;
746
+ letter-spacing: 0em;
747
+ color: #313131;
748
+ background-color: transparent;
749
+ border: none;
750
+ border-radius: 0;
751
+ padding: 0 12px 6px;
752
+ margin-right: 0 !important;
753
+ display: inline-flex !important;
754
+ align-items: center;
755
+ justify-content: center;
756
+ transition: all 0.3s;
757
+ }
758
+
759
+ .ant-tabs-tab-active {
760
+ color: #0057FE;
761
+ background-color: transparent;
762
+ border: none;
763
+ }
764
+ }
765
+ }
766
+ }
767
+ </style>