htui-yllkbz 1.3.4 → 1.3.5

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.
@@ -4157,6 +4157,13 @@ module.exports = function (NAME) {
4157
4157
  };
4158
4158
 
4159
4159
 
4160
+ /***/ }),
4161
+
4162
+ /***/ "7814":
4163
+ /***/ (function(module, exports, __webpack_require__) {
4164
+
4165
+ // extracted by mini-css-extract-plugin
4166
+
4160
4167
  /***/ }),
4161
4168
 
4162
4169
  /***/ "7839":
@@ -4555,17 +4562,6 @@ module.exports = function (it) {
4555
4562
  };
4556
4563
 
4557
4564
 
4558
- /***/ }),
4559
-
4560
- /***/ "880d":
4561
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4562
-
4563
- "use strict";
4564
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5bf60135_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e283");
4565
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5bf60135_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5bf60135_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
4566
- /* unused harmony reexport * */
4567
-
4568
-
4569
4565
  /***/ }),
4570
4566
 
4571
4567
  /***/ "8875":
@@ -8614,6 +8610,17 @@ module.exports = function (it, TAG, STATIC) {
8614
8610
  };
8615
8611
 
8616
8612
 
8613
+ /***/ }),
8614
+
8615
+ /***/ "d5e9":
8616
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8617
+
8618
+ "use strict";
8619
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_443585d4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7814");
8620
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_443585d4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_443585d4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
8621
+ /* unused harmony reexport * */
8622
+
8623
+
8617
8624
  /***/ }),
8618
8625
 
8619
8626
  /***/ "d784":
@@ -9369,13 +9376,6 @@ addToUnscopables('values');
9369
9376
  addToUnscopables('entries');
9370
9377
 
9371
9378
 
9372
- /***/ }),
9373
-
9374
- /***/ "e283":
9375
- /***/ (function(module, exports, __webpack_require__) {
9376
-
9377
- // extracted by mini-css-extract-plugin
9378
-
9379
9379
  /***/ }),
9380
9380
 
9381
9381
  /***/ "e2cc":
@@ -12254,12 +12254,12 @@ var es_string_replace = __webpack_require__("5319");
12254
12254
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
12255
12255
  var es_string_split = __webpack_require__("1276");
12256
12256
 
12257
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtUploadFiles/index.vue?vue&type=template&id=5bf60135&scoped=true&
12258
- var HtUploadFilesvue_type_template_id_5bf60135_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.disabled)?_c('el-upload',{staticClass:"ht-upload",staticStyle:{"width":"368px","height":"108px"},attrs:{"show-file-list":false,"disabled":_vm.disabled,"on-success":_vm.onSuccess,"before-upload":_vm.beforeUpload,"drag":"","action":"/files/api/filing/file/upload","multiple":""}},[_c('div',{staticClass:"el-upload__text",staticStyle:{"margin-top":"8px","font-size":"12px","color":"#999"}},[_vm._v("拖动文件到此处,或"),_c('br'),_c('em',[_vm._v("点击上传")])])]):_vm._e(),_c('ul',{staticClass:"ht-ul-upload"},_vm._l((_vm.state.filesInfo),function(item,index){return _c('li',{key:item.fileToken},[_c('a',{on:{"click":function($event){return _vm.downLoadFile(item)}}},[_c('i',{staticClass:"le-icon el-icon-document",staticStyle:{"margin-right":"7px"}}),_vm._v(_vm._s(item.fileName))]),_c('span',[(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-circle-check"}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-close",attrs:{"title":"删除"},on:{"click":function($event){return _vm.delItem(item,index)}}}):_vm._e(),_c('i',{staticClass:"el-icon el-icon-download",staticStyle:{"margin-right":"24px"},attrs:{"title":"下载"},on:{"click":function($event){return _vm.downLoadFile(item)}}})])])}),0),_c('a',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],ref:"download1",attrs:{"href":_vm.state.fileSrc,"target":"_blank"}})],1)}
12259
- var HtUploadFilesvue_type_template_id_5bf60135_scoped_true_staticRenderFns = []
12257
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtUploadFiles/index.vue?vue&type=template&id=443585d4&scoped=true&
12258
+ var HtUploadFilesvue_type_template_id_443585d4_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.disabled)?_c('el-upload',{staticClass:"ht-upload",staticStyle:{"width":"368px","height":"108px"},attrs:{"show-file-list":false,"disabled":_vm.disabled,"on-success":_vm.onSuccess,"before-upload":_vm.beforeUpload,"drag":"","action":"/files/api/filing/file/upload","multiple":""}},[_c('div',{staticClass:"el-upload__text",staticStyle:{"margin-top":"8px","font-size":"12px","color":"#999"}},[_vm._v("拖动文件到此处,或"),_c('br'),_c('em',[_vm._v("点击上传")])])]):_vm._e(),_c('ul',{staticClass:"ht-ul-upload"},_vm._l((_vm.state.filesInfo),function(item,index){return _c('li',{key:item.fileToken},[_c('a',{on:{"click":function($event){return _vm.downLoadFile(item)}}},[_c('i',{staticClass:"le-icon el-icon-document",staticStyle:{"margin-right":"7px"}}),_vm._v(_vm._s(item.fileName))]),_c('span',[(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-circle-check"}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-close",attrs:{"title":"删除"},on:{"click":function($event){return _vm.delItem(item,index)}}}):_vm._e(),_c('i',{staticClass:"el-icon el-icon-download",staticStyle:{"margin-right":"24px"},attrs:{"title":"下载"},on:{"click":function($event){return _vm.downLoadFile(item)}}})])])}),0),_c('a',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],ref:"download1",attrs:{"href":_vm.state.fileSrc,"target":"_blank"}})],1)}
12259
+ var HtUploadFilesvue_type_template_id_443585d4_scoped_true_staticRenderFns = []
12260
12260
 
12261
12261
 
12262
- // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=template&id=5bf60135&scoped=true&
12262
+ // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=template&id=443585d4&scoped=true&
12263
12263
 
12264
12264
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
12265
12265
  var es_array_splice = __webpack_require__("a434");
@@ -12505,18 +12505,30 @@ var HtUploadFilesvue_type_script_lang_ts_HtUploadFiles = /*#__PURE__*/function (
12505
12505
  }, {
12506
12506
  key: "onFileToken",
12507
12507
  value: function onFileToken(val, old) {
12508
- if (!this.readonly) {
12508
+ if (!this.readonly && !this.isArray) {
12509
12509
  var arr = [];
12510
12510
  val.forEach(function (item) {
12511
12511
  if (item.fileToken) arr.push(item.fileToken);
12512
12512
  });
12513
12513
  this.$emit("input", arr.toString());
12514
+ this.$emit("change", arr.toString());
12515
+ }
12516
+
12517
+ if (this.isArray) {
12518
+ this.$emit("change", val);
12519
+ }
12520
+ }
12521
+ }, {
12522
+ key: "onArrValue",
12523
+ value: function onArrValue(val) {
12524
+ if (this.isArray) {
12525
+ this.state.filesInfo = val || [];
12514
12526
  }
12515
12527
  }
12516
12528
  }, {
12517
12529
  key: "onValue",
12518
12530
  value: function onValue(val) {
12519
- if (val) {
12531
+ if (val && !this.isArray) {
12520
12532
  this.state.fileToken = val.split(",");
12521
12533
  this.getAllFileInfo();
12522
12534
  } else {
@@ -12545,10 +12557,18 @@ __decorate([Prop({
12545
12557
 
12546
12558
  __decorate([Prop()], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "disabled", void 0);
12547
12559
 
12560
+ __decorate([Prop({
12561
+ default: false
12562
+ })], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "isArray", void 0);
12563
+
12548
12564
  __decorate([Prop()], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "filesInfo", void 0);
12549
12565
 
12550
12566
  __decorate([Watch("state.filesInfo")], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "onFileToken", null);
12551
12567
 
12568
+ __decorate([Watch("filesInfo", {
12569
+ immediate: true
12570
+ })], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "onArrValue", null);
12571
+
12552
12572
  __decorate([Watch("value")], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "onValue", null);
12553
12573
 
12554
12574
  HtUploadFilesvue_type_script_lang_ts_HtUploadFiles = __decorate([vue_class_component_esm({
@@ -12557,8 +12577,8 @@ HtUploadFilesvue_type_script_lang_ts_HtUploadFiles = __decorate([vue_class_compo
12557
12577
  /* harmony default export */ var HtUploadFilesvue_type_script_lang_ts_ = (HtUploadFilesvue_type_script_lang_ts_HtUploadFiles);
12558
12578
  // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=script&lang=ts&
12559
12579
  /* harmony default export */ var packages_HtUploadFilesvue_type_script_lang_ts_ = (HtUploadFilesvue_type_script_lang_ts_);
12560
- // EXTERNAL MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=style&index=0&id=5bf60135&lang=scss&scoped=true&
12561
- var HtUploadFilesvue_type_style_index_0_id_5bf60135_lang_scss_scoped_true_ = __webpack_require__("880d");
12580
+ // EXTERNAL MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=style&index=0&id=443585d4&lang=scss&scoped=true&
12581
+ var HtUploadFilesvue_type_style_index_0_id_443585d4_lang_scss_scoped_true_ = __webpack_require__("d5e9");
12562
12582
 
12563
12583
  // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue
12564
12584
 
@@ -12571,11 +12591,11 @@ var HtUploadFilesvue_type_style_index_0_id_5bf60135_lang_scss_scoped_true_ = __w
12571
12591
 
12572
12592
  var HtUploadFiles_component = normalizeComponent(
12573
12593
  packages_HtUploadFilesvue_type_script_lang_ts_,
12574
- HtUploadFilesvue_type_template_id_5bf60135_scoped_true_render,
12575
- HtUploadFilesvue_type_template_id_5bf60135_scoped_true_staticRenderFns,
12594
+ HtUploadFilesvue_type_template_id_443585d4_scoped_true_render,
12595
+ HtUploadFilesvue_type_template_id_443585d4_scoped_true_staticRenderFns,
12576
12596
  false,
12577
12597
  null,
12578
- "5bf60135",
12598
+ "443585d4",
12579
12599
  null
12580
12600
 
12581
12601
  )
Binary file
package/lib/htui.css CHANGED
@@ -1 +1 @@
1
- body{margin:0}.ht-contnet{position:relative}.ht-contnet .ht-close{position:absolute;padding:0;width:16px;height:16px;top:8px;right:8px;color:#ccc;float:right}.ht-ul-upload li[data-v-5bf60135]{width:100%;list-style:none;height:40px;line-height:40px;padding:0 8px;display:flex;justify-content:space-between;cursor:pointer}.ht-ul-upload li a[data-v-5bf60135]{color:#606266;font-size:12px}.ht-ul-upload li .el-icon-close[data-v-5bf60135]{display:none}.ht-ul-upload li[data-v-5bf60135]:hover{background:#eee}.ht-ul-upload li:hover a[data-v-5bf60135]{color:var(--primary)}.ht-ul-upload li:hover .el-icon-close[data-v-5bf60135]{display:block;line-height:40px}.ht-ul-upload li:hover .el-icon-circle-check[data-v-5bf60135]{display:none}.ht-ul-upload li .el-icon-circle-check[data-v-5bf60135]{color:var(--primary)}.files-view .only-show>.el-upload{display:none}.files-view .only-show li{width:70px;height:54px;float:left;margin:8px 8px 0 0!important}.files-view .only-show li div{width:70px!important;height:54px}.files-view .only-show li div img{width:70px;height:54px}@font-face{font-family:fontello;src:url(fonts/fontello.e73a0647.eot);src:url(fonts/fontello.e73a0647.eot#iefix) format("embedded-opentype"),url(fonts/fontello.8d4a4e6f.woff2) format("woff2"),url(fonts/fontello.a782baa8.woff) format("woff"),url(fonts/fontello.068ca2b3.ttf) format("truetype"),url(img/fontello.9354499c.svg#fontello) format("svg");font-weight:400;font-style:normal}[class*=" fa-mavon-"]:before,[class^=fa-mavon-]:before{font-family:fontello;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-mavon-bold:before{content:"\E800"}.fa-mavon-italic:before{content:"\E801"}.fa-mavon-thumb-tack:before{content:"\E802"}.fa-mavon-link:before{content:"\E803"}.fa-mavon-picture-o:before{content:"\E804"}.fa-mavon-repeat:before{content:"\E805"}.fa-mavon-undo:before{content:"\E806"}.fa-mavon-trash-o:before{content:"\E807"}.fa-mavon-floppy-o:before{content:"\E808"}.fa-mavon-compress:before{content:"\E809"}.fa-mavon-eye:before{content:"\E80A"}.fa-mavon-eye-slash:before{content:"\E80B"}.fa-mavon-question-circle:before{content:"\E80C"}.fa-mavon-times:before{content:"\E80D"}.fa-mavon-align-left:before{content:"\E80F"}.fa-mavon-align-center:before{content:"\E810"}.fa-mavon-align-right:before{content:"\E811"}.fa-mavon-arrows-alt:before{content:"\F0B2"}.fa-mavon-bars:before{content:"\F0C9"}.fa-mavon-list-ul:before{content:"\F0CA"}.fa-mavon-list-ol:before{content:"\F0CB"}.fa-mavon-strikethrough:before{content:"\F0CC"}.fa-mavon-underline:before{content:"\F0CD"}.fa-mavon-table:before{content:"\F0CE"}.fa-mavon-columns:before{content:"\F0DB"}.fa-mavon-quote-left:before{content:"\F10D"}.fa-mavon-code:before{content:"\F121"}.fa-mavon-superscript:before{content:"\F12B"}.fa-mavon-subscript:before{content:"\F12C"}.fa-mavon-header:before{content:"\F1DC"}.fa-mavon-window-maximize:before{content:"\F2D0"}.markdown-body strong{font-weight:bolder}.markdown-body .hljs-center{text-align:center}.markdown-body .hljs-right{text-align:right}.markdown-body .hljs-left{text-align:left}.markdown-body .hljs{overflow:auto}
1
+ body{margin:0}.ht-contnet{position:relative}.ht-contnet .ht-close{position:absolute;padding:0;width:16px;height:16px;top:8px;right:8px;color:#ccc;float:right}.ht-ul-upload li[data-v-443585d4]{width:100%;list-style:none;height:40px;line-height:40px;padding:0 8px;display:flex;justify-content:space-between;cursor:pointer}.ht-ul-upload li a[data-v-443585d4]{color:#606266;font-size:12px}.ht-ul-upload li .el-icon-close[data-v-443585d4]{display:none}.ht-ul-upload li[data-v-443585d4]:hover{background:#eee}.ht-ul-upload li:hover a[data-v-443585d4]{color:var(--primary)}.ht-ul-upload li:hover .el-icon-close[data-v-443585d4]{display:block;line-height:40px}.ht-ul-upload li:hover .el-icon-circle-check[data-v-443585d4]{display:none}.ht-ul-upload li .el-icon-circle-check[data-v-443585d4]{color:var(--primary)}.files-view .only-show>.el-upload{display:none}.files-view .only-show li{width:70px;height:54px;float:left;margin:8px 8px 0 0!important}.files-view .only-show li div{width:70px!important;height:54px}.files-view .only-show li div img{width:70px;height:54px}@font-face{font-family:fontello;src:url(fonts/fontello.e73a0647.eot);src:url(fonts/fontello.e73a0647.eot#iefix) format("embedded-opentype"),url(fonts/fontello.8d4a4e6f.woff2) format("woff2"),url(fonts/fontello.a782baa8.woff) format("woff"),url(fonts/fontello.068ca2b3.ttf) format("truetype"),url(img/fontello.9354499c.svg#fontello) format("svg");font-weight:400;font-style:normal}[class*=" fa-mavon-"]:before,[class^=fa-mavon-]:before{font-family:fontello;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-mavon-bold:before{content:"\E800"}.fa-mavon-italic:before{content:"\E801"}.fa-mavon-thumb-tack:before{content:"\E802"}.fa-mavon-link:before{content:"\E803"}.fa-mavon-picture-o:before{content:"\E804"}.fa-mavon-repeat:before{content:"\E805"}.fa-mavon-undo:before{content:"\E806"}.fa-mavon-trash-o:before{content:"\E807"}.fa-mavon-floppy-o:before{content:"\E808"}.fa-mavon-compress:before{content:"\E809"}.fa-mavon-eye:before{content:"\E80A"}.fa-mavon-eye-slash:before{content:"\E80B"}.fa-mavon-question-circle:before{content:"\E80C"}.fa-mavon-times:before{content:"\E80D"}.fa-mavon-align-left:before{content:"\E80F"}.fa-mavon-align-center:before{content:"\E810"}.fa-mavon-align-right:before{content:"\E811"}.fa-mavon-arrows-alt:before{content:"\F0B2"}.fa-mavon-bars:before{content:"\F0C9"}.fa-mavon-list-ul:before{content:"\F0CA"}.fa-mavon-list-ol:before{content:"\F0CB"}.fa-mavon-strikethrough:before{content:"\F0CC"}.fa-mavon-underline:before{content:"\F0CD"}.fa-mavon-table:before{content:"\F0CE"}.fa-mavon-columns:before{content:"\F0DB"}.fa-mavon-quote-left:before{content:"\F10D"}.fa-mavon-code:before{content:"\F121"}.fa-mavon-superscript:before{content:"\F12B"}.fa-mavon-subscript:before{content:"\F12C"}.fa-mavon-header:before{content:"\F1DC"}.fa-mavon-window-maximize:before{content:"\F2D0"}.markdown-body strong{font-weight:bolder}.markdown-body .hljs-center{text-align:center}.markdown-body .hljs-right{text-align:right}.markdown-body .hljs-left{text-align:left}.markdown-body .hljs{overflow:auto}
package/lib/htui.umd.js CHANGED
@@ -4166,6 +4166,13 @@ module.exports = function (NAME) {
4166
4166
  };
4167
4167
 
4168
4168
 
4169
+ /***/ }),
4170
+
4171
+ /***/ "7814":
4172
+ /***/ (function(module, exports, __webpack_require__) {
4173
+
4174
+ // extracted by mini-css-extract-plugin
4175
+
4169
4176
  /***/ }),
4170
4177
 
4171
4178
  /***/ "7839":
@@ -4564,17 +4571,6 @@ module.exports = function (it) {
4564
4571
  };
4565
4572
 
4566
4573
 
4567
- /***/ }),
4568
-
4569
- /***/ "880d":
4570
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4571
-
4572
- "use strict";
4573
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5bf60135_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e283");
4574
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5bf60135_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5bf60135_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
4575
- /* unused harmony reexport * */
4576
-
4577
-
4578
4574
  /***/ }),
4579
4575
 
4580
4576
  /***/ "8875":
@@ -8623,6 +8619,17 @@ module.exports = function (it, TAG, STATIC) {
8623
8619
  };
8624
8620
 
8625
8621
 
8622
+ /***/ }),
8623
+
8624
+ /***/ "d5e9":
8625
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8626
+
8627
+ "use strict";
8628
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_443585d4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7814");
8629
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_443585d4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_443585d4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
8630
+ /* unused harmony reexport * */
8631
+
8632
+
8626
8633
  /***/ }),
8627
8634
 
8628
8635
  /***/ "d784":
@@ -9378,13 +9385,6 @@ addToUnscopables('values');
9378
9385
  addToUnscopables('entries');
9379
9386
 
9380
9387
 
9381
- /***/ }),
9382
-
9383
- /***/ "e283":
9384
- /***/ (function(module, exports, __webpack_require__) {
9385
-
9386
- // extracted by mini-css-extract-plugin
9387
-
9388
9388
  /***/ }),
9389
9389
 
9390
9390
  /***/ "e2cc":
@@ -12263,12 +12263,12 @@ var es_string_replace = __webpack_require__("5319");
12263
12263
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
12264
12264
  var es_string_split = __webpack_require__("1276");
12265
12265
 
12266
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtUploadFiles/index.vue?vue&type=template&id=5bf60135&scoped=true&
12267
- var HtUploadFilesvue_type_template_id_5bf60135_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.disabled)?_c('el-upload',{staticClass:"ht-upload",staticStyle:{"width":"368px","height":"108px"},attrs:{"show-file-list":false,"disabled":_vm.disabled,"on-success":_vm.onSuccess,"before-upload":_vm.beforeUpload,"drag":"","action":"/files/api/filing/file/upload","multiple":""}},[_c('div',{staticClass:"el-upload__text",staticStyle:{"margin-top":"8px","font-size":"12px","color":"#999"}},[_vm._v("拖动文件到此处,或"),_c('br'),_c('em',[_vm._v("点击上传")])])]):_vm._e(),_c('ul',{staticClass:"ht-ul-upload"},_vm._l((_vm.state.filesInfo),function(item,index){return _c('li',{key:item.fileToken},[_c('a',{on:{"click":function($event){return _vm.downLoadFile(item)}}},[_c('i',{staticClass:"le-icon el-icon-document",staticStyle:{"margin-right":"7px"}}),_vm._v(_vm._s(item.fileName))]),_c('span',[(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-circle-check"}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-close",attrs:{"title":"删除"},on:{"click":function($event){return _vm.delItem(item,index)}}}):_vm._e(),_c('i',{staticClass:"el-icon el-icon-download",staticStyle:{"margin-right":"24px"},attrs:{"title":"下载"},on:{"click":function($event){return _vm.downLoadFile(item)}}})])])}),0),_c('a',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],ref:"download1",attrs:{"href":_vm.state.fileSrc,"target":"_blank"}})],1)}
12268
- var HtUploadFilesvue_type_template_id_5bf60135_scoped_true_staticRenderFns = []
12266
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48d53131-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtUploadFiles/index.vue?vue&type=template&id=443585d4&scoped=true&
12267
+ var HtUploadFilesvue_type_template_id_443585d4_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.disabled)?_c('el-upload',{staticClass:"ht-upload",staticStyle:{"width":"368px","height":"108px"},attrs:{"show-file-list":false,"disabled":_vm.disabled,"on-success":_vm.onSuccess,"before-upload":_vm.beforeUpload,"drag":"","action":"/files/api/filing/file/upload","multiple":""}},[_c('div',{staticClass:"el-upload__text",staticStyle:{"margin-top":"8px","font-size":"12px","color":"#999"}},[_vm._v("拖动文件到此处,或"),_c('br'),_c('em',[_vm._v("点击上传")])])]):_vm._e(),_c('ul',{staticClass:"ht-ul-upload"},_vm._l((_vm.state.filesInfo),function(item,index){return _c('li',{key:item.fileToken},[_c('a',{on:{"click":function($event){return _vm.downLoadFile(item)}}},[_c('i',{staticClass:"le-icon el-icon-document",staticStyle:{"margin-right":"7px"}}),_vm._v(_vm._s(item.fileName))]),_c('span',[(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-circle-check"}):_vm._e(),(!_vm.disabled)?_c('i',{staticClass:"el-icon el-icon-close",attrs:{"title":"删除"},on:{"click":function($event){return _vm.delItem(item,index)}}}):_vm._e(),_c('i',{staticClass:"el-icon el-icon-download",staticStyle:{"margin-right":"24px"},attrs:{"title":"下载"},on:{"click":function($event){return _vm.downLoadFile(item)}}})])])}),0),_c('a',{directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],ref:"download1",attrs:{"href":_vm.state.fileSrc,"target":"_blank"}})],1)}
12268
+ var HtUploadFilesvue_type_template_id_443585d4_scoped_true_staticRenderFns = []
12269
12269
 
12270
12270
 
12271
- // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=template&id=5bf60135&scoped=true&
12271
+ // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=template&id=443585d4&scoped=true&
12272
12272
 
12273
12273
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
12274
12274
  var es_array_splice = __webpack_require__("a434");
@@ -12514,18 +12514,30 @@ var HtUploadFilesvue_type_script_lang_ts_HtUploadFiles = /*#__PURE__*/function (
12514
12514
  }, {
12515
12515
  key: "onFileToken",
12516
12516
  value: function onFileToken(val, old) {
12517
- if (!this.readonly) {
12517
+ if (!this.readonly && !this.isArray) {
12518
12518
  var arr = [];
12519
12519
  val.forEach(function (item) {
12520
12520
  if (item.fileToken) arr.push(item.fileToken);
12521
12521
  });
12522
12522
  this.$emit("input", arr.toString());
12523
+ this.$emit("change", arr.toString());
12524
+ }
12525
+
12526
+ if (this.isArray) {
12527
+ this.$emit("change", val);
12528
+ }
12529
+ }
12530
+ }, {
12531
+ key: "onArrValue",
12532
+ value: function onArrValue(val) {
12533
+ if (this.isArray) {
12534
+ this.state.filesInfo = val || [];
12523
12535
  }
12524
12536
  }
12525
12537
  }, {
12526
12538
  key: "onValue",
12527
12539
  value: function onValue(val) {
12528
- if (val) {
12540
+ if (val && !this.isArray) {
12529
12541
  this.state.fileToken = val.split(",");
12530
12542
  this.getAllFileInfo();
12531
12543
  } else {
@@ -12554,10 +12566,18 @@ __decorate([Prop({
12554
12566
 
12555
12567
  __decorate([Prop()], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "disabled", void 0);
12556
12568
 
12569
+ __decorate([Prop({
12570
+ default: false
12571
+ })], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "isArray", void 0);
12572
+
12557
12573
  __decorate([Prop()], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "filesInfo", void 0);
12558
12574
 
12559
12575
  __decorate([Watch("state.filesInfo")], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "onFileToken", null);
12560
12576
 
12577
+ __decorate([Watch("filesInfo", {
12578
+ immediate: true
12579
+ })], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "onArrValue", null);
12580
+
12561
12581
  __decorate([Watch("value")], HtUploadFilesvue_type_script_lang_ts_HtUploadFiles.prototype, "onValue", null);
12562
12582
 
12563
12583
  HtUploadFilesvue_type_script_lang_ts_HtUploadFiles = __decorate([vue_class_component_esm({
@@ -12566,8 +12586,8 @@ HtUploadFilesvue_type_script_lang_ts_HtUploadFiles = __decorate([vue_class_compo
12566
12586
  /* harmony default export */ var HtUploadFilesvue_type_script_lang_ts_ = (HtUploadFilesvue_type_script_lang_ts_HtUploadFiles);
12567
12587
  // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=script&lang=ts&
12568
12588
  /* harmony default export */ var packages_HtUploadFilesvue_type_script_lang_ts_ = (HtUploadFilesvue_type_script_lang_ts_);
12569
- // EXTERNAL MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=style&index=0&id=5bf60135&lang=scss&scoped=true&
12570
- var HtUploadFilesvue_type_style_index_0_id_5bf60135_lang_scss_scoped_true_ = __webpack_require__("880d");
12589
+ // EXTERNAL MODULE: ./src/packages/HtUploadFiles/index.vue?vue&type=style&index=0&id=443585d4&lang=scss&scoped=true&
12590
+ var HtUploadFilesvue_type_style_index_0_id_443585d4_lang_scss_scoped_true_ = __webpack_require__("d5e9");
12571
12591
 
12572
12592
  // CONCATENATED MODULE: ./src/packages/HtUploadFiles/index.vue
12573
12593
 
@@ -12580,11 +12600,11 @@ var HtUploadFilesvue_type_style_index_0_id_5bf60135_lang_scss_scoped_true_ = __w
12580
12600
 
12581
12601
  var HtUploadFiles_component = normalizeComponent(
12582
12602
  packages_HtUploadFilesvue_type_script_lang_ts_,
12583
- HtUploadFilesvue_type_template_id_5bf60135_scoped_true_render,
12584
- HtUploadFilesvue_type_template_id_5bf60135_scoped_true_staticRenderFns,
12603
+ HtUploadFilesvue_type_template_id_443585d4_scoped_true_render,
12604
+ HtUploadFilesvue_type_template_id_443585d4_scoped_true_staticRenderFns,
12585
12605
  false,
12586
12606
  null,
12587
- "5bf60135",
12607
+ "443585d4",
12588
12608
  null
12589
12609
 
12590
12610
  )
Binary file