vue2-client 1.22.26 → 1.22.28

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 (96) hide show
  1. package/.env.his +19 -19
  2. package/.history/.eslintrc_20260521171150.js +74 -0
  3. package/.history/.eslintrc_20260521171213.js +74 -0
  4. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154443.vue +726 -0
  5. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154700.vue +478 -0
  6. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260611152602.vue +755 -0
  7. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260702161223.vue +748 -0
  8. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260702163310.vue +832 -0
  9. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260702163324.vue +748 -0
  10. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260702165416.vue +748 -0
  11. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260702174939.vue +793 -0
  12. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260702115430.vue +1463 -0
  13. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310142713.vue +512 -0
  14. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310145118.vue +511 -0
  15. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260311094834.vue +696 -0
  16. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260320143028.vue +693 -0
  17. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260409101450.vue +677 -0
  18. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260625173703.vue +767 -0
  19. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260626112425.vue +803 -0
  20. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260626173854.vue +1522 -0
  21. package/.history/src/base-client/components/common/XCollapse/XCollapse_20260703180349.vue +862 -0
  22. package/.history/src/base-client/components/common/XCollapse/XCollapse_20260703180623.vue +862 -0
  23. package/.history/src/base-client/components/common/XCollapse/XCollapse_20260703180702.vue +842 -0
  24. package/.history/src/base-client/components/common/XForm/XFormItem_20260703101840.vue +1621 -0
  25. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140403.vue +643 -0
  26. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140829.vue +628 -0
  27. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519142824.vue +104 -0
  28. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519143155.vue +102 -0
  29. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20260703180412.vue +1102 -0
  30. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20260703180623.vue +1093 -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/XRadio/XRadio_20260702140351.vue +774 -0
  40. package/.history/src/base-client/components/his/XRadio/XRadio_20260702140441.vue +774 -0
  41. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171133.vue +788 -0
  42. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171151.vue +780 -0
  43. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511170841.vue +585 -0
  44. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511171138.vue +787 -0
  45. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260512141830.vue +739 -0
  46. package/.history/src/components/STable/index_20260409155138.js +806 -0
  47. package/.history/src/components/STable/index_20260409155218.js +814 -0
  48. package/.history/src/expression/core/Expression_20260305164427.js +1371 -0
  49. package/.history/src/expression/core/Expression_20260305170258.js +1358 -0
  50. package/.history/src/expression/core/Program_20260305111830.js +944 -0
  51. package/.history/src/expression/core/Program_20260305112041.js +931 -0
  52. package/.history/src/logic/LogicRunner_20260304154306.js +170 -0
  53. package/.history/src/logic/LogicRunner_20260304155553.js +112 -0
  54. package/.history/src/logic/LogicRunner_20260305105834.js +112 -0
  55. package/.history/src/logic/LogicRunner_20260305112718.js +129 -0
  56. package/.history/src/logic/LogicRunner_20260305182436.js +133 -0
  57. package/.history/src/logic/LogicRunner_20260306151301.js +213 -0
  58. package/.history/src/logic/LogicRunner_20260306152419.js +213 -0
  59. package/.history/src/logic/plugins/common/DateTools_20260305154159.js +61 -0
  60. package/.history/src/logic/plugins/common/DateTools_20260305154217.js +44 -0
  61. package/.history/src/logic/plugins/common/DateTools_20260305161014.js +44 -0
  62. package/.history/src/logic/plugins/common/HttpTools_20260305164352.js +80 -0
  63. package/.history/src/logic/plugins/common/HttpTools_20260305170258.js +75 -0
  64. package/.history/src/logic/plugins/common/HttpTools_20260305171634.js +75 -0
  65. package/.history/src/logic/plugins/common/HttpTools_20260306152419.js +72 -0
  66. package/.history/src/services/api/restTools_20260427142149.js +245 -0
  67. package/.history/src/services/api/restTools_20260427142853.js +230 -0
  68. package/.history/src/services/api/restTools_20260519135558.js +230 -0
  69. package/.history/src/services/api/restTools_20260519140825.js +230 -0
  70. package/.history/src/services/api/restTools_20260519151223.js +230 -0
  71. package/.history/src/theme/global_20260703101634.less +370 -0
  72. package/.history/src/theme/global_20260703101840.less +337 -0
  73. package/.history/src/theme/global_20260703104511.less +337 -0
  74. package/.history/src/utils/indexedDB_20260306150918.js +593 -0
  75. package/.history/src/utils/indexedDB_20260306151301.js +586 -0
  76. package/.idea/codeStyles/Project.xml +62 -0
  77. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  78. package/.idea/misc.xml +5 -87
  79. package/docs/XCollapse/345/261/225/345/274/200/347/251/272/347/231/275/346/216/222/346/237/245/350/256/260/345/275/225.md +153 -0
  80. package/package.json +1 -1
  81. package/preview-input-box.html +180 -0
  82. package/src/base-client/components/common/HIS/HButtons/HButtons.vue +775 -748
  83. package/src/base-client/components/common/HIS/HForm/HForm.vue +1708 -1186
  84. package/src/base-client/components/common/HIS/HTab/HTab.vue +790 -790
  85. package/src/base-client/components/common/XMarkdownViewer/demo.vue +102 -102
  86. package/src/base-client/components/his/XRadio/XRadio.vue +73 -1
  87. package/src/base-client/components/his/XTitle/XTitle.vue +63 -3
  88. package/src/base-client/components/his/XTransfer/index.md +327 -327
  89. package/src/services/user.js +1 -0
  90. package/.idea/.name +0 -1
  91. package/.idea/MarsCodeWorkspaceAppSettings.xml +0 -8
  92. package/.idea/deployment.xml +0 -14
  93. package/.idea/gradle.xml +0 -7
  94. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  95. package/.idea/libraries/contour_plot.xml +0 -9
  96. package/.idea/material_theme_project_new.xml +0 -18
@@ -0,0 +1,793 @@
1
+ <script setup >
2
+ import XButtons from '@vue2-client/base-client/components/common/XButtons/XButtons.vue'
3
+ import { ref, computed, useAttrs, nextTick, onMounted } from 'vue'
4
+
5
+ const props = defineProps({
6
+ // HButtons特有的属性
7
+ buttonStyle: {
8
+ type: String,
9
+ default: 'button24'
10
+ }
11
+ })
12
+
13
+ const emit = defineEmits(['update:activeIndex', 'activeChange', 'configEnd'])
14
+
15
+ // 内部 XButtons 实例引用
16
+ const xButtonsRef = ref()
17
+
18
+ // useStyle10模式下激活按钮的索引(从0开始)
19
+ const activeIndex = ref(0)
20
+
21
+ // 兼容多种样式配置
22
+ const attrs = useAttrs()
23
+
24
+ // 判断是否使用 useStyle10 模式
25
+ const isUseStyle10 = computed(() => {
26
+ return props.buttonStyle === 'useStyle10' || attrs.useStyle10 === true || attrs.useStyle10 === '' || attrs.useStyle10 === 'true'
27
+ })
28
+
29
+ const wrapperClassObject = computed(() => {
30
+ const a = attrs
31
+ const classes = {}
32
+
33
+ // 通用布尔样式开关(以存在/空字符串/'true' 为真)
34
+ const booleanStyleKeys = [
35
+ 'max-width200',
36
+ 'width173',
37
+ 'button_refresh',
38
+ 'border', 'no-style',
39
+ 'fill-container',
40
+ 'no-boder-style',
41
+ 'form-inline',
42
+ 'one-button-style', // 一个按钮样式,占满整个宽度
43
+ 'useStyle10', // 左侧蓝色圆点指示器样式
44
+ 'custom-icon-style', // 自定义图标边框样式
45
+ 'drop-down-style' // 图标切换样式
46
+ ]
47
+ for (const key of booleanStyleKeys) {
48
+ const val = a[key]
49
+ const truthy = val === true || val === '' || val === 'true'
50
+ if (truthy) classes[`h-buttons-${key}`] = true
51
+ }
52
+
53
+ // 兼容外部传入的 buttonsMode: 'icon'
54
+ if (a['buttonsMode'] === 'icon') {
55
+ classes['h-buttons-icon'] = true
56
+ }
57
+
58
+ return classes
59
+ })
60
+
61
+ // 展开/合并切换按钮样式开关
62
+ const isDropDownStyle = computed(() => {
63
+ const val = attrs['drop-down-style']
64
+ return val === true || val === '' || val === 'true'
65
+ })
66
+
67
+ // 获取内部按钮元素列表
68
+ const getButtonElements = () => {
69
+ const xEl = xButtonsRef.value?.$el
70
+ if (!xEl) return []
71
+ return Array.from(xEl.querySelectorAll('.ant-btn'))
72
+ }
73
+
74
+ // 设置按钮激活状态
75
+ const setActiveState = (btn, isActive) => {
76
+ if (!btn) return
77
+ if (isActive) {
78
+ btn.classList.add('h-btn-active')
79
+ // 使用内联样式确保颜色生效
80
+ btn.style.color = '#0057FE'
81
+ } else {
82
+ btn.classList.remove('h-btn-active')
83
+ // 清除内联样式
84
+ btn.style.color = ''
85
+ }
86
+ }
87
+
88
+ // 清除所有按钮的激活样式
89
+ const clearAllActiveStyles = () => {
90
+ const buttons = getButtonElements()
91
+ buttons.forEach(btn => {
92
+ setActiveState(btn, false)
93
+ })
94
+ }
95
+
96
+ // 设置指定索引按钮为激活状态
97
+ const setActiveButton = (index) => {
98
+ const buttons = getButtonElements()
99
+ clearAllActiveStyles()
100
+
101
+ if (buttons[index]) {
102
+ setActiveState(buttons[index], true)
103
+ }
104
+ }
105
+
106
+ // 事件委托:处理按钮点击
107
+ const handleButtonClick = (event) => {
108
+ // 图标模式下,点击展开/合并按钮时反转图标
109
+ if (wrapperClassObject.value['h-buttons-icon'] && isDropDownStyle.value) {
110
+ const target = event.target.closest('.ant-btn')
111
+ if (target) {
112
+ target.classList.toggle('h-buttons-icon-expanded')
113
+ }
114
+ }
115
+
116
+ if (!isUseStyle10.value) return
117
+
118
+ // 查找被点击的按钮元素
119
+ const target = event.target.closest('.ant-btn')
120
+ if (!target) return
121
+
122
+ const buttons = getButtonElements()
123
+ const index = buttons.indexOf(target)
124
+
125
+ if (index === -1) return
126
+
127
+
128
+ // 更新激活索引
129
+ activeIndex.value = index
130
+ emit('update:activeIndex', index)
131
+ emit('activeChange', index)
132
+
133
+ // 更新按钮样式
134
+ clearAllActiveStyles()
135
+ setActiveState(buttons[index], true)
136
+ }
137
+
138
+ // 图标模式切换处理
139
+ const handleIconButtonClick = (event) => {
140
+ if (!isDropDownStyle.value) return
141
+ if (props.buttonStyle !== 'icon') return
142
+
143
+ const target = event.target.closest('.ant-btn')
144
+ if (!target) return
145
+
146
+ target.classList.toggle('h-buttons-icon-expanded')
147
+ }
148
+
149
+ // 初始化 useStyle10 样式(带重试机制)
150
+ const initUseStyle10 = (retryCount = 0) => {
151
+
152
+ if (!isUseStyle10.value) {
153
+ return
154
+ }
155
+
156
+ const buttons = getButtonElements()
157
+
158
+
159
+ // 如果没有找到按钮,重试最多10次
160
+ if (buttons.length === 0 && retryCount < 10) {
161
+ setTimeout(() => {
162
+ initUseStyle10(retryCount + 1)
163
+ }, 100)
164
+ return
165
+ }
166
+
167
+ if (buttons.length === 0) {
168
+
169
+ return
170
+ }
171
+
172
+ // 设置第一个按钮为激活状态
173
+ clearAllActiveStyles()
174
+ setActiveState(buttons[0], true)
175
+ }
176
+
177
+ // 监听 XButtons 配置结束,初始化激活状态
178
+ const handleConfigEnd = async () => {
179
+ await nextTick()
180
+ initUseStyle10()
181
+ emit('configEnd')
182
+ }
183
+
184
+ // 在挂载时也尝试初始化(作为备用方案)
185
+ onMounted(() => {
186
+ setTimeout(() => {
187
+ initUseStyle10()
188
+ }, 300)
189
+ })
190
+
191
+ // 暴露方法:获取内部 XButtons 实例
192
+ defineExpose({
193
+ getXButtonsInstance: function () { return xButtonsRef.value },
194
+ /** 等待配置结束的异步方法,委托给内部 XButtons */
195
+ waitConfigEnd: () => xButtonsRef.value?.waitConfigEnd?.() ?? Promise.resolve(),
196
+ /** 获取当前激活按钮索引 */
197
+ getActiveIndex: () => activeIndex.value,
198
+ /** 设置激活按钮索引 */
199
+ setActiveIndex: (index) => {
200
+ activeIndex.value = index
201
+ setActiveButton(index)
202
+ },
203
+ /** 获取当前激活按钮元素 */
204
+ getActiveButton: () => {
205
+ const buttons = getButtonElements()
206
+ return buttons[activeIndex.value]
207
+ }
208
+ })
209
+ </script>
210
+
211
+ <template>
212
+ <div
213
+ class="h-buttons-wrapper"
214
+ :class="[
215
+ `h-buttons-${buttonStyle}`,
216
+ wrapperClassObject
217
+ ]"
218
+ @click="handleButtonClick"
219
+ >
220
+ <x-buttons
221
+ ref="xButtonsRef"
222
+ v-bind="$attrs"
223
+ v-on="$listeners"
224
+ @configEnd="handleConfigEnd"
225
+ >
226
+ <template v-for="(_, name) in $slots" #[name]="slotData">
227
+ <slot :name="name" v-bind="slotData" />
228
+ </template>
229
+ </x-buttons>
230
+ </div>
231
+ </template>
232
+
233
+ <style scoped lang="less">
234
+ .h-buttons-wrapper {
235
+ // 基础样式
236
+ :deep(.ant-btn-group) {
237
+ .ant-btn {
238
+ border-radius: 6px;
239
+ background-color: #FFFFFF;
240
+ border: 1px solid #9499A0;
241
+ color: #313131;
242
+ font-weight: normal;
243
+ letter-spacing: 0em;
244
+ width: 110px;
245
+ font-size: 16px;
246
+ font-family: "Source Han Sans";
247
+ line-height: normal;
248
+ margin-right: 25px;
249
+ height: 32px;
250
+ }
251
+ }
252
+ // button24样式
253
+ &.h-buttons-button24 {
254
+ :deep(.ant-btn-group) {
255
+ .ant-btn {
256
+ border: 1px solid #CDCDCD;
257
+ color: #5D5C5C;
258
+ // top: -100px;
259
+ width: fit-content;
260
+ min-width: 110px;
261
+ }
262
+ }
263
+ }
264
+ // button23样式
265
+ &.h-buttons-button23 {
266
+ :deep(.ant-btn-group) {
267
+ .ant-btn {
268
+ border: none;
269
+ padding: 0 !important;
270
+ color: #FFFFFF;
271
+ border-radius: 50%;
272
+ background-color: #1890FF;
273
+ margin-left: 10px;
274
+ top: -88px;
275
+ width: 30px;
276
+ height: 30px;
277
+ }
278
+ }
279
+ }
280
+ // +号样式(共享基础样式)
281
+ &.h-buttons-table-height-button23,
282
+ &.h-buttons-table-height-button23-no-transform {
283
+ :deep(.ant-btn-group) {
284
+ display: inline-flex;
285
+ align-items: center;
286
+ height: 100%;
287
+
288
+ .ant-btn {
289
+ display: inline-flex;
290
+ align-items: center;
291
+ justify-content: center;
292
+ border: none;
293
+ padding: 0 !important;
294
+ color: #FFFFFF;
295
+ border-radius: 50%;
296
+ background-color: #1890FF;
297
+ margin-left: 10px;
298
+ width: 30px;
299
+ height: 30px;
300
+ }
301
+ }
302
+ }
303
+ // 仅在有分页的场景上移
304
+ &.h-buttons-table-height-button23 {
305
+ :deep(.ant-btn-group) {
306
+ .ant-btn { transform: translateY(-100%); }
307
+ }
308
+ }
309
+ // 居中+悬停高亮的新样式
310
+ &.h-buttons-plus-center {
311
+ :deep(.ant-btn-group) {
312
+ display: flex;
313
+ align-items: center;
314
+ justify-content: center;
315
+ gap: 16px;
316
+
317
+ .ant-btn {
318
+ display: inline-flex;
319
+ align-items: center;
320
+ justify-content: center;
321
+ border: 1px solid #CDCDCD;
322
+ color: #5D5C5C;
323
+ min-width: 110px;
324
+ transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
325
+
326
+ &:hover {
327
+ background-color: #0057FE;
328
+ border-color: #0057FE;
329
+ color: #FFFFFF;
330
+ }
331
+ /* 支持通过 data-type 改变悬停颜色 */
332
+ &[data-type='success']:hover {
333
+ background-color: #34C76E;
334
+ border-color: #34C76E;
335
+ color: #FFFFFF;
336
+ }
337
+ }
338
+ }
339
+ }
340
+ // 按钮布局样式公共部分
341
+ &.h-buttons-button-left,
342
+ &.h-buttons-button-center,
343
+ &.h-buttons-button-right,
344
+ &.h-buttons-button-space-between {
345
+ :deep(.ant-btn-group) {
346
+ width: 100%;
347
+ display: flex;
348
+ flex-wrap: nowrap;
349
+ .ant-btn {
350
+ border: 1px solid #CDCDCD;
351
+ color: #5D5C5C;
352
+ white-space: nowrap;
353
+ overflow: hidden;
354
+ margin-right: 0px;
355
+ text-overflow: ellipsis;
356
+ }
357
+ }
358
+ }
359
+ &.h-buttons-max-width200 {
360
+ :deep(.ant-btn) {
361
+ max-width: 200px !important;
362
+ }
363
+ }
364
+ // button-left样式 - 按钮从左到右排列
365
+ &.h-buttons-button-left {
366
+ :deep(.ant-btn-group) {
367
+ justify-content: flex-start;
368
+ gap: 12px;
369
+ }
370
+ }
371
+ // button-center样式 - 按钮居中排列
372
+ &.h-buttons-button-center {
373
+ :deep(.ant-btn-group) {
374
+ justify-content: center;
375
+ gap: 12px;
376
+ }
377
+ }
378
+ // button-right样式 - 按钮从右到左排列
379
+ &.h-buttons-button-right {
380
+ :deep(.ant-btn-group) {
381
+ justify-content: flex-end;
382
+ gap: 12px;
383
+ }
384
+ }
385
+ // button-space-between样式 - 按钮两端对齐(两个按钮时分布在两端)
386
+ &.h-buttons-button-space-between {
387
+ :deep(.ant-btn-group) {
388
+ justify-content: space-between;
389
+ }
390
+ }
391
+
392
+ // button-icon-tiles样式 - 左侧彩色图标块 + 右侧文字
393
+ &.h-buttons-button-icon-tiles {
394
+ :deep(.ant-btn-group) {
395
+ width: 100%;
396
+ display: flex;
397
+ flex-wrap: wrap; // 允许自动换行
398
+ justify-content: flex-start; // 左对齐
399
+ gap: 0; // 取消统一间距
400
+
401
+ .ant-btn {
402
+ position: relative;
403
+ display: inline-flex;
404
+ align-items: center;
405
+ gap: 10px; // 控制图标与文字间距
406
+ border: 1px solid #E6E8EB;
407
+ font-size: 14px;
408
+ height: 44px;
409
+ padding: 0 10px 0 10px;
410
+ border-radius: 8px;
411
+ min-width: 116px;
412
+ box-shadow: 0 2px 0 rgba(0,0,0,0.02);
413
+ margin-right: 12px; // 用margin控制横向间距,末尾一排自然换行
414
+ }
415
+
416
+ .ant-btn .anticon {
417
+ width: 26px;
418
+ height: 26px;
419
+ display: inline-flex;
420
+ align-items: center;
421
+ justify-content: center;
422
+ border-radius: 6px;
423
+ color: #fff;
424
+ font-size: 14px;
425
+ flex: 0 0 26px; // 固定正方形,防止随文本挤压变形
426
+ box-sizing: border-box;
427
+ }
428
+
429
+ /* 默认蓝色,支持通过 data-type 改变色块(success/warning/error/default)*/
430
+ .ant-btn .anticon { background: #3FA7FF; }
431
+ .ant-btn[data-type='success'] .anticon { background: #34C76E; }
432
+ .ant-btn[data-type='warning'] .anticon { background: #FFA940; }
433
+ .ant-btn[data-type='error'] .anticon { background: #FF7875; }
434
+ .ant-btn[disabled] .anticon { background: #BFBFBF; }
435
+
436
+ /* 图标与文字间距在有图标时更自然 */
437
+ .ant-btn > .anticon + span { margin-left: 10px; }
438
+ }
439
+ }
440
+ // 水印图标与按钮容器布局调整
441
+ &.h-buttons-button-watermark-icon {
442
+ :deep(.watermark-icon) { transform: translate(-50%, -54%) !important; }
443
+ :deep(.x-button) { display: flex !important; }
444
+ :deep(.ant-btn-group) {
445
+ margin: 0 auto;
446
+ display: block;
447
+ }
448
+ }
449
+ &.h-buttons-0padding-button {
450
+ padding: 0px 4px;
451
+ }
452
+ // button25样式 用于会诊申请侧边栏按钮样式
453
+ &.h-buttons-button25 {
454
+ :deep(.x-buttons) {
455
+ .ant-btn-group {
456
+ width: 173px;
457
+ justify-content: space-between;
458
+
459
+ .ant-btn {
460
+ width: 173px;
461
+ }
462
+ }
463
+ }
464
+ }
465
+ &.h-buttons-button_refresh {
466
+ margin-top: 10px;
467
+ }
468
+ // 居中样式 用于门诊收费左侧按钮样式(三个按钮居中样式)
469
+ &.h-buttons-out-button {
470
+ :deep(.x-buttons) {
471
+ margin-top: 2px !important;
472
+ margin-bottom: 10px !important;
473
+ display: flex;
474
+ justify-content: center;
475
+ .ant-btn-group {
476
+ display: flex;
477
+ flex-wrap: nowrap;
478
+ gap: 12px;
479
+ .ant-btn {
480
+ width: 110px;
481
+ height: 32px;
482
+ border-radius: 6px;
483
+ opacity: 1;
484
+ background: #FFFFFF;
485
+ box-sizing: border-box;
486
+ border: 1px solid #9499A0;
487
+ margin-right: 0px;
488
+ /* 允许正常文本渲染,避免省略号导致的“变成点了” */
489
+ font-family: "Source Han Sans";
490
+ font-size: 16px;
491
+ font-weight: normal;
492
+ line-height: normal;
493
+ color: #313131;
494
+ }
495
+ /* 还原子元素默认高度,避免文字被压缩成点 */
496
+ }
497
+ }
498
+ }
499
+ // button15样式 - 垂直排列的深色按钮组
500
+ &.h-buttons-button15 {
501
+ :deep(.x-buttons) {
502
+ margin-top: -22px;
503
+ .ant-btn-group {
504
+ flex-direction: column; /* 按钮垂直排列 */
505
+ display: flex; /* 启用flex布局 */
506
+ gap: 6px; /* 按钮间距 */
507
+ .ant-btn {
508
+ border: none; /* 移除边框 */
509
+ color: #FFFFFF; /* 字体颜色 */
510
+ background-color: #0057FE; /* 背景色 */
511
+ box-sizing: border-box; /* 盒模型 */
512
+ left: 12px; /* 左偏移 */
513
+ width: 280px; /* 宽度 */
514
+ }
515
+ }
516
+ }
517
+ }
518
+ // button2样式
519
+ &.h-buttons-button2 {
520
+ :deep(.x-buttons) {
521
+ margin: -20px 6px -20px 6px;
522
+ .ant-btn-group {
523
+ width: 100%;
524
+ justify-content: space-between;
525
+ display: flex; /* 确保flex布局 */
526
+ flex-wrap: nowrap; /* 防止换行 */
527
+ .ant-btn {
528
+ border-radius: 6px; /* 边框圆角 */
529
+ border: none; /* 移除边框 */
530
+ flex: 0 0 46%; /* flex-grow: 0, flex-shrink: 0, flex-basis: 46% */
531
+ min-width: 0; /* 覆盖可能的默认最小宽度 */
532
+ font-size: 16px; /* 字体大小 */
533
+ height: 32px; /* 高度 */
534
+ color: #FFFFFF; /* 字体颜色 */
535
+ background-color: #1890FF; /* 背景颜色 */
536
+ }
537
+ }
538
+ }
539
+ }
540
+ // 与表单项内联使用时的垂直居中对齐样式
541
+ &.h-buttons-form-inline {
542
+ :deep(.ant-btn-group){
543
+ height: 45px;
544
+ display: flex;
545
+ align-items: center;
546
+ }
547
+ }
548
+ &.h-buttons-width173 {
549
+ :deep(.ant-btn) {
550
+ width: 173px !important;
551
+ }
552
+ }
553
+ // 按钮无边框+无图标+无阴影
554
+ &.h-button-no-style{
555
+ :deep(.ant-btn) {
556
+ border: 0px;
557
+ .anticon{
558
+ display: none;
559
+ }
560
+ }
561
+ :deep(.ant-btn-primary){
562
+ text-shadow: none;
563
+ box-shadow: none;
564
+ }
565
+ }
566
+ // 按钮组边距
567
+ &.h-button-border{
568
+ border: 1px solid #E5E9F0;
569
+ border-radius: 6px;
570
+ }
571
+ // 按钮撑开整个容器
572
+ &.h-buttons-fill-container{
573
+ :deep(.x-buttons) {
574
+ width: 100%;
575
+ .ant-btn-group{
576
+ width: 100%;
577
+ .ant-btn{
578
+ width: 100%;
579
+ margin-right: 0px;
580
+ }
581
+ }
582
+ }
583
+ }
584
+ &.h-buttons-one-button-style {
585
+ margin: 0 !important;
586
+ padding: 0 !important;
587
+ :deep(.x-buttons) {
588
+ margin: 0 !important;
589
+ padding: 0 !important;
590
+ .ant-btn-group {
591
+ width: 100%;
592
+ height: 32px;
593
+ justify-content: space-between;
594
+ display: flex;
595
+ flex-wrap: nowrap;
596
+ .ant-btn {
597
+ width: 100%;
598
+ margin-right: 0px !important;
599
+ min-width: 100% !important;
600
+ border-radius: 6px; /* 边框圆角 */
601
+ font-size: 18px; /* 字体大小 */
602
+ line-height: 26px;
603
+ font-weight: bold;
604
+ letter-spacing: 14px;
605
+ height: 32px; /* 高度 */
606
+ color: #FFFFFF; /* 字体颜色 */
607
+ background: #0057FE;/* 背景颜色 */
608
+ }
609
+ }
610
+ }
611
+ }
612
+ // no-boder-style样式 - 无边框样式
613
+ &.h-buttons-no-boder-style {
614
+ :deep(.ant-btn-group) {
615
+ margin-left: -20px;
616
+ .ant-btn {
617
+ border: none !important;
618
+ background: transparent !important;
619
+ height: 23px;
620
+ opacity: 1;
621
+ font-family: "Source Han Sans";
622
+ font-size: 16px;
623
+ font-weight: normal;
624
+ line-height: normal;
625
+ letter-spacing: 0em;
626
+ color: #313131;
627
+ padding: 0;
628
+ box-shadow: none;
629
+ margin-right: 0;
630
+ margin-left: 0;
631
+
632
+ // 图标样式
633
+ .anticon {
634
+ height: 16px;
635
+ width: 16px;
636
+ opacity: 1;
637
+ background: transparent;
638
+ display: inline-flex;
639
+ align-items: center;
640
+ justify-content: center;
641
+ color: #94979E;
642
+ margin-right: 4px;
643
+ }
644
+
645
+ &:hover {
646
+ background: transparent !important;
647
+ color: #313131;
648
+ }
649
+
650
+ &:focus {
651
+ background: transparent !important;
652
+ color: #313131;
653
+ }
654
+ }
655
+ }
656
+ }
657
+ // useStyle10样式 - 左侧蓝色圆点指示器样式,与HTab useStyle10效果一致
658
+ &.h-buttons-useStyle10 {
659
+ :deep(.ant-btn-group) {
660
+ display: flex;
661
+ flex-wrap: wrap;
662
+ gap: 8px;
663
+ margin-left: 0 !important;
664
+ padding: 0 !important;
665
+
666
+ .ant-btn {
667
+ position: relative;
668
+ background-color: transparent !important;
669
+ border: none !important;
670
+ border-radius: 0 !important;
671
+ color: #313131;
672
+ font-family: "Source Han Sans";
673
+ font-size: 16px;
674
+ font-weight: bold;
675
+ line-height: normal;
676
+ letter-spacing: 0em;
677
+ font-feature-settings: "kern" on;
678
+ font-variation-settings: "opsz" auto;
679
+ width: auto;
680
+ height: 40px;
681
+ padding: 0 12px 6px 18px;
682
+ text-align: center;
683
+ margin-right: 0 !important;
684
+ box-shadow: none !important;
685
+ display: inline-flex;
686
+ align-items: center;
687
+ vertical-align: top;
688
+ outline: none !important;
689
+ background: transparent !important;
690
+ background-image: none !important;
691
+ border-color: transparent !important;
692
+ border-width: 0 !important;
693
+
694
+ &::before {
695
+ content: "" !important;
696
+ position: absolute !important;
697
+ left: 5px !important;
698
+ top: 50% !important;
699
+ transform: translateY(-50%) !important;
700
+ width: 8px !important;
701
+ height: 8px !important;
702
+ background-color: #1890ff !important;
703
+ background-image: none !important;
704
+ border-radius: 50% !important;
705
+ display: block !important;
706
+ z-index: 10 !important;
707
+ pointer-events: none !important;
708
+ opacity: 1 !important;
709
+ mix-blend-mode: normal !important;
710
+ box-shadow: none !important;
711
+ filter: none !important;
712
+ -webkit-filter: none !important;
713
+ }
714
+
715
+ .anticon {
716
+ display: none !important;
717
+ }
718
+ }
719
+
720
+ // 激活状态:通过 h-btn-active 类控制
721
+ .ant-btn.h-btn-active {
722
+ color: #0057FE !important;
723
+ }
724
+ }
725
+ }
726
+
727
+ // 自定义图标边框样式
728
+ &.h-buttons-custom-icon-style {
729
+ :deep(.x-buttons) {
730
+ .ant-btn-group {
731
+ width: 100%;
732
+ justify-content: space-between;
733
+ display: flex;
734
+ flex-wrap: nowrap;
735
+
736
+ .ant-btn {
737
+ width: 100%;
738
+ margin-right: 0px !important;
739
+ min-width: 100% !important;
740
+ height: 32px;
741
+ border-radius: 6px;
742
+ opacity: 1;
743
+ background: #FFFFFF;
744
+ box-sizing: border-box;
745
+ border: 1px solid #9499A0;
746
+ font-family: "Source Han Sans";
747
+ font-size: 16px;
748
+ font-weight: normal;
749
+ line-height: normal;
750
+ letter-spacing: 0em;
751
+ color: #313131;
752
+ display: inline-flex;
753
+ align-items: center;
754
+ justify-content: center;
755
+ gap: 8px;
756
+
757
+ .anticon {
758
+ width: 18px;
759
+ height: 18px;
760
+ opacity: 1;
761
+ background: #0057FE;
762
+ border-radius: 50%;
763
+ display: inline-flex;
764
+ align-items: center;
765
+ justify-content: center;
766
+ position: relative;
767
+ flex-shrink: 0;
768
+ color: #FFFFFF;
769
+
770
+ svg {
771
+ width: 12px;
772
+ height: 12px;
773
+ }
774
+ }
775
+ }
776
+ }
777
+ }
778
+ }
779
+
780
+ // 图标模式下,点击展开/合并按钮后反转图标
781
+ &.h-buttons-drop-down-style {
782
+ :deep(.ant-btn) {
783
+ .anticon {
784
+ transition: transform 0.2s ease;
785
+ }
786
+
787
+ &.h-buttons-icon-expanded .anticon {
788
+ transform: rotate(180deg);
789
+ }
790
+ }
791
+ }
792
+ }
793
+ </style>