@weaveui/web 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/LICENSE +35 -0
- package/README.md +119 -0
- package/THIRD_PARTY_NOTICES +29 -0
- package/dist/apm-log.es.js +996 -0
- package/dist/apm-log.umd.cjs +1 -0
- package/dist/business/apm-log/behavior-directive.d.ts +9 -0
- package/dist/business/apm-log/behavior-log.d.ts +6 -0
- package/dist/business/apm-log/behavior-types.d.ts +121 -0
- package/dist/business/apm-log/browser.d.ts +3 -0
- package/dist/business/apm-log/directive.d.ts +13 -0
- package/dist/business/apm-log/index.d.ts +8 -0
- package/dist/business/apm-log/legacy-apm-log.d.ts +6 -0
- package/dist/business/apm-log/types.d.ts +147 -0
- package/dist/business/apm-log/vue.d.ts +5 -0
- package/dist/business/monitor/index.d.ts +81 -0
- package/dist/business/monitor/monitor-plugin.d.ts +9 -0
- package/dist/business/monitor/runtime-types.d.ts +166 -0
- package/dist/business/monitor/runtime.d.ts +6 -0
- package/dist/business/monitor/types.d.ts +221 -0
- package/dist/business/permission/Permission.d.ts +18 -0
- package/dist/business/permission/PermissionPluginClass.d.ts +40 -0
- package/dist/business/permission/directive.d.ts +7 -0
- package/dist/business/permission/index.d.ts +35 -0
- package/dist/business/permission/permission-plugin.d.ts +16 -0
- package/dist/business/permission/storage.d.ts +30 -0
- package/dist/business/permission/tree.d.ts +19 -0
- package/dist/business/permission/types.d.ts +115 -0
- package/dist/business/upload-cos/index.d.ts +117 -0
- package/dist/business/upload-cos/src/UploadCos.vue.d.ts +70 -0
- package/dist/business/upload-cos/src/types.d.ts +72 -0
- package/dist/business/upload-cos/src/utils.d.ts +9 -0
- package/dist/index.d.ts +1894 -0
- package/dist/index.es.js +4315 -0
- package/dist/index.umd.cjs +6 -0
- package/dist/monitor.es.js +1217 -0
- package/dist/monitor.umd.cjs +1 -0
- package/dist/permission.es.js +631 -0
- package/dist/permission.umd.cjs +1 -0
- package/dist/style.css +1 -0
- package/dist/upload-cos.es.js +426 -0
- package/dist/upload-cos.style.css +1 -0
- package/dist/upload-cos.umd.cjs +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/is.d.ts +2 -0
- package/dist/utils/withInstall.d.ts +7 -0
- package/package.json +105 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Element Custom UI Public Use License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 北京易油互联科技. All rights reserved.
|
|
4
|
+
|
|
5
|
+
1. Grant of License
|
|
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 Element Custom UI package as a dependency of the recipient's own applications, including commercial and internal applications.
|
|
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 Element Custom UI under this license.
|
|
10
|
+
|
|
11
|
+
2. Restrictions
|
|
12
|
+
|
|
13
|
+
Except for the limited rights expressly granted above, the recipient may not:
|
|
14
|
+
|
|
15
|
+
a. modify, adapt, translate, or create derivative works of Element Custom UI;
|
|
16
|
+
b. publish, distribute, mirror, sublicense, sell, rent, lease, transfer, or otherwise make Element Custom UI available as a standalone package, component library, source archive, or asset collection;
|
|
17
|
+
c. republish Element Custom UI, 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 Element Custom UI; or
|
|
19
|
+
e. represent a modified, extracted, or repackaged version of Element Custom UI as an official Element Custom UI release.
|
|
20
|
+
|
|
21
|
+
3. Ownership
|
|
22
|
+
|
|
23
|
+
Element Custom UI 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
|
+
|
|
25
|
+
4. Trademarks
|
|
26
|
+
|
|
27
|
+
This license does not grant permission to use the Element Custom UI name, the 北京易油互联科技 name, or any related trademark except as necessary to identify the unmodified package in accordance with this license.
|
|
28
|
+
|
|
29
|
+
5. Disclaimer and Limitation of Liability
|
|
30
|
+
|
|
31
|
+
Element Custom UI 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 Element Custom UI or its use.
|
|
32
|
+
|
|
33
|
+
6. Termination
|
|
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 Element Custom UI and remove it from its applications and distribution channels.
|
package/README.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# Element Custom UI
|
|
2
|
+
|
|
3
|
+
`@weaveui/web` 是基于 Vue 3、Element Plus、Vite 的Web 端组件库。
|
|
4
|
+
|
|
5
|
+
## 项目用途
|
|
6
|
+
|
|
7
|
+
- 维护公司 Web 端通用 UI 组件,统一后台系统、运营系统和管理端项目的交互与样式。
|
|
8
|
+
- 沉淀公司业务扩展入口,包括 COS 上传、行为日志、前端监控和页面权限。
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 目录结构
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
web-ui/
|
|
15
|
+
├── src/ # 组件库源码
|
|
16
|
+
│ ├── components/ # Web 通用组件
|
|
17
|
+
│ │ ├── button/
|
|
18
|
+
│ │ ├── copy-text/
|
|
19
|
+
│ │ ├── upload/
|
|
20
|
+
│ │ ├── custom-table/
|
|
21
|
+
│ │ ├── custom-tree/
|
|
22
|
+
│ │ ├── dialog/
|
|
23
|
+
│ │ ├── file-previewer/
|
|
24
|
+
│ │ ├── member-selector/
|
|
25
|
+
│ │ └── ...
|
|
26
|
+
│ ├── business/ # 业务扩展
|
|
27
|
+
│ │ ├── upload-cos/ # COS 上传扩展
|
|
28
|
+
│ │ ├── apm-log/ # 行为日志扩展
|
|
29
|
+
│ │ ├── monitor/ # 前端监控扩展
|
|
30
|
+
│ │ └── permission/ # 页面权限扩展
|
|
31
|
+
│ ├── styles/ # 组件库样式入口
|
|
32
|
+
│ ├── utils/ # 组件安装、类型判断等工具
|
|
33
|
+
│ ├── meta.ts # 品牌名、插件名和运行时标识集中配置
|
|
34
|
+
│ └── index.ts # 组件库主入口
|
|
35
|
+
├── examples/ # Web 组件示例/验证工程
|
|
36
|
+
│ ├── src/ # 示例项目源码
|
|
37
|
+
│ ├── public/config/ # 示例项目运行时配置
|
|
38
|
+
│ ├── types/ # 示例项目类型声明
|
|
39
|
+
│ └── package.json # 示例项目依赖和脚本
|
|
40
|
+
├── npm-package-release.md # @weaveui/web npm 发布流程
|
|
41
|
+
├── package.json # @weaveui/web 包配置
|
|
42
|
+
├── pnpm-lock.yaml # pnpm 锁文件
|
|
43
|
+
└── README.md # 当前说明文档
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 环境要求
|
|
47
|
+
|
|
48
|
+
| 类型 | 要求/版本 |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| Node.js | 建议 `>=18` |
|
|
51
|
+
| 包管理器 | pnpm,当前 `packageManager` 为 `pnpm@10.33.0` |
|
|
52
|
+
| Vue | 开发依赖 `^3.5.13`,peer 依赖 `^3.3.0` |
|
|
53
|
+
| Element Plus | 开发依赖 `^2.14.3`,peer 依赖 `^2.3.0` |
|
|
54
|
+
| Vite | `^5.4.14` |
|
|
55
|
+
| TypeScript | `^5.7.2` |
|
|
56
|
+
|
|
57
|
+
## 安装
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm install @weaveui/web element-plus
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Element Custom UI 依赖 Vue 3 和 Element Plus,不支持 Vue 2 或 Element UI。
|
|
64
|
+
|
|
65
|
+
全局注册:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
import { createApp } from 'vue'
|
|
69
|
+
import ElementPlus from 'element-plus'
|
|
70
|
+
import ElementCustomUI from '@weaveui/web'
|
|
71
|
+
import 'element-plus/dist/index.css'
|
|
72
|
+
import '@weaveui/web/style.css'
|
|
73
|
+
import App from './App.vue'
|
|
74
|
+
|
|
75
|
+
const app = createApp(App)
|
|
76
|
+
app.use(ElementPlus)
|
|
77
|
+
app.use(ElementCustomUI)
|
|
78
|
+
app.mount('#app')
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
按需导入:
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
import { CopyText, TimelinePro } from '@weaveui/web'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## 本地开发
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pnpm install
|
|
92
|
+
pnpm dev
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
常用检查与构建:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pnpm typecheck
|
|
99
|
+
pnpm build
|
|
100
|
+
pnpm run typecheck:lib
|
|
101
|
+
pnpm run build:lib
|
|
102
|
+
pnpm run pack:check
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 组件开发规则
|
|
106
|
+
|
|
107
|
+
- 新增通用组件放入 `src/components/组件名`,并通过 `src/index.ts` 暴露。
|
|
108
|
+
- 新增公司业务能力放入 `src/business/能力名`,默认不加入 `app.use(ElementCustomUI)` 自动安装流程。
|
|
109
|
+
- 组件必须避免直接写死公司接口、登录态、生产域名、密钥或静态资源地址,需要通过 props、回调或配置传入。
|
|
110
|
+
- 组件或业务扩展需要完整项目验证时,同步更新 `examples` 中对应页面或配置。
|
|
111
|
+
- 发布前执行 `pnpm run typecheck:lib`、`pnpm run build:lib` 和 `pnpm run pack:check`。
|
|
112
|
+
|
|
113
|
+
## 发布说明
|
|
114
|
+
|
|
115
|
+
发布前检查:
|
|
116
|
+
|
|
117
|
+
- `package.json` 的 `version`、`exports`、`files` 和 peer 依赖范围已确认。
|
|
118
|
+
- `README.md` 和组件示例已同步更新。
|
|
119
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Element Custom UI Third-Party Notices
|
|
2
|
+
|
|
3
|
+
UploadCos declares `cos-js-sdk-v5` as an optional peer dependency. The COS SDK is
|
|
4
|
+
not bundled in Element Custom UI; consumers who install it should review the license
|
|
5
|
+
included with that separately distributed package.
|
|
6
|
+
|
|
7
|
+
This package includes code from @element-plus/icons-vue.
|
|
8
|
+
|
|
9
|
+
The MIT License (MIT)
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2020-PRESENT Element Plus (https://github.com/element-plus)
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|