vue2-client 1.22.2 → 1.22.3

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