vue2-client 1.16.95 → 1.16.97

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 (23) hide show
  1. package/.env.message +19 -19
  2. package/package.json +1 -1
  3. package/src/assets/svg/female.svg +1 -1
  4. package/src/assets/svg/male.svg +1 -1
  5. package/src/base-client/components/common/HIS/HButtons/HButtons.vue +491 -491
  6. package/src/base-client/components/common/HIS/HForm/HForm.vue +401 -389
  7. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  8. package/src/base-client/components/common/HIS/HTab/HTab.vue +443 -443
  9. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1292 -1288
  10. package/src/base-client/components/common/XCollapse/XCollapse.vue +833 -833
  11. package/src/base-client/components/common/XFormTable/demo.vue +89 -89
  12. package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
  13. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  14. package/src/base-client/components/his/XList/XList.vue +938 -938
  15. package/src/base-client/components/his/XRadio/XRadio.vue +469 -469
  16. package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +159 -159
  17. package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
  18. package/src/base-client/components/his/XTitle/XTitle.vue +306 -288
  19. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
  20. package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
  21. package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
  22. package/src-base-client/components/common/HIS/HForm/HForm.vue +0 -347
  23. package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
@@ -1,288 +1,306 @@
1
- <template>
2
- <div class="x-title-container" :class="wrapperClassObject">
3
- <div
4
- v-if="config.type === 'title'"
5
- class="x-title"
6
- :class="{ 'with-underline': config.line === 'line' }">
7
- <div class="title-content">
8
- <div class="title-dot"></div>
9
- <a-icon v-if="attrs.icon && !attrs.customIcon" :type="attrs.icon" class="title-icon" />
10
- <XIcon v-if="attrs.customIcon" :name="attrs.customIcon" class="title-icon" />
11
- <span>{{ config.label }}</span>
12
- </div>
13
- <div
14
- v-if="config.line === 'line'"
15
- class="underline"
16
- :style="lineStyle">
17
- </div>
18
- </div>
19
- <div v-else-if="config.type === 'button'" class="x-button-container">
20
- <a-button type="primary" @click="handleClick">{{ config.label }}</a-button>
21
- </div>
22
- </div>
23
- </template>
24
-
25
- <script setup>
26
- import { ref, computed, onMounted, useAttrs } from 'vue'
27
- import XIcon from '../XIcon/XIcon.vue'
28
-
29
- const props = defineProps({
30
- queryParamsName: {
31
- type: String,
32
- default: ''
33
- },
34
- // 新增:直接设置标题文本,优先级高于queryParamsName
35
- title: {
36
- type: String,
37
- default: ''
38
- }
39
- })
40
-
41
- const emit = defineEmits([])
42
-
43
- const config = ref({
44
- label: '',
45
- type: 'title',
46
- clickName: '',
47
- line: '',
48
- color: '',
49
- lineLength: ''
50
- })
51
-
52
- const lineStyle = computed(() => {
53
- const style = {}
54
-
55
- // 设置线条颜色
56
- style.backgroundColor = config.value.color || '#5D5C5C'
57
-
58
- // 设置线条宽度
59
- style.width = config.value.lineLength ? `${config.value.lineLength}px` : '800px'
60
-
61
- return style
62
- })
63
-
64
- // 动态样式开关:通过 $attrs 生成 xtitle-* 类(布尔开关 + size 派生类)
65
- const attrs = useAttrs()
66
- const wrapperClassObject = computed(() => {
67
- const classes = {}
68
- const booleanStyleKeys = [
69
- 'center',
70
- 'littlefont',
71
- 'dot',
72
- 'nodot',
73
- 'yizhu-title',
74
- 'left-title',
75
- 'line-style', // 分割线样式
76
- 'compact' // 紧凑样式高23 字体大小16
77
- ]
78
- booleanStyleKeys.forEach(key => {
79
- const val = attrs[key]
80
- const truthy = val === true || val === '' || val === 'true'
81
- if (truthy) classes[`x-title-${key}`] = true
82
- })
83
- return classes
84
- })
85
-
86
- const handleClick = () => {
87
- if (config.value.clickName) {
88
- emit(config.value.clickName)
89
- }
90
- }
91
-
92
- const parseConfig = (data) => {
93
- // 如果设置了title属性,直接使用title作为标签
94
- if (props.title) {
95
- config.value.label = props.title
96
- config.value.type = 'title'
97
- config.value.line = ''
98
- config.value.color = ''
99
- config.value.lineLength = ''
100
- config.value.clickName = ''
101
- return
102
- }
103
-
104
- if (!data) return
105
-
106
- const parts = data.includes('-') ? data.split('-') : data === 'line' ? ['', 'title', 'line'] : [data]
107
-
108
- // 基本设置 - 标签和类型
109
- config.value.label = parts[0] || ''
110
- config.value.type = parts[1] || 'title'
111
-
112
- // 根据类型采用不同的参数格式解析
113
- if (config.value.type === 'title') {
114
- // 标题类型格式: aa-title-line-red-800
115
- // parts[0]: 标签
116
- // parts[1]: title
117
- // parts[2]: line (下划线样式)
118
- // parts[3]: 颜色
119
- // parts[4]: 长度
120
- config.value.line = parts[2] || ''
121
- config.value.color = parts[3] || ''
122
- config.value.lineLength = parts[4] || ''
123
- } else if (config.value.type === 'button') {
124
- // 按钮类型格式: aa-button-cc
125
- // parts[0]: 标签
126
- // parts[1]: button
127
- // parts[2]: 点击事件名称
128
- config.value.clickName = parts[2] || ''
129
- }
130
- }
131
-
132
- onMounted(() => {
133
- parseConfig(props.queryParamsName)
134
- })
135
- </script>
136
-
137
- <style scoped lang="less">
138
- .x-title-container {
139
- display: flex;
140
- align-items: center;
141
- justify-content: space-between;
142
- }
143
-
144
- .x-title {
145
- font-size: 18px;
146
- font-weight: 700;
147
- height: 26px;
148
- width: 100%;
149
- text-align: left;
150
- font-family: "Source Han Sans";
151
- color: #313131;
152
- position: relative;
153
- white-space: nowrap;
154
- overflow: hidden;
155
- text-overflow: ellipsis;
156
- }
157
- .underline {
158
- position: absolute;
159
- bottom: 0;
160
- left: 0;
161
- height: 1px;
162
- width: 100%;
163
- background-color: #5D5C5C;
164
- }
165
-
166
- .x-button-container {
167
- text-align: right;
168
- }
169
- .x-title-center {
170
- &.x-title-container,
171
- .x-title-container {
172
- :deep(.x-title) {
173
- text-align: center;
174
- }
175
- }
176
- }
177
- .x-title-littlefont {
178
- &.x-title-container,
179
- .x-title-container {
180
- :deep(.x-title) {
181
- font-size: 16px;
182
- }
183
- }
184
- }
185
-
186
- .title-icon {
187
- font-size: 16px;
188
- flex-shrink: 0;
189
- display: inline-flex;
190
- align-items: center;
191
- justify-content: center;
192
- vertical-align: baseline;
193
- line-height: 1;
194
- color: #5D5C5C;
195
- margin-right: 8px;
196
- transform: translateY(0.1em);
197
- }
198
-
199
- // title-content 默认样式 - 只保留右侧间距
200
- .x-title-container {
201
- :deep(.title-content) {
202
- display: flex;
203
- align-items: baseline;
204
- }
205
- }
206
-
207
- .x-title-dot,
208
- .x-title-nodot {
209
- &.x-title-container,
210
- .x-title-container {
211
- :deep(.title-dot) {
212
- width: 14px;
213
- height: 14px;
214
- margin-right: 8px;
215
- flex-shrink: 0;
216
- }
217
- }
218
- }
219
-
220
- // dot 样式特有部分
221
- .x-title-dot {
222
- &.x-title-container,
223
- .x-title-container {
224
- :deep(.title-dot) {
225
- border-radius: 50%;
226
- background-color: #3362DA;
227
- }
228
- }
229
- }
230
- .x-title-yizhu-title {
231
- &.x-title-container,
232
- .x-title-container {
233
- margin-top: 3px;
234
- margin-left: 6px;
235
- margin-bottom: 7px;
236
- :deep(.x-title) {
237
- height: 26px;
238
- opacity: 1;
239
- font-family: "Source Han Sans";
240
- font-size: 18px;
241
- font-weight: bold;
242
- line-height: normal;
243
- letter-spacing: 0em;
244
- font-feature-settings: "kern" on;
245
- color: #5D5C5C;
246
- }
247
- }
248
- }
249
- .x-title-left-title {
250
- &.x-title-container,
251
- .x-title-container {
252
- margin: 15px auto 15px 6px;
253
- :deep(.x-title) {
254
- height: 26px;
255
- opacity: 1;
256
- font-family: "Source Han Sans";
257
- font-size: 18px;
258
- font-weight: bold;
259
- line-height: normal;
260
- }
261
- }
262
- }
263
- // nodot 样式特有部分
264
- .x-title-nodot {
265
- &.x-title-container,
266
- .x-title-container {
267
- :deep(.title-dot) {
268
- /* 透明圆点,保持占位但不显示 */
269
- background-color: transparent;
270
- }
271
- }
272
- }
273
- .x-title-line-style {
274
- background: #0057FE;
275
- height: 2px;
276
- }
277
- .x-title-compact {
278
- height: 23px;
279
- opacity: 1;
280
- font-family: "Source Han Sans";
281
- font-size: 16px;
282
- font-weight: bold;
283
- line-height: normal;
284
- letter-spacing: 0em;
285
- font-feature-settings: "kern" on;
286
- color: #313131;
287
- }
288
- </style>
1
+ <template>
2
+ <div>
3
+ <div
4
+ v-if="isShowTopLine">
5
+ <hr class="top-line"/>
6
+ </div>
7
+ <div class="x-title-container" :class="wrapperClassObject">
8
+ <div
9
+ v-if="config.type === 'title'"
10
+ class="x-title"
11
+ :class="{ 'with-underline': config.line === 'line' }">
12
+ <div class="title-content">
13
+ <div class="title-dot"></div>
14
+ <a-icon v-if="attrs.icon && !attrs.customIcon" :type="attrs.icon" class="title-icon" />
15
+ <XIcon v-if="attrs.customIcon" :name="attrs.customIcon" class="title-icon" />
16
+ <span>{{ config.label }}</span>
17
+ </div>
18
+ <div
19
+ v-if="config.line === 'line'"
20
+ class="underline"
21
+ :style="lineStyle">
22
+ </div>
23
+ </div>
24
+ <div v-else-if="config.type === 'button'" class="x-button-container">
25
+ <a-button type="primary" @click="handleClick">{{ config.label }}</a-button>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ </template>
30
+
31
+ <script setup>
32
+ import { ref, computed, onMounted, useAttrs } from 'vue'
33
+ import XIcon from '../XIcon/XIcon.vue'
34
+
35
+ const props = defineProps({
36
+ queryParamsName: {
37
+ type: String,
38
+ default: ''
39
+ },
40
+ // 新增:直接设置标题文本,优先级高于queryParamsName
41
+ title: {
42
+ type: String,
43
+ default: ''
44
+ }
45
+ })
46
+
47
+ const emit = defineEmits([])
48
+
49
+ const config = ref({
50
+ label: '',
51
+ type: 'title',
52
+ clickName: '',
53
+ line: '',
54
+ color: '',
55
+ lineLength: ''
56
+ })
57
+
58
+ const lineStyle = computed(() => {
59
+ const style = {}
60
+
61
+ // 设置线条颜色
62
+ style.backgroundColor = config.value.color || '#5D5C5C'
63
+
64
+ // 设置线条宽度
65
+ style.width = config.value.lineLength ? `${config.value.lineLength}px` : '800px'
66
+
67
+ return style
68
+ })
69
+
70
+ // 动态样式开关:通过 $attrs 生成 xtitle-* 类(布尔开关 + size 派生类)
71
+ const attrs = useAttrs()
72
+ const wrapperClassObject = computed(() => {
73
+ const classes = {}
74
+ const booleanStyleKeys = [
75
+ 'center',
76
+ 'littlefont',
77
+ 'dot',
78
+ 'nodot',
79
+ 'yizhu-title',
80
+ 'left-title',
81
+ 'line-style', // 分割线样式
82
+ 'compact' // 紧凑样式高23 字体大小16
83
+ ]
84
+ booleanStyleKeys.forEach(key => {
85
+ const val = attrs[key]
86
+ const truthy = val === true || val === '' || val === 'true'
87
+ if (truthy) classes[`x-title-${key}`] = true
88
+ })
89
+ return classes
90
+ })
91
+ // 是否显示顶部功能区
92
+ const isShowTopLine = computed(() => {
93
+ return attrs.showTopLine === 'true' || attrs.showTopLine === true
94
+ })
95
+
96
+ const handleClick = () => {
97
+ if (config.value.clickName) {
98
+ emit(config.value.clickName)
99
+ }
100
+ }
101
+
102
+ const parseConfig = (data) => {
103
+ // 如果设置了title属性,直接使用title作为标签
104
+ if (props.title) {
105
+ config.value.label = props.title
106
+ config.value.type = 'title'
107
+ config.value.line = ''
108
+ config.value.color = ''
109
+ config.value.lineLength = ''
110
+ config.value.clickName = ''
111
+ return
112
+ }
113
+
114
+ if (!data) return
115
+
116
+ const parts = data.includes('-') ? data.split('-') : data === 'line' ? ['', 'title', 'line'] : [data]
117
+
118
+ // 基本设置 - 标签和类型
119
+ config.value.label = parts[0] || ''
120
+ config.value.type = parts[1] || 'title'
121
+
122
+ // 根据类型采用不同的参数格式解析
123
+ if (config.value.type === 'title') {
124
+ // 标题类型格式: aa-title-line-red-800
125
+ // parts[0]: 标签
126
+ // parts[1]: title
127
+ // parts[2]: line (下划线样式)
128
+ // parts[3]: 颜色
129
+ // parts[4]: 长度
130
+ config.value.line = parts[2] || ''
131
+ config.value.color = parts[3] || ''
132
+ config.value.lineLength = parts[4] || ''
133
+ } else if (config.value.type === 'button') {
134
+ // 按钮类型格式: aa-button-cc
135
+ // parts[0]: 标签
136
+ // parts[1]: button
137
+ // parts[2]: 点击事件名称
138
+ config.value.clickName = parts[2] || ''
139
+ }
140
+ }
141
+
142
+ onMounted(() => {
143
+ parseConfig(props.queryParamsName)
144
+ })
145
+ </script>
146
+
147
+ <style scoped lang="less">
148
+ .x-title-container {
149
+ display: flex;
150
+ align-items: center;
151
+ justify-content: space-between;
152
+ }
153
+
154
+ .x-title {
155
+ font-size: 18px;
156
+ font-weight: 700;
157
+ height: 26px;
158
+ width: 100%;
159
+ text-align: left;
160
+ font-family: "Source Han Sans";
161
+ color: #313131;
162
+ position: relative;
163
+ white-space: nowrap;
164
+ overflow: hidden;
165
+ text-overflow: ellipsis;
166
+ }
167
+ .underline {
168
+ position: absolute;
169
+ bottom: 0;
170
+ left: 0;
171
+ height: 1px;
172
+ width: 100%;
173
+ background-color: #5D5C5C;
174
+ }
175
+
176
+ .x-button-container {
177
+ text-align: right;
178
+ }
179
+ .x-title-center {
180
+ &.x-title-container,
181
+ .x-title-container {
182
+ :deep(.x-title) {
183
+ text-align: center;
184
+ }
185
+ }
186
+ }
187
+ .x-title-littlefont {
188
+ &.x-title-container,
189
+ .x-title-container {
190
+ :deep(.x-title) {
191
+ font-size: 16px;
192
+ }
193
+ }
194
+ }
195
+
196
+ .title-icon {
197
+ font-size: 16px;
198
+ flex-shrink: 0;
199
+ display: inline-flex;
200
+ align-items: center;
201
+ justify-content: center;
202
+ vertical-align: baseline;
203
+ line-height: 1;
204
+ color: #5D5C5C;
205
+ margin-right: 8px;
206
+ transform: translateY(0.1em);
207
+ }
208
+
209
+ // title-content 默认样式 - 只保留右侧间距
210
+ .x-title-container {
211
+ :deep(.title-content) {
212
+ display: flex;
213
+ align-items: baseline;
214
+ }
215
+ }
216
+ // 顶部分割线
217
+ .top-line {
218
+ width: 100%;
219
+ height: 2px;
220
+ background-color: #0057FE;
221
+ border: none;
222
+ margin: 8px 0;
223
+ opacity: 1;
224
+ }
225
+ .x-title-dot,
226
+ .x-title-nodot {
227
+ &.x-title-container,
228
+ .x-title-container {
229
+ :deep(.title-dot) {
230
+ width: 14px;
231
+ height: 14px;
232
+ margin-right: 8px;
233
+ flex-shrink: 0;
234
+ }
235
+ }
236
+ }
237
+
238
+ // dot 样式特有部分
239
+ .x-title-dot {
240
+ &.x-title-container,
241
+ .x-title-container {
242
+ :deep(.title-dot) {
243
+ border-radius: 50%;
244
+ background-color: #3362DA;
245
+ }
246
+ }
247
+ }
248
+ .x-title-yizhu-title {
249
+ &.x-title-container,
250
+ .x-title-container {
251
+ margin-top: 3px;
252
+ margin-left: 6px;
253
+ margin-bottom: 7px;
254
+ :deep(.x-title) {
255
+ height: 26px;
256
+ opacity: 1;
257
+ font-family: "Source Han Sans";
258
+ font-size: 18px;
259
+ font-weight: bold;
260
+ line-height: normal;
261
+ letter-spacing: 0em;
262
+ font-feature-settings: "kern" on;
263
+ color: #5D5C5C;
264
+ }
265
+ }
266
+ }
267
+ .x-title-left-title {
268
+ &.x-title-container,
269
+ .x-title-container {
270
+ margin: 15px auto 15px 6px;
271
+ :deep(.x-title) {
272
+ height: 26px;
273
+ opacity: 1;
274
+ font-family: "Source Han Sans";
275
+ font-size: 18px;
276
+ font-weight: bold;
277
+ line-height: normal;
278
+ }
279
+ }
280
+ }
281
+ // nodot 样式特有部分
282
+ .x-title-nodot {
283
+ &.x-title-container,
284
+ .x-title-container {
285
+ :deep(.title-dot) {
286
+ /* 透明圆点,保持占位但不显示 */
287
+ background-color: transparent;
288
+ }
289
+ }
290
+ }
291
+ .x-title-line-style {
292
+ background: #0057FE;
293
+ height: 2px;
294
+ }
295
+ .x-title-compact {
296
+ height: 23px;
297
+ opacity: 1;
298
+ font-family: "Source Han Sans";
299
+ font-size: 16px;
300
+ font-weight: bold;
301
+ line-height: normal;
302
+ letter-spacing: 0em;
303
+ font-feature-settings: "kern" on;
304
+ color: #313131;
305
+ }
306
+ </style>