3h1-ui 3.0.0-next.252 → 3.0.0-next.253
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/es/index.js +5 -1
- package/lib/index.js +5 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -30142,7 +30142,11 @@ const ShyTag = /* @__PURE__ */ defineComponent({
|
|
|
30142
30142
|
function formatNumberWithThousandSeparator(val) {
|
|
30143
30143
|
const [intPart, decimalPart] = String(val).split(".");
|
|
30144
30144
|
const formattedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
30145
|
-
|
|
30145
|
+
if (decimalPart !== void 0) {
|
|
30146
|
+
const trimmedDecimal = decimalPart.replace(/0+$/, "");
|
|
30147
|
+
return trimmedDecimal ? `${formattedInt}.${trimmedDecimal}` : formattedInt;
|
|
30148
|
+
}
|
|
30149
|
+
return formattedInt;
|
|
30146
30150
|
}
|
|
30147
30151
|
const handleItem = (item, ellipsis) => {
|
|
30148
30152
|
const {
|
package/lib/index.js
CHANGED
|
@@ -30166,7 +30166,11 @@ const ShyTag = /* @__PURE__ */ vue.defineComponent({
|
|
|
30166
30166
|
function formatNumberWithThousandSeparator(val) {
|
|
30167
30167
|
const [intPart, decimalPart] = String(val).split(".");
|
|
30168
30168
|
const formattedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
30169
|
-
|
|
30169
|
+
if (decimalPart !== void 0) {
|
|
30170
|
+
const trimmedDecimal = decimalPart.replace(/0+$/, "");
|
|
30171
|
+
return trimmedDecimal ? `${formattedInt}.${trimmedDecimal}` : formattedInt;
|
|
30172
|
+
}
|
|
30173
|
+
return formattedInt;
|
|
30170
30174
|
}
|
|
30171
30175
|
const handleItem = (item, ellipsis) => {
|
|
30172
30176
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.253",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"vue-json-pretty": "^2.2.3",
|
|
30
30
|
"vxe-table": "4.3.6",
|
|
31
31
|
"xe-utils": "^3.5.7",
|
|
32
|
-
"@shy-plugins/use": "1.0.1-next.5",
|
|
33
32
|
"@shy-plugins/tinymce": "^1.0.6",
|
|
33
|
+
"@shy-plugins/use": "1.0.1-next.5",
|
|
34
34
|
"@shy-plugins/utils": "1.0.0-next.1"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|