doway-coms 2.2.6 → 2.2.8

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": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -568,7 +568,9 @@ export default {
568
568
  } else {
569
569
  this.$refs.pulldownRef.hidePanel()
570
570
  // 点击输入框隐藏panel时清空输入框
571
- this.currentValue = ''
571
+ if(this.allowAutoClear){
572
+ this.currentValue = ''
573
+ }
572
574
  }
573
575
  },
574
576
  /**
@@ -60,5 +60,8 @@ VXETable.formats.mixin({
60
60
  },
61
61
  formatPercentAndFixedNumber({ cellValue }) {
62
62
  return XEUtils.toFixed(XEUtils.round(cellValue, digits), digits) +'%'
63
+ },
64
+ formatPercentValue({ cellValue },digits=2) {
65
+ return XEUtils.round(cellValue*100,digits) + '%'
63
66
  }
64
67
  })