widget.qw 1.0.21 → 1.0.24

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.
Files changed (100) hide show
  1. package/.env.development +9 -9
  2. package/.env.production +8 -8
  3. package/README.md +73 -73
  4. package/build/style.css +482 -468
  5. package/build/widget.qw.es.js +2429 -1714
  6. package/build/widget.qw.umd.js +2347 -1632
  7. package/index.html +17 -17
  8. package/package.json +47 -47
  9. package/src/App.vue +26 -26
  10. package/src/api/index.js +141 -141
  11. package/src/components/AuditBar.vue +340 -340
  12. package/src/components/BillCard.vue +155 -155
  13. package/src/components/CascaderPicker.vue +87 -110
  14. package/src/components/CascaderPop.vue +330 -339
  15. package/src/components/CheckGroup.vue +113 -113
  16. package/src/components/DatetimePicker/DatetimePop.vue +342 -342
  17. package/src/components/DatetimePicker/index.vue +112 -112
  18. package/src/components/DayDropdown.vue +56 -56
  19. package/src/components/FilePicker.vue +113 -113
  20. package/src/components/Input.vue +71 -71
  21. package/src/components/MonthDropdown.vue +51 -51
  22. package/src/components/MultiPicker.vue +123 -123
  23. package/src/components/SecretNotify.js +5 -5
  24. package/src/components/Sheet.vue +92 -92
  25. package/src/components/SingleApiPicker.vue +112 -112
  26. package/src/components/SinglePicker.vue +102 -102
  27. package/src/components/SingleUserSelector.vue +425 -425
  28. package/src/components/Switch.vue +64 -64
  29. package/src/components/TreePicker.vue +113 -113
  30. package/src/components/UserPicker.vue +106 -106
  31. package/src/components/UserProfile.vue +131 -128
  32. package/src/components/UsersPicker.vue +118 -118
  33. package/src/components/YearDropdown.vue +59 -59
  34. package/src/components/data_selector.vue +280 -280
  35. package/src/components/image_picker.vue +114 -114
  36. package/src/components/images_picker.vue +139 -139
  37. package/src/components/index.js +157 -157
  38. package/src/components/mult_list_selector.vue +155 -155
  39. package/src/components/subdepartment_selector.vue +481 -481
  40. package/src/components/user_selector.vue +639 -639
  41. package/src/components/widget/DataPop.vue +95 -95
  42. package/src/components/widget/TreePop.vue +88 -88
  43. package/src/components/widget/UserPop.vue +347 -347
  44. package/src/main.js +117 -117
  45. package/src/router/index.ts +168 -168
  46. package/src/util/array_util.js +32 -32
  47. package/src/util/auth_util.js +72 -72
  48. package/src/util/bool_util.js +5 -5
  49. package/src/util/bus.js +1 -1
  50. package/src/util/cache_util.js +18 -18
  51. package/src/util/errer_code.js +6 -6
  52. package/src/util/eval_util.js +19 -19
  53. package/src/util/icon_util.js +36 -36
  54. package/src/util/image_util.js +27 -27
  55. package/src/util/index.js +55 -55
  56. package/src/util/num_util.js +70 -70
  57. package/src/util/obj_util.js +28 -28
  58. package/src/util/request.js +73 -73
  59. package/src/util/request_json.js +71 -71
  60. package/src/util/request_json_mute.js +65 -65
  61. package/src/util/request_upload.js +79 -79
  62. package/src/util/route_util.js +31 -31
  63. package/src/util/str_util.js +143 -143
  64. package/src/util/time_util.js +406 -406
  65. package/src/util/toast_util.js +24 -24
  66. package/src/util/tree_util.js +153 -153
  67. package/src/util/validate.js +182 -182
  68. package/src/util/vue_filter.js +223 -223
  69. package/src/views/auditbar/index.vue +65 -65
  70. package/src/views/billcard/index.vue +45 -45
  71. package/src/views/cascaderpicker/index.vue +0 -0
  72. package/src/views/cascaderpop/index.vue +90 -90
  73. package/src/views/checkgroup/index.vue +35 -35
  74. package/src/views/dataSelector/index.vue +48 -48
  75. package/src/views/datetimepicker/index.vue +34 -34
  76. package/src/views/daydropdown/index.vue +31 -31
  77. package/src/views/filepicker/index.vue +31 -31
  78. package/src/views/imagepicker/index.vue +31 -31
  79. package/src/views/imagespicker/index.vue +31 -31
  80. package/src/views/input/index.vue +34 -34
  81. package/src/views/monthdropdown/index.vue +31 -31
  82. package/src/views/multListSelector/index.vue +61 -61
  83. package/src/views/multipicker/index.vue +36 -36
  84. package/src/views/productSelector/index.vue +35 -35
  85. package/src/views/projectdropdown/index.vue +31 -31
  86. package/src/views/projectpicker/index.vue +41 -41
  87. package/src/views/secretnotify/index.vue +27 -27
  88. package/src/views/sheet/index.vue +45 -45
  89. package/src/views/singlepicker/index.vue +35 -35
  90. package/src/views/subdepartmentSelector/index.vue +40 -40
  91. package/src/views/switch/index.vue +34 -34
  92. package/src/views/treepicker/index.vue +41 -41
  93. package/src/views/userSelector/index.vue +54 -54
  94. package/src/views/userSelectorNew/index.vue +45 -45
  95. package/src/views/userpicker/index.vue +43 -43
  96. package/src/views/userprofile/index.vue +30 -30
  97. package/src/views/userspicker/index.vue +43 -43
  98. package/src/views/yeardropdown/index.vue +32 -32
  99. package/src/vm/index.js +1 -1
  100. package/vite.config.ts +122 -122
package/.env.development CHANGED
@@ -1,10 +1,10 @@
1
- NODE_ENV ='development'
2
-
3
- VITE_DOMAIN= 'https://www.hbhjhx.asia'
4
- VITE_TOKEN_KEY='Authorization'
5
- VITE_TOKEN_PREFIX='Bearer '
6
- VITE_NEED_LOGIN_CODE=401
7
- # 注意:发布时 VITE_IS_DEBUG必须配置为false
8
- # 本地开发时 VITE_IS_DEBUG必须配置为true
9
- VITE_IS_DEBUG=true
1
+ NODE_ENV ='development'
2
+
3
+ VITE_DOMAIN= 'https://www.hbhjhx.asia'
4
+ VITE_TOKEN_KEY='Authorization'
5
+ VITE_TOKEN_PREFIX='Bearer '
6
+ VITE_NEED_LOGIN_CODE=401
7
+ # 注意:发布时 VITE_IS_DEBUG必须配置为false
8
+ # 本地开发时 VITE_IS_DEBUG必须配置为true
9
+ VITE_IS_DEBUG=true
10
10
  VITE_DEBUG_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJIb3VNdSIsInJuU3RyIjoiekRaM2g2RFpGTzZta2psYnh4cmlZUHVGNmd0SnloOTUifQ.RbYHsukUgLZ6KwtktTHByCkRBLDs4Wrjz4Vb4mGSINg'
package/.env.production CHANGED
@@ -1,9 +1,9 @@
1
- NODE_ENV ='production'
2
-
3
- VITE_DOMAIN= 'https://www.hbhjhx.asia'
4
- VITE_TOKEN_KEY='Authorization'
5
- VITE_TOKEN_PREFIX='Bearer '
6
- VITE_NEED_LOGIN_CODE=401
7
- # 注意:发布时 VITE_IS_DEBUG必须配置为false
8
- # 本地开发时 VITE_IS_DEBUG必须配置为true
1
+ NODE_ENV ='production'
2
+
3
+ VITE_DOMAIN= 'https://www.hbhjhx.asia'
4
+ VITE_TOKEN_KEY='Authorization'
5
+ VITE_TOKEN_PREFIX='Bearer '
6
+ VITE_NEED_LOGIN_CODE=401
7
+ # 注意:发布时 VITE_IS_DEBUG必须配置为false
8
+ # 本地开发时 VITE_IS_DEBUG必须配置为true
9
9
  VITE_IS_DEBUG=false
package/README.md CHANGED
@@ -1,73 +1,73 @@
1
- # 组件库-vue3
2
-
3
- ## 一.安装
4
- ```
5
- 安装nrm
6
- npm i nrm -g
7
-
8
- 切换到私有仓库
9
- nrm use npm
10
-
11
- 安装组件库
12
- npm i widget.qw@latest
13
-
14
- 强制安装最新版本
15
- 清除npm缓存
16
- npm cache clean --force
17
- npm install widget.qw@latest
18
-
19
- 强制安装指定版本
20
- 清除npm缓存
21
- npm cache clean --force
22
- npm install widget.qw@1.0.14
23
- ```
24
-
25
- ## 二.配置组件
26
- ```
27
- main.js
28
-
29
- import {WIDGETQW,setup} from 'widget.qw'
30
- import 'widget.qw/build/style.css'
31
- setup({
32
- urlCallback: ()=>{
33
- return import.meta.env.DOMAIN
34
- },
35
- tokenCallback: ()=>{
36
- return util.getToken()
37
- },
38
- needLoginCallback: ()=>{
39
- router.push({path:'/login'})
40
- }
41
- })
42
-
43
- createApp(App)
44
- .use(WIDGETQW)
45
- .mount("#app");
46
- ```
47
-
48
- ## 三.组件使用
49
- ### AuditBar/流程审核组件
50
- 见实例代码views/auditBar/index.vue
51
- ### CheckGroup/复选组件
52
- 见实例代码views/CheckGroup/index.vue
53
- ### SinglePicker/单选组件
54
- 见实例代码views/SinglePicker/index.vue
55
- ### CheckGroup/复选组件
56
- 见实例代码views/CheckGroup/index.vue
57
-
58
-
59
-
60
- ## 四.发布组件
61
- 拉取widget.qw组件库源码 <br/>
62
- git clone https://gitee.com/hothotsavage/widget.qw.git
63
-
64
- 打包<br/>
65
- 注意:发布时 vite.config.ts的VUE_APP_IS_DEBUG必须配置为false<br/>
66
- npm run build
67
-
68
- 添加账号<br/>
69
- npm adduser --registry=https://registry.npmjs.org
70
-
71
- 发布<br/>
72
- npm publish
73
-
1
+ # 组件库-vue3
2
+
3
+ ## 一.安装
4
+ ```
5
+ 安装nrm
6
+ npm i nrm -g
7
+
8
+ 切换到私有仓库
9
+ nrm use npm
10
+
11
+ 安装组件库
12
+ npm i widget.qw@latest
13
+
14
+ 强制安装最新版本
15
+ 清除npm缓存
16
+ npm cache clean --force
17
+ npm install widget.qw@latest
18
+
19
+ 强制安装指定版本
20
+ 清除npm缓存
21
+ npm cache clean --force
22
+ npm install widget.qw@1.0.14
23
+ ```
24
+
25
+ ## 二.配置组件
26
+ ```
27
+ main.js
28
+
29
+ import {WIDGETQW,setup} from 'widget.qw'
30
+ import 'widget.qw/build/style.css'
31
+ setup({
32
+ urlCallback: ()=>{
33
+ return import.meta.env.DOMAIN
34
+ },
35
+ tokenCallback: ()=>{
36
+ return util.getToken()
37
+ },
38
+ needLoginCallback: ()=>{
39
+ router.push({path:'/login'})
40
+ }
41
+ })
42
+
43
+ createApp(App)
44
+ .use(WIDGETQW)
45
+ .mount("#app");
46
+ ```
47
+
48
+ ## 三.组件使用
49
+ ### AuditBar/流程审核组件
50
+ 见实例代码views/auditBar/index.vue
51
+ ### CheckGroup/复选组件
52
+ 见实例代码views/CheckGroup/index.vue
53
+ ### SinglePicker/单选组件
54
+ 见实例代码views/SinglePicker/index.vue
55
+ ### CheckGroup/复选组件
56
+ 见实例代码views/CheckGroup/index.vue
57
+
58
+
59
+
60
+ ## 四.发布组件
61
+ 拉取widget.qw组件库源码 <br/>
62
+ git clone https://gitee.com/hothotsavage/widget.qw.git
63
+
64
+ 打包<br/>
65
+ 注意:发布时 vite.config.ts的VUE_APP_IS_DEBUG必须配置为false<br/>
66
+ npm run build
67
+
68
+ 添加账号<br/>
69
+ npm adduser --registry=https://registry.npmjs.org
70
+
71
+ 发布<br/>
72
+ npm publish
73
+