kts-component-invoice-operate 3.2.109 → 3.2.111

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/dist/index.esm.js CHANGED
@@ -1459,12 +1459,14 @@ function countQuantity(amount, price, calculatingDigits) {
1459
1459
  /** 不用可续计数法 */
1460
1460
 
1461
1461
  function onScientificNotation(e, fractionDigits) {
1462
- debugger;
1463
1462
  var arr = e.toFixed(fractionDigits).split('');
1464
1463
 
1465
1464
  for (; arr.length > 0;) {
1466
- if (arr[arr.length - 1] === '0' || arr[arr.length - 1] === '.') {
1465
+ if (arr[arr.length - 1] === '0') {
1467
1466
  arr.pop();
1467
+ } else if (arr[arr.length - 1] === '.') {
1468
+ arr.pop();
1469
+ return arr.join('');
1468
1470
  } else {
1469
1471
  return arr.join('');
1470
1472
  }
@@ -13814,7 +13816,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13814
13816
  }, React.createElement("span", {
13815
13817
  style: {
13816
13818
  padding: '0 10px',
13817
- color: '#0074ff'
13819
+ color: '#0074ff',
13820
+ display: 'block',
13821
+ whiteSpace: 'nowrap',
13822
+ overflow: 'hidden',
13823
+ textOverflow: 'ellipsis'
13818
13824
  }
13819
13825
  }, valueT));
13820
13826
  } else {
@@ -13822,7 +13828,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13822
13828
  title: valueF
13823
13829
  }, React.createElement("span", {
13824
13830
  style: {
13825
- padding: '0 10px'
13831
+ padding: '0 10px',
13832
+ display: 'block',
13833
+ whiteSpace: 'nowrap',
13834
+ overflow: 'hidden',
13835
+ textOverflow: 'ellipsis'
13826
13836
  }
13827
13837
  }, valueF));
13828
13838
  }
@@ -13832,7 +13842,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13832
13842
  title: valueF
13833
13843
  }, React.createElement("span", {
13834
13844
  style: {
13835
- padding: '0 10px'
13845
+ padding: '0 10px',
13846
+ display: 'block',
13847
+ whiteSpace: 'nowrap',
13848
+ overflow: 'hidden',
13849
+ textOverflow: 'ellipsis'
13836
13850
  }
13837
13851
  }, valueF));
13838
13852
  } else {
@@ -13841,7 +13855,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13841
13855
  }, React.createElement("span", {
13842
13856
  style: {
13843
13857
  padding: '0 10px',
13844
- color: '#0074ff'
13858
+ color: '#0074ff',
13859
+ display: 'block',
13860
+ whiteSpace: 'nowrap',
13861
+ overflow: 'hidden',
13862
+ textOverflow: 'ellipsis'
13845
13863
  }
13846
13864
  }, valueT));
13847
13865
  }
package/dist/index.js CHANGED
@@ -1469,12 +1469,14 @@ function countQuantity(amount, price, calculatingDigits) {
1469
1469
  /** 不用可续计数法 */
1470
1470
 
1471
1471
  function onScientificNotation(e, fractionDigits) {
1472
- debugger;
1473
1472
  var arr = e.toFixed(fractionDigits).split('');
1474
1473
 
1475
1474
  for (; arr.length > 0;) {
1476
- if (arr[arr.length - 1] === '0' || arr[arr.length - 1] === '.') {
1475
+ if (arr[arr.length - 1] === '0') {
1477
1476
  arr.pop();
1477
+ } else if (arr[arr.length - 1] === '.') {
1478
+ arr.pop();
1479
+ return arr.join('');
1478
1480
  } else {
1479
1481
  return arr.join('');
1480
1482
  }
@@ -13824,7 +13826,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13824
13826
  }, React__default['default'].createElement("span", {
13825
13827
  style: {
13826
13828
  padding: '0 10px',
13827
- color: '#0074ff'
13829
+ color: '#0074ff',
13830
+ display: 'block',
13831
+ whiteSpace: 'nowrap',
13832
+ overflow: 'hidden',
13833
+ textOverflow: 'ellipsis'
13828
13834
  }
13829
13835
  }, valueT));
13830
13836
  } else {
@@ -13832,7 +13838,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13832
13838
  title: valueF
13833
13839
  }, React__default['default'].createElement("span", {
13834
13840
  style: {
13835
- padding: '0 10px'
13841
+ padding: '0 10px',
13842
+ display: 'block',
13843
+ whiteSpace: 'nowrap',
13844
+ overflow: 'hidden',
13845
+ textOverflow: 'ellipsis'
13836
13846
  }
13837
13847
  }, valueF));
13838
13848
  }
@@ -13842,7 +13852,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13842
13852
  title: valueF
13843
13853
  }, React__default['default'].createElement("span", {
13844
13854
  style: {
13845
- padding: '0 10px'
13855
+ padding: '0 10px',
13856
+ display: 'block',
13857
+ whiteSpace: 'nowrap',
13858
+ overflow: 'hidden',
13859
+ textOverflow: 'ellipsis'
13846
13860
  }
13847
13861
  }, valueF));
13848
13862
  } else {
@@ -13851,7 +13865,11 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
13851
13865
  }, React__default['default'].createElement("span", {
13852
13866
  style: {
13853
13867
  padding: '0 10px',
13854
- color: '#0074ff'
13868
+ color: '#0074ff',
13869
+ display: 'block',
13870
+ whiteSpace: 'nowrap',
13871
+ overflow: 'hidden',
13872
+ textOverflow: 'ellipsis'
13855
13873
  }
13856
13874
  }, valueT));
13857
13875
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.109",
3
+ "version": "3.2.111",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -111,11 +111,12 @@ export function countQuantity(amount: string | number, price: string | number, c
111
111
 
112
112
  /** 不用可续计数法 */
113
113
  function onScientificNotation(e: number, fractionDigits: number) {
114
- debugger;
115
114
  const arr = e.toFixed(fractionDigits).split('');
116
115
  for (; arr.length > 0;) {
117
- if (arr[arr.length - 1] === '0' || arr[arr.length - 1] === '.') {
116
+ if (arr[arr.length - 1] === '0') {
118
117
  arr.pop();
118
+ } else if (arr[arr.length - 1] === '.') {
119
+ arr.pop(); return arr.join('');
119
120
  } else {
120
121
  return arr.join('');
121
122
  }
@@ -640,13 +640,13 @@ class MyItemNameDiv extends React.Component<{ valueT?: React.ReactNode, valueF?:
640
640
  if (valueT) {
641
641
  return (
642
642
  <Tooltip title={valueT}>
643
- <span style={{ padding: '0 10px', color: '#0074ff' }}>{valueT}</span>
643
+ <span style={{ padding: '0 10px', color: '#0074ff', display:'block', whiteSpace:'nowrap', overflow:'hidden', textOverflow:'ellipsis' }}>{valueT}</span>
644
644
  </Tooltip>
645
645
  )
646
646
  } else {
647
647
  return (
648
648
  <Tooltip title={valueF}>
649
- <span style={{ padding: '0 10px' }}>{valueF}</span>
649
+ <span style={{ padding: '0 10px', display:'block', whiteSpace:'nowrap', overflow:'hidden', textOverflow:'ellipsis' }}>{valueF}</span>
650
650
  </Tooltip>
651
651
  )
652
652
  }
@@ -654,13 +654,13 @@ class MyItemNameDiv extends React.Component<{ valueT?: React.ReactNode, valueF?:
654
654
  if (valueF) {
655
655
  return (
656
656
  <Tooltip title={valueF}>
657
- <span style={{ padding: '0 10px' }}>{valueF}</span>
657
+ <span style={{ padding: '0 10px', display:'block', whiteSpace:'nowrap', overflow:'hidden', textOverflow:'ellipsis' }}>{valueF}</span>
658
658
  </Tooltip>
659
659
  )
660
660
  } else {
661
661
  return (
662
662
  <Tooltip title={valueT}>
663
- <span style={{ padding: '0 10px', color: '#0074ff' }}>{valueT}</span>
663
+ <span style={{ padding: '0 10px', color: '#0074ff', display:'block', whiteSpace:'nowrap', overflow:'hidden', textOverflow:'ellipsis' }}>{valueT}</span>
664
664
  </Tooltip>
665
665
  )
666
666
  }