af-mobile-client-vue3 1.3.66 → 1.3.67

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.66",
4
+ "version": "1.3.67",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -195,7 +195,7 @@ function handlePhotoUpload(photoData: any) {
195
195
  if (index !== -1) {
196
196
  delete imageList.value[index].message
197
197
  imageList.value[index].status = 'done'
198
- imageList.value[index].pthotoName = photoData.name
198
+ imageList.value[index].photo_name = photoData.name
199
199
  imageList.value[index].type = mimeType
200
200
  }
201
201
  else {
@@ -210,7 +210,7 @@ function handlePhotoUpload(photoData: any) {
210
210
 
211
211
  const doneIds = Object.values(imageList.value)
212
212
  .filter(item => item.status === 'done')
213
- .map(item => item.pthotoName)
213
+ .map(item => item.photo_name)
214
214
 
215
215
  if (props.outerIndex !== undefined)
216
216
  emit('updateFileList', doneIds, props.outerIndex)
@@ -273,7 +273,7 @@ function deleteFileFunction(file: any) {
273
273
  if (props.isAsyncUpload) {
274
274
  doneIds.value = Object.values(imageList.value)
275
275
  .filter(item => item.status === 'done')
276
- .map(item => item.pthotoName)
276
+ .map(item => item.photo_name)
277
277
  }
278
278
  else {
279
279
  doneIds.value = Object.values(imageList.value)
@@ -300,7 +300,7 @@ function deleteFileFunction(file: any) {
300
300
  if (props.isAsyncUpload) {
301
301
  doneIds.value = Object.values(imageList.value)
302
302
  .filter(item => item.status === 'done')
303
- .map(item => item.pthotoName)
303
+ .map(item => item.photo_name)
304
304
  }
305
305
  else {
306
306
  doneIds.value = Object.values(imageList.value)
@@ -426,8 +426,8 @@ function updateFile(files, _index) {
426
426
  function formTypeCheck(attr, value) {
427
427
  if (mode === '查询')
428
428
  return
429
- if (!attr.rule || !attr.rule.required || attr.rule.required === 'false')
430
- return
429
+ // if (!attr.rule || !attr.rule.required || attr.rule.required === 'false')
430
+ // return
431
431
  switch (attr.rule.type) {
432
432
  case 'string':
433
433
  if (value.length === 0) {