增加loding
This commit is contained in:
@@ -105,11 +105,11 @@
|
||||
/******/
|
||||
/******/
|
||||
/******/ // mini-css-extract-plugin CSS loading
|
||||
/******/ var cssChunks = {"uni_modules/zb-table/components/zb-table/zb-table":1,"uni_modules/uni-card/components/uni-card/uni-card":1,"pages/mul/item":1,"uni_modules/zb-table/components/zb-table/components/table-h5-summary":1,"uni_modules/zb-table/components/zb-table/components/table-side-summary":1,"uni_modules/zb-table/components/zb-table/components/table-summary":1,"uni_modules/zb-table/components/zb-table/components/app-header-item":1,"uni_modules/zb-table/components/zb-table/components/table-checkbox":1,"uni_modules/zb-table/components/zb-table/components/table-header-item":1,"uni_modules/zb-table/components/zb-table/components/zb-load-more":1};
|
||||
/******/ var cssChunks = {"uni_modules/zb-table/components/zb-table/zb-table":1,"uni_modules/uni-card/components/uni-card/uni-card":1,"pages/mul/item":1,"uni_modules/zb-table/components/zb-table/components/table-h5-summary":1,"uni_modules/zb-table/components/zb-table/components/table-side-summary":1,"uni_modules/zb-table/components/zb-table/components/table-summary":1,"uni_modules/zb-table/components/zb-table/components/app-header-item":1,"uni_modules/zb-table/components/zb-table/components/table-checkbox":1,"uni_modules/zb-table/components/zb-table/components/table-header-item":1,"uni_modules/zb-table/components/zb-table/components/zb-load-more":1,"uni_modules/zb-table/components/zb-table/components/zb-loading":1};
|
||||
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
||||
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
||||
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
|
||||
/******/ var href = "" + ({"uni_modules/zb-table/components/zb-table/zb-table":"uni_modules/zb-table/components/zb-table/zb-table","uni_modules/uni-card/components/uni-card/uni-card":"uni_modules/uni-card/components/uni-card/uni-card","pages/mul/item":"pages/mul/item","uni_modules/zb-table/components/zb-table/components/table-h5-summary":"uni_modules/zb-table/components/zb-table/components/table-h5-summary","uni_modules/zb-table/components/zb-table/components/table-side-summary":"uni_modules/zb-table/components/zb-table/components/table-side-summary","uni_modules/zb-table/components/zb-table/components/table-summary":"uni_modules/zb-table/components/zb-table/components/table-summary","uni_modules/zb-table/components/zb-table/components/app-header-item":"uni_modules/zb-table/components/zb-table/components/app-header-item","uni_modules/zb-table/components/zb-table/components/table-checkbox":"uni_modules/zb-table/components/zb-table/components/table-checkbox","uni_modules/zb-table/components/zb-table/components/table-header-item":"uni_modules/zb-table/components/zb-table/components/table-header-item","uni_modules/zb-table/components/zb-table/components/zb-load-more":"uni_modules/zb-table/components/zb-table/components/zb-load-more"}[chunkId]||chunkId) + ".acss";
|
||||
/******/ var href = "" + ({"uni_modules/zb-table/components/zb-table/zb-table":"uni_modules/zb-table/components/zb-table/zb-table","uni_modules/uni-card/components/uni-card/uni-card":"uni_modules/uni-card/components/uni-card/uni-card","pages/mul/item":"pages/mul/item","uni_modules/zb-table/components/zb-table/components/table-h5-summary":"uni_modules/zb-table/components/zb-table/components/table-h5-summary","uni_modules/zb-table/components/zb-table/components/table-side-summary":"uni_modules/zb-table/components/zb-table/components/table-side-summary","uni_modules/zb-table/components/zb-table/components/table-summary":"uni_modules/zb-table/components/zb-table/components/table-summary","uni_modules/zb-table/components/zb-table/components/app-header-item":"uni_modules/zb-table/components/zb-table/components/app-header-item","uni_modules/zb-table/components/zb-table/components/table-checkbox":"uni_modules/zb-table/components/zb-table/components/table-checkbox","uni_modules/zb-table/components/zb-table/components/table-header-item":"uni_modules/zb-table/components/zb-table/components/table-header-item","uni_modules/zb-table/components/zb-table/components/zb-load-more":"uni_modules/zb-table/components/zb-table/components/zb-load-more","uni_modules/zb-table/components/zb-table/components/zb-loading":"uni_modules/zb-table/components/zb-table/components/zb-loading"}[chunkId]||chunkId) + ".acss";
|
||||
/******/ var fullhref = __webpack_require__.p + href;
|
||||
/******/ var existingLinkTags = document.getElementsByTagName("link");
|
||||
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
|
||||
|
||||
10
unpackage/dist/dev/mp-alipay/common/vendor.js
vendored
10
unpackage/dist/dev/mp-alipay/common/vendor.js
vendored
@@ -1638,7 +1638,7 @@ function initData(vueOptions, context) {
|
||||
try {
|
||||
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
||||
} catch (e) {
|
||||
if (Object({"VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
||||
}
|
||||
}
|
||||
@@ -8677,7 +8677,7 @@ function type(obj) {
|
||||
|
||||
function flushCallbacks$1(vm) {
|
||||
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
||||
if (Object({"VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
var mpInstance = vm.$scope;
|
||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
||||
@@ -8698,14 +8698,14 @@ function nextTick$1(vm, cb) {
|
||||
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
||||
//2.nextTick 之前存在 render watcher
|
||||
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
||||
if(Object({"VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||
if(Object({"NODE_ENV":"development","VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||
var mpInstance = vm.$scope;
|
||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||
']:nextVueTick');
|
||||
}
|
||||
return nextTick(cb, vm)
|
||||
}else{
|
||||
if(Object({"VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||
if(Object({"NODE_ENV":"development","VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||
var mpInstance$1 = vm.$scope;
|
||||
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
||||
']:nextMPTick');
|
||||
@@ -8791,7 +8791,7 @@ var patch = function(oldVnode, vnode) {
|
||||
});
|
||||
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
||||
if (Object.keys(diffData).length) {
|
||||
if (Object({"VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"zzb-table","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
||||
']差量更新',
|
||||
JSON.stringify(diffData));
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -329,6 +329,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -503,12 +505,12 @@ var _all = __webpack_require__(/*! ./all.js */ 16); //
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var that = null;var _default = { components: {}, data: function data() {return { column1: _all.column1, column2: _all.column2, column3: _all.column3, column4: _all.column4, column5: _all.column5, title: 'Hello', column: [{ type: 'selection', fixed: true, width: 60 }, { name: 'name', label: '姓名', fixed: true, width: 80, emptyString: '--' }, { name: 'age', label: '年龄', sorter: 'custom', align: 'right', fixed: false }, { name: 'sex', label: '性别', filters: { 0: '男', 1: '女' } }, { name: 'price', label: '价格' }, { name: 'admin', label: '账号' }, { name: 'address', label: '地址' }, { name: 'date', label: '日期', sorter: true }, { name: 'province', label: '省份' }, { name: 'city', label: '城市' }, { name: 'zip', label: '邮编' }, { name: 'img', label: '图片', type: "img", align: "center" }, { name: 'operation', type: 'operation', label: '操作', renders: [{ name: '编辑', class: 'edit', type: "primary", func: 'edit' // func 代表子元素点击的事件 父元素接收的事件 父元素 @edit
|
||||
}, { name: '自定义按钮', type: 'custom', // type 为custom的时候自定义按钮
|
||||
class: "custom", func: 'custom' }, { name: '删除', type: 'warn', // type 为custom的时候自定义按钮
|
||||
class: "del", func: 'dele' }] }], data: [{ date: '2016-05-02', name: '', price: 0, province: '上海', admin: "admin", sex: '1', checked: true, id: "20", img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", age: 0, city: '普陀区', address: '上海市普上海市普上海市普上海市普', zip: 200333 }, { date: '2016-05-01', name: '王小虎2', province: '上海', sex: '0', price: 0, id: "2", age: 12, city: '普陀区', img: "https://img.pddpic.com/mms-material-img/2020-11-27/84c7fad3-d945-4e71-ab09-7a1ed80f6055.jpeg.a.jpeg", address: '上海市普', zip: 200333 }, { date: '2022-03-25T09:27:42', name: '王小虎3', province: '上海', sex: 1, price: 33, id: "3", age: '15', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 200333555 }, { date: '2016-04-02', name: '王小虎4', province: '上海', sex: 1, age: '11', price: 33, id: "4", img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2016-03-02', name: '王小虎5', province: '上海', price: 0, sex: 1, age: '14', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", id: "5", city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2014-05-02', name: '王小虎6', province: '上海', price: 33, sex: 1, id: "6", age: '12', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 0 }, { date: '2019-05-02', name: '王小虎7', price: 33, province: '上海', sex: 1, age: 0, id: "7", city: '普陀区', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", address: '上海市普', zip: 200333 }, { date: '2012-05-02', name: '王小虎8', province: '上海', price: 0, sex: 1, age: '29', id: "8", city: '普陀区', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", address: '上海市普', zip: 200333 }, { date: '2011-05-02', name: '王小虎91', price: 33, img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", province: '上海', sex: 1, id: "9", age: '30', city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2011-05-02', name: '王小虎10', province: '上海', sex: 1, id: "10", age: '30', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2011-05-02',
|
||||
name: '王小虎20',
|
||||
province: '上海',
|
||||
class: "del", func: 'dele' }] }], data: [{ date: '2016-05-02', name: '', price: 0, province: '上海', admin: "admin", sex: '1', checked: true, id: "20", img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", age: 0, city: '普陀区', address: '上海市普上海市普上海市普上海市普', zip: 200333 }, { date: '2016-05-01', name: '王小虎2', province: '上海', sex: '0', price: 0, id: "2", age: 12, city: '普陀区', img: "https://img.pddpic.com/mms-material-img/2020-11-27/84c7fad3-d945-4e71-ab09-7a1ed80f6055.jpeg.a.jpeg", address: '上海市普', zip: 200333 }, { date: '2022-03-25T09:27:42', name: '王小虎3', province: '上海', sex: 1, price: 33, id: "3", age: '15', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 200333555 }, { date: '2016-04-02', name: '王小虎4', province: '上海', sex: 1, age: '11', price: 33, id: "4", img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2016-03-02', name: '王小虎5', province: '上海', price: 0, sex: 1, age: '14', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", id: "5", city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2014-05-02', name: '王小虎6', province: '上海', price: 33, sex: 1, id: "6", age: '12', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 0 }, { date: '2019-05-02', name: '王小虎7', price: 33, province: '上海', sex: 1, age: 0, id: "7", city: '普陀区', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", address: '上海市普', zip: 200333 }, { date: '2012-05-02', name: '王小虎8', province: '上海', price: 0, sex: 1, age: '29', id: "8", city: '普陀区', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", address: '上海市普', zip: 200333 }, { date: '2011-05-02', name: '王小虎91', price: 33, img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", province: '上海', sex: 1, id: "9", age: '30', city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2011-05-02', name: '王小虎10', province: '上海', sex: 1, id: "10", age: '30', img: "https://img1.baidu.com/it/u=300787145,1214060415&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500", city: '普陀区', address: '上海市普', zip: 200333 }, { date: '2011-05-02', name: '王小虎20', province: '上海',
|
||||
sex: 1,
|
||||
price: 33,
|
||||
id: "11",
|
||||
@@ -523,6 +525,7 @@ var that = null;var _default = { components: {}, data: function data() {return {
|
||||
flag2: true,
|
||||
num: 0,
|
||||
num1: 0,
|
||||
isLoading: true,
|
||||
isShowLoadMore: true };
|
||||
|
||||
},
|
||||
@@ -532,15 +535,12 @@ var that = null;var _default = { components: {}, data: function data() {return {
|
||||
created: function created() {
|
||||
that = this;
|
||||
},
|
||||
mounted: function mounted() {
|
||||
mounted: function mounted() {var _this = this;
|
||||
this.data1 = JSON.parse(JSON.stringify(this.data));
|
||||
var data2 = JSON.parse(JSON.stringify(this.data));
|
||||
setTimeout(function () {
|
||||
// data2.forEach(item=>{
|
||||
// item.checked = true
|
||||
// })
|
||||
// this.data = data2
|
||||
}, 3000);
|
||||
_this.isLoading = false;
|
||||
}, 1500);
|
||||
},
|
||||
methods: {
|
||||
permissionBtn: function permissionBtn(row, renders, rowIndex) {
|
||||
@@ -551,10 +551,32 @@ var that = null;var _default = { components: {}, data: function data() {return {
|
||||
return renders;
|
||||
},
|
||||
sortChange: function sortChange(item, sorterMode, index) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
duration: 3000,
|
||||
title: '触发自定义排序,通过接口返回排序,不默认排序' });
|
||||
|
||||
console.log('触发排序', item, sorterMode, index);
|
||||
},
|
||||
cellStyle: function cellStyle(_ref) {var row = _ref.row,column = _ref.column,rowIndex = _ref.rowIndex,columnIndex = _ref.columnIndex;
|
||||
cellHeaderStyle: function cellHeaderStyle(_ref) {var column = _ref.column,columnIndex = _ref.columnIndex;
|
||||
if (columnIndex === 1 || columnIndex === 4) {
|
||||
return {
|
||||
color: 'red' };
|
||||
|
||||
}
|
||||
|
||||
// if(column.children){
|
||||
// for(let item of column.children){
|
||||
// if(item.name==='province'){
|
||||
// return{
|
||||
// color:'red'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
},
|
||||
cellStyle: function cellStyle(_ref2) {var row = _ref2.row,column = _ref2.column,rowIndex = _ref2.rowIndex,columnIndex = _ref2.columnIndex;
|
||||
// console.log('row, column, rowIndex, columnIndex')
|
||||
if (columnIndex === 1 || columnIndex === 4) {
|
||||
return {
|
||||
@@ -562,40 +584,40 @@ var that = null;var _default = { components: {}, data: function data() {return {
|
||||
|
||||
}
|
||||
},
|
||||
pullUpLoading: function pullUpLoading(done) {var _this = this;
|
||||
pullUpLoading: function pullUpLoading(done) {var _this2 = this;
|
||||
if (!this.flag1) {
|
||||
return;
|
||||
}
|
||||
setTimeout(function () {
|
||||
_this.data.push({
|
||||
_this2.data.push({
|
||||
date: '2011-05-02',
|
||||
name: '王小虎23',
|
||||
province: '上海',
|
||||
sex: 1,
|
||||
price: 33,
|
||||
id: 11111 + _this.num,
|
||||
id: 11111 + _this2.num,
|
||||
age: '30',
|
||||
city: '普陀区',
|
||||
address: '上海市普',
|
||||
zip: 200333 });
|
||||
|
||||
|
||||
_this.num++;
|
||||
if (_this.num === 3) {
|
||||
_this2.num++;
|
||||
if (_this2.num === 3) {
|
||||
done('ok');
|
||||
_this.flag1 = false;
|
||||
_this2.flag1 = false;
|
||||
} else {
|
||||
done();
|
||||
}
|
||||
}, 2000);
|
||||
},
|
||||
|
||||
pullUpLoadingAction: function pullUpLoadingAction(done) {var _this2 = this;
|
||||
pullUpLoadingAction: function pullUpLoadingAction(done) {var _this3 = this;
|
||||
if (!this.flag2) {
|
||||
return;
|
||||
}
|
||||
setTimeout(function () {
|
||||
_this2.data.push({
|
||||
_this3.data.push({
|
||||
date: '2011-05-02',
|
||||
name: '王小虎23',
|
||||
province: '上海',
|
||||
@@ -608,12 +630,12 @@ var that = null;var _default = { components: {}, data: function data() {return {
|
||||
zip: 200333 });
|
||||
|
||||
|
||||
_this2.num1++;
|
||||
if (_this2.num1 === 3) {
|
||||
_this2.$refs.zbTable.pullUpCompleteLoading('ok');
|
||||
_this2.flag2 = false;
|
||||
_this3.num1++;
|
||||
if (_this3.num1 === 3) {
|
||||
_this3.$refs.zbTable.pullUpCompleteLoading('ok');
|
||||
_this3.flag2 = false;
|
||||
} else {
|
||||
_this2.$refs.zbTable.pullUpCompleteLoading();
|
||||
_this3.$refs.zbTable.pullUpCompleteLoading();
|
||||
}
|
||||
}, 1000);
|
||||
},
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="zb-table-footer data-v-6a330a4c" style="height:40px;"><view class="zb-table-fixed data-v-6a330a4c"><view class="zb-table-thead data-v-6a330a4c" style="position:relative;"><view class="item-tr data-v-6a330a4c"><view class="{{((('data-v-6a330a4c')+' '+'item-th')+' '+(index<fixedLeftColumns.length&&'zb-stick-side'))}}" style="{{'left:'+(item.left+'px')+';'+('width:'+((item.width?item.width:'100')+'px')+';')+('flex:'+(index===transColumns.length-1?1:'none')+';')+('min-width:'+((item.width?item.width:'100')+'px')+';')+('border-right:'+(''+(border?'1px solid #e8e8e8':''))+';')+('border-top:'+(''+(border?'1px solid #e8e8e8':''))+';')+('text-align:'+(item.align||'left')+';')}}" a:for="{{transColumns}}" a:for-item="item" a:for-index="index" a:key="index">{{''+(sums[index]||item.emptyString)+''}}</view></view></view></view></view>
|
||||
<view class="zb-table-footer data-v-6a330a4c" style="height:40px;flex-shrink:0;"><view class="zb-table-fixed data-v-6a330a4c"><view class="zb-table-thead data-v-6a330a4c" style="position:relative;"><view class="item-tr data-v-6a330a4c"><view class="{{((('data-v-6a330a4c')+' '+'item-th')+' '+(index<fixedLeftColumns.length&&'zb-stick-side'))}}" style="{{'left:'+(item.left+'px')+';'+('width:'+((item.width?item.width:'100')+'px')+';')+('flex:'+(index===transColumns.length-1?1:'none')+';')+('min-width:'+((item.width?item.width:'100')+'px')+';')+('border-right:'+(''+(border?'1px solid #e8e8e8':''))+';')+('border-top:'+(''+(border?'1px solid #e8e8e8':''))+';')+('text-align:'+(item.align||'left')+';')}}" a:for="{{transColumns}}" a:for-item="item" a:for-index="index" a:key="index">{{''+(sums[index]||item.emptyString)+''}}</view></view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
<view class="zb-table-applet"><view class="zb-table-content"><scroll-view style="height:100%;overflow-x:scroll;" scroll-y="true" scroll-x="true" data-event-opts="{{[['scroll',[['scrollAlipay',['$event']]]],['scrollToLower',[['scrolltolower',['$event']]]]]}}" onScroll="__e" onScrollToLower="__e"><view class="zb-table-scroll"><block a:if="{{showHeader}}"><view class="zb-table-header top-header-uni"><view class="zb-table-fixed thead-calculation"><view class="zb-table-thead" style="position:relative;"><view class="item-tr"><view class="{{(index<fixedLeftColumns.length&&'zb-stick-side')}}" style="{{'left:'+(item.left+'px')+';'}}" a:for="{{transColumns.columns}}" a:for-item="item" a:for-index="index" a:key="index"><table-header-item vue-id="{{'815aed16-1-'+index}}" item="{{item}}" border="{{border}}" indeterminate="{{indeterminate}}" checkedAll="{{checkedAll}}" transColumns="{{transColumns.columns}}" index="{{index}}" fixedLeftColumns="{{fixedLeftColumns}}" scrollbarSize="{{scrollbarSize}}" data-event-opts="{{[['^sortAction',[['sortAction']]],['^checkboxSelectedAll',[['checkboxSelectedAll']]]]}}" onSortAction="__e" onCheckboxSelectedAll="__e" onVueInit="__l"></table-header-item></view></view></view></view></view></block><block a:if="{{!data.length}}"><view class="no-data">暂无数据~~</view></block><view class="zb-table-fixed"><view class="zb-table-tbody"><view data-event-opts="{{[['tap',[['rowClick',['$0',index],[[['transData','key',item.$orig.key]]]]]]]}}" class="{{(('item-tr')+' '+(item.m0?'current-row':''))}}" catchTap="__e" a:for="{{$root.l2}}" a:for-item="item" a:for-index="index" a:key="key"><view class="{{((('item-td')+' '+(i<fixedLeftColumns.length&&'zb-stick-side'))+' '+(stripe?index%2!=0?'odd':'even':''))}}" style="{{ite.s0}}" a:for="{{item.l1}}" a:for-item="ite" a:for-index="i" a:key="i"><block a:if="{{ite.$orig.type==='operation'}}"><view style="display:flex;align-items:center;height:100%;"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({ren,item:item.$orig,index})}}" style="{{'display:'+('flex')+';'+('align-items:'+('center')+';')+('margin-right:'+(ite.$orig.renders.length>1?'8px':'0')+';')}}" onTap="__e" a:for="{{ite.l0}}" a:for-item="ren" a:for-index="ind" a:key="ind"><block a:if="{{ren.type==='custom'}}"><view class="{{(ren.class||'')}}" style="cursor:pointer;">{{''+ren.name+''}}</view></block><block a:else><button class="{{(ren.class||'')}}" type="{{ren.type||'primary'}}" size="{{ren.size||'mini'}}">{{ren.name}}</button></block></view></view></block><block a:else><block a:if="{{ite.$orig.type==='selection'}}"><view class="checkbox-item"><table-checkbox vue-id="{{'815aed16-2-'+index+'-'+i}}" cellData="{{item.$orig}}" checked="{{item.$orig.checked}}" data-event-opts="{{[['^checkboxSelected',[['e1']]]]}}" data-event-params="{{({item:item.$orig})}}" onCheckboxSelected="__e" onVueInit="__l"></table-checkbox></view></block><block a:else><block a:if="{{ite.$orig.type==='img'}}"><block a:if="{{item.$orig[ite.$orig.name]}}"><image style="width:40px;height:30px;" show-menu-by-longpress="{{false}}" src="{{item.$orig[ite.$orig.name]}}" mode="aspectFit" data-event-opts="{{[['tap',[['previewImage',['$0','$1',index],[[['transData','key',item.$orig.key]],[['transData','key',item.$orig.key,''+ite.$orig.name+'']]]]]]]}}" catchTap="__e"></image></block><block a:else><text>{{ite.$orig.emptyString}}</text></block></block><block a:else><block a:if="{{ite.$orig.type==='index'}}">{{''+(index+1)+''}}</block><block a:else>{{''+(ite.$orig.filters?ite.m1:item.$orig[ite.$orig.name]==null||item.$orig[ite.$orig.name]===''?ite.$orig.emptyString:item.$orig[ite.$orig.name])+''}}</block></block></block></block></view></view></view></view><block a:if="{{showSummary}}"><table-summary vue-id="815aed16-3" data="{{data}}" showSummary="{{showSummary}}" fixedLeftColumns="{{fixedLeftColumns}}" transColumns="{{transColumns.columns}}" border="{{border}}" summary-method="{{summaryMethod}}" sumText="{{sumText}}" onVueInit="__l"></table-summary></block></view></scroll-view></view><block a:if="{{isLoadMore&&!completeLoading}}"><zb-load-more vue-id="815aed16-4" onVueInit="__l"></zb-load-more></block></view>
|
||||
<view class="zb-table-applet"><block a:if="{{isLoading}}"><zb-loading vue-id="815aed16-1" onVueInit="__l"></zb-loading></block><view class="zb-table-content"><scroll-view style="height:100%;overflow-x:scroll;" scroll-y="true" scroll-x="true" data-event-opts="{{[['scroll',[['scrollAlipay',['$event']]]],['scrollToLower',[['scrolltolower',['$event']]]]]}}" onScroll="__e" onScrollToLower="__e"><view class="zb-table-scroll"><block a:if="{{showHeader}}"><view class="zb-table-header top-header-uni"><view class="zb-table-fixed thead-calculation"><view class="zb-table-thead" style="position:relative;"><view class="item-tr"><view class="{{(index<fixedLeftColumns.length&&'zb-stick-side')}}" style="{{'left:'+(item.left+'px')+';'}}" a:for="{{transColumns.columns}}" a:for-item="item" a:for-index="index" a:key="index"><table-header-item vue-id="{{'815aed16-2-'+index}}" item="{{item}}" cellHeaderStyle="{{cellHeaderStyle}}" border="{{border}}" multify="{{multify}}" realColumns="{{transColumns.realColumns}}" wrapIndex="{{index}}" indeterminate="{{indeterminate}}" checkedAll="{{checkedAll}}" transColumns="{{transColumns.columns}}" index="{{index}}" fixedLeftColumns="{{fixedLeftColumns}}" scrollbarSize="{{scrollbarSize}}" data-event-opts="{{[['^sortAction',[['sortAction']]],['^checkboxSelectedAll',[['checkboxSelectedAll']]]]}}" onSortAction="__e" onCheckboxSelectedAll="__e" onVueInit="__l"></table-header-item></view></view></view></view></view></block><block a:if="{{!data.length}}"><view class="no-data">暂无数据~~</view></block><view class="zb-table-fixed"><view class="zb-table-tbody"><view data-event-opts="{{[['tap',[['rowClick',['$0',index],[[['transData','key',item.$orig.key]]]]]]]}}" class="{{(('item-tr')+' '+(item.m0?'current-row':''))}}" catchTap="__e" a:for="{{$root.l2}}" a:for-item="item" a:for-index="index" a:key="key"><view class="{{((('item-td')+' '+(i<fixedLeftColumns.length&&'zb-stick-side'))+' '+(stripe?index%2!=0?'odd':'even':''))}}" style="{{ite.s0}}" a:for="{{item.l1}}" a:for-item="ite" a:for-index="i" a:key="i"><block a:if="{{ite.$orig.type==='operation'}}"><view style="display:flex;align-items:center;height:100%;"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({ren,item:item.$orig,index})}}" style="{{'display:'+('flex')+';'+('align-items:'+('center')+';')+('margin-right:'+(ite.$orig.renders.length>1?'8px':'0')+';')}}" onTap="__e" a:for="{{ite.l0}}" a:for-item="ren" a:for-index="ind" a:key="ind"><block a:if="{{ren.type==='custom'}}"><view class="{{(ren.class||'')}}" style="cursor:pointer;">{{''+ren.name+''}}</view></block><block a:else><button class="{{(ren.class||'')}}" type="{{ren.type||'primary'}}" size="{{ren.size||'mini'}}">{{ren.name}}</button></block></view></view></block><block a:else><block a:if="{{ite.$orig.type==='selection'}}"><view class="checkbox-item"><table-checkbox vue-id="{{'815aed16-3-'+index+'-'+i}}" cellData="{{item.$orig}}" checked="{{item.$orig.checked}}" data-event-opts="{{[['^checkboxSelected',[['e1']]]]}}" data-event-params="{{({item:item.$orig})}}" onCheckboxSelected="__e" onVueInit="__l"></table-checkbox></view></block><block a:else><block a:if="{{ite.$orig.type==='img'}}"><block a:if="{{item.$orig[ite.$orig.name]}}"><image style="width:40px;height:30px;" show-menu-by-longpress="{{false}}" src="{{item.$orig[ite.$orig.name]}}" mode="aspectFit" data-event-opts="{{[['tap',[['previewImage',['$0','$1',index],[[['transData','key',item.$orig.key]],[['transData','key',item.$orig.key,''+ite.$orig.name+'']]]]]]]}}" catchTap="__e"></image></block><block a:else><text>{{ite.$orig.emptyString}}</text></block></block><block a:else><block a:if="{{ite.$orig.type==='index'}}">{{''+(index+1)+''}}</block><block a:else>{{''+(ite.$orig.filters?ite.m1:item.$orig[ite.$orig.name]==null||item.$orig[ite.$orig.name]===''?ite.$orig.emptyString:item.$orig[ite.$orig.name])+''}}</block></block></block></block></view></view></view></view><block a:if="{{showSummary}}"><table-summary vue-id="815aed16-4" data="{{data}}" showSummary="{{showSummary}}" fixedLeftColumns="{{fixedLeftColumns}}" transColumns="{{transColumns.columns}}" border="{{border}}" summary-method="{{summaryMethod}}" sumText="{{sumText}}" onVueInit="__l"></table-summary></block></view></scroll-view></view><block a:if="{{isLoadMore&&!completeLoading}}"><zb-load-more vue-id="815aed16-5" onVueInit="__l"></zb-load-more></block></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"zb-loading": "/uni_modules/zb-table/components/zb-table/components/zb-loading",
|
||||
"table-checkbox": "/uni_modules/zb-table/components/zb-table/components/table-checkbox",
|
||||
"table-summary": "/uni_modules/zb-table/components/zb-table/components/table-summary",
|
||||
"table-side-summary": "/uni_modules/zb-table/components/zb-table/components/table-side-summary",
|
||||
|
||||
Reference in New Issue
Block a user