vue2-client 1.16.81 → 1.16.83

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/package.json +112 -112
  2. package/src/assets/svg/female.svg +1 -1
  3. package/src/assets/svg/male.svg +1 -1
  4. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  5. package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +394 -379
  6. package/src/base-client/components/common/HIS/HTab/HTab.vue +418 -418
  7. package/src/base-client/components/common/XCollapse/XCollapse.vue +833 -833
  8. package/src/base-client/components/common/XFormGroupDetails/XFormGroupDetails.vue +1 -1
  9. package/src/base-client/components/common/XInput/XInput.vue +194 -194
  10. package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
  11. package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
  12. package/src/base-client/components/his/XCheckbox/XCheckbox.vue +31 -2
  13. package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +1031 -1022
  14. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  15. package/src/base-client/components/his/XList/XList.vue +829 -829
  16. package/src/base-client/components/his/XRadio/XRadio.vue +1 -1
  17. package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +159 -159
  18. package/src/base-client/components/his/XTitle/XTitle.vue +255 -255
  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/router/async/router.map.js +2 -1
  23. package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
@@ -1,255 +1,255 @@
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
- ]
75
- booleanStyleKeys.forEach(key => {
76
- const val = attrs[key]
77
- const truthy = val === true || val === '' || val === 'true'
78
- if (truthy) classes[`x-title-${key}`] = true
79
- })
80
- return classes
81
- })
82
-
83
- const handleClick = () => {
84
- if (config.value.clickName) {
85
- emit(config.value.clickName)
86
- }
87
- }
88
-
89
- const parseConfig = (data) => {
90
- // 如果设置了title属性,直接使用title作为标签
91
- if (props.title) {
92
- config.value.label = props.title
93
- config.value.type = 'title'
94
- config.value.line = ''
95
- config.value.color = ''
96
- config.value.lineLength = ''
97
- config.value.clickName = ''
98
- return
99
- }
100
-
101
- if (!data) return
102
-
103
- const parts = data.includes('-') ? data.split('-') : data === 'line' ? ['', 'title', 'line'] : [data]
104
-
105
- // 基本设置 - 标签和类型
106
- config.value.label = parts[0] || ''
107
- config.value.type = parts[1] || 'title'
108
-
109
- // 根据类型采用不同的参数格式解析
110
- if (config.value.type === 'title') {
111
- // 标题类型格式: aa-title-line-red-800
112
- // parts[0]: 标签
113
- // parts[1]: title
114
- // parts[2]: line (下划线样式)
115
- // parts[3]: 颜色
116
- // parts[4]: 长度
117
- config.value.line = parts[2] || ''
118
- config.value.color = parts[3] || ''
119
- config.value.lineLength = parts[4] || ''
120
- } else if (config.value.type === 'button') {
121
- // 按钮类型格式: aa-button-cc
122
- // parts[0]: 标签
123
- // parts[1]: button
124
- // parts[2]: 点击事件名称
125
- config.value.clickName = parts[2] || ''
126
- }
127
- }
128
-
129
- onMounted(() => {
130
- parseConfig(props.queryParamsName)
131
- })
132
- </script>
133
-
134
- <style scoped lang="less">
135
- .x-title-container {
136
- display: flex;
137
- align-items: center;
138
- justify-content: space-between;
139
- }
140
-
141
- .x-title {
142
- font-size: 18px;
143
- font-weight: 700;
144
- height: 26px;
145
- width: 100%;
146
- text-align: left;
147
- font-family: "Source Han Sans";
148
- color: #313131;
149
- position: relative;
150
- }
151
-
152
- .underline {
153
- position: absolute;
154
- bottom: 0;
155
- left: 0;
156
- height: 1px;
157
- width: 100%;
158
- background-color: #5D5C5C;
159
- }
160
-
161
- .x-button-container {
162
- text-align: right;
163
- }
164
- .x-title-center {
165
- &.x-title-container,
166
- .x-title-container {
167
- :deep(.x-title) {
168
- text-align: center;
169
- }
170
- }
171
- }
172
- .x-title-littlefont {
173
- &.x-title-container,
174
- .x-title-container {
175
- :deep(.x-title) {
176
- font-size: 16px;
177
- }
178
- }
179
- }
180
-
181
- .title-icon {
182
- font-size: 16px;
183
- flex-shrink: 0;
184
- display: inline-flex;
185
- align-items: center;
186
- justify-content: center;
187
- vertical-align: baseline;
188
- line-height: 1;
189
- color: #5D5C5C;
190
- margin-right: 8px;
191
- transform: translateY(0.1em);
192
- }
193
-
194
- // title-content 默认样式 - 只保留右侧间距
195
- .x-title-container {
196
- :deep(.title-content) {
197
- display: flex;
198
- align-items: baseline;
199
- }
200
- }
201
-
202
- // dot 和 nodot 样式的公共部分
203
- .x-title-dot,
204
- .x-title-nodot {
205
- &.x-title-container,
206
- .x-title-container {
207
- :deep(.title-dot) {
208
- width: 14px;
209
- height: 14px;
210
- margin-right: 8px;
211
- flex-shrink: 0;
212
- }
213
- }
214
- }
215
-
216
- // dot 样式特有部分
217
- .x-title-dot {
218
- &.x-title-container,
219
- .x-title-container {
220
- :deep(.title-dot) {
221
- border-radius: 50%;
222
- background-color: #3362DA;
223
- }
224
- }
225
- }
226
- .x-title-yizhu-title {
227
- &.x-title-container,
228
- .x-title-container {
229
- margin-top: 3px;
230
- margin-left: 6px;
231
- margin-bottom: 7px;
232
- :deep(.x-title) {
233
- height: 26px;
234
- opacity: 1;
235
- font-family: "Source Han Sans";
236
- font-size: 18px;
237
- font-weight: bold;
238
- line-height: normal;
239
- letter-spacing: 0em;
240
- font-feature-settings: "kern" on;
241
- color: #5D5C5C;
242
- }
243
- }
244
- }
245
- // nodot 样式特有部分
246
- .x-title-nodot {
247
- &.x-title-container,
248
- .x-title-container {
249
- :deep(.title-dot) {
250
- /* 透明圆点,保持占位但不显示 */
251
- background-color: transparent;
252
- }
253
- }
254
- }
255
- </style>
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
+ ]
75
+ booleanStyleKeys.forEach(key => {
76
+ const val = attrs[key]
77
+ const truthy = val === true || val === '' || val === 'true'
78
+ if (truthy) classes[`x-title-${key}`] = true
79
+ })
80
+ return classes
81
+ })
82
+
83
+ const handleClick = () => {
84
+ if (config.value.clickName) {
85
+ emit(config.value.clickName)
86
+ }
87
+ }
88
+
89
+ const parseConfig = (data) => {
90
+ // 如果设置了title属性,直接使用title作为标签
91
+ if (props.title) {
92
+ config.value.label = props.title
93
+ config.value.type = 'title'
94
+ config.value.line = ''
95
+ config.value.color = ''
96
+ config.value.lineLength = ''
97
+ config.value.clickName = ''
98
+ return
99
+ }
100
+
101
+ if (!data) return
102
+
103
+ const parts = data.includes('-') ? data.split('-') : data === 'line' ? ['', 'title', 'line'] : [data]
104
+
105
+ // 基本设置 - 标签和类型
106
+ config.value.label = parts[0] || ''
107
+ config.value.type = parts[1] || 'title'
108
+
109
+ // 根据类型采用不同的参数格式解析
110
+ if (config.value.type === 'title') {
111
+ // 标题类型格式: aa-title-line-red-800
112
+ // parts[0]: 标签
113
+ // parts[1]: title
114
+ // parts[2]: line (下划线样式)
115
+ // parts[3]: 颜色
116
+ // parts[4]: 长度
117
+ config.value.line = parts[2] || ''
118
+ config.value.color = parts[3] || ''
119
+ config.value.lineLength = parts[4] || ''
120
+ } else if (config.value.type === 'button') {
121
+ // 按钮类型格式: aa-button-cc
122
+ // parts[0]: 标签
123
+ // parts[1]: button
124
+ // parts[2]: 点击事件名称
125
+ config.value.clickName = parts[2] || ''
126
+ }
127
+ }
128
+
129
+ onMounted(() => {
130
+ parseConfig(props.queryParamsName)
131
+ })
132
+ </script>
133
+
134
+ <style scoped lang="less">
135
+ .x-title-container {
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: space-between;
139
+ }
140
+
141
+ .x-title {
142
+ font-size: 18px;
143
+ font-weight: 700;
144
+ height: 26px;
145
+ width: 100%;
146
+ text-align: left;
147
+ font-family: "Source Han Sans";
148
+ color: #313131;
149
+ position: relative;
150
+ }
151
+
152
+ .underline {
153
+ position: absolute;
154
+ bottom: 0;
155
+ left: 0;
156
+ height: 1px;
157
+ width: 100%;
158
+ background-color: #5D5C5C;
159
+ }
160
+
161
+ .x-button-container {
162
+ text-align: right;
163
+ }
164
+ .x-title-center {
165
+ &.x-title-container,
166
+ .x-title-container {
167
+ :deep(.x-title) {
168
+ text-align: center;
169
+ }
170
+ }
171
+ }
172
+ .x-title-littlefont {
173
+ &.x-title-container,
174
+ .x-title-container {
175
+ :deep(.x-title) {
176
+ font-size: 16px;
177
+ }
178
+ }
179
+ }
180
+
181
+ .title-icon {
182
+ font-size: 16px;
183
+ flex-shrink: 0;
184
+ display: inline-flex;
185
+ align-items: center;
186
+ justify-content: center;
187
+ vertical-align: baseline;
188
+ line-height: 1;
189
+ color: #5D5C5C;
190
+ margin-right: 8px;
191
+ transform: translateY(0.1em);
192
+ }
193
+
194
+ // title-content 默认样式 - 只保留右侧间距
195
+ .x-title-container {
196
+ :deep(.title-content) {
197
+ display: flex;
198
+ align-items: baseline;
199
+ }
200
+ }
201
+
202
+ // dot 和 nodot 样式的公共部分
203
+ .x-title-dot,
204
+ .x-title-nodot {
205
+ &.x-title-container,
206
+ .x-title-container {
207
+ :deep(.title-dot) {
208
+ width: 14px;
209
+ height: 14px;
210
+ margin-right: 8px;
211
+ flex-shrink: 0;
212
+ }
213
+ }
214
+ }
215
+
216
+ // dot 样式特有部分
217
+ .x-title-dot {
218
+ &.x-title-container,
219
+ .x-title-container {
220
+ :deep(.title-dot) {
221
+ border-radius: 50%;
222
+ background-color: #3362DA;
223
+ }
224
+ }
225
+ }
226
+ .x-title-yizhu-title {
227
+ &.x-title-container,
228
+ .x-title-container {
229
+ margin-top: 3px;
230
+ margin-left: 6px;
231
+ margin-bottom: 7px;
232
+ :deep(.x-title) {
233
+ height: 26px;
234
+ opacity: 1;
235
+ font-family: "Source Han Sans";
236
+ font-size: 18px;
237
+ font-weight: bold;
238
+ line-height: normal;
239
+ letter-spacing: 0em;
240
+ font-feature-settings: "kern" on;
241
+ color: #5D5C5C;
242
+ }
243
+ }
244
+ }
245
+ // nodot 样式特有部分
246
+ .x-title-nodot {
247
+ &.x-title-container,
248
+ .x-title-container {
249
+ :deep(.title-dot) {
250
+ /* 透明圆点,保持占位但不显示 */
251
+ background-color: transparent;
252
+ }
253
+ }
254
+ }
255
+ </style>