vue2server7 7.0.49 → 7.0.50
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 +1 -1
- package/test/2.txt +14 -1
package/package.json
CHANGED
package/test/2.txt
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
const getSummaries = ({ columns }: any) => {
|
|
2
|
+
return columns.map((col: any, index: number) => {
|
|
3
|
+
if (index === 0) return '合计'
|
|
4
|
+
|
|
5
|
+
const value = summaryRow.value[col.property]
|
|
6
|
+
|
|
7
|
+
// 👉 指定字段做千分位
|
|
8
|
+
if (['price', 'amount'].includes(col.property)) {
|
|
9
|
+
return formatNumber(Number(value))
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return value ?? ''
|
|
13
|
+
})
|
|
14
|
+
}
|