yc-vep-ui 0.1.2 → 0.1.4

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 CHANGED
@@ -1,5 +1,39 @@
1
- # Vue 3 + TypeScript + Vite
2
1
 
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
2
 
5
- Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
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/yc-vep-ui.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
+
38
+
39
+ ## 使用
@@ -16,12 +16,10 @@ declare function __VLS_template(): {
16
16
  };
17
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
18
  declare const __VLS_component: import('vue').DefineComponent<ITreeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- change: (...args: any[]) => void;
20
19
  delete: (...args: any[]) => void;
21
20
  add: (...args: any[]) => void;
22
21
  edit: (...args: any[]) => void;
23
22
  }, string, import('vue').PublicProps, Readonly<ITreeProps> & Readonly<{
24
- onChange?: ((...args: any[]) => any) | undefined;
25
23
  onDelete?: ((...args: any[]) => any) | undefined;
26
24
  onAdd?: ((...args: any[]) => any) | undefined;
27
25
  onEdit?: ((...args: any[]) => any) | undefined;
@@ -1,16 +1,16 @@
1
1
  import { IUploadProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<IUploadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
- success: (...args: any[]) => void;
4
3
  change: (...args: any[]) => void;
5
4
  error: (...args: any[]) => void;
5
+ success: (...args: any[]) => void;
6
6
  "update:modelValue": (...args: any[]) => void;
7
7
  "update:fileList": (...args: any[]) => void;
8
8
  exceed: (...args: any[]) => void;
9
9
  remove: (...args: any[]) => void;
10
10
  }, string, import('vue').PublicProps, Readonly<IUploadProps> & Readonly<{
11
- onSuccess?: ((...args: any[]) => any) | undefined;
12
11
  onChange?: ((...args: any[]) => any) | undefined;
13
12
  onError?: ((...args: any[]) => any) | undefined;
13
+ onSuccess?: ((...args: any[]) => any) | undefined;
14
14
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
15
15
  "onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
16
16
  onExceed?: ((...args: any[]) => any) | undefined;
@@ -11,32 +11,64 @@ type TimeSelectProps = any;
11
11
  type InputNumberProps = any;
12
12
  type RadioGroupProps = any;
13
13
  type TextProps = any;
14
- declare function button(props: ButtonProps | ButtonProps[]): any;
14
+ declare function button(props: ButtonProps | ButtonProps[]): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
15
+ [key: string]: any;
16
+ }>;
15
17
  declare function link(props: LinkProps & {
16
18
  prop: string;
17
19
  lineClamp?: number;
18
20
  type?: 'primary' | 'success' | 'warning' | 'info' | 'danger';
19
- }): any;
21
+ }): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
22
+ [key: string]: any;
23
+ }>;
20
24
  declare function tag(props: TagProps & {
21
25
  prop: string;
22
- }): any;
23
- declare function _switch(props: SwitchProps): any;
24
- declare function select(props: SelectProps): any;
26
+ }): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
27
+ [key: string]: any;
28
+ }>;
29
+ declare function _switch(props: SwitchProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
30
+ [key: string]: any;
31
+ }>;
32
+ declare function select(props: SelectProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
33
+ [key: string]: any;
34
+ }>;
25
35
  declare function datePicker(props: DatePickerProps & {
26
36
  onChange?: (val: string) => void;
27
- }): any;
28
- declare function timeSelect(props: TimeSelectProps): any;
29
- declare function input(props: InputProps): any;
30
- declare function inputNumber(props: InputNumberProps): any;
31
- declare function textarea(props: InputProps): any;
32
- declare function inputTag(props: InputTagProps): any;
33
- declare function editor(props: any): any;
34
- declare function radio(props: RadioGroupProps): any;
37
+ }): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
38
+ [key: string]: any;
39
+ }>;
40
+ declare function timeSelect(props: TimeSelectProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
41
+ [key: string]: any;
42
+ }>;
43
+ declare function input(props: InputProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
44
+ [key: string]: any;
45
+ }>;
46
+ declare function inputNumber(props: InputNumberProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
47
+ [key: string]: any;
48
+ }>;
49
+ declare function textarea(props: InputProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
50
+ [key: string]: any;
51
+ }>;
52
+ declare function inputTag(props: InputTagProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
53
+ [key: string]: any;
54
+ }>;
55
+ declare function editor(props: any): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
56
+ [key: string]: any;
57
+ }>;
58
+ declare function radio(props: RadioGroupProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
59
+ [key: string]: any;
60
+ }>;
35
61
  declare function text(props: TextProps & {
36
62
  prop: string;
37
- }): any;
38
- declare function staffSelect(props: any): any;
39
- declare function upload(props: IUploadProps): any;
63
+ }): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
64
+ [key: string]: any;
65
+ }>;
66
+ declare function staffSelect(props: any): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
67
+ [key: string]: any;
68
+ }>;
69
+ declare function upload(props: IUploadProps): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
70
+ [key: string]: any;
71
+ }>;
40
72
  declare const _default: {
41
73
  button: typeof button;
42
74
  link: typeof link;