m-tool-store 1.0.2 → 1.0.4
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/README.md +0 -20
- package/package.json +1 -1
- package/types/global.d.ts +1 -1
- package/types/index.d.ts +12 -0
package/README.md
CHANGED
|
@@ -15,23 +15,3 @@
|
|
|
15
15
|
|
|
16
16
|
#### 使用说明
|
|
17
17
|
|
|
18
|
-
1. xxxx
|
|
19
|
-
2. xxxx
|
|
20
|
-
3. xxxx
|
|
21
|
-
|
|
22
|
-
#### 参与贡献
|
|
23
|
-
|
|
24
|
-
1. Fork 本仓库
|
|
25
|
-
2. 新建 Feat_xxx 分支
|
|
26
|
-
3. 提交代码
|
|
27
|
-
4. 新建 Pull Request
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
#### 特技
|
|
31
|
-
|
|
32
|
-
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
33
|
-
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
34
|
-
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
35
|
-
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
36
|
-
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
37
|
-
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/package.json
CHANGED
package/types/global.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本文件描述:
|
|
3
|
+
* 在打包工具库时,需要将此文件加入打包范围 ,在package.json文件加入配置: "types": "types/index.d.ts",
|
|
4
|
+
* 这个配置就是我们在引入npm库的时候引入ts文件时,会自动引入types/index.d.ts文件 检查类型
|
|
5
|
+
* 平时我们引入工具报错:文件“d:/CODE/m-ui/node_modules/m-tool-store”不是模块。或者找不到模块 , 就是找不到这个声明文件
|
|
6
|
+
* 1. 在这里添加export declare const FormatterUtils
|
|
7
|
+
* 2. 在其他项目引入工具库 import时,编辑器会进行代码引入提示
|
|
8
|
+
* */
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
1
12
|
import { Dayjs } from 'dayjs';
|
|
13
|
+
export { MenuItemType } from './global.d'
|
|
2
14
|
|
|
3
15
|
/**
|
|
4
16
|
* 格式化工具类
|