@bscomp/ep-ui 0.0.7
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 +71 -0
- package/lib/button/index.d.ts +118 -0
- package/lib/button/src/index.vue.d.ts +67 -0
- package/lib/checkbox/index.d.ts +113 -0
- package/lib/checkbox/src/index.vue.d.ts +51 -0
- package/lib/components.d.ts +19 -0
- package/lib/date-picker/index.d.ts +89 -0
- package/lib/date-picker/src/index.vue.d.ts +49 -0
- package/lib/ep-ui.js +15211 -0
- package/lib/ep-ui.js.gz +0 -0
- package/lib/ep-ui.umd.cjs +40 -0
- package/lib/favicon.ico +0 -0
- package/lib/form/index.d.ts +118 -0
- package/lib/form/src/index.vue.d.ts +84 -0
- package/lib/form/src/renderBtn.vue.d.ts +8 -0
- package/lib/form/src/renderComp.vue.d.ts +8 -0
- package/lib/hook/index.d.ts +10 -0
- package/lib/index.d.ts +14 -0
- package/lib/input/index.d.ts +83 -0
- package/lib/input/src/index.vue.d.ts +46 -0
- package/lib/radio/index.d.ts +105 -0
- package/lib/radio/src/index.vue.d.ts +52 -0
- package/lib/select/index.d.ts +170 -0
- package/lib/select/src/index.vue.d.ts +99 -0
- package/lib/style.css +1 -0
- package/lib/table/index.d.ts +3108 -0
- package/lib/table/src/ColumnSet.vue.d.ts +33 -0
- package/lib/table/src/CustomRender.vue.d.ts +20 -0
- package/lib/table/src/RowEdit.vue.d.ts +16 -0
- package/lib/table/src/index.vue.d.ts +1150 -0
- package/lib/table/src/useHooks.d.ts +8 -0
- package/lib/withInstall.d.ts +5 -0
- package/package.json +89 -0
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# EP-ui
|
|
2
|
+
|
|
3
|
+
## 介绍
|
|
4
|
+
|
|
5
|
+
> 基于 vue3+ ts+ Element-plus 二次封装组件
|
|
6
|
+
|
|
7
|
+
## npm 方式安装使用
|
|
8
|
+
|
|
9
|
+
```shell
|
|
10
|
+
npm i @bscomp/ep-ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 全局注册使用
|
|
14
|
+
|
|
15
|
+
> ### 前提条件:组件库依赖 Element-plus 组件库
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
// main.js
|
|
19
|
+
import { createApp } from "vue"
|
|
20
|
+
import App from "./App.vue"
|
|
21
|
+
import ElementPlus from "element-plus"
|
|
22
|
+
import "element-plus/dist/index.css"
|
|
23
|
+
import "element-plus/theme-chalk/dark/css-vars.css"
|
|
24
|
+
import locale from "element-plus/es/locale/lang/zh-cn"
|
|
25
|
+
// element-plus图标
|
|
26
|
+
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
|
|
27
|
+
|
|
28
|
+
import EP from "@bscomp/ep-ui"
|
|
29
|
+
import "@bscomp/ep-ui/lib/style.css"
|
|
30
|
+
const app = createApp(App)
|
|
31
|
+
// 注册所有图标
|
|
32
|
+
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
33
|
+
app.component(key, component)
|
|
34
|
+
}
|
|
35
|
+
//全局注册element
|
|
36
|
+
app.use(ElementPlus, {
|
|
37
|
+
locale // 语言设置
|
|
38
|
+
})
|
|
39
|
+
app.use(EP)
|
|
40
|
+
app.mount("#app")
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 按需引入
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
// 在main.js中按需引入
|
|
47
|
+
import "@bscomp/ep-ui/lib/style.css"
|
|
48
|
+
// 单个.vue文件引入
|
|
49
|
+
;<script setup lang="ts">
|
|
50
|
+
import {EPTable} from "@bscomp/ep-ui"
|
|
51
|
+
</script>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## ep-ui Volar 组件类型提示
|
|
55
|
+
|
|
56
|
+
需要在项目 src 文件下的 env.d.ts 中引入
|
|
57
|
+
|
|
58
|
+
```js
|
|
59
|
+
/// <reference types="@bscomp/ep-ui/lib/components.d.ts" />
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 安装依赖
|
|
63
|
+
|
|
64
|
+
> ### 注意: 本地环境版本最好安装 [Node.js 18.x+](https://nodejs.org/en)
|
|
65
|
+
|
|
66
|
+
```shell
|
|
67
|
+
# 安装依赖
|
|
68
|
+
npm install
|
|
69
|
+
>npm config set registry https://registry.npmmirror.com/ 切换淘宝镜像源
|
|
70
|
+
>npm install
|
|
71
|
+
```
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare const EPButton: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
time: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
tip: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
tipProps: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
isDebounce: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
antiClick: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
value: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{
|
|
27
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
click: (...args: any[]) => void;
|
|
30
|
+
}, import('vue').PublicProps, {
|
|
31
|
+
time: number;
|
|
32
|
+
tip: string;
|
|
33
|
+
tipProps: Record<string, any>;
|
|
34
|
+
isDebounce: boolean;
|
|
35
|
+
antiClick: boolean;
|
|
36
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
+
time: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
tip: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
tipProps: {
|
|
53
|
+
type: ObjectConstructor;
|
|
54
|
+
default: () => {};
|
|
55
|
+
};
|
|
56
|
+
isDebounce: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
antiClick: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
value: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}>, {}, {}, {}, {}, {
|
|
70
|
+
time: number;
|
|
71
|
+
tip: string;
|
|
72
|
+
tipProps: Record<string, any>;
|
|
73
|
+
isDebounce: boolean;
|
|
74
|
+
antiClick: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
__isFragment?: undefined;
|
|
77
|
+
__isTeleport?: undefined;
|
|
78
|
+
__isSuspense?: undefined;
|
|
79
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
80
|
+
time: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
tip: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
tipProps: {
|
|
89
|
+
type: ObjectConstructor;
|
|
90
|
+
default: () => {};
|
|
91
|
+
};
|
|
92
|
+
isDebounce: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
antiClick: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
value: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
106
|
+
click: (...args: any[]) => void;
|
|
107
|
+
}, string, {
|
|
108
|
+
time: number;
|
|
109
|
+
tip: string;
|
|
110
|
+
tipProps: Record<string, any>;
|
|
111
|
+
isDebounce: boolean;
|
|
112
|
+
antiClick: boolean;
|
|
113
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
114
|
+
$slots: {
|
|
115
|
+
default?(_: {}): any;
|
|
116
|
+
};
|
|
117
|
+
}) & import('vue').Plugin<any[]>) & Record<string, any>;
|
|
118
|
+
export default EPButton;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
time: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
tip: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
tipProps: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
isDebounce: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
antiClick: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
value: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
click: (...args: any[]) => void;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
time: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
tip: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
tipProps: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
default: () => {};
|
|
39
|
+
};
|
|
40
|
+
isDebounce: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
antiClick: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
value: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
}>> & Readonly<{
|
|
52
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
time: number;
|
|
55
|
+
tip: string;
|
|
56
|
+
tipProps: Record<string, any>;
|
|
57
|
+
isDebounce: boolean;
|
|
58
|
+
antiClick: boolean;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
60
|
+
default?(_: {}): any;
|
|
61
|
+
}>;
|
|
62
|
+
export default _default;
|
|
63
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
declare const EPCheckbox: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
type: {
|
|
4
|
+
type: import('vue').PropType<"button" | "check">;
|
|
5
|
+
required: true;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
options: {
|
|
13
|
+
type: import('vue').PropType<import('./src/checkbox').CheckboxItem[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
optionsProps: {
|
|
17
|
+
type: import('vue').PropType<{
|
|
18
|
+
value?: string | undefined;
|
|
19
|
+
label?: string | undefined;
|
|
20
|
+
disabled?: string | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
required: true;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
26
|
+
type: "button" | "check";
|
|
27
|
+
optionsProps: {
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
label?: string | undefined;
|
|
30
|
+
disabled?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
33
|
+
P: {};
|
|
34
|
+
B: {};
|
|
35
|
+
D: {};
|
|
36
|
+
C: {};
|
|
37
|
+
M: {};
|
|
38
|
+
Defaults: {};
|
|
39
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
+
type: {
|
|
41
|
+
type: import('vue').PropType<"button" | "check">;
|
|
42
|
+
required: true;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
size: {
|
|
46
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
options: {
|
|
50
|
+
type: import('vue').PropType<import('./src/checkbox').CheckboxItem[]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
optionsProps: {
|
|
54
|
+
type: import('vue').PropType<{
|
|
55
|
+
value?: string | undefined;
|
|
56
|
+
label?: string | undefined;
|
|
57
|
+
disabled?: string | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
required: true;
|
|
60
|
+
default: () => {};
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
63
|
+
type: "button" | "check";
|
|
64
|
+
optionsProps: {
|
|
65
|
+
value?: string | undefined;
|
|
66
|
+
label?: string | undefined;
|
|
67
|
+
disabled?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
__isFragment?: undefined;
|
|
71
|
+
__isTeleport?: undefined;
|
|
72
|
+
__isSuspense?: undefined;
|
|
73
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
74
|
+
type: {
|
|
75
|
+
type: import('vue').PropType<"button" | "check">;
|
|
76
|
+
required: true;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
options: {
|
|
84
|
+
type: import('vue').PropType<import('./src/checkbox').CheckboxItem[]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
optionsProps: {
|
|
88
|
+
type: import('vue').PropType<{
|
|
89
|
+
value?: string | undefined;
|
|
90
|
+
label?: string | undefined;
|
|
91
|
+
disabled?: string | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
required: true;
|
|
94
|
+
default: () => {};
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
97
|
+
type: "button" | "check";
|
|
98
|
+
optionsProps: {
|
|
99
|
+
value?: string | undefined;
|
|
100
|
+
label?: string | undefined;
|
|
101
|
+
disabled?: string | undefined;
|
|
102
|
+
};
|
|
103
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
104
|
+
$slots: Partial<Record<string, (_: {
|
|
105
|
+
value: string | number | boolean;
|
|
106
|
+
label: string;
|
|
107
|
+
slot?: string | undefined;
|
|
108
|
+
disabled?: boolean | undefined;
|
|
109
|
+
}) => any>> & {
|
|
110
|
+
default?(_: {}): any;
|
|
111
|
+
};
|
|
112
|
+
}) & import('vue').Plugin<any[]>) & Record<string, any>;
|
|
113
|
+
export default EPCheckbox;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { OptionsProps, CheckboxItem } from './checkbox';
|
|
2
|
+
|
|
3
|
+
type Optional<T> = {
|
|
4
|
+
[k in keyof T]?: T[k];
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
type: "check" | "button";
|
|
8
|
+
options: CheckboxItem[];
|
|
9
|
+
size: "large" | "default" | "small";
|
|
10
|
+
optionsProps: Optional<OptionsProps>;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
type: string;
|
|
14
|
+
optionsProps: () => {};
|
|
15
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
16
|
+
type: string;
|
|
17
|
+
optionsProps: () => {};
|
|
18
|
+
}>>> & Readonly<{}>, {
|
|
19
|
+
type: "button" | "check";
|
|
20
|
+
optionsProps: Optional<OptionsProps>;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {
|
|
22
|
+
value: string | number | boolean;
|
|
23
|
+
label: string;
|
|
24
|
+
slot?: string | undefined;
|
|
25
|
+
disabled?: boolean | undefined;
|
|
26
|
+
}) => any>> & {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
32
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
+
} : {
|
|
35
|
+
type: import('vue').PropType<T[K]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type __VLS_WithDefaults<P, D> = {
|
|
40
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
|
+
default: D[K];
|
|
42
|
+
}> : P[K];
|
|
43
|
+
};
|
|
44
|
+
type __VLS_Prettify<T> = {
|
|
45
|
+
[K in keyof T]: T[K];
|
|
46
|
+
} & {};
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import EPSelect from "./select/src/index.vue"
|
|
2
|
+
import EPTable from "./table/src/index.vue"
|
|
3
|
+
import EPButton from "./button/src/index.vue"
|
|
4
|
+
import EPInput from "./input/src/index.vue"
|
|
5
|
+
import EPDatePicker from "./date-picker/src/index.vue"
|
|
6
|
+
import EPRadio from "./radio/src/index.vue"
|
|
7
|
+
import EPCheckbox from "./checkbox/src/index.vue"
|
|
8
|
+
|
|
9
|
+
declare module "vue" {
|
|
10
|
+
export interface GlobalComponents {
|
|
11
|
+
EPSelect: typeof EPSelect
|
|
12
|
+
EPTable: typeof EPTable
|
|
13
|
+
EPButton: typeof EPButton
|
|
14
|
+
EPInput: typeof EPInput
|
|
15
|
+
EPDatePicker: typeof EPDatePicker
|
|
16
|
+
EPRadio: typeof EPRadio
|
|
17
|
+
EPCheckbox: typeof EPCheckbox
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
declare const EPDatePicker: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: import('vue').PropType<any>;
|
|
4
|
+
type: {
|
|
5
|
+
type: import('vue').PropType<"year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange">;
|
|
6
|
+
};
|
|
7
|
+
format: {
|
|
8
|
+
type: import('vue').PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
valueFormat: {
|
|
12
|
+
type: import('vue').PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
shortcutsName: {
|
|
16
|
+
type: import('vue').PropType<string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[]>;
|
|
17
|
+
default: () => never[];
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{
|
|
20
|
+
onGetRef?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
getRef: (...args: any[]) => void;
|
|
23
|
+
}, import('vue').PublicProps, {
|
|
24
|
+
format: string;
|
|
25
|
+
valueFormat: string;
|
|
26
|
+
shortcutsName: string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[];
|
|
27
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
28
|
+
P: {};
|
|
29
|
+
B: {};
|
|
30
|
+
D: {};
|
|
31
|
+
C: {};
|
|
32
|
+
M: {};
|
|
33
|
+
Defaults: {};
|
|
34
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
modelValue: import('vue').PropType<any>;
|
|
36
|
+
type: {
|
|
37
|
+
type: import('vue').PropType<"year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange">;
|
|
38
|
+
};
|
|
39
|
+
format: {
|
|
40
|
+
type: import('vue').PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
valueFormat: {
|
|
44
|
+
type: import('vue').PropType<string>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
shortcutsName: {
|
|
48
|
+
type: import('vue').PropType<string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[]>;
|
|
49
|
+
default: () => never[];
|
|
50
|
+
};
|
|
51
|
+
}>> & Readonly<{
|
|
52
|
+
onGetRef?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, {
|
|
54
|
+
format: string;
|
|
55
|
+
valueFormat: string;
|
|
56
|
+
shortcutsName: string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[];
|
|
57
|
+
}>;
|
|
58
|
+
__isFragment?: undefined;
|
|
59
|
+
__isTeleport?: undefined;
|
|
60
|
+
__isSuspense?: undefined;
|
|
61
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
62
|
+
modelValue: import('vue').PropType<any>;
|
|
63
|
+
type: {
|
|
64
|
+
type: import('vue').PropType<"year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange">;
|
|
65
|
+
};
|
|
66
|
+
format: {
|
|
67
|
+
type: import('vue').PropType<string>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
valueFormat: {
|
|
71
|
+
type: import('vue').PropType<string>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
shortcutsName: {
|
|
75
|
+
type: import('vue').PropType<string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[]>;
|
|
76
|
+
default: () => never[];
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{
|
|
79
|
+
onGetRef?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
81
|
+
getRef: (...args: any[]) => void;
|
|
82
|
+
}, string, {
|
|
83
|
+
format: string;
|
|
84
|
+
valueFormat: string;
|
|
85
|
+
shortcutsName: string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[];
|
|
86
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
87
|
+
$slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
|
|
88
|
+
}) & import('vue').Plugin<any[]>) & Record<string, any>;
|
|
89
|
+
export default EPDatePicker;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: import('vue').PropType<any>;
|
|
3
|
+
type: {
|
|
4
|
+
type: import('vue').PropType<"year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange">;
|
|
5
|
+
};
|
|
6
|
+
format: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
valueFormat: {
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
shortcutsName: {
|
|
15
|
+
type: import('vue').PropType<string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
getRef: (...args: any[]) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
modelValue: import('vue').PropType<any>;
|
|
22
|
+
type: {
|
|
23
|
+
type: import('vue').PropType<"year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange">;
|
|
24
|
+
};
|
|
25
|
+
format: {
|
|
26
|
+
type: import('vue').PropType<string>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
valueFormat: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
shortcutsName: {
|
|
34
|
+
type: import('vue').PropType<string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{
|
|
38
|
+
onGetRef?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
format: string;
|
|
41
|
+
valueFormat: string;
|
|
42
|
+
shortcutsName: string[] | ("本日" | "本月" | "本年" | "近一日" | "近一周" | "近一月" | "近三月" | "近半年" | "近一年")[];
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|