|
@@ -0,0 +1,20 @@
|
|
|
+# @jy/utils
|
|
|
+通用业务工具包,参照 @vueuse 模式。
|
|
|
+
|
|
|
+```
|
|
|
+index.ts # function source code itself
|
|
|
+demo.vue # documentation demo
|
|
|
+index.test.ts # vitest unit testing
|
|
|
+index.md # documentation
|
|
|
+```
|
|
|
+
|
|
|
+## 概念
|
|
|
+`format` 格式化相关,用于将传入数据按一定规则,格式化后返回内容
|
|
|
+
|
|
|
+`time` 时间相关,用于时间计算、格式化展示
|
|
|
+
|
|
|
+`validator` 校验相关,验证传入数据是否符合规则,返回 Boolean 结果
|
|
|
+
|
|
|
+``
|
|
|
+
|
|
|
+###
|