@leevan/jtui 2.0.19 → 2.0.20
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.
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
</template>
|
|
100
100
|
|
|
101
101
|
<script>
|
|
102
|
-
import { data23 , data13,data7 } from '../../packages/jt-table-pc/data2';
|
|
102
|
+
import { data23 , data13,data7 ,data5} from '../../packages/jt-table-pc/data2';
|
|
103
103
|
import { data1 } from '../data2';
|
|
104
104
|
export default {
|
|
105
105
|
data(){
|
|
@@ -131,11 +131,11 @@ import { data1 } from '../data2';
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
created(){
|
|
134
|
-
const res =
|
|
134
|
+
const res = data5();
|
|
135
135
|
this.tableData[0].retjson = res[0].retjson;
|
|
136
136
|
},
|
|
137
137
|
mounted(){
|
|
138
|
-
const res =
|
|
138
|
+
const res = data5();
|
|
139
139
|
let timeId = setTimeout(()=>{
|
|
140
140
|
this.$refs.tablePtbg.loadData(res[0].DataArray);
|
|
141
141
|
clearTimeout(timeId);
|
|
@@ -147,7 +147,6 @@ import { data1 } from '../data2';
|
|
|
147
147
|
this.$refs.tablePtbg.exportTableData();
|
|
148
148
|
},
|
|
149
149
|
exportDataExcel(){
|
|
150
|
-
debugger;
|
|
151
150
|
this.$refs.tablePtbg.exportData({ type: 'csv' });
|
|
152
151
|
},
|
|
153
152
|
//导入数据
|
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=66056588&
|
|
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=66056588&
|
|
231362
231362
|
|
|
231363
231363
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231364
231364
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -232957,9 +232957,15 @@ var component = normalizeComponent(
|
|
|
232957
232957
|
return a[property].localeCompare(b[property]);
|
|
232958
232958
|
});
|
|
232959
232959
|
} else {
|
|
232960
|
-
|
|
232961
|
-
|
|
232962
|
-
|
|
232960
|
+
if (isNaN(data1[0][property]) && !isNaN(Date.parse(data1[0][property]))) {
|
|
232961
|
+
list = data1.sort(function (a, b) {
|
|
232962
|
+
return new Date(a[property]).getTime() - new Date(b[property]).getTime();
|
|
232963
|
+
});
|
|
232964
|
+
} else {
|
|
232965
|
+
list = data1.sort(function (a, b) {
|
|
232966
|
+
return a[property] - b[property];
|
|
232967
|
+
});
|
|
232968
|
+
}
|
|
232963
232969
|
}
|
|
232964
232970
|
}
|
|
232965
232971
|
|
|
@@ -233118,7 +233124,7 @@ var component = normalizeComponent(
|
|
|
233118
233124
|
var ch = $event.target.clientHeight;
|
|
233119
233125
|
var sh = $event.target.scrollHeight;
|
|
233120
233126
|
|
|
233121
|
-
if (scrollTop + ch >= sh) {
|
|
233127
|
+
if (scrollTop + ch >= sh && scrollTop != 0) {
|
|
233122
233128
|
_this2.$emit("scrollBottom", ++_this2.pageIndex);
|
|
233123
233129
|
}
|
|
233124
233130
|
}, 200);
|
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=66056588&
|
|
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=66056588&
|
|
231371
231371
|
|
|
231372
231372
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231373
231373
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -232966,9 +232966,15 @@ var component = normalizeComponent(
|
|
|
232966
232966
|
return a[property].localeCompare(b[property]);
|
|
232967
232967
|
});
|
|
232968
232968
|
} else {
|
|
232969
|
-
|
|
232970
|
-
|
|
232971
|
-
|
|
232969
|
+
if (isNaN(data1[0][property]) && !isNaN(Date.parse(data1[0][property]))) {
|
|
232970
|
+
list = data1.sort(function (a, b) {
|
|
232971
|
+
return new Date(a[property]).getTime() - new Date(b[property]).getTime();
|
|
232972
|
+
});
|
|
232973
|
+
} else {
|
|
232974
|
+
list = data1.sort(function (a, b) {
|
|
232975
|
+
return a[property] - b[property];
|
|
232976
|
+
});
|
|
232977
|
+
}
|
|
232972
232978
|
}
|
|
232973
232979
|
}
|
|
232974
232980
|
|
|
@@ -233127,7 +233133,7 @@ var component = normalizeComponent(
|
|
|
233127
233133
|
var ch = $event.target.clientHeight;
|
|
233128
233134
|
var sh = $event.target.scrollHeight;
|
|
233129
233135
|
|
|
233130
|
-
if (scrollTop + ch >= sh) {
|
|
233136
|
+
if (scrollTop + ch >= sh && scrollTop != 0) {
|
|
233131
233137
|
_this2.$emit("scrollBottom", ++_this2.pageIndex);
|
|
233132
233138
|
}
|
|
233133
233139
|
}, 200);
|