af-mobile-client-vue3 1.3.82 → 1.3.84

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.3.82",
4
+ "version": "1.3.84",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -8,7 +8,7 @@ import {
8
8
  Icon as VanIcon,
9
9
  Uploader as vanUploader,
10
10
  } from 'vant'
11
- import { ref } from 'vue'
11
+ import { inject, ref } from 'vue'
12
12
 
13
13
  interface WatermarkConfig {
14
14
  fontSize?: number | string
@@ -34,6 +34,7 @@ const emit = defineEmits(['updateFileList', 'updateAllFileList'])
34
34
 
35
35
  const imageList = ref<Array<any>>(props.imageList ?? [])
36
36
 
37
+ const parentData: any = inject('provideParent')
37
38
  // 浏览器模式:隐藏的文件输入(选择 / 拍照)
38
39
  const fileInputRef = ref<HTMLInputElement | undefined>()
39
40
  const cameraInputRef = ref<HTMLInputElement | undefined>()
@@ -220,6 +221,7 @@ function handlePhotoUpload(photoData: any) {
220
221
  f_operator: 'server',
221
222
  imgPath: photoData.filePath,
222
223
  urlPath: `/api/${import.meta.env.VITE_APP_SYSTEM_NAME}/resource/upload`,
224
+ commonId: parentData.commonId ?? '',
223
225
  }
224
226
  if (props.isAsyncUpload) {
225
227
  // 添加上传队列
@@ -930,7 +930,7 @@ function handleCheckboxChange(item: any, checked: boolean) {
930
930
  >
931
931
  <div class="tag-content">
932
932
  <VanIcon v-if="column.tagIcon" :name="column.tagIcon" class="tag-icon" />
933
- <span v-if="column.showLabel === undefined || column.showLabel" class="tag-title">{{ `${column.title}: ` }}</span>
933
+ <span v-if="column.showLabel === undefined || column.showLabel" class="tag-title">{{ `${column.title}:` }}</span>
934
934
  <XBadge
935
935
  :dict-name="column.dictName"
936
936
  :dict-value="item[column.dataIndex]"
@@ -1176,16 +1176,28 @@ function handleCheckboxChange(item: any, checked: boolean) {
1176
1176
  width: auto;
1177
1177
  font-size: var(--van-font-size-md);
1178
1178
  margin: 4px 4px;
1179
+ flex: 0 0 auto;
1180
+ min-width: 0;
1181
+ max-width: 100%;
1179
1182
  :deep(.van-tag) {
1183
+ max-width: 100%;
1180
1184
  width: fit-content;
1181
- display: inline-flex;
1182
- align-items: center;
1185
+ display: inline-block;
1186
+ vertical-align: middle;
1187
+ white-space: normal;
1188
+ overflow-wrap: anywhere;
1189
+ word-break: break-word;
1183
1190
  padding: 2px 8px;
1184
1191
  border-radius: 4px;
1192
+ min-width: 0;
1185
1193
  }
1186
1194
  .tag-content {
1187
- display: flex;
1188
- align-items: center;
1195
+ display: inline;
1196
+ white-space: normal;
1197
+ overflow-wrap: anywhere;
1198
+ word-break: break-word;
1199
+ max-width: 100%;
1200
+ min-width: 0;
1189
1201
  }
1190
1202
  .tag-icon {
1191
1203
  margin-right: 4px;
@@ -1196,6 +1208,10 @@ function handleCheckboxChange(item: any, checked: boolean) {
1196
1208
  .tag-title {
1197
1209
  font-weight: normal;
1198
1210
  white-space: nowrap;
1211
+ margin-right: 4px;
1212
+ }
1213
+ .tag-title::after {
1214
+ content: '\00a0'; /* non-breaking space */
1199
1215
  }
1200
1216
  }
1201
1217
  }