vue2-client 1.19.55 → 1.19.57

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.19.55",
3
+ "version": "1.19.57",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -532,8 +532,8 @@ export default {
532
532
  const fieldName = attr.model
533
533
  const currentValue = this.form[fieldName]
534
534
 
535
- // 如果值为 undefinednull,跳过
536
- if (currentValue === undefined || currentValue === null) {
535
+ // 如果值为 undefinednull、空数组或空字符串,跳过
536
+ if (currentValue === undefined || currentValue === null || (Array.isArray(currentValue) && currentValue.length === 0) || currentValue === '') {
537
537
  return
538
538
  }
539
539
 
@@ -245,7 +245,8 @@ export default {
245
245
  gif: 'file-image',
246
246
  txt: 'file-text',
247
247
  zip: 'file-zip',
248
- rar: 'file-zip'
248
+ rar: 'file-zip',
249
+ m4a: 'right-circle',
249
250
  }
250
251
  return iconMap[ext] || 'file'
251
252
  },
@@ -316,7 +317,7 @@ export default {
316
317
  &.file-type-jpg, &.file-type-jpeg, &.file-type-png, &.file-type-gif {
317
318
  background: linear-gradient(135deg, #722ed1, #b37feb);
318
319
  }
319
- &.file-type-txt {
320
+ &.file-type-txt, &.file-type-m4a {
320
321
  background: linear-gradient(135deg, #13c2c2, #5cdbd3);
321
322
  }
322
323
  &.file-type-zip, &.file-type-rar {
@@ -371,13 +372,9 @@ export default {
371
372
  margin-right: 12px;
372
373
  }
373
374
 
374
- .file-audio-duration {
375
- margin-right: 12px;
376
- }
377
-
378
375
  .file-time {
379
376
  position: relative;
380
- padding-left: 12px;
377
+ padding-left: 6px;
381
378
 
382
379
  &::before {
383
380
  content: '';
@@ -419,7 +416,7 @@ export default {
419
416
  .file-actions {
420
417
  display: flex;
421
418
  align-items: center;
422
- margin-left: 16px;
419
+ margin-left: 6px;
423
420
 
424
421
  .action-btn {
425
422
  width: 36px;