@infly/libs 2.0.49 → 2.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/tools/format.js DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * 工具函数集合
3
- */
4
-
5
- /**
6
- * 处理金额显示,限制显示长度
7
- * @param {string} floor_amount - 金额字符串,用分号分隔
8
- * @param {number} length - 显示长度
9
- * @returns {object} 返回包含 vHtml 和 length 的对象
10
- */
11
- function handleFlowAmount(floor_amount = "", length) {
12
- if (!floor_amount) {
13
- return {
14
- vHtml: "",
15
- length: 0
16
- };
17
- }
18
-
19
- const array = floor_amount.split(";");
20
- const limitedArray = array.slice(0, length);
21
-
22
- return {
23
- vHtml: limitedArray.join("<br>"),
24
- length: array.length
25
- };
26
- }
27
-
28
- export default {
29
- handleFlowAmount
30
- };
31
-
@@ -1 +0,0 @@
1
- module.exports = require("../adapters/vue2/project-preview.js");