gm-printer-label 3.3.6 → 3.4.0-beat.0
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 +71 -71
- package/lib/main.js +27 -0
- package/lib/package.json +96 -0
- package/package.json +96 -100
- package/.eslintrc.js +0 -12
- package/.github/workflows/release.yml +0 -46
- package/.prettierrc.js +0 -5
- package/.stylelintrc +0 -3
- package/babel.config.js +0 -7
- package/i18n.config.js +0 -9
- package/locales/en.json +0 -42
- package/locales/index.js +0 -32
- package/locales/th.json +0 -42
- package/locales/zh-HK.json +0 -43
- package/locales/zh.json +0 -1
- package/postcss.config.js +0 -9
- package/src/common/config.js +0 -82
- package/src/common/editor_compoents/component.js +0 -481
- package/src/common/editor_compoents/config_text.js +0 -47
- package/src/common/editor_compoents/context_menu.js +0 -129
- package/src/common/editor_compoents/edit.js +0 -106
- package/src/common/editor_compoents/edit_add_filed.js +0 -54
- package/src/common/editor_compoents/edit_modify_filed.js +0 -199
- package/src/common/editor_compoents/edit_select.js +0 -212
- package/src/common/editor_compoents/edit_title.js +0 -110
- package/src/common/editor_compoents/index.js +0 -10
- package/src/common/editor_compoents/store.js +0 -381
- package/src/common/editor_compoents/style.less +0 -425
- package/src/common/editor_compoents/with_shadow_dom_hoc.js +0 -30
- package/src/common/editor_compoents/with_store_hoc.js +0 -92
- package/src/components/css/animation.less +0 -95
- package/src/components/css/button.less +0 -49
- package/src/components/css/distance.less +0 -324
- package/src/components/css/text.less +0 -74
- package/src/components/css/variables.less +0 -12
- package/src/components/dialog/index.js +0 -72
- package/src/components/dialog/style.less +0 -64
- package/src/components/dropdown/drop_down.js +0 -67
- package/src/components/dropdown/drop_down_item.js +0 -37
- package/src/components/dropdown/drop_down_items.js +0 -22
- package/src/components/dropdown/index.js +0 -9
- package/src/components/dropdown/style.less +0 -51
- package/src/components/flex/index.js +0 -103
- package/src/components/flex/style.less +0 -101
- package/src/components/index.js +0 -15
- package/src/components/index.less +0 -10
- package/src/components/input_number/index.js +0 -158
- package/src/components/input_number/style.less +0 -10
- package/src/components/select/index.js +0 -7
- package/src/components/select/option.js +0 -32
- package/src/components/select/select.js +0 -122
- package/src/components/select/style.less +0 -79
- package/src/components/tip/index.js +0 -48
- package/src/components/tip/style.less +0 -22
- package/src/editor_label/edit_store.js +0 -3
- package/src/editor_label/editor.js +0 -5
- package/src/editor_label/editor_with_shadow_dom.js +0 -4
- package/src/editor_label/index.js +0 -1
- package/src/editor_presorting/edit_store.js +0 -3
- package/src/editor_presorting/editor_with_shadow_dom.js +0 -6
- package/src/editor_presorting/index.js +0 -1
- package/src/index.js +0 -7
- package/src/printer/barcode.js +0 -38
- package/src/printer/batch_printer.js +0 -43
- package/src/printer/block.js +0 -544
- package/src/printer/components/table_type.js +0 -46
- package/src/printer/index.js +0 -111
- package/src/printer/normalize.css +0 -341
- package/src/printer/page.js +0 -26
- package/src/printer/printer.js +0 -71
- package/src/printer/qrcode.js +0 -17
- package/src/printer/style.less +0 -28
- package/src/util.js +0 -87
- package/webpack.config.js +0 -53
package/README.md
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
## 介绍
|
|
2
|
-
|
|
3
|
-
gm-printer-label是分拣标签和预分拣标签的组件库
|
|
4
|
-
|
|
5
|
-
```js
|
|
6
|
-
export * from './editor_label'//分拣标签
|
|
7
|
-
export * from './editor_presorting' // 预分拣标签
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## 启动
|
|
11
|
-
|
|
12
|
-
1. yarn,安装依赖
|
|
13
|
-
2. yarn start 启动项目
|
|
14
|
-
|
|
15
|
-
## 使用
|
|
16
|
-
|
|
17
|
-
新老架构和工位屏都有使用
|
|
18
|
-
|
|
19
|
-
## 与 erp 进行连接测试
|
|
20
|
-
|
|
21
|
-
1. 在 gm-printer-label 中,使用`yarn link`
|
|
22
|
-
2. 在 gm-static-stationv2 中使用`yarn link 'gm-printer-label'`,这样就连接上了 gm-printer-label 组件库,改动组件库的时候,就可以在 gm-static-stationv2 看到效果
|
|
23
|
-
3. 断开连接,先在 gm-printer-label 中使用`yarn unlink`,在 gm-static-stationv2 中运行`yarn unlink 'gm-printer-label'`,重新 yarn 和 yarn start 一下
|
|
24
|
-
4. 可能断开连接不太好用,不好用的时候,删除 node_modeles,关闭 gm-x-printer,重新 yarn
|
|
25
|
-
5. yarn link 不太稳定
|
|
26
|
-
|
|
27
|
-
## 版本命名规则
|
|
28
|
-
|
|
29
|
-
1. GNU 风格的版本号命名格式:主版本号 . 子版本号 [. 修正版本号 [. 编译版本号 ]],示例 : 1.2.1 (正式版本), 1.2.1-beta.0(测试版本)
|
|
30
|
-
2. 版本号管理策略:
|
|
31
|
-
1. 项目最初版本为 1.0.0
|
|
32
|
-
2. 当项目在进行了局部修改或 bug 修正时,主版本号和子版本号都不变,修正版本号加 1;示例:1.0.1
|
|
33
|
-
3. 当项目在原有的基础上增加了部分功能时,主版本号不变,子版本号加 1,修正版本号复位为 0。示例:1.1.0
|
|
34
|
-
4. 当项目在进行了重大修改或局部修正累积较多,而导致项目整体发生全局变化时,主版本号加 1.示例:2.1.0
|
|
35
|
-
|
|
36
|
-
## 版本发布
|
|
37
|
-
|
|
38
|
-
首先先切换到 npm 的环境
|
|
39
|
-
|
|
40
|
-
1. 没有登陆过,使用`npm login`登陆,一次登陆永久使用,登陆的时候会输入密码,用户名,邮箱(公司有)
|
|
41
|
-
|
|
42
|
-
2. beta 版本包的版本发布(用来测试该版本,解决该版本的 bug)
|
|
43
|
-
|
|
44
|
-
1. 将`pageage.json`中的`version`修改为`X.X.X-beta.0`,或者运行 `npm version X.X.X-beta.0`来更新`package.json`,同时创建一个 git 标签 (请参考 https://docs.npmjs.com/cli/version)。
|
|
45
|
-
|
|
46
|
-
在你的版本末尾添加 `beta.0` 非常重要。`.0` 表示它是哪个版本。当我们对 `beta` 版进行修补发布新的 `beta` 版本时,我们会将 `.0` 递增到 `.1`,以此类推。
|
|
47
|
-
|
|
48
|
-
2. ⚠️ 将该版本的包 push 到远程仓库
|
|
49
|
-
|
|
50
|
-
3. 使用`npm publish --tag beta`发布测试版本
|
|
51
|
-
|
|
52
|
-
4. 对版本进行修补时,只需要将`beta.0`递增到`beta.1`进行版本发布即可,以此类推
|
|
53
|
-
|
|
54
|
-
3. 正式版本的发布
|
|
55
|
-
|
|
56
|
-
1. 遵循上面的版本命名规则,修改`pageage.json`中的`version`版本号,或者运行 `npm version X.X.X`来更新`package.json`,同时创建一个 git 标签
|
|
57
|
-
2. ⚠️ 将正式版本 push 到远程仓库
|
|
58
|
-
3. 使用`npm publish`发布正式版本
|
|
59
|
-
4. 在自己的分支上进行发布版本即可,发完后,将分支合并到 master 上!!!
|
|
60
|
-
|
|
61
|
-
## 依赖
|
|
62
|
-
react react-dom
|
|
63
|
-
classnames
|
|
64
|
-
lodash
|
|
65
|
-
mobx mobx-react
|
|
66
|
-
big.js
|
|
67
|
-
moment
|
|
68
|
-
|
|
69
|
-
## edit 额外依赖
|
|
70
|
-
clipboard
|
|
71
|
-
|
|
1
|
+
## 介绍
|
|
2
|
+
|
|
3
|
+
gm-printer-label是分拣标签和预分拣标签的组件库
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
export * from './editor_label'//分拣标签
|
|
7
|
+
export * from './editor_presorting' // 预分拣标签
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## 启动
|
|
11
|
+
|
|
12
|
+
1. yarn,安装依赖
|
|
13
|
+
2. yarn start 启动项目
|
|
14
|
+
|
|
15
|
+
## 使用
|
|
16
|
+
|
|
17
|
+
新老架构和工位屏都有使用
|
|
18
|
+
|
|
19
|
+
## 与 erp 进行连接测试
|
|
20
|
+
|
|
21
|
+
1. 在 gm-printer-label 中,使用`yarn link`
|
|
22
|
+
2. 在 gm-static-stationv2 中使用`yarn link 'gm-printer-label'`,这样就连接上了 gm-printer-label 组件库,改动组件库的时候,就可以在 gm-static-stationv2 看到效果
|
|
23
|
+
3. 断开连接,先在 gm-printer-label 中使用`yarn unlink`,在 gm-static-stationv2 中运行`yarn unlink 'gm-printer-label'`,重新 yarn 和 yarn start 一下
|
|
24
|
+
4. 可能断开连接不太好用,不好用的时候,删除 node_modeles,关闭 gm-x-printer,重新 yarn
|
|
25
|
+
5. yarn link 不太稳定
|
|
26
|
+
|
|
27
|
+
## 版本命名规则
|
|
28
|
+
|
|
29
|
+
1. GNU 风格的版本号命名格式:主版本号 . 子版本号 [. 修正版本号 [. 编译版本号 ]],示例 : 1.2.1 (正式版本), 1.2.1-beta.0(测试版本)
|
|
30
|
+
2. 版本号管理策略:
|
|
31
|
+
1. 项目最初版本为 1.0.0
|
|
32
|
+
2. 当项目在进行了局部修改或 bug 修正时,主版本号和子版本号都不变,修正版本号加 1;示例:1.0.1
|
|
33
|
+
3. 当项目在原有的基础上增加了部分功能时,主版本号不变,子版本号加 1,修正版本号复位为 0。示例:1.1.0
|
|
34
|
+
4. 当项目在进行了重大修改或局部修正累积较多,而导致项目整体发生全局变化时,主版本号加 1.示例:2.1.0
|
|
35
|
+
|
|
36
|
+
## 版本发布
|
|
37
|
+
|
|
38
|
+
首先先切换到 npm 的环境
|
|
39
|
+
|
|
40
|
+
1. 没有登陆过,使用`npm login`登陆,一次登陆永久使用,登陆的时候会输入密码,用户名,邮箱(公司有)
|
|
41
|
+
|
|
42
|
+
2. beta 版本包的版本发布(用来测试该版本,解决该版本的 bug)
|
|
43
|
+
|
|
44
|
+
1. 将`pageage.json`中的`version`修改为`X.X.X-beta.0`,或者运行 `npm version X.X.X-beta.0`来更新`package.json`,同时创建一个 git 标签 (请参考 https://docs.npmjs.com/cli/version)。
|
|
45
|
+
|
|
46
|
+
在你的版本末尾添加 `beta.0` 非常重要。`.0` 表示它是哪个版本。当我们对 `beta` 版进行修补发布新的 `beta` 版本时,我们会将 `.0` 递增到 `.1`,以此类推。
|
|
47
|
+
|
|
48
|
+
2. ⚠️ 将该版本的包 push 到远程仓库
|
|
49
|
+
|
|
50
|
+
3. 使用`npm publish --tag beta`发布测试版本
|
|
51
|
+
|
|
52
|
+
4. 对版本进行修补时,只需要将`beta.0`递增到`beta.1`进行版本发布即可,以此类推
|
|
53
|
+
|
|
54
|
+
3. 正式版本的发布
|
|
55
|
+
|
|
56
|
+
1. 遵循上面的版本命名规则,修改`pageage.json`中的`version`版本号,或者运行 `npm version X.X.X`来更新`package.json`,同时创建一个 git 标签
|
|
57
|
+
2. ⚠️ 将正式版本 push 到远程仓库
|
|
58
|
+
3. 使用`npm publish`发布正式版本
|
|
59
|
+
4. 在自己的分支上进行发布版本即可,发完后,将分支合并到 master 上!!!
|
|
60
|
+
|
|
61
|
+
## 依赖
|
|
62
|
+
react react-dom
|
|
63
|
+
classnames
|
|
64
|
+
lodash
|
|
65
|
+
mobx mobx-react
|
|
66
|
+
big.js
|
|
67
|
+
moment
|
|
68
|
+
|
|
69
|
+
## edit 额外依赖
|
|
70
|
+
clipboard
|
|
71
|
+
|