@weaveui/web 0.0.1 → 0.0.3
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/LICENSE +12 -12
- package/README.md +15 -18
- package/THIRD_PARTY_NOTICES +2 -2
- package/dist/index.d.ts +440 -333
- package/dist/index.es.js +18408 -2694
- package/dist/index.umd.cjs +176 -6
- package/dist/style.css +1 -1
- package/package.json +11 -30
- package/dist/apm-log.es.js +0 -996
- package/dist/apm-log.umd.cjs +0 -1
- package/dist/business/apm-log/behavior-directive.d.ts +0 -9
- package/dist/business/apm-log/behavior-log.d.ts +0 -6
- package/dist/business/apm-log/behavior-types.d.ts +0 -121
- package/dist/business/apm-log/browser.d.ts +0 -3
- package/dist/business/apm-log/directive.d.ts +0 -13
- package/dist/business/apm-log/index.d.ts +0 -8
- package/dist/business/apm-log/legacy-apm-log.d.ts +0 -6
- package/dist/business/apm-log/types.d.ts +0 -147
- package/dist/business/apm-log/vue.d.ts +0 -5
- package/dist/business/monitor/index.d.ts +0 -81
- package/dist/business/monitor/monitor-plugin.d.ts +0 -9
- package/dist/business/monitor/runtime-types.d.ts +0 -166
- package/dist/business/monitor/runtime.d.ts +0 -6
- package/dist/business/monitor/types.d.ts +0 -221
- package/dist/business/permission/Permission.d.ts +0 -18
- package/dist/business/permission/PermissionPluginClass.d.ts +0 -40
- package/dist/business/permission/directive.d.ts +0 -7
- package/dist/business/permission/index.d.ts +0 -35
- package/dist/business/permission/permission-plugin.d.ts +0 -16
- package/dist/business/permission/storage.d.ts +0 -30
- package/dist/business/permission/tree.d.ts +0 -19
- package/dist/business/permission/types.d.ts +0 -115
- package/dist/business/upload-cos/index.d.ts +0 -117
- package/dist/business/upload-cos/src/UploadCos.vue.d.ts +0 -70
- package/dist/business/upload-cos/src/types.d.ts +0 -72
- package/dist/business/upload-cos/src/utils.d.ts +0 -9
- package/dist/monitor.es.js +0 -1217
- package/dist/monitor.umd.cjs +0 -1
- package/dist/permission.es.js +0 -631
- package/dist/permission.umd.cjs +0 -1
- package/dist/upload-cos.es.js +0 -426
- package/dist/upload-cos.style.css +0 -1
- package/dist/upload-cos.umd.cjs +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/is.d.ts +0 -2
- package/dist/utils/withInstall.d.ts +0 -7
package/LICENSE
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
WeaveUI Public Use License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2026 北京易油互联科技. All rights reserved.
|
|
4
4
|
|
|
5
5
|
1. Grant of License
|
|
6
6
|
|
|
7
|
-
Subject to the terms of this license, 北京易油互联科技 grants each recipient a non-exclusive, non-transferable, non-sublicensable, worldwide, royalty-free license to download, install, and use the unmodified
|
|
7
|
+
Subject to the terms of this license, 北京易油互联科技 grants each recipient a non-exclusive, non-transferable, non-sublicensable, worldwide, royalty-free license to download, install, and use the unmodified WeaveUI package as a dependency of the recipient's own applications, including commercial and internal applications.
|
|
8
8
|
|
|
9
|
-
The recipient may bundle, transpile, minify, and tree-shake unmodified package output solely as part of a normal application build and may deliver that application to its users. Those ordinary build steps do not constitute a modification or redistribution of
|
|
9
|
+
The recipient may bundle, transpile, minify, and tree-shake unmodified package output solely as part of a normal application build and may deliver that application to its users. Those ordinary build steps do not constitute a modification or redistribution of WeaveUI under this license.
|
|
10
10
|
|
|
11
11
|
2. Restrictions
|
|
12
12
|
|
|
13
13
|
Except for the limited rights expressly granted above, the recipient may not:
|
|
14
14
|
|
|
15
|
-
a. modify, adapt, translate, or create derivative works of
|
|
16
|
-
b. publish, distribute, mirror, sublicense, sell, rent, lease, transfer, or otherwise make
|
|
17
|
-
c. republish
|
|
18
|
-
d. remove or alter copyright, trademark, or license notices included with
|
|
19
|
-
e. represent a modified, extracted, or repackaged version of
|
|
15
|
+
a. modify, adapt, translate, or create derivative works of WeaveUI;
|
|
16
|
+
b. publish, distribute, mirror, sublicense, sell, rent, lease, transfer, or otherwise make WeaveUI available as a standalone package, component library, source archive, or asset collection;
|
|
17
|
+
c. republish WeaveUI, in whole or in part, to npm, another package registry, a code hosting service, or any other distribution channel;
|
|
18
|
+
d. remove or alter copyright, trademark, or license notices included with WeaveUI; or
|
|
19
|
+
e. represent a modified, extracted, or repackaged version of WeaveUI as an official WeaveUI release.
|
|
20
20
|
|
|
21
21
|
3. Ownership
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
WeaveUI and all intellectual property rights in it remain the exclusive property of 北京易油互联科技. This license grants no ownership interest and no rights other than those expressly stated above.
|
|
24
24
|
|
|
25
25
|
4. Trademarks
|
|
26
26
|
|
|
27
|
-
This license does not grant permission to use the
|
|
27
|
+
This license does not grant permission to use the WeaveUI name, the 北京易油互联科技 name, or any related trademark except as necessary to identify the unmodified package in accordance with this license.
|
|
28
28
|
|
|
29
29
|
5. Disclaimer and Limitation of Liability
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
WeaveUI is provided "AS IS", without warranties of any kind, whether express, implied, statutory, or otherwise. To the maximum extent permitted by applicable law, 北京易油互联科技 shall not be liable for any claim, damages, or other liability arising from or related to WeaveUI or its use.
|
|
32
32
|
|
|
33
33
|
6. Termination
|
|
34
34
|
|
|
35
|
-
The rights granted by this license terminate automatically if the recipient breaches any term of this license. Upon termination, the recipient must stop using
|
|
35
|
+
The rights granted by this license terminate automatically if the recipient breaches any term of this license. Upon termination, the recipient must stop using WeaveUI and remove it from its applications and distribution channels.
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Weave UI for web
|
|
2
2
|
|
|
3
3
|
`@weaveui/web` 是基于 Vue 3、Element Plus、Vite 的Web 端组件库。
|
|
4
4
|
|
|
5
5
|
## 项目用途
|
|
6
6
|
|
|
7
7
|
- 维护公司 Web 端通用 UI 组件,统一后台系统、运营系统和管理端项目的交互与样式。
|
|
8
|
-
-
|
|
8
|
+
- 沉淀业务扩展入口,包括 COS 上传、行为日志、前端监控和页面权限。
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## 目录结构
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
web-ui/
|
|
15
15
|
├── src/ # 组件库源码
|
|
16
16
|
│ ├── components/ # Web 通用组件
|
|
17
|
-
│ │ ├── button/
|
|
18
17
|
│ │ ├── copy-text/
|
|
19
18
|
│ │ ├── upload/
|
|
20
19
|
│ │ ├── custom-table/
|
|
@@ -39,7 +38,7 @@ web-ui/
|
|
|
39
38
|
│ └── package.json # 示例项目依赖和脚本
|
|
40
39
|
├── npm-package-release.md # @weaveui/web npm 发布流程
|
|
41
40
|
├── package.json # @weaveui/web 包配置
|
|
42
|
-
├──
|
|
41
|
+
├── package-lock.json # npm 锁文件
|
|
43
42
|
└── README.md # 当前说明文档
|
|
44
43
|
```
|
|
45
44
|
|
|
@@ -48,7 +47,7 @@ web-ui/
|
|
|
48
47
|
| 类型 | 要求/版本 |
|
|
49
48
|
| --- | --- |
|
|
50
49
|
| Node.js | 建议 `>=18` |
|
|
51
|
-
| 包管理器 |
|
|
50
|
+
| 包管理器 | npm,当前 `packageManager` 为 `npm@10.8.2` |
|
|
52
51
|
| Vue | 开发依赖 `^3.5.13`,peer 依赖 `^3.3.0` |
|
|
53
52
|
| Element Plus | 开发依赖 `^2.14.3`,peer 依赖 `^2.3.0` |
|
|
54
53
|
| Vite | `^5.4.14` |
|
|
@@ -60,21 +59,20 @@ web-ui/
|
|
|
60
59
|
npm install @weaveui/web element-plus
|
|
61
60
|
```
|
|
62
61
|
|
|
63
|
-
Element Custom UI 依赖 Vue 3 和 Element Plus,不支持 Vue 2 或 Element UI。
|
|
64
62
|
|
|
65
63
|
全局注册:
|
|
66
64
|
|
|
67
65
|
```ts
|
|
68
66
|
import { createApp } from 'vue'
|
|
69
67
|
import ElementPlus from 'element-plus'
|
|
70
|
-
import
|
|
68
|
+
import WebUI from '@weaveui/web'
|
|
71
69
|
import 'element-plus/dist/index.css'
|
|
72
70
|
import '@weaveui/web/style.css'
|
|
73
71
|
import App from './App.vue'
|
|
74
72
|
|
|
75
73
|
const app = createApp(App)
|
|
76
74
|
app.use(ElementPlus)
|
|
77
|
-
app.use(
|
|
75
|
+
app.use(WebUI)
|
|
78
76
|
app.mount('#app')
|
|
79
77
|
```
|
|
80
78
|
|
|
@@ -88,27 +86,27 @@ import { CopyText, TimelinePro } from '@weaveui/web'
|
|
|
88
86
|
## 本地开发
|
|
89
87
|
|
|
90
88
|
```bash
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
npm install
|
|
90
|
+
npm run dev
|
|
93
91
|
```
|
|
94
92
|
|
|
95
93
|
常用检查与构建:
|
|
96
94
|
|
|
97
95
|
```bash
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
npm run typecheck
|
|
97
|
+
npm run build
|
|
98
|
+
npm run typecheck:lib
|
|
99
|
+
npm run build:lib
|
|
100
|
+
npm run pack:check
|
|
103
101
|
```
|
|
104
102
|
|
|
105
103
|
### 组件开发规则
|
|
106
104
|
|
|
107
105
|
- 新增通用组件放入 `src/components/组件名`,并通过 `src/index.ts` 暴露。
|
|
108
|
-
- 新增公司业务能力放入 `src/business/能力名`,默认不加入 `app.use(
|
|
106
|
+
- 新增公司业务能力放入 `src/business/能力名`,默认不加入 `app.use(WebUI)` 自动安装流程。
|
|
109
107
|
- 组件必须避免直接写死公司接口、登录态、生产域名、密钥或静态资源地址,需要通过 props、回调或配置传入。
|
|
110
108
|
- 组件或业务扩展需要完整项目验证时,同步更新 `examples` 中对应页面或配置。
|
|
111
|
-
- 发布前执行 `
|
|
109
|
+
- 发布前执行 `npm run typecheck:lib`、`npm run build:lib` 和 `npm run pack:check`。
|
|
112
110
|
|
|
113
111
|
## 发布说明
|
|
114
112
|
|
|
@@ -116,4 +114,3 @@ pnpm run pack:check
|
|
|
116
114
|
|
|
117
115
|
- `package.json` 的 `version`、`exports`、`files` 和 peer 依赖范围已确认。
|
|
118
116
|
- `README.md` 和组件示例已同步更新。
|
|
119
|
-
|
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
WeaveUI Third-Party Notices
|
|
2
2
|
|
|
3
3
|
UploadCos declares `cos-js-sdk-v5` as an optional peer dependency. The COS SDK is
|
|
4
|
-
not bundled in
|
|
4
|
+
not bundled in WeaveUI; consumers who install it should review the license
|
|
5
5
|
included with that separately distributed package.
|
|
6
6
|
|
|
7
7
|
This package includes code from @element-plus/icons-vue.
|