element-like 0.1.0 → 0.1.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 +3 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
一个仿 Element UI / Element Plus 的 Vue 3 组件库:从零封装常用 UI 组件,配套设计 token 体系、组件文档与单元测试。支持 npm 安装全量/按需注册,也支持 CDN `<script>` 直引。
|
|
4
4
|
|
|
5
|
+
**在线预览**:组件交互效果可在 GitHub Pages 直接体验 → <https://bingquan040601.github.io/element-like/icon>(站点托管于 GitHub Pages,部分地区访问较慢,必要时请使用代理)
|
|
6
|
+
|
|
5
7
|
## 安装
|
|
6
8
|
|
|
7
9
|
需要 **Vue** `^3.5.0`(peerDependency,由使用方自行安装):
|
|
@@ -63,7 +65,7 @@ CDN `<script>` 直引、图标机制、TypeScript 支持与常见问题等完整
|
|
|
63
65
|
- ✅ **Tooltip 文字提示** —— 支持 hover / click / focus 三种触发方式、延时与手动控制、自动翻转定位,详见 [src/components/Tooltip/README.md](src/components/Tooltip/README.md)
|
|
64
66
|
- ✅ **Dropdown 下拉菜单** —— 复用 Tooltip 的显示/定位机制,选择条目触发 select 事件,详见 [src/components/Dropdown/README.md](src/components/Dropdown/README.md)
|
|
65
67
|
|
|
66
|
-
各组件的示例页(`src/views/*View.vue
|
|
68
|
+
各组件的示例页(`src/views/*View.vue`)已接入路由,除在开发服务器中预览外,也可通过上文的在线预览地址直接体验。
|
|
67
69
|
|
|
68
70
|
## 开发
|
|
69
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "element-like",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A Vue 3 components library with Element-style UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
"build-umd": "vite build --config vite.umd.config.ts",
|
|
46
46
|
"move-style": "node scripts/move-style.mjs",
|
|
47
47
|
"copy-types": "node scripts/copy-types.mjs",
|
|
48
|
+
"build:site": "run-p type-check \"build-site-only {@}\" --",
|
|
49
|
+
"build-site-only": "vite build --base=/element-like/",
|
|
48
50
|
"preview": "vite preview",
|
|
49
51
|
"test:unit": "vitest",
|
|
50
52
|
"build-only": "vite build",
|