widget.qw 0.0.1
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 +73 -0
- package/build/favicon.ico +0 -0
- package/build/style.css +763 -0
- package/build/widget.qw.es.js +20653 -0
- package/build/widget.qw.umd.js +20660 -0
- package/index.html +17 -0
- package/package.json +47 -0
- package/public/favicon.ico +0 -0
- package/src/App.vue +26 -0
- package/src/api/index.js +126 -0
- package/src/assets/avatar.png +0 -0
- package/src/assets/banner_handle.png +0 -0
- package/src/assets/bg_blue.png +0 -0
- package/src/assets/bg_white.png +0 -0
- package/src/assets/down.png +0 -0
- package/src/assets/home.jpg +0 -0
- package/src/assets/icon_box.png +0 -0
- package/src/assets/icon_dot.png +0 -0
- package/src/assets/icon_draw.png +0 -0
- package/src/assets/icon_file.png +0 -0
- package/src/assets/icon_fold.png +0 -0
- package/src/assets/icon_shield.png +0 -0
- package/src/assets/logo.png +0 -0
- package/src/components/AuditBar.vue +341 -0
- package/src/components/BillCard.vue +156 -0
- package/src/components/CheckGroup.vue +114 -0
- package/src/components/DatetimePicker/DatetimePop.vue +343 -0
- package/src/components/DatetimePicker/index.vue +113 -0
- package/src/components/DayDropdown.vue +57 -0
- package/src/components/FilePicker.vue +114 -0
- package/src/components/Input.vue +72 -0
- package/src/components/MonthDropdown.vue +52 -0
- package/src/components/MultiPicker.vue +124 -0
- package/src/components/ProjectDropdown.vue +62 -0
- package/src/components/ProjectPicker.vue +111 -0
- package/src/components/SecretNotify.js +6 -0
- package/src/components/Sheet.vue +93 -0
- package/src/components/SinglePicker.vue +103 -0
- package/src/components/SingleUserSelector.vue +425 -0
- package/src/components/Switch.vue +65 -0
- package/src/components/TreePicker.vue +113 -0
- package/src/components/UserPicker.vue +107 -0
- package/src/components/UserProfile.vue +128 -0
- package/src/components/UsersPicker.vue +118 -0
- package/src/components/YearDropdown.vue +60 -0
- package/src/components/data_selector.vue +281 -0
- package/src/components/image_picker.vue +115 -0
- package/src/components/images_picker.vue +140 -0
- package/src/components/index.js +157 -0
- package/src/components/mult_list_selector.vue +156 -0
- package/src/components/product_selector.vue +186 -0
- package/src/components/subdepartment_selector.vue +481 -0
- package/src/components/user_selector.vue +639 -0
- package/src/components/widget/DataPop.vue +96 -0
- package/src/components/widget/TreePop.vue +89 -0
- package/src/components/widget/UserPop.vue +347 -0
- package/src/env.d.ts +8 -0
- package/src/main.js +111 -0
- package/src/router/index.ts +165 -0
- package/src/util/array_util.js +32 -0
- package/src/util/auth_util.js +73 -0
- package/src/util/bool_util.js +6 -0
- package/src/util/bus.js +2 -0
- package/src/util/cache_util.js +19 -0
- package/src/util/errer_code.js +7 -0
- package/src/util/eval_util.js +20 -0
- package/src/util/icon_util.js +37 -0
- package/src/util/image_util.js +28 -0
- package/src/util/index.js +56 -0
- package/src/util/num_util.js +71 -0
- package/src/util/obj_util.js +29 -0
- package/src/util/request.js +74 -0
- package/src/util/request_json.js +72 -0
- package/src/util/request_json_mute.js +66 -0
- package/src/util/request_upload.js +79 -0
- package/src/util/route_util.js +32 -0
- package/src/util/str_util.js +144 -0
- package/src/util/time_util.js +407 -0
- package/src/util/toast_util.js +25 -0
- package/src/util/tree_util.js +120 -0
- package/src/util/validate.js +183 -0
- package/src/util/vue_filter.js +223 -0
- package/src/views/auditbar/index.vue +66 -0
- package/src/views/billcard/index.vue +46 -0
- package/src/views/checkgroup/index.vue +36 -0
- package/src/views/dataSelector/index.vue +49 -0
- package/src/views/datetimepicker/index.vue +35 -0
- package/src/views/daydropdown/index.vue +31 -0
- package/src/views/filepicker/index.vue +32 -0
- package/src/views/home/index.vue +64 -0
- package/src/views/imagepicker/index.vue +32 -0
- package/src/views/imagespicker/index.vue +32 -0
- package/src/views/input/index.vue +35 -0
- package/src/views/monthdropdown/index.vue +31 -0
- package/src/views/multListSelector/index.vue +61 -0
- package/src/views/multipicker/index.vue +37 -0
- package/src/views/productSelector/index.vue +35 -0
- package/src/views/projectdropdown/index.vue +31 -0
- package/src/views/projectpicker/index.vue +42 -0
- package/src/views/secretnotify/index.vue +28 -0
- package/src/views/sheet/index.vue +46 -0
- package/src/views/singlepicker/index.vue +36 -0
- package/src/views/subdepartmentSelector/index.vue +41 -0
- package/src/views/switch/index.vue +35 -0
- package/src/views/treepicker/index.vue +42 -0
- package/src/views/userSelector/index.vue +54 -0
- package/src/views/userSelectorNew/index.vue +45 -0
- package/src/views/userpicker/index.vue +43 -0
- package/src/views/userprofile/index.vue +30 -0
- package/src/views/userspicker/index.vue +43 -0
- package/src/views/yeardropdown/index.vue +32 -0
- package/src/vm/index.js +6 -0
- package/tsconfig.json +19 -0
- package/tsconfig.node.json +8 -0
- package/vite.config.ts +73 -0
package/README.md
ADDED
|
@@ -0,0 +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 process.env.VUE_APP_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
|
+
|
|
Binary file
|