@leevan/jtui 2.0.24 → 2.0.25
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/examples/tableTest/table-ptbg.vue +2 -2
- package/lib/jtui.common.js +54 -50
- package/lib/jtui.umd.js +54 -50
- package/lib/jtui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/jt-table/index.vue +10 -7
- package/packages/jt-table-pc/data2.js +1 -1
|
@@ -131,11 +131,11 @@ import { data1 } from '../data2';
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
created(){
|
|
134
|
-
const res =
|
|
134
|
+
const res = data23();
|
|
135
135
|
this.tableData[0].retjson = res[0].retjson;
|
|
136
136
|
},
|
|
137
137
|
mounted(){
|
|
138
|
-
const res =
|
|
138
|
+
const res = data23();
|
|
139
139
|
let timeId = setTimeout(()=>{
|
|
140
140
|
this.$refs.tablePtbg.loadData(res[0].DataArray);
|
|
141
141
|
clearTimeout(timeId);
|
package/lib/jtui.common.js
CHANGED
|
@@ -231258,7 +231258,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
231258
231258
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
231259
231259
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
231260
231260
|
|
|
231261
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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!./packages/jt-table/index.vue?vue&type=template&id=
|
|
231261
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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!./packages/jt-table/index.vue?vue&type=template&id=bf10b30e&
|
|
231262
231262
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tableStyle-2",class:_vm.isWrap ? 'isWrap' : '',staticStyle:{"position":"absolute","top":"1px","left":"1px","right":"1px","bottom":"1px"}},[(_vm.isTool)?_c('div',{staticStyle:{"position":"relative"}},[_c('vxe-toolbar',{staticClass:"jt-toolbar",attrs:{"custom":{ icon: 'jtIcon iconpeizhi41 colStyle' }}})],1):_vm._e(),(_vm.tableType === 'default')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"height":"auto","size":"mini","show-overflow":"","show-header-overflow":"","auto-resize":"","resizable":"","highlight-current-row":"","highlight-current-column":"","keep-source":"","id":_vm.id,"data":_vm.data.DataArray,"stripe":_vm.stripe,"border":_vm.border,"max-height":_vm.maxHeight,"show-footer":_vm.isFooter,"footer-method":_vm.footerMethod,"footer-span-method":_vm.footerColspanMethod,"footer-cell-class-name":_vm.footerCellClassName,"loading":_vm.loading,"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"header-cell-class-name":_vm.headerClass,"span-method":_vm.spanMethod,"scroll-y":{ mode: 'wheel' },"sort-config":{ sortMethod: _vm.sortMethod },"radio-config":{ checkRowKey: null },"keyboard-config":{ isArrow: true },"checkbox-config":{ highlight: true },"export-config":{
|
|
231263
231263
|
type: 'xlsx',
|
|
231264
231264
|
types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
|
|
@@ -231358,7 +231358,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
|
|
|
231358
231358
|
var staticRenderFns = []
|
|
231359
231359
|
|
|
231360
231360
|
|
|
231361
|
-
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=
|
|
231361
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=bf10b30e&
|
|
231362
231362
|
|
|
231363
231363
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231364
231364
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -231453,21 +231453,6 @@ function _defineProperty(obj, key, value) {
|
|
|
231453
231453
|
|
|
231454
231454
|
return obj;
|
|
231455
231455
|
}
|
|
231456
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
231457
|
-
function _arrayLikeToArray(arr, len) {
|
|
231458
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
231459
|
-
|
|
231460
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
231461
|
-
arr2[i] = arr[i];
|
|
231462
|
-
}
|
|
231463
|
-
|
|
231464
|
-
return arr2;
|
|
231465
|
-
}
|
|
231466
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
231467
|
-
|
|
231468
|
-
function _arrayWithoutHoles(arr) {
|
|
231469
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
231470
|
-
}
|
|
231471
231456
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
231472
231457
|
var es_symbol = __webpack_require__("a4d3");
|
|
231473
231458
|
|
|
@@ -231477,9 +231462,6 @@ var es_symbol_description = __webpack_require__("e01a");
|
|
|
231477
231462
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
|
231478
231463
|
var es_symbol_iterator = __webpack_require__("d28b");
|
|
231479
231464
|
|
|
231480
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
231481
|
-
var es_array_from = __webpack_require__("a630");
|
|
231482
|
-
|
|
231483
231465
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
231484
231466
|
var es_array_iterator = __webpack_require__("e260");
|
|
231485
231467
|
|
|
@@ -231489,6 +231471,47 @@ var es_string_iterator = __webpack_require__("3ca3");
|
|
|
231489
231471
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
231490
231472
|
var web_dom_collections_iterator = __webpack_require__("ddb0");
|
|
231491
231473
|
|
|
231474
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
231475
|
+
|
|
231476
|
+
|
|
231477
|
+
|
|
231478
|
+
|
|
231479
|
+
|
|
231480
|
+
|
|
231481
|
+
|
|
231482
|
+
function _typeof(obj) {
|
|
231483
|
+
"@babel/helpers - typeof";
|
|
231484
|
+
|
|
231485
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
231486
|
+
_typeof = function _typeof(obj) {
|
|
231487
|
+
return typeof obj;
|
|
231488
|
+
};
|
|
231489
|
+
} else {
|
|
231490
|
+
_typeof = function _typeof(obj) {
|
|
231491
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
231492
|
+
};
|
|
231493
|
+
}
|
|
231494
|
+
|
|
231495
|
+
return _typeof(obj);
|
|
231496
|
+
}
|
|
231497
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
231498
|
+
function _arrayLikeToArray(arr, len) {
|
|
231499
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
231500
|
+
|
|
231501
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
231502
|
+
arr2[i] = arr[i];
|
|
231503
|
+
}
|
|
231504
|
+
|
|
231505
|
+
return arr2;
|
|
231506
|
+
}
|
|
231507
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
231508
|
+
|
|
231509
|
+
function _arrayWithoutHoles(arr) {
|
|
231510
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
231511
|
+
}
|
|
231512
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
231513
|
+
var es_array_from = __webpack_require__("a630");
|
|
231514
|
+
|
|
231492
231515
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
231493
231516
|
|
|
231494
231517
|
|
|
@@ -231797,6 +231820,7 @@ var component = normalizeComponent(
|
|
|
231797
231820
|
|
|
231798
231821
|
|
|
231799
231822
|
|
|
231823
|
+
|
|
231800
231824
|
//
|
|
231801
231825
|
//
|
|
231802
231826
|
//
|
|
@@ -232885,6 +232909,9 @@ var component = normalizeComponent(
|
|
|
232885
232909
|
};
|
|
232886
232910
|
}
|
|
232887
232911
|
},
|
|
232912
|
+
objectTxt: function objectTxt(cellValue) {
|
|
232913
|
+
return _typeof(cellValue) == 'object' ? JSON.stringify(cellValue) : cellValue;
|
|
232914
|
+
},
|
|
232888
232915
|
//枚举转换
|
|
232889
232916
|
formatEnum: function formatEnum(_ref) {
|
|
232890
232917
|
var column = _ref.column,
|
|
@@ -232908,38 +232935,38 @@ var component = normalizeComponent(
|
|
|
232908
232935
|
str += "<span \n class=\"jtIcon ".concat(item.icon, "\" style=\"\n color:").concat(item.color, ";\n font-size:").concat(item.size, "px;\n margin-right:").concat(item.margin || "8", "px\"\n onclick=\"iconItem(").concat(i, ")\"\n ></span>");
|
|
232909
232936
|
}
|
|
232910
232937
|
});
|
|
232911
|
-
return str ? str : cellValue;
|
|
232938
|
+
return str ? str : this.objectTxt(cellValue);
|
|
232912
232939
|
} else {
|
|
232913
232940
|
var item = data.html.find(function (item) {
|
|
232914
232941
|
return item.value == cellValue;
|
|
232915
232942
|
});
|
|
232916
|
-
return item ? "<span class=\"jtIcon ".concat(item.icon, "\" style=\"color:").concat(item.color, ";font-size:").concat(item.size, "px\"></span>") : cellValue;
|
|
232943
|
+
return item ? "<span class=\"jtIcon ".concat(item.icon, "\" style=\"color:").concat(item.color, ";font-size:").concat(item.size, "px\"></span>") : this.objectTxt(cellValue);
|
|
232917
232944
|
}
|
|
232918
232945
|
} else if (data.htmlType == "a") {
|
|
232919
232946
|
var _item = data.html.find(function (item) {
|
|
232920
232947
|
return item.value == cellValue;
|
|
232921
232948
|
});
|
|
232922
232949
|
|
|
232923
|
-
return _item ? "<a href=\"javascript:\">".concat(cellValue, "</a>") : cellValue;
|
|
232950
|
+
return _item ? "<a href=\"javascript:\">".concat(cellValue, "</a>") : this.objectTxt(cellValue);
|
|
232924
232951
|
} else if (data.htmlType == 'tag') {
|
|
232925
232952
|
var _item2 = data.html.find(function (item) {
|
|
232926
232953
|
return item.value == cellValue;
|
|
232927
232954
|
});
|
|
232928
232955
|
|
|
232929
|
-
return _item2 ? "<span style=\"\n display:inline-block;\n background-color: #fdf6ec;\n height: 26px;\n padding: 0 10px;\n line-height: 26px;\n font-size: 12px;\n color: #e6a23c;\n border: 1px solid #d9ecff;\n border-radius: 4px;\n box-sizing: border-box;\n white-space: nowrap;\n \">".concat(_item2.label, "</span>") : cellValue;
|
|
232956
|
+
return _item2 ? "<span style=\"\n display:inline-block;\n background-color: #fdf6ec;\n height: 26px;\n padding: 0 10px;\n line-height: 26px;\n font-size: 12px;\n color: #e6a23c;\n border: 1px solid #d9ecff;\n border-radius: 4px;\n box-sizing: border-box;\n white-space: nowrap;\n \">".concat(_item2.label, "</span>") : this.objectTxt(cellValue);
|
|
232930
232957
|
}
|
|
232931
232958
|
} else if (data && "enum" in data) {
|
|
232932
232959
|
var _item3 = data.enum.find(function (item) {
|
|
232933
232960
|
return item.value == cellValue;
|
|
232934
232961
|
});
|
|
232935
232962
|
|
|
232936
|
-
return _item3 ? _item3.label : cellValue;
|
|
232963
|
+
return _item3 ? _item3.label : this.objectTxt(cellValue);
|
|
232937
232964
|
} else {
|
|
232938
|
-
return cellValue;
|
|
232965
|
+
return this.objectTxt(cellValue);
|
|
232939
232966
|
}
|
|
232940
232967
|
} catch (error) {
|
|
232941
232968
|
console.log(error);
|
|
232942
|
-
return cellValue;
|
|
232969
|
+
return this.objectTxt(cellValue);
|
|
232943
232970
|
}
|
|
232944
232971
|
},
|
|
232945
232972
|
//全局排序自定义排序方法
|
|
@@ -237727,29 +237754,6 @@ var tabsBtnvue_type_template_id_07d1e8aa_scoped_true_staticRenderFns = []
|
|
|
237727
237754
|
|
|
237728
237755
|
// CONCATENATED MODULE: ./packages/jt-table/components/tabsBtn.vue?vue&type=template&id=07d1e8aa&scoped=true&
|
|
237729
237756
|
|
|
237730
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
237731
|
-
|
|
237732
|
-
|
|
237733
|
-
|
|
237734
|
-
|
|
237735
|
-
|
|
237736
|
-
|
|
237737
|
-
|
|
237738
|
-
function _typeof(obj) {
|
|
237739
|
-
"@babel/helpers - typeof";
|
|
237740
|
-
|
|
237741
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
237742
|
-
_typeof = function _typeof(obj) {
|
|
237743
|
-
return typeof obj;
|
|
237744
|
-
};
|
|
237745
|
-
} else {
|
|
237746
|
-
_typeof = function _typeof(obj) {
|
|
237747
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
237748
|
-
};
|
|
237749
|
-
}
|
|
237750
|
-
|
|
237751
|
-
return _typeof(obj);
|
|
237752
|
-
}
|
|
237753
237757
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/jt-table/components/tabsBtn.vue?vue&type=script&lang=js&
|
|
237754
237758
|
|
|
237755
237759
|
|
package/lib/jtui.umd.js
CHANGED
|
@@ -231267,7 +231267,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
231267
231267
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
231268
231268
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
231269
231269
|
|
|
231270
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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!./packages/jt-table/index.vue?vue&type=template&id=
|
|
231270
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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!./packages/jt-table/index.vue?vue&type=template&id=bf10b30e&
|
|
231271
231271
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tableStyle-2",class:_vm.isWrap ? 'isWrap' : '',staticStyle:{"position":"absolute","top":"1px","left":"1px","right":"1px","bottom":"1px"}},[(_vm.isTool)?_c('div',{staticStyle:{"position":"relative"}},[_c('vxe-toolbar',{staticClass:"jt-toolbar",attrs:{"custom":{ icon: 'jtIcon iconpeizhi41 colStyle' }}})],1):_vm._e(),(_vm.tableType === 'default')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"height":"auto","size":"mini","show-overflow":"","show-header-overflow":"","auto-resize":"","resizable":"","highlight-current-row":"","highlight-current-column":"","keep-source":"","id":_vm.id,"data":_vm.data.DataArray,"stripe":_vm.stripe,"border":_vm.border,"max-height":_vm.maxHeight,"show-footer":_vm.isFooter,"footer-method":_vm.footerMethod,"footer-span-method":_vm.footerColspanMethod,"footer-cell-class-name":_vm.footerCellClassName,"loading":_vm.loading,"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"header-cell-class-name":_vm.headerClass,"span-method":_vm.spanMethod,"scroll-y":{ mode: 'wheel' },"sort-config":{ sortMethod: _vm.sortMethod },"radio-config":{ checkRowKey: null },"keyboard-config":{ isArrow: true },"checkbox-config":{ highlight: true },"export-config":{
|
|
231272
231272
|
type: 'xlsx',
|
|
231273
231273
|
types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
|
|
@@ -231367,7 +231367,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
|
|
|
231367
231367
|
var staticRenderFns = []
|
|
231368
231368
|
|
|
231369
231369
|
|
|
231370
|
-
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=
|
|
231370
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=bf10b30e&
|
|
231371
231371
|
|
|
231372
231372
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231373
231373
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -231462,21 +231462,6 @@ function _defineProperty(obj, key, value) {
|
|
|
231462
231462
|
|
|
231463
231463
|
return obj;
|
|
231464
231464
|
}
|
|
231465
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
231466
|
-
function _arrayLikeToArray(arr, len) {
|
|
231467
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
231468
|
-
|
|
231469
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
231470
|
-
arr2[i] = arr[i];
|
|
231471
|
-
}
|
|
231472
|
-
|
|
231473
|
-
return arr2;
|
|
231474
|
-
}
|
|
231475
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
231476
|
-
|
|
231477
|
-
function _arrayWithoutHoles(arr) {
|
|
231478
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
231479
|
-
}
|
|
231480
231465
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
231481
231466
|
var es_symbol = __webpack_require__("a4d3");
|
|
231482
231467
|
|
|
@@ -231486,9 +231471,6 @@ var es_symbol_description = __webpack_require__("e01a");
|
|
|
231486
231471
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
|
231487
231472
|
var es_symbol_iterator = __webpack_require__("d28b");
|
|
231488
231473
|
|
|
231489
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
231490
|
-
var es_array_from = __webpack_require__("a630");
|
|
231491
|
-
|
|
231492
231474
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
231493
231475
|
var es_array_iterator = __webpack_require__("e260");
|
|
231494
231476
|
|
|
@@ -231498,6 +231480,47 @@ var es_string_iterator = __webpack_require__("3ca3");
|
|
|
231498
231480
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
231499
231481
|
var web_dom_collections_iterator = __webpack_require__("ddb0");
|
|
231500
231482
|
|
|
231483
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
231484
|
+
|
|
231485
|
+
|
|
231486
|
+
|
|
231487
|
+
|
|
231488
|
+
|
|
231489
|
+
|
|
231490
|
+
|
|
231491
|
+
function _typeof(obj) {
|
|
231492
|
+
"@babel/helpers - typeof";
|
|
231493
|
+
|
|
231494
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
231495
|
+
_typeof = function _typeof(obj) {
|
|
231496
|
+
return typeof obj;
|
|
231497
|
+
};
|
|
231498
|
+
} else {
|
|
231499
|
+
_typeof = function _typeof(obj) {
|
|
231500
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
231501
|
+
};
|
|
231502
|
+
}
|
|
231503
|
+
|
|
231504
|
+
return _typeof(obj);
|
|
231505
|
+
}
|
|
231506
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
231507
|
+
function _arrayLikeToArray(arr, len) {
|
|
231508
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
231509
|
+
|
|
231510
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
231511
|
+
arr2[i] = arr[i];
|
|
231512
|
+
}
|
|
231513
|
+
|
|
231514
|
+
return arr2;
|
|
231515
|
+
}
|
|
231516
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
231517
|
+
|
|
231518
|
+
function _arrayWithoutHoles(arr) {
|
|
231519
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
231520
|
+
}
|
|
231521
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
231522
|
+
var es_array_from = __webpack_require__("a630");
|
|
231523
|
+
|
|
231501
231524
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
231502
231525
|
|
|
231503
231526
|
|
|
@@ -231806,6 +231829,7 @@ var component = normalizeComponent(
|
|
|
231806
231829
|
|
|
231807
231830
|
|
|
231808
231831
|
|
|
231832
|
+
|
|
231809
231833
|
//
|
|
231810
231834
|
//
|
|
231811
231835
|
//
|
|
@@ -232894,6 +232918,9 @@ var component = normalizeComponent(
|
|
|
232894
232918
|
};
|
|
232895
232919
|
}
|
|
232896
232920
|
},
|
|
232921
|
+
objectTxt: function objectTxt(cellValue) {
|
|
232922
|
+
return _typeof(cellValue) == 'object' ? JSON.stringify(cellValue) : cellValue;
|
|
232923
|
+
},
|
|
232897
232924
|
//枚举转换
|
|
232898
232925
|
formatEnum: function formatEnum(_ref) {
|
|
232899
232926
|
var column = _ref.column,
|
|
@@ -232917,38 +232944,38 @@ var component = normalizeComponent(
|
|
|
232917
232944
|
str += "<span \n class=\"jtIcon ".concat(item.icon, "\" style=\"\n color:").concat(item.color, ";\n font-size:").concat(item.size, "px;\n margin-right:").concat(item.margin || "8", "px\"\n onclick=\"iconItem(").concat(i, ")\"\n ></span>");
|
|
232918
232945
|
}
|
|
232919
232946
|
});
|
|
232920
|
-
return str ? str : cellValue;
|
|
232947
|
+
return str ? str : this.objectTxt(cellValue);
|
|
232921
232948
|
} else {
|
|
232922
232949
|
var item = data.html.find(function (item) {
|
|
232923
232950
|
return item.value == cellValue;
|
|
232924
232951
|
});
|
|
232925
|
-
return item ? "<span class=\"jtIcon ".concat(item.icon, "\" style=\"color:").concat(item.color, ";font-size:").concat(item.size, "px\"></span>") : cellValue;
|
|
232952
|
+
return item ? "<span class=\"jtIcon ".concat(item.icon, "\" style=\"color:").concat(item.color, ";font-size:").concat(item.size, "px\"></span>") : this.objectTxt(cellValue);
|
|
232926
232953
|
}
|
|
232927
232954
|
} else if (data.htmlType == "a") {
|
|
232928
232955
|
var _item = data.html.find(function (item) {
|
|
232929
232956
|
return item.value == cellValue;
|
|
232930
232957
|
});
|
|
232931
232958
|
|
|
232932
|
-
return _item ? "<a href=\"javascript:\">".concat(cellValue, "</a>") : cellValue;
|
|
232959
|
+
return _item ? "<a href=\"javascript:\">".concat(cellValue, "</a>") : this.objectTxt(cellValue);
|
|
232933
232960
|
} else if (data.htmlType == 'tag') {
|
|
232934
232961
|
var _item2 = data.html.find(function (item) {
|
|
232935
232962
|
return item.value == cellValue;
|
|
232936
232963
|
});
|
|
232937
232964
|
|
|
232938
|
-
return _item2 ? "<span style=\"\n display:inline-block;\n background-color: #fdf6ec;\n height: 26px;\n padding: 0 10px;\n line-height: 26px;\n font-size: 12px;\n color: #e6a23c;\n border: 1px solid #d9ecff;\n border-radius: 4px;\n box-sizing: border-box;\n white-space: nowrap;\n \">".concat(_item2.label, "</span>") : cellValue;
|
|
232965
|
+
return _item2 ? "<span style=\"\n display:inline-block;\n background-color: #fdf6ec;\n height: 26px;\n padding: 0 10px;\n line-height: 26px;\n font-size: 12px;\n color: #e6a23c;\n border: 1px solid #d9ecff;\n border-radius: 4px;\n box-sizing: border-box;\n white-space: nowrap;\n \">".concat(_item2.label, "</span>") : this.objectTxt(cellValue);
|
|
232939
232966
|
}
|
|
232940
232967
|
} else if (data && "enum" in data) {
|
|
232941
232968
|
var _item3 = data.enum.find(function (item) {
|
|
232942
232969
|
return item.value == cellValue;
|
|
232943
232970
|
});
|
|
232944
232971
|
|
|
232945
|
-
return _item3 ? _item3.label : cellValue;
|
|
232972
|
+
return _item3 ? _item3.label : this.objectTxt(cellValue);
|
|
232946
232973
|
} else {
|
|
232947
|
-
return cellValue;
|
|
232974
|
+
return this.objectTxt(cellValue);
|
|
232948
232975
|
}
|
|
232949
232976
|
} catch (error) {
|
|
232950
232977
|
console.log(error);
|
|
232951
|
-
return cellValue;
|
|
232978
|
+
return this.objectTxt(cellValue);
|
|
232952
232979
|
}
|
|
232953
232980
|
},
|
|
232954
232981
|
//全局排序自定义排序方法
|
|
@@ -237736,29 +237763,6 @@ var tabsBtnvue_type_template_id_07d1e8aa_scoped_true_staticRenderFns = []
|
|
|
237736
237763
|
|
|
237737
237764
|
// CONCATENATED MODULE: ./packages/jt-table/components/tabsBtn.vue?vue&type=template&id=07d1e8aa&scoped=true&
|
|
237738
237765
|
|
|
237739
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
237740
|
-
|
|
237741
|
-
|
|
237742
|
-
|
|
237743
|
-
|
|
237744
|
-
|
|
237745
|
-
|
|
237746
|
-
|
|
237747
|
-
function _typeof(obj) {
|
|
237748
|
-
"@babel/helpers - typeof";
|
|
237749
|
-
|
|
237750
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
237751
|
-
_typeof = function _typeof(obj) {
|
|
237752
|
-
return typeof obj;
|
|
237753
|
-
};
|
|
237754
|
-
} else {
|
|
237755
|
-
_typeof = function _typeof(obj) {
|
|
237756
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
237757
|
-
};
|
|
237758
|
-
}
|
|
237759
|
-
|
|
237760
|
-
return _typeof(obj);
|
|
237761
|
-
}
|
|
237762
237766
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/jt-table/components/tabsBtn.vue?vue&type=script&lang=js&
|
|
237763
237767
|
|
|
237764
237768
|
|