tenghui-ui 1.3.5 → 1.3.8

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/dist/style.css CHANGED
@@ -1 +1 @@
1
- .el-menu[data-v-1a7163e6]{width:100%;height:60px!important}.el-submenu .el-menu-item[data-v-1a7163e6]{min-width:unset}.el-submenu__title i[data-v-1a7163e6]{color:unset}.ui-tabs[data-v-e7fe9cfa]{border-bottom:1px solid #ebeef5;padding:0 10px;height:40px;background-color:#fff}.ui-tabs__item[data-v-e7fe9cfa]{float:left;height:31px;border-radius:6px 6px 0 0;border:1px solid #ebeef5;margin-top:10px;box-sizing:border-box;font-size:12px;line-height:30px;padding:0 10px;color:#c0c4cc;cursor:pointer;border-bottom-color:#fff;margin-right:1px;position:relative;transition:all .1s linear}.ui-tabs__item:hover .el-icon-error[data-v-e7fe9cfa]{opacity:1}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]{position:absolute;right:2px;top:50%;margin-top:-5px;opacity:0;transition:all .1s linear}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]:hover{color:#409effcc}.ui-tabs__item--active[data-v-e7fe9cfa]{color:#409effcc;padding-right:20px}.ui-tabs__item--active .el-icon-error[data-v-e7fe9cfa]{top:50%;right:5px;font-size:14px;margin-top:-5px;opacity:1}.el-icon-s-tools[data-v-575499bb]{font-size:20px;color:#fff;line-height:60px;margin-right:20px;cursor:pointer}[data-v-0a02be4b] .el-dialog__header{border-bottom:1px solid #ededed}[data-v-0a02be4b] .el-dialog__header .el-dialog__title{font-size:16px}[data-v-0a02be4b] .el-dialog__footer{border-top:1px solid #ededed}[data-v-0a02be4b] .el-dialog__body .el-form .el-select,[data-v-0a02be4b] .el-dialog__body .el-form .el-input,[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number{width:240px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number .el-input__inner{text-align:left}[data-v-0a02be4b] .el-dialog__body .el-form .ui-item__main{width:100%}[data-v-0a02be4b] .el-dialog__body .el-form .el-form-item__label{font-size:12px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input--small .el-input__icon{height:32px}.ui-form__item[data-v-acc84488]{display:flex;align-items:center;margin-right:15px}.ui-item__label[data-v-acc84488]{margin-right:10px;font-size:12px;width:70px;text-align:right}.ui-operation[data-v-3c6cb9f6]{padding:0 10px}.ui-search[data-v-07c7d454]{margin:10px 10px 0;padding:20px;background-color:#fff;border:1px solid #ebeef5;border-radius:4px}.ui-search__main[data-v-07c7d454]{display:flex}.ui-search__footer[data-v-07c7d454]{margin-top:10px}.ui-search[data-v-07c7d454] .ui-form__item{display:block}.ui-search[data-v-07c7d454] .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-table[data-v-9bc9b8e2]{padding:0 10px}.ui-table[data-v-9bc9b8e2] .el-table-column--selection .el-checkbox{display:block}.ui-table[data-v-9bc9b8e2] .el-tabs__header{margin-bottom:0;border-bottom:0 none;background:#FFF}.ui-table[data-v-9bc9b8e2] .el-tabs__header .el-tabs__item{height:32px;line-height:32px;font-size:12px}.ui-table[data-v-9bc9b8e2] .el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#409eff}.ui-pagination[data-v-9bc9b8e2]{text-align:center;padding:10px 0}.ui-table__tab[data-v-9bc9b8e2]{background-color:#fff}.ui-tab--loading[data-v-9bc9b8e2]{height:32px;line-height:32px}.ui-tab--loading span[data-v-9bc9b8e2]{font-size:12px;color:#999;display:inline-block;margin-left:5px}.ui-image--error[data-v-4d3de6d0]{text-align:center;color:#999;background-color:#efefef}
1
+ .el-menu[data-v-1a7163e6]{width:100%;height:60px!important}.el-submenu .el-menu-item[data-v-1a7163e6]{min-width:unset}.el-submenu__title i[data-v-1a7163e6]{color:unset}.ui-tabs[data-v-e7fe9cfa]{border-bottom:1px solid #ebeef5;padding:0 10px;height:40px;background-color:#fff}.ui-tabs__item[data-v-e7fe9cfa]{float:left;height:31px;border-radius:6px 6px 0 0;border:1px solid #ebeef5;margin-top:10px;box-sizing:border-box;font-size:12px;line-height:30px;padding:0 10px;color:#c0c4cc;cursor:pointer;border-bottom-color:#fff;margin-right:1px;position:relative;transition:all .1s linear}.ui-tabs__item:hover .el-icon-error[data-v-e7fe9cfa]{opacity:1}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]{position:absolute;right:2px;top:50%;margin-top:-5px;opacity:0;transition:all .1s linear}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]:hover{color:#409effcc}.ui-tabs__item--active[data-v-e7fe9cfa]{color:#409effcc;padding-right:20px}.ui-tabs__item--active .el-icon-error[data-v-e7fe9cfa]{top:50%;right:5px;font-size:14px;margin-top:-5px;opacity:1}.el-icon-s-tools[data-v-575499bb]{font-size:20px;color:#fff;line-height:60px;margin-right:20px;cursor:pointer}[data-v-0a02be4b] .el-dialog__header{border-bottom:1px solid #ededed}[data-v-0a02be4b] .el-dialog__header .el-dialog__title{font-size:16px}[data-v-0a02be4b] .el-dialog__footer{border-top:1px solid #ededed}[data-v-0a02be4b] .el-dialog__body .el-form .el-select,[data-v-0a02be4b] .el-dialog__body .el-form .el-input,[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number{width:240px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number .el-input__inner{text-align:left}[data-v-0a02be4b] .el-dialog__body .el-form .ui-item__main{width:100%}[data-v-0a02be4b] .el-dialog__body .el-form .el-form-item__label{font-size:12px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input--small .el-input__icon{height:32px}.ui-form__item[data-v-acc84488]{display:flex;align-items:center;margin-right:15px}.ui-item__label[data-v-acc84488]{margin-right:10px;font-size:12px;width:70px;text-align:right}.ui-operation[data-v-3c6cb9f6]{padding:0 10px}.ui-search[data-v-07c7d454]{margin:10px 10px 0;padding:20px;background-color:#fff;border:1px solid #ebeef5;border-radius:4px}.ui-search__main[data-v-07c7d454]{display:flex}.ui-search__footer[data-v-07c7d454]{margin-top:10px}.ui-search[data-v-07c7d454] .ui-form__item{display:block}.ui-search[data-v-07c7d454] .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-table[data-v-e600b21c]{padding:0 10px}.ui-table[data-v-e600b21c] .el-table-column--selection .el-checkbox{display:block}.ui-table[data-v-e600b21c] .el-tabs__header{margin-bottom:0;border-bottom:0 none;background:#FFF}.ui-table[data-v-e600b21c] .el-tabs__header .el-tabs__item{height:32px;line-height:32px;font-size:12px}.ui-table[data-v-e600b21c] .el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#409eff}.ui-pagination[data-v-e600b21c]{text-align:center;padding:10px 0}.ui-table__tab[data-v-e600b21c]{background-color:#fff}.ui-tab--loading[data-v-e600b21c]{height:32px;line-height:32px}.ui-tab--loading span[data-v-e600b21c]{font-size:12px;color:#999;display:inline-block;margin-left:5px}.ui-image--error[data-v-b81bcc3a]{text-align:center;color:#999;background-color:#efefef}
@@ -7471,10 +7471,10 @@ var render$1 = function() {
7471
7471
  _vm.checkTab = $$v;
7472
7472
  }, expression: "checkTab" } }, _vm._l(_vm.tabList, function(item) {
7473
7473
  return _c("el-tab-pane", { key: item.value, attrs: { "label": item.label, "name": item.value } });
7474
- }), 1) : _vm._e(), _vm._m(0)])], 2), _c("el-table", _vm._b({ ref: "myTable", attrs: { "highlightRow": "", "border": true, "data": _vm.tableData, "span-method": _vm.spanMethod }, on: { "selection-change": _vm.handleSelectionChange }, scopedSlots: _vm._u([{ key: "empty", fn: function() {
7474
+ }), 1) : _vm._e(), _vm._m(0)])], 2), _c("el-table", _vm._b({ ref: "myTable", attrs: { "highlightRow": "", "stripe": "", "border": true, "data": _vm.tableData, "span-method": _vm.spanMethod, "row-class-name": _vm.rowClassName }, on: { "selection-change": _vm.handleSelectionChange }, scopedSlots: _vm._u([{ key: "empty", fn: function() {
7475
7475
  return [!_vm.autoHeight ? _c("div", [_c("el-empty", { directives: [{ name: "show", rawName: "v-show", value: !_vm.tableData.length, expression: "!tableData.length" }], attrs: { "description": "\u6682\u65E0\u6570\u636E" } })], 1) : _vm._e()];
7476
7476
  }, proxy: true }]) }, "el-table", _vm._d({}, [_vm.isBindHeight, _vm.tableHeight, _vm.isBindMaxHeight, _vm.maxHeight])), [_vm.showSelect ? _c("el-table-column", { attrs: { "type": "selection", "width": "35", "selectable": _vm.selectable } }) : _vm._e(), _vm._l(_vm.tableTitle, function(item, index2) {
7477
- return _c("el-table-column", { key: _vm.tableProps[index2], attrs: { "minWidth": "60px", "label": item, "prop": _vm.tableProps[index2], "width": _vm.tableProps[index2] === "index" ? "60px" : _vm.tableColsWidth[index2] || "" }, scopedSlots: _vm._u([{ key: "header", fn: function(scope) {
7477
+ return _c("el-table-column", { key: _vm.tableProps[index2], attrs: { "minWidth": "60px", "label": item, "show-overflow-tooltip": _vm.tooltips.includes(_vm.tableProps[index2]), "prop": _vm.tableProps[index2], "width": _vm.tableProps[index2] === "index" ? "60px" : _vm.tableColsWidth[index2] || "" }, scopedSlots: _vm._u([{ key: "header", fn: function(scope) {
7478
7478
  return [_vm._t(_vm.tableProps[index2] + "Title", [_c("span", [_vm._v(_vm._s(item))])], { "row": item, "$index": scope.$index })];
7479
7479
  } }, { key: "default", fn: function(scope) {
7480
7480
  return [_vm.isPresetProp(_vm.tableProps[index2], _vm.$UICONFIG.tablePreset && _vm.$UICONFIG.tablePreset.separator) ? [_c("table-preset-prop", { attrs: { "tableProp": _vm.tableProps[index2], "row": scope.row } })] : _vm._t(_vm.tableProps[index2], [_c("span", [_vm._v(_vm._s(_vm.tableProps[index2] === "index" ? _vm.changeTableInx(scope.$index) : scope.row[_vm.tableProps[index2]]))])], { "row": scope.row, "$index": scope.$index })];
@@ -7548,6 +7548,17 @@ const __vue2_script$1 = {
7548
7548
  showTab: {
7549
7549
  type: Boolean,
7550
7550
  default: false
7551
+ },
7552
+ rowClassName: {
7553
+ type: Function,
7554
+ default({ row }) {
7555
+ }
7556
+ },
7557
+ tooltips: {
7558
+ type: Array,
7559
+ default() {
7560
+ return [];
7561
+ }
7551
7562
  }
7552
7563
  },
7553
7564
  data() {
@@ -7621,7 +7632,7 @@ const __vue2_script$1 = {
7621
7632
  }
7622
7633
  };
7623
7634
  const __cssModules$1 = {};
7624
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "9bc9b8e2", null, null);
7635
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "e600b21c", null, null);
7625
7636
  function __vue2_injectStyles$1(context) {
7626
7637
  for (let o in __cssModules$1) {
7627
7638
  this[o] = __cssModules$1[o];
@@ -7638,11 +7649,11 @@ var render4 = function() {
7638
7649
  var _vm = this;
7639
7650
  var _h = _vm.$createElement;
7640
7651
  var _c = _vm._self._c || _h;
7641
- return _c("el-image", { ref: "imageRef", style: { width: _vm.sizeMain }, attrs: { "src": _vm.srcMain, "preview-src-list": _vm.previewList }, scopedSlots: _vm._u([{ key: "placeholder", fn: function() {
7652
+ return _vm.show ? _c("el-image", { ref: "imageRef", style: { width: _vm.sizeMain }, attrs: { "scroll-container": ".el-table__body-wrapper", "src": _vm.srcMain, "preview-src-list": _vm.previewList, "lazy": _vm.lazy }, scopedSlots: _vm._u([{ key: "placeholder", fn: function() {
7642
7653
  return [_c("div", { directives: [{ name: "loading", rawName: "v-loading", value: true, expression: "true" }], staticClass: "ui-image--loading", style: { width: _vm.sizeMain, height: _vm.height } })];
7643
7654
  }, proxy: true }, { key: "error", fn: function() {
7644
7655
  return [_c("div", { staticClass: "ui-image--error", style: { width: _vm.sizeMain, height: _vm.height, lineHeight: _vm.height, fontSize: _vm.fontSize } }, [_c("i", { staticClass: "el-icon-picture-outline" })])];
7645
- }, proxy: true }]) });
7656
+ }, proxy: true }], null, false, 4245906892) }) : _vm._e();
7646
7657
  };
7647
7658
  var staticRenderFns = [];
7648
7659
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
@@ -7664,11 +7675,16 @@ const __vue2_script = {
7664
7675
  default() {
7665
7676
  return [];
7666
7677
  }
7678
+ },
7679
+ lazy: {
7680
+ type: Boolean,
7681
+ default: false
7667
7682
  }
7668
7683
  },
7669
7684
  data() {
7670
7685
  return {
7671
- height: ""
7686
+ height: "",
7687
+ show: false
7672
7688
  };
7673
7689
  },
7674
7690
  computed: {
@@ -7701,12 +7717,15 @@ const __vue2_script = {
7701
7717
  }
7702
7718
  },
7703
7719
  async mounted() {
7704
- await this.$nextTick();
7705
- this.height = `${this.$refs.imageRef.$el.offsetWidth}px`;
7720
+ setTimeout(async () => {
7721
+ this.show = true;
7722
+ await this.$nextTick();
7723
+ this.height = `${this.$refs.imageRef.$el.offsetWidth}px`;
7724
+ }, 300);
7706
7725
  }
7707
7726
  };
7708
7727
  const __cssModules = {};
7709
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render4, staticRenderFns, false, __vue2_injectStyles, "4d3de6d0", null, null);
7728
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render4, staticRenderFns, false, __vue2_injectStyles, "b81bcc3a", null, null);
7710
7729
  function __vue2_injectStyles(context) {
7711
7730
  for (let o in __cssModules) {
7712
7731
  this[o] = __cssModules[o];
@@ -7740,7 +7759,7 @@ const install = (Vue2, ops = { config: {} }) => {
7740
7759
  image(row, { field, params }) {
7741
7760
  const src2 = row[field].split("|");
7742
7761
  const size = params.size || 59;
7743
- return ["com-image", { attrs: { src: src2, size } }];
7762
+ return ["com-image", { attrs: { src: src2, size, lazy: true } }];
7744
7763
  },
7745
7764
  link(row, { field, params }) {
7746
7765
  const text = row[field];