vue2-client 1.22.7 → 1.22.9

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