doway-coms 1.6.3 → 1.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -65,6 +65,7 @@
65
65
  :height="'auto'"
66
66
  :show-footer="showFooter"
67
67
  @scroll="bodyScroll"
68
+ :row-class-name="gridRowStyle"
68
69
  >
69
70
  <template v-for="item in internalColumns" #[item.field]>
70
71
  <div :key="item.field">
@@ -286,6 +287,7 @@
286
287
  v-if="pager.size"
287
288
  :totalRows="pager.totalRows"
288
289
  :pageSize="pager.size"
290
+ :pageSizeOptions="pager.sizeOptions"
289
291
  :currentPage="pager.current"
290
292
  @pageChange="pageChange"
291
293
  @pageSizeChange="pageSizeChange"
@@ -861,6 +863,10 @@ export default {
861
863
 
862
864
  created() {
863
865
 
866
+ this.pager.sizeOptions = XEUtils.map(this.pager.sizeOptions, item => {
867
+ return Number(item)
868
+ })
869
+
864
870
  //拖动后输入框有错位问题,暂时不启用
865
871
  // this.initColumnDrop()
866
872
 
@@ -2273,7 +2279,11 @@ export default {
2273
2279
  let row = fullData.find((x) => x.id == id);
2274
2280
  this.$refs.baseGrid.setCurrentRow(row);
2275
2281
  },
2276
- gridRowStyle(scope) {},
2282
+ gridRowStyle(scope) {
2283
+ if (scope.row.sysRepeat === true) {
2284
+ return "row--pending";
2285
+ }
2286
+ },
2277
2287
  bodyScroll(scrollInfo) {
2278
2288
  this.$emit("scroll", scrollInfo);
2279
2289
  // if (scrollInfo.isX === true) {
@@ -85,7 +85,7 @@
85
85
  // this.$emit('pageSizeChange', current, pageSize)
86
86
  // }
87
87
  }
88
- }
88
+ }
89
89
  </script>
90
90
  <style lang="less">
91
91
  @import '../../styles/default.less';
@@ -429,7 +429,7 @@ export default {
429
429
  this.columns[i]["type"] = "checkbox";
430
430
  }
431
431
  // 设置字段的过滤插槽
432
- if(this.columns[i].fieldFilter) {
432
+ if(this.columns[i].filter) {
433
433
  this.columns[i]["filterMultiple"] = false;
434
434
  this.columns[i]['filters'] = [
435
435
  {