doway-coms 2.11.13 → 2.11.14

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.11.13",
3
+ "version": "2.11.14",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -2114,6 +2114,7 @@ export default {
2114
2114
  colParams['controlType'] = originCol.controlType
2115
2115
  colParams['filterControlType'] = colParams['controlType']
2116
2116
  colParams['edit'] = false
2117
+ colParams['thousandDigit'] = originCol.thousandDigit
2117
2118
  if (originCol.editStates) {
2118
2119
  colParams['editStates'] = originCol.editStates
2119
2120
  }
@@ -472,13 +472,13 @@ export function gridDefaultValueDisplay(rowInfo,colInfo){
472
472
  }
473
473
  if(colInfo.params.percent){
474
474
  displayValue=XEUtils.round(displayValue*100,colInfo.params.precision)
475
- if(this.$store.getters.baseSetting && this.$store.getters.baseSetting.thousandDigit==='true'){
475
+ if(colInfo.params.thousandDigit===true){
476
476
  displayValue = displayValue.toLocaleString('en-US',{ maximumFractionDigits: 10 })
477
477
  }
478
478
  displayValue = displayValue+'%'
479
479
  }else{
480
- if(this.$store.getters.baseSetting && this.$store.getters.baseSetting.thousandDigit==='true'){
481
- displayValue = displayValue.toLocaleString('en-US',{ maximumFractionDigits: 10 })
480
+ if(colInfo.params.thousandDigit===true){
481
+ displayValue = displayValue.toLocaleString('en-US',{ maximumFractionDigits: 10 })
482
482
  }
483
483
  }
484
484
  }