look-ui 1.1.27 → 1.1.29
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/.release-it.json +1 -1
- package/CHANGELOG.md +32 -0
- package/README.md +40 -9
- package/dist/look-ui.common.js +2 -2
- package/dist/look-ui.css +1 -1
- package/dist/look-ui.umd.js +1 -1
- package/dist/look-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/imgs/publish-flow.png +0 -0
package/.release-it.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [1.1.29](http://192.168.0.66/font-end/look-ui/compare/1.1.28...1.1.29) (2023-11-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 修复任务重复出现在不同的列表中 ([c87959e](http://192.168.0.66/font-end/look-ui/commits/c87959efda64b14af9b68b4b7b49527f3b50daf3))
|
|
9
|
+
|
|
10
|
+
## [1.1.28](http://192.168.0.66/font-end/look-ui/compare/1.1.23...1.1.28) (2023-11-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 修复点击标题问题 ([fce11f8](http://192.168.0.66/font-end/look-ui/commits/fce11f8cfed110312f3349c144ac17d180e7927b))
|
|
16
|
+
* 修复点击查看详情没有返回当前任务信息问题 ([c357609](http://192.168.0.66/font-end/look-ui/commits/c357609d801b35425f148806039b441a33df2ba8))
|
|
17
|
+
* 修复任务列表变化时数据没更新 ([bf226fc](http://192.168.0.66/font-end/look-ui/commits/bf226fc4bd25a20cacfa0eb08c0bb84cbf5f8965))
|
|
18
|
+
* 修复任务状态为空时显示不正确的问题 ([8f6cfb1](http://192.168.0.66/font-end/look-ui/commits/8f6cfb1a284404fc7888272eb20ebcf1239e90c6))
|
|
19
|
+
* 修复webpack报错问题 ([4ad42a5](http://192.168.0.66/font-end/look-ui/commits/4ad42a5082e0d372dba375f740a3d8abae26e85a))
|
|
20
|
+
* 页面首次加载添加tenantId参数 ([63a1250](http://192.168.0.66/font-end/look-ui/commits/63a1250e0c250a5b6d285c89a887e889dfc8849f))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* 添加查重结果操作按钮自定义插槽 ([35ce733](http://192.168.0.66/font-end/look-ui/commits/35ce733081d4c471d58e154d441aae8a13e9f9b6))
|
|
26
|
+
* 添加查重结果详情回调 ([8214267](http://192.168.0.66/font-end/look-ui/commits/82142679185e4a35064c5871dabe3ac033bd8d15))
|
|
27
|
+
* 添加点击任务标题回调 ([8697c36](http://192.168.0.66/font-end/look-ui/commits/8697c36d08ee1bfb44df3b6ec9c1f0cfde83ace2))
|
|
28
|
+
* 添加取消关注、归并等按钮的回调 ([0049cea](http://192.168.0.66/font-end/look-ui/commits/0049cea09afda62d3229b30347ad91d65c0bfdae))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Performance Improvements
|
|
32
|
+
|
|
33
|
+
* 优化数据太多时切换任务类型会造成卡顿效果 ([9d617dc](http://192.168.0.66/font-end/look-ui/commits/9d617dc5ff7a6a3a1d2b2e64e7f8283c90236579))
|
|
34
|
+
|
|
3
35
|
## [1.1.27](http://192.168.0.66/font-end/look-ui/compare/1.1.23...1.1.27) (2023-11-02)
|
|
4
36
|
|
|
5
37
|
|
package/README.md
CHANGED
|
@@ -1,16 +1,47 @@
|
|
|
1
|
-
# look-ui
|
|
1
|
+
# look-ui 鹿鸣前端组件包
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## 如何新建组件?
|
|
3
|
+
## 一. 如何新建组件?
|
|
6
4
|
1. 在 packages 目录下新建组件文件夹, 名字为 look-xxx, 目录结构参考现有组件
|
|
7
5
|
2. 在 packages/index.js 文件中引入该组件即可
|
|
8
6
|
|
|
9
|
-
## 如何打包成组件库?
|
|
7
|
+
## 二. 如何打包成组件库?
|
|
10
8
|
1. 在终端执行 `npm run lib` 命令即可
|
|
11
9
|
|
|
12
|
-
## 如何发布到 npm ?
|
|
10
|
+
## 三. 如何发布到 npm ?
|
|
11
|
+
|
|
12
|
+
### 3.1. 准备
|
|
13
|
+
1. 修改 npm 源为 npm 官方源, 否则在发布时会报错, 在终端执行 `npm config set registry https://registry.npmjs.org/`
|
|
14
|
+
2. 执行 `npm login` , 登录 npm 账号
|
|
15
|
+
3. 确保已经执行了 `npm run lib` 命令
|
|
16
|
+
|
|
17
|
+
### 3.2. 手动发布
|
|
13
18
|
1. 修改 package.json 中的 version 版本号
|
|
14
|
-
2.
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
2. 执行 `npm publish` 发布到 npm 官方源
|
|
20
|
+
|
|
21
|
+
### 3.3. 自动发布
|
|
22
|
+
1. 执行 `npm run release --release-as x.y.z` 其中 x.y.z 为版本号, 例如这次你想发布的版本是 1.1.28, 那就将 1.1.28 填入 x.y.z 中
|
|
23
|
+
2. 然后系统会自动修改 `CHANGELOG.md`, `package.json` 和 `package-lock.json` 文件
|
|
24
|
+
3. 接着会出现4个问题, 一路 yes 就行, 如下图:
|
|
25
|
+

|
|
26
|
+
|
|
27
|
+
> 注意: git 提交信息应以`feat、chore、fix、style、refactor、perf`等前缀作为开头(更多前缀可搜索 git-cz), 否则提交信息不会出现在 CHANGELOG.md 中
|
|
28
|
+
|
|
29
|
+
### 3.4. 用哪个?
|
|
30
|
+
推荐使用自动发布, 它会自动生成 CHANGELOG.md 文件, 方便查看更新内容.
|
|
31
|
+
|
|
32
|
+
### 3.5. 修改版本号的规则
|
|
33
|
+
|
|
34
|
+
- 在 npm 包的版本号 x.y.z 中,x 代表主版本号,y 代表次版本号,z 代表修订版本号;
|
|
35
|
+
- 当进行重大更改且不兼容上一个版本时,增加主版本号;
|
|
36
|
+
- 当添加新功能或进行向后兼容的修复时,增加次版本号;
|
|
37
|
+
- 当修复 bug 或小的改动时,增加修订版本号。
|
|
38
|
+
|
|
39
|
+
## 四. 如何避免频繁发布更新?
|
|
40
|
+
|
|
41
|
+
问题: 如果组件库只修改了一个小问题, 比如字眼和样式调整, 为了调试和验证, 必须发布新版本, 但这样频繁发布更新, 显然不太合理。
|
|
42
|
+
|
|
43
|
+
解决: 假设现在有个项目 A 需要引入 look-ui, 可以使用以下方法避免频繁发布更新:
|
|
44
|
+
1. 先在 look-ui 项目中执行 npm link(执行完毕后, 会在全局的 node_modules 文件夹里生成一个 look-ui 的软连接, 指向实际的 look-ui)
|
|
45
|
+
2. 在 A 项目里执行 npm link look-ui(执行完毕后, 会在 A 项目里的 node_modules 文件夹里生成一个 look-ui 的软连接, 指向实际的 look-ui) 即可
|
|
46
|
+
|
|
47
|
+
|