n20-common-lib 1.3.39 → 1.3.40
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
|
@@ -397,6 +397,10 @@ export default {
|
|
|
397
397
|
uploadHttpRequest: {
|
|
398
398
|
type: Function,
|
|
399
399
|
default: undefined
|
|
400
|
+
},
|
|
401
|
+
getFileMethod: {
|
|
402
|
+
type: Function,
|
|
403
|
+
default: undefined
|
|
400
404
|
}
|
|
401
405
|
},
|
|
402
406
|
data() {
|
|
@@ -463,6 +467,10 @@ export default {
|
|
|
463
467
|
},
|
|
464
468
|
|
|
465
469
|
async getFileInfo(row) {
|
|
470
|
+
if (this.getFileMethod) {
|
|
471
|
+
return await this.getFileMethod(row)
|
|
472
|
+
}
|
|
473
|
+
|
|
466
474
|
let _url = row[this.keys.url]
|
|
467
475
|
this.seePrefix && (_url = this.seePrefix + _url)
|
|
468
476
|
if (_url) {
|