hbte-saas-ui 1.8.11 → 1.8.12
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/lib/hbte-ui.common.js +39 -31
- package/lib/hbte-ui.umd.js +39 -31
- package/lib/hbte-ui.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hbte-ui.common.js
CHANGED
|
@@ -456,13 +456,6 @@ function getNative(object, key) {
|
|
|
456
456
|
module.exports = getNative;
|
|
457
457
|
|
|
458
458
|
|
|
459
|
-
/***/ }),
|
|
460
|
-
|
|
461
|
-
/***/ "0c4f":
|
|
462
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
463
|
-
|
|
464
|
-
// extracted by mini-css-extract-plugin
|
|
465
|
-
|
|
466
459
|
/***/ }),
|
|
467
460
|
|
|
468
461
|
/***/ "0c82":
|
|
@@ -19473,6 +19466,17 @@ module.exports = getPrototype;
|
|
|
19473
19466
|
|
|
19474
19467
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"), __webpack_require__("62e4")(module)))
|
|
19475
19468
|
|
|
19469
|
+
/***/ }),
|
|
19470
|
+
|
|
19471
|
+
/***/ "2f12":
|
|
19472
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19473
|
+
|
|
19474
|
+
"use strict";
|
|
19475
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_1b14089e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6207");
|
|
19476
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_1b14089e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_1b14089e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
19477
|
+
/* unused harmony reexport * */
|
|
19478
|
+
|
|
19479
|
+
|
|
19476
19480
|
/***/ }),
|
|
19477
19481
|
|
|
19478
19482
|
/***/ "2f62":
|
|
@@ -24648,6 +24652,13 @@ var nativeCreate = getNative(Object, 'create');
|
|
|
24648
24652
|
module.exports = nativeCreate;
|
|
24649
24653
|
|
|
24650
24654
|
|
|
24655
|
+
/***/ }),
|
|
24656
|
+
|
|
24657
|
+
/***/ "6207":
|
|
24658
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
24659
|
+
|
|
24660
|
+
// extracted by mini-css-extract-plugin
|
|
24661
|
+
|
|
24651
24662
|
/***/ }),
|
|
24652
24663
|
|
|
24653
24664
|
/***/ "62e4":
|
|
@@ -39670,17 +39681,6 @@ module.exports = function (name) {
|
|
|
39670
39681
|
};
|
|
39671
39682
|
|
|
39672
39683
|
|
|
39673
|
-
/***/ }),
|
|
39674
|
-
|
|
39675
|
-
/***/ "b639":
|
|
39676
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
39677
|
-
|
|
39678
|
-
"use strict";
|
|
39679
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_0cc572b4_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0c4f");
|
|
39680
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_0cc572b4_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_0cc572b4_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
39681
|
-
/* unused harmony reexport * */
|
|
39682
|
-
|
|
39683
|
-
|
|
39684
39684
|
/***/ }),
|
|
39685
39685
|
|
|
39686
39686
|
/***/ "b64e":
|
|
@@ -43661,12 +43661,12 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
43661
43661
|
// ESM COMPAT FLAG
|
|
43662
43662
|
__webpack_require__.r(__webpack_exports__);
|
|
43663
43663
|
|
|
43664
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
43665
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:item.fileUrl || item.id
|
|
43664
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=1b14089e
|
|
43665
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:String(item.fileUrl || item.id) + index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(_vm.showCover)?_c('i',{staticClass:"icon-main-huanyuan mr10",on:{"click":function($event){$event.stopPropagation();return _vm.openCover(index)}}}):_vm._e(),(_vm.showDownLoad(item))?_c('i',{staticClass:"icon-main-xiazai mr10",on:{"click":function($event){$event.stopPropagation();return _vm.downloadFile(item)}}}):_vm._e(),(_vm.showRemove)?_c('i',{staticClass:"icon-main-shanchu",on:{"click":function($event){$event.stopPropagation();return _vm.remove(index, item.fileName)}}}):_vm._e()])])])],1),_vm._t("default",null,{"fileData":item})],2)}),_vm._l((_vm.uploadingList),function(item,index){return _c('div',{key:'uploading-' + index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item"},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right",staticStyle:{"flex-direction":"row","align-items":"center"}},[_c('div',{staticStyle:{"flex":"1","overflow":"hidden","margin-right":"10px"}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.fileName))]),_c('div',{staticClass:"info"},[_vm._v(" "+_vm._s(item.status === "transmitSuccess" ? "处理中..." : "上传中...")+" ")])]),_c('div',{staticClass:"progress-wrapper"},[_c('el-progress',{attrs:{"type":"circle","percentage":Math.floor(item.progress * 100),"width":50,"stroke-width":4}}),(item.status === 'padding' || item.status === 'inline')?_c('i',{staticClass:"el-icon-close cancel-btn",on:{"click":function($event){$event.stopPropagation();return _vm.cancelUpload(item)}}}):_vm._e()],1)])],1)])}),(_vm.editAble)?_c('div',{staticClass:"upload unit-item"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.netDisc),expression:"netDisc"}],staticClass:"netdisc",on:{"click":_vm.openNetDisc}},[_vm._v(" 选择网盘地址 ")]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.link),expression:"link"}],staticClass:"link",on:{"click":_vm.openLink}},[_vm._v("自定义链接")]),_c('div',{staticClass:"local-file",on:{"click":_vm.openFile}},[_c('i',{staticClass:"el-icon-plus"}),_vm._v(" 上传附件 "),_c('input',{ref:"input",staticClass:"hidden",attrs:{"type":"file","multiple":""},on:{"change":_vm.chooseFile}})]),(_vm.maxUpload)?_c('div',{staticClass:"maxUploadShow"},[_vm._v(" "+_vm._s(_vm.list.length)+" / "+_vm._s(_vm.maxUpload)+" ")]):_vm._e()]):_vm._e(),_c('input',{ref:"coverInput",staticClass:"hidden",attrs:{"type":"file"},on:{"change":function (ev) { return _vm.coverFile(ev); }}})],2),_c('NetDisc',{ref:"netDisc",on:{"submit":_vm.addNet}}),_c('CustomLink',{ref:"customLink",on:{"submit":_vm.addLink}})],1)}
|
|
43666
43666
|
var staticRenderFns = []
|
|
43667
43667
|
|
|
43668
43668
|
|
|
43669
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
43669
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=1b14089e
|
|
43670
43670
|
|
|
43671
43671
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
43672
43672
|
var es_array_push = __webpack_require__("14d9");
|
|
@@ -43915,12 +43915,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
43915
43915
|
)
|
|
43916
43916
|
|
|
43917
43917
|
/* harmony default export */ var NetDisc = (component.exports);
|
|
43918
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=template&id=
|
|
43919
|
-
var
|
|
43920
|
-
var
|
|
43918
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=template&id=16ec7968
|
|
43919
|
+
var CustomLinkvue_type_template_id_16ec7968_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('hb-dialog',{ref:"dialog",attrs:{"width":"480px","title":"添加自定义链接","formData":_vm.formData,"rules":_vm.rules,"append-to-body":true,"destroy-on-close":true},on:{"submit":_vm.submit,"closed":_vm.clear},scopedSlots:_vm._u([{key:"form",fn:function(){return [_c('el-form-item',{attrs:{"label":"文件名","prop":"fileName"}},[_c('el-input',{attrs:{"maxlength":"50"},model:{value:(_vm.formData.fileName),callback:function ($$v) {_vm.$set(_vm.formData, "fileName", $$v)},expression:"formData.fileName"}})],1),_c('el-form-item',{attrs:{"label":"链接","prop":"fileUrl"}},[_c('el-input',{attrs:{"maxlength":"200"},model:{value:(_vm.formData.fileUrl),callback:function ($$v) {_vm.$set(_vm.formData, "fileUrl", $$v)},expression:"formData.fileUrl"}})],1)]},proxy:true}])})}
|
|
43920
|
+
var CustomLinkvue_type_template_id_16ec7968_staticRenderFns = []
|
|
43921
43921
|
|
|
43922
43922
|
|
|
43923
|
-
// CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=template&id=
|
|
43923
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=template&id=16ec7968
|
|
43924
43924
|
|
|
43925
43925
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=script&lang=js
|
|
43926
43926
|
//
|
|
@@ -43974,9 +43974,9 @@ var CustomLinkvue_type_template_id_01816d01_staticRenderFns = []
|
|
|
43974
43974
|
this.$refs.dialog.clearValidate();
|
|
43975
43975
|
},
|
|
43976
43976
|
submit() {
|
|
43977
|
-
this.formData.fileUrl;
|
|
43978
43977
|
this.$emit("submit", {
|
|
43979
|
-
...this.formData
|
|
43978
|
+
...this.formData,
|
|
43979
|
+
onlineUrl: this.formData.fileUrl
|
|
43980
43980
|
});
|
|
43981
43981
|
this.$refs.dialog.close();
|
|
43982
43982
|
},
|
|
@@ -44001,8 +44001,8 @@ var CustomLinkvue_type_template_id_01816d01_staticRenderFns = []
|
|
|
44001
44001
|
|
|
44002
44002
|
var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
44003
44003
|
component_CustomLinkvue_type_script_lang_js,
|
|
44004
|
-
|
|
44005
|
-
|
|
44004
|
+
CustomLinkvue_type_template_id_16ec7968_render,
|
|
44005
|
+
CustomLinkvue_type_template_id_16ec7968_staticRenderFns,
|
|
44006
44006
|
false,
|
|
44007
44007
|
null,
|
|
44008
44008
|
null,
|
|
@@ -44179,14 +44179,17 @@ const FILE_ICON_MAP = [{
|
|
|
44179
44179
|
type: Boolean,
|
|
44180
44180
|
default: true
|
|
44181
44181
|
},
|
|
44182
|
+
// 操作按钮权限
|
|
44182
44183
|
oprationAuth: {
|
|
44183
44184
|
type: Object,
|
|
44184
44185
|
default: () => {}
|
|
44185
44186
|
},
|
|
44187
|
+
// 最大上传数量
|
|
44186
44188
|
maxUpload: {
|
|
44187
44189
|
type: Number,
|
|
44188
44190
|
default: 0
|
|
44189
44191
|
},
|
|
44192
|
+
// 简单上传与分片上传的阈值
|
|
44190
44193
|
_simpleUploadThreshold: {
|
|
44191
44194
|
type: Number,
|
|
44192
44195
|
default: 50 * 1024 * 1024 // 50MB
|
|
@@ -44220,6 +44223,11 @@ const FILE_ICON_MAP = [{
|
|
|
44220
44223
|
this.$message.error("没有此网盘文件的预览权限!");
|
|
44221
44224
|
return;
|
|
44222
44225
|
}
|
|
44226
|
+
const urlReg = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/;
|
|
44227
|
+
if (!urlReg.test(item.onlineUrl)) {
|
|
44228
|
+
this.$message.error("无效的预览链接");
|
|
44229
|
+
return;
|
|
44230
|
+
}
|
|
44223
44231
|
window.open(item.onlineUrl);
|
|
44224
44232
|
},
|
|
44225
44233
|
downloadFile(item) {
|
|
@@ -44559,8 +44567,8 @@ const FILE_ICON_MAP = [{
|
|
|
44559
44567
|
});
|
|
44560
44568
|
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=script&lang=js
|
|
44561
44569
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
44562
|
-
// EXTERNAL MODULE: ./packages/upload/src/main.vue?vue&type=style&index=0&id=
|
|
44563
|
-
var
|
|
44570
|
+
// EXTERNAL MODULE: ./packages/upload/src/main.vue?vue&type=style&index=0&id=1b14089e&prod&lang=scss
|
|
44571
|
+
var mainvue_type_style_index_0_id_1b14089e_prod_lang_scss = __webpack_require__("2f12");
|
|
44564
44572
|
|
|
44565
44573
|
// CONCATENATED MODULE: ./packages/upload/src/main.vue
|
|
44566
44574
|
|
package/lib/hbte-ui.umd.js
CHANGED
|
@@ -465,13 +465,6 @@ function getNative(object, key) {
|
|
|
465
465
|
module.exports = getNative;
|
|
466
466
|
|
|
467
467
|
|
|
468
|
-
/***/ }),
|
|
469
|
-
|
|
470
|
-
/***/ "0c4f":
|
|
471
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
472
|
-
|
|
473
|
-
// extracted by mini-css-extract-plugin
|
|
474
|
-
|
|
475
468
|
/***/ }),
|
|
476
469
|
|
|
477
470
|
/***/ "0c82":
|
|
@@ -19482,6 +19475,17 @@ module.exports = getPrototype;
|
|
|
19482
19475
|
|
|
19483
19476
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"), __webpack_require__("62e4")(module)))
|
|
19484
19477
|
|
|
19478
|
+
/***/ }),
|
|
19479
|
+
|
|
19480
|
+
/***/ "2f12":
|
|
19481
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19482
|
+
|
|
19483
|
+
"use strict";
|
|
19484
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_1b14089e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6207");
|
|
19485
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_1b14089e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_1b14089e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
19486
|
+
/* unused harmony reexport * */
|
|
19487
|
+
|
|
19488
|
+
|
|
19485
19489
|
/***/ }),
|
|
19486
19490
|
|
|
19487
19491
|
/***/ "2f62":
|
|
@@ -24657,6 +24661,13 @@ var nativeCreate = getNative(Object, 'create');
|
|
|
24657
24661
|
module.exports = nativeCreate;
|
|
24658
24662
|
|
|
24659
24663
|
|
|
24664
|
+
/***/ }),
|
|
24665
|
+
|
|
24666
|
+
/***/ "6207":
|
|
24667
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
24668
|
+
|
|
24669
|
+
// extracted by mini-css-extract-plugin
|
|
24670
|
+
|
|
24660
24671
|
/***/ }),
|
|
24661
24672
|
|
|
24662
24673
|
/***/ "62e4":
|
|
@@ -39679,17 +39690,6 @@ module.exports = function (name) {
|
|
|
39679
39690
|
};
|
|
39680
39691
|
|
|
39681
39692
|
|
|
39682
|
-
/***/ }),
|
|
39683
|
-
|
|
39684
|
-
/***/ "b639":
|
|
39685
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
39686
|
-
|
|
39687
|
-
"use strict";
|
|
39688
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_0cc572b4_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0c4f");
|
|
39689
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_0cc572b4_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_0cc572b4_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
39690
|
-
/* unused harmony reexport * */
|
|
39691
|
-
|
|
39692
|
-
|
|
39693
39693
|
/***/ }),
|
|
39694
39694
|
|
|
39695
39695
|
/***/ "b64e":
|
|
@@ -43670,12 +43670,12 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
43670
43670
|
// ESM COMPAT FLAG
|
|
43671
43671
|
__webpack_require__.r(__webpack_exports__);
|
|
43672
43672
|
|
|
43673
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
43674
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:item.fileUrl || item.id
|
|
43673
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=1b14089e
|
|
43674
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:String(item.fileUrl || item.id) + index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(_vm.showCover)?_c('i',{staticClass:"icon-main-huanyuan mr10",on:{"click":function($event){$event.stopPropagation();return _vm.openCover(index)}}}):_vm._e(),(_vm.showDownLoad(item))?_c('i',{staticClass:"icon-main-xiazai mr10",on:{"click":function($event){$event.stopPropagation();return _vm.downloadFile(item)}}}):_vm._e(),(_vm.showRemove)?_c('i',{staticClass:"icon-main-shanchu",on:{"click":function($event){$event.stopPropagation();return _vm.remove(index, item.fileName)}}}):_vm._e()])])])],1),_vm._t("default",null,{"fileData":item})],2)}),_vm._l((_vm.uploadingList),function(item,index){return _c('div',{key:'uploading-' + index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item"},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right",staticStyle:{"flex-direction":"row","align-items":"center"}},[_c('div',{staticStyle:{"flex":"1","overflow":"hidden","margin-right":"10px"}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.fileName))]),_c('div',{staticClass:"info"},[_vm._v(" "+_vm._s(item.status === "transmitSuccess" ? "处理中..." : "上传中...")+" ")])]),_c('div',{staticClass:"progress-wrapper"},[_c('el-progress',{attrs:{"type":"circle","percentage":Math.floor(item.progress * 100),"width":50,"stroke-width":4}}),(item.status === 'padding' || item.status === 'inline')?_c('i',{staticClass:"el-icon-close cancel-btn",on:{"click":function($event){$event.stopPropagation();return _vm.cancelUpload(item)}}}):_vm._e()],1)])],1)])}),(_vm.editAble)?_c('div',{staticClass:"upload unit-item"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.netDisc),expression:"netDisc"}],staticClass:"netdisc",on:{"click":_vm.openNetDisc}},[_vm._v(" 选择网盘地址 ")]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.link),expression:"link"}],staticClass:"link",on:{"click":_vm.openLink}},[_vm._v("自定义链接")]),_c('div',{staticClass:"local-file",on:{"click":_vm.openFile}},[_c('i',{staticClass:"el-icon-plus"}),_vm._v(" 上传附件 "),_c('input',{ref:"input",staticClass:"hidden",attrs:{"type":"file","multiple":""},on:{"change":_vm.chooseFile}})]),(_vm.maxUpload)?_c('div',{staticClass:"maxUploadShow"},[_vm._v(" "+_vm._s(_vm.list.length)+" / "+_vm._s(_vm.maxUpload)+" ")]):_vm._e()]):_vm._e(),_c('input',{ref:"coverInput",staticClass:"hidden",attrs:{"type":"file"},on:{"change":function (ev) { return _vm.coverFile(ev); }}})],2),_c('NetDisc',{ref:"netDisc",on:{"submit":_vm.addNet}}),_c('CustomLink',{ref:"customLink",on:{"submit":_vm.addLink}})],1)}
|
|
43675
43675
|
var staticRenderFns = []
|
|
43676
43676
|
|
|
43677
43677
|
|
|
43678
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
43678
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=1b14089e
|
|
43679
43679
|
|
|
43680
43680
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
43681
43681
|
var es_array_push = __webpack_require__("14d9");
|
|
@@ -43924,12 +43924,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
43924
43924
|
)
|
|
43925
43925
|
|
|
43926
43926
|
/* harmony default export */ var NetDisc = (component.exports);
|
|
43927
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=template&id=
|
|
43928
|
-
var
|
|
43929
|
-
var
|
|
43927
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c7c6be7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=template&id=16ec7968
|
|
43928
|
+
var CustomLinkvue_type_template_id_16ec7968_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('hb-dialog',{ref:"dialog",attrs:{"width":"480px","title":"添加自定义链接","formData":_vm.formData,"rules":_vm.rules,"append-to-body":true,"destroy-on-close":true},on:{"submit":_vm.submit,"closed":_vm.clear},scopedSlots:_vm._u([{key:"form",fn:function(){return [_c('el-form-item',{attrs:{"label":"文件名","prop":"fileName"}},[_c('el-input',{attrs:{"maxlength":"50"},model:{value:(_vm.formData.fileName),callback:function ($$v) {_vm.$set(_vm.formData, "fileName", $$v)},expression:"formData.fileName"}})],1),_c('el-form-item',{attrs:{"label":"链接","prop":"fileUrl"}},[_c('el-input',{attrs:{"maxlength":"200"},model:{value:(_vm.formData.fileUrl),callback:function ($$v) {_vm.$set(_vm.formData, "fileUrl", $$v)},expression:"formData.fileUrl"}})],1)]},proxy:true}])})}
|
|
43929
|
+
var CustomLinkvue_type_template_id_16ec7968_staticRenderFns = []
|
|
43930
43930
|
|
|
43931
43931
|
|
|
43932
|
-
// CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=template&id=
|
|
43932
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=template&id=16ec7968
|
|
43933
43933
|
|
|
43934
43934
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=script&lang=js
|
|
43935
43935
|
//
|
|
@@ -43983,9 +43983,9 @@ var CustomLinkvue_type_template_id_01816d01_staticRenderFns = []
|
|
|
43983
43983
|
this.$refs.dialog.clearValidate();
|
|
43984
43984
|
},
|
|
43985
43985
|
submit() {
|
|
43986
|
-
this.formData.fileUrl;
|
|
43987
43986
|
this.$emit("submit", {
|
|
43988
|
-
...this.formData
|
|
43987
|
+
...this.formData,
|
|
43988
|
+
onlineUrl: this.formData.fileUrl
|
|
43989
43989
|
});
|
|
43990
43990
|
this.$refs.dialog.close();
|
|
43991
43991
|
},
|
|
@@ -44010,8 +44010,8 @@ var CustomLinkvue_type_template_id_01816d01_staticRenderFns = []
|
|
|
44010
44010
|
|
|
44011
44011
|
var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
44012
44012
|
component_CustomLinkvue_type_script_lang_js,
|
|
44013
|
-
|
|
44014
|
-
|
|
44013
|
+
CustomLinkvue_type_template_id_16ec7968_render,
|
|
44014
|
+
CustomLinkvue_type_template_id_16ec7968_staticRenderFns,
|
|
44015
44015
|
false,
|
|
44016
44016
|
null,
|
|
44017
44017
|
null,
|
|
@@ -44188,14 +44188,17 @@ const FILE_ICON_MAP = [{
|
|
|
44188
44188
|
type: Boolean,
|
|
44189
44189
|
default: true
|
|
44190
44190
|
},
|
|
44191
|
+
// 操作按钮权限
|
|
44191
44192
|
oprationAuth: {
|
|
44192
44193
|
type: Object,
|
|
44193
44194
|
default: () => {}
|
|
44194
44195
|
},
|
|
44196
|
+
// 最大上传数量
|
|
44195
44197
|
maxUpload: {
|
|
44196
44198
|
type: Number,
|
|
44197
44199
|
default: 0
|
|
44198
44200
|
},
|
|
44201
|
+
// 简单上传与分片上传的阈值
|
|
44199
44202
|
_simpleUploadThreshold: {
|
|
44200
44203
|
type: Number,
|
|
44201
44204
|
default: 50 * 1024 * 1024 // 50MB
|
|
@@ -44229,6 +44232,11 @@ const FILE_ICON_MAP = [{
|
|
|
44229
44232
|
this.$message.error("没有此网盘文件的预览权限!");
|
|
44230
44233
|
return;
|
|
44231
44234
|
}
|
|
44235
|
+
const urlReg = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/;
|
|
44236
|
+
if (!urlReg.test(item.onlineUrl)) {
|
|
44237
|
+
this.$message.error("无效的预览链接");
|
|
44238
|
+
return;
|
|
44239
|
+
}
|
|
44232
44240
|
window.open(item.onlineUrl);
|
|
44233
44241
|
},
|
|
44234
44242
|
downloadFile(item) {
|
|
@@ -44568,8 +44576,8 @@ const FILE_ICON_MAP = [{
|
|
|
44568
44576
|
});
|
|
44569
44577
|
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=script&lang=js
|
|
44570
44578
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
44571
|
-
// EXTERNAL MODULE: ./packages/upload/src/main.vue?vue&type=style&index=0&id=
|
|
44572
|
-
var
|
|
44579
|
+
// EXTERNAL MODULE: ./packages/upload/src/main.vue?vue&type=style&index=0&id=1b14089e&prod&lang=scss
|
|
44580
|
+
var mainvue_type_style_index_0_id_1b14089e_prod_lang_scss = __webpack_require__("2f12");
|
|
44573
44581
|
|
|
44574
44582
|
// CONCATENATED MODULE: ./packages/upload/src/main.vue
|
|
44575
44583
|
|