xydata-tools 1.0.42 → 1.0.44
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 +103 -106
- package/dist/assets/file-icon/document.png +0 -0
- package/dist/assets/file-icon/image.png +0 -0
- package/dist/assets/file-icon/ms-excel.png +0 -0
- package/dist/assets/file-icon/ms-powerpoint.png +0 -0
- package/dist/assets/file-icon/ms-word.png +0 -0
- package/dist/assets/file-icon/pdf.png +0 -0
- package/dist/assets/file-icon/video.png +0 -0
- package/dist/components/uni-app/file-picker/file-picker.vue +617 -0
- package/dist/components/uni-app/file-picker/styles.scss +201 -0
- package/dist/components/uni-app/media-picker/media-picker.vue +1127 -0
- package/dist/components/uni-app/media-picker/shmily-drag-media.vue +777 -0
- package/dist/components/uni-app/media-picker/styles.scss +520 -0
- package/dist/types/components/aaa/auth/index.d.ts +1 -1
- package/dist/types/components/aaa/setting/permission/components/UpdateForm.d.ts +1 -1
- package/dist/types/components/aaa/setting/permission/components/UriModal.d.ts +1 -1
- package/dist/types/components/aaa/setting/permission/index.d.ts +1 -1
- package/dist/types/components/aaa/setting/requesturl/components/UpdateForm.d.ts +1 -1
- package/dist/types/components/aaa/setting/requesturl/index.d.ts +1 -1
- package/dist/types/components/aaa/setting/role/components/UpdateForm.d.ts +1 -1
- package/dist/types/components/aaa/setting/role/index.d.ts +1 -1
- package/dist/types/components/aaa/setting/user/components/UpdateForm.d.ts +1 -1
- package/dist/types/components/aaa/setting/user/index.d.ts +1 -1
- package/dist/types/components/both/security-layout/index.d.ts +1 -1
- package/dist/types/components/dictionary/components/UpdateForm.d.ts +1 -1
- package/dist/types/components/dictionary/index.d.ts +1 -1
- package/dist/types/components/downloadFile/index.d.ts +1 -1
- package/dist/types/components/materialCard/index.d.ts +1 -1
- package/dist/types/components/organization/components/CreatePeopleForm.d.ts +1 -1
- package/dist/types/components/organization/components/CreateSubStoreForm.d.ts +1 -1
- package/dist/types/components/organization/components/OrgTree.d.ts +1 -1
- package/dist/types/components/organization/index.d.ts +1 -1
- package/dist/types/components/sso/security-layout/index.d.ts +1 -1
- package/dist/types/components/sso/setting/permRole/index.d.ts +1 -1
- package/dist/types/components/sso/setting/permission/components/UpdateForm.d.ts +1 -1
- package/dist/types/components/sso/setting/permission/index.d.ts +1 -1
- package/dist/types/components/sso/setting/role/components/UpdateForm.d.ts +1 -1
- package/dist/types/components/sso/setting/role/index.d.ts +1 -1
- package/dist/types/components/sso/setting/user/components/RoleUpdateForm.d.ts +1 -1
- package/dist/types/components/sso/setting/user/index.d.ts +1 -1
- package/dist/types/components/tools/version.d.ts +1 -1
- package/dist/types/components/uploadFile/index.d.ts +1 -1
- package/dist/uniapp.d.ts +452 -0
- package/dist/uniapp.js +3 -3
- package/package.json +28 -5
- package/dist/components/uni-app/PicPicker.vue +0 -452
- package/dist/components/uni-app/VideoPicker.vue +0 -462
- package/dist/types/uniapp.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,106 +1,103 @@
|
|
|
1
|
-
# 鑫义科技前端开发者工具包
|
|
2
|
-
|
|
3
|
-
内网文档:[http://172.16.1.254:8090/display/UX/xydata-tools](http://172.16.1.254:8090/display/UX/xydata-tools)
|
|
4
|
-
|
|
5
|
-
# xydata-tools 文档索引
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
npm
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
npm
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
---
|
|
1
|
+
# 鑫义科技前端开发者工具包
|
|
2
|
+
|
|
3
|
+
内网文档:[http://172.16.1.254:8090/display/UX/xydata-tools](http://172.16.1.254:8090/display/UX/xydata-tools)
|
|
4
|
+
|
|
5
|
+
# xydata-tools 文档索引
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
#### Web 端组件
|
|
9
|
+
|
|
10
|
+
- [附件上传组件](./docs/组件使用文档/附件上传组件.md)
|
|
11
|
+
|
|
12
|
+
- 支持图片、文件上传
|
|
13
|
+
- 内置文件大小、格式校验
|
|
14
|
+
- 支持预览功能
|
|
15
|
+
|
|
16
|
+
- [附件下载组件](./docs/组件使用文档/附件下载组件.md)
|
|
17
|
+
|
|
18
|
+
- 支持链接和流式文件下载
|
|
19
|
+
- 兼容原生按钮功能
|
|
20
|
+
|
|
21
|
+
- [数据字典组件](./docs/组件使用文档/数据字典.md)
|
|
22
|
+
|
|
23
|
+
- 完整的数据字典管理功能
|
|
24
|
+
- 支持分类管理
|
|
25
|
+
|
|
26
|
+
- [组织机构组件](./docs/组件使用文档/组织机构.md)
|
|
27
|
+
|
|
28
|
+
- 树形结构展示
|
|
29
|
+
- 人员管理功能
|
|
30
|
+
|
|
31
|
+
#### uni-app 组件
|
|
32
|
+
|
|
33
|
+
- [MediaPicker - 媒体选择器](./docs/uniapp/MediaPicker.md)
|
|
34
|
+
- [FilePicker - 文件选择器](./docs/uniapp/FilePicker.md)
|
|
35
|
+
|
|
36
|
+
### 模版使用文档
|
|
37
|
+
|
|
38
|
+
- [AAA 模版](./docs/模版使用文档/AAA模版.md)
|
|
39
|
+
|
|
40
|
+
- 适用场景:有独立登录页面,不支持统一登录
|
|
41
|
+
- 包含:SecurityLayout、系统管理模块
|
|
42
|
+
|
|
43
|
+
- [SSO 模版](./docs/模版使用文档/SSO模版.md)
|
|
44
|
+
|
|
45
|
+
- 适用场景:没有独立登录页面,支持统一登录
|
|
46
|
+
- 包含:SecurityLayout、系统管理模块
|
|
47
|
+
|
|
48
|
+
- [Both 模版](./docs/模版使用文档/Both模版.md)
|
|
49
|
+
|
|
50
|
+
- 适用场景:同时支持独立登录和统一登录
|
|
51
|
+
- 包含:SecurityLayout
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 本地开发
|
|
56
|
+
|
|
57
|
+
react
|
|
58
|
+
|
|
59
|
+
1. 在项目根目录执行:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
yarn dev
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
2. 在 example 目录下执行:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
yarn start
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
3. example 是一个由 `umi` 搭建的后台项目,可直接引用 `xydata-tools` 内的组件进行预览。
|
|
72
|
+
4. 新组件可在 `/xydata-tools/src/components` 下进行开发更新。
|
|
73
|
+
5. 在 src 内的修改操作将会被实时编译到 dist 文件夹中。
|
|
74
|
+
|
|
75
|
+
uniapp
|
|
76
|
+
|
|
77
|
+
1. 在项目根目录执行:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
yarn dev
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
2. 在 example-uniapp 下运行
|
|
84
|
+
```bash
|
|
85
|
+
yarn link xydata-tools
|
|
86
|
+
```
|
|
87
|
+
3. 将 example-uniapp 添加到 H-Builder 中运行
|
|
88
|
+
|
|
89
|
+
打包发布:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npm run prepublishOnly
|
|
93
|
+
npm config set registry https://registry.npmjs.org
|
|
94
|
+
npm publish -d
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
发布完成后,还原 npm 源(淘宝源):
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
npm config set registry https://registry.npmmirror.com
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|