yc-vep-ui 0.3.42 → 0.3.43
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 +37 -0
- package/dist/components/Filter/index.vue.d.ts +0 -6
- package/dist/components/Filter/type.d.ts +1 -0
- package/dist/{entry-CDc4BKLZ.js → entry-BpAmfTwc.js} +519 -505
- package/dist/hooks/index.js +1 -1
- package/dist/index.css +11 -10
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/vep-ui.js +2 -2
- package/package.json +17 -11
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# 基于 vue3 + element-plus 的UI组件库
|
|
4
|
+
|
|
5
|
+
## 介绍 📖
|
|
6
|
+
vep-ui => vue element plus - ui
|
|
7
|
+
这是一个基于 vue3 + element-plus 的UI组件库,主要用于快速搭建后台管理系统。简化开发流程,提高开发效率。
|
|
8
|
+
|
|
9
|
+
组件包括:
|
|
10
|
+
table、from、tree、editor、card、InfiniteScroll、dialog、upload、staffSelect等
|
|
11
|
+
|
|
12
|
+
## 特性 🚀
|
|
13
|
+
无vue, element-plus, element-plus-icons-vue, 仅依赖宿主项目,体积较小,易于使用。
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## 安装 📦
|
|
17
|
+
```bash
|
|
18
|
+
npm install yc-vep-ui
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 快速上手
|
|
22
|
+
在`main.ts`中引入`yc-vep-ui`
|
|
23
|
+
```ts
|
|
24
|
+
import { createApp } from 'vue'
|
|
25
|
+
import ElementPlus from 'element-plus'
|
|
26
|
+
import * as Vue from 'vue'
|
|
27
|
+
import VepUi, { setHostVue } from 'yc-vep-ui'
|
|
28
|
+
import 'yc-vep-ui/dist/index.css' // 引入样式
|
|
29
|
+
setHostVue(Vue) // 把vue传给yc-vep-ui
|
|
30
|
+
|
|
31
|
+
const app = createApp(App)
|
|
32
|
+
app.use(VepUi, { elementPlus: ElementPlus })
|
|
33
|
+
|
|
34
|
+
app.mount('#app')
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## 使用
|
|
@@ -8,15 +8,9 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
8
8
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
|
-
left?(_: {
|
|
12
|
-
form: import('@vue/reactivity').DistributeRef<import('vue').Reactive<T>>;
|
|
13
|
-
}): any;
|
|
14
11
|
handle?(_: {
|
|
15
12
|
form: import('@vue/reactivity').DistributeRef<import('vue').Reactive<T>>;
|
|
16
13
|
}): any;
|
|
17
|
-
right?(_: {
|
|
18
|
-
form: import('@vue/reactivity').DistributeRef<import('vue').Reactive<T>>;
|
|
19
|
-
}): any;
|
|
20
14
|
};
|
|
21
15
|
emit: (event: "search" | "reset" | "submit", ...args: any[]) => void;
|
|
22
16
|
}>) => import('vue').VNode & {
|