bri-components 1.4.77 → 1.4.78

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": "bri-components",
3
- "version": "1.4.77",
3
+ "version": "1.4.78",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -176,6 +176,7 @@ export default {
176
176
  changePageSize (pagesize) {
177
177
  this.pagePropsObj.page = 1;
178
178
  this.pagePropsObj.pagesize = pagesize;
179
+ this.loadingFunc();
179
180
  },
180
181
 
181
182
  // 点击 -添加行
@@ -805,6 +805,12 @@ export default {
805
805
  this.loadingFunc();
806
806
  },
807
807
 
808
+ // 共外部使用
809
+ validate () {
810
+ this.showRuleMessage = true;
811
+
812
+ return this.allListData.every((row, rowIndex) => this.getRowRuleResult(row, rowIndex));
813
+ },
808
814
  // 重置
809
815
  reset () {
810
816
  this.initFlag = true;
@@ -824,11 +830,12 @@ export default {
824
830
 
825
831
  this.selfReset && this.selfReset();
826
832
  },
827
- // 共外部使用
828
- validate () {
829
- this.showRuleMessage = true;
830
-
831
- return this.allListData.every((row, rowIndex) => this.getRowRuleResult(row, rowIndex));
833
+ loadingFunc () {
834
+ this.isLoading = true;
835
+ setTimeout(() => {
836
+ this.changeSelect();
837
+ this.isLoading = false;
838
+ });
832
839
  },
833
840
 
834
841
  // 筛选回调
@@ -840,14 +847,8 @@ export default {
840
847
  }
841
848
  },
842
849
  // 列表选择项改变
843
- changeSelect (...params) {
844
- this.$emit("changeSelect", params[0].map(item => item._id), ...params);
845
- },
846
- loadingFunc () {
847
- this.isLoading = true;
848
- setTimeout(() => {
849
- this.isLoading = false;
850
- });
850
+ changeSelect (selections = [], ...params) {
851
+ this.$emit("changeSelect", selections.map(item => item._id), selections, ...params);
851
852
  },
852
853
 
853
854
  // 输入框失去焦点