@wapri/element-pro 3.0.0
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 +21 -0
- package/dist/CheckCard/Group.vue.d.ts +54 -0
- package/dist/CheckCard/context.d.ts +12 -0
- package/dist/CheckCard/index.d.ts +443 -0
- package/dist/CheckCard/index.vue.d.ts +53 -0
- package/dist/CheckCard/selection.d.ts +4 -0
- package/dist/CheckCard/types.d.ts +29 -0
- package/dist/ConfigProvider/context.d.ts +11 -0
- package/dist/ConfigProvider/index.d.ts +50 -0
- package/dist/ConfigProvider/index.vue.d.ts +28 -0
- package/dist/CropperUpload/CropperDialog.vue.d.ts +23 -0
- package/dist/CropperUpload/index.d.ts +241 -0
- package/dist/CropperUpload/index.vue.d.ts +81 -0
- package/dist/CropperUpload/types.d.ts +137 -0
- package/dist/CropperUpload/utils.d.ts +42 -0
- package/dist/DateQuickSelect/index.d.ts +65 -0
- package/dist/DateQuickSelect/index.vue.d.ts +55 -0
- package/dist/DateQuickSelect/types.d.ts +19 -0
- package/dist/DateQuickSelect/utils.d.ts +9 -0
- package/dist/DrawerForm/index.d.ts +201 -0
- package/dist/DrawerForm/index.vue.d.ts +76 -0
- package/dist/Ellipsis/index.d.ts +35 -0
- package/dist/Ellipsis/types.d.ts +23 -0
- package/dist/Layout/components/SidebarTrigger.vue.d.ts +21 -0
- package/dist/Layout/index.d.ts +147 -0
- package/dist/Layout/index.vue.d.ts +65 -0
- package/dist/Layout/types.d.ts +24 -0
- package/dist/MainContent/index.d.ts +115 -0
- package/dist/MainContent/index.vue.d.ts +51 -0
- package/dist/MainContent/types.d.ts +17 -0
- package/dist/ModalForm/index.d.ts +201 -0
- package/dist/ModalForm/index.vue.d.ts +76 -0
- package/dist/ProTable/components/ProTablePagination.vue.d.ts +43 -0
- package/dist/ProTable/components/ProTableSearchForm.vue.d.ts +34 -0
- package/dist/ProTable/components/ProTableSelectedFilters.vue.d.ts +21 -0
- package/dist/ProTable/components/ProTableSelectionActions.vue.d.ts +36 -0
- package/dist/ProTable/components/ProTableToolbar.vue.d.ts +47 -0
- package/dist/ProTable/composables/useProTableData.d.ts +34 -0
- package/dist/ProTable/composables/useProTableSelection.d.ts +10 -0
- package/dist/ProTable/composables/useStickyTable.d.ts +18 -0
- package/dist/ProTable/index.d.ts +412 -0
- package/dist/ProTable/index.vue.d.ts +54 -0
- package/dist/ProTable/types.d.ts +265 -0
- package/dist/ProTable/utils.d.ts +25 -0
- package/dist/ShareButton/index.d.ts +157 -0
- package/dist/ShareButton/index.vue.d.ts +60 -0
- package/dist/ShareButton/steps.d.ts +13 -0
- package/dist/ShareButton/types.d.ts +34 -0
- package/dist/Sidebar/components/SidebarGroup.vue.d.ts +53 -0
- package/dist/Sidebar/components/SidebarIcon.vue.d.ts +23 -0
- package/dist/Sidebar/components/SidebarItem.vue.d.ts +33 -0
- package/dist/Sidebar/components/SidebarItemContent.vue.d.ts +27 -0
- package/dist/Sidebar/components/SidebarLink.vue.d.ts +54 -0
- package/dist/Sidebar/components/SidebarLogo.vue.d.ts +48 -0
- package/dist/Sidebar/composables/useActiveMenuScroll.d.ts +18 -0
- package/dist/Sidebar/context.d.ts +10 -0
- package/dist/Sidebar/index.d.ts +350 -0
- package/dist/Sidebar/index.vue.d.ts +72 -0
- package/dist/Sidebar/types.d.ts +154 -0
- package/dist/Sidebar/utils.d.ts +16 -0
- package/dist/SvgIcon/iconfont.d.ts +11 -0
- package/dist/SvgIcon/index.d.ts +35 -0
- package/dist/SvgIcon/index.vue.d.ts +38 -0
- package/dist/TagSelector/index.d.ts +51 -0
- package/dist/TagSelector/index.vue.d.ts +49 -0
- package/dist/TagSelector/types.d.ts +6 -0
- package/dist/VH100/index.d.ts +40 -0
- package/dist/VH100/index.vue.d.ts +26 -0
- package/dist/constant/index.d.ts +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.mjs +3985 -0
- package/dist/shared/overlayForm/types.d.ts +25 -0
- package/dist/shared/overlayForm/useOverlayForm.d.ts +18 -0
- package/dist/style.css +1 -0
- package/dist/utils/install.d.ts +10 -0
- package/package.json +39 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DateQuickSelectConfig, DateQuickSelectSelection, DateQuickSelectValueType } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue?: string | [string, string];
|
|
5
|
+
valueType: DateQuickSelectValueType;
|
|
6
|
+
quickSelect?: DateQuickSelectConfig | false;
|
|
7
|
+
quickSelection?: DateQuickSelectSelection;
|
|
8
|
+
datePickerProps?: Record<string, unknown>;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
quickSelect: boolean;
|
|
13
|
+
datePickerProps: () => {};
|
|
14
|
+
clearable: boolean;
|
|
15
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: string | [string, string] | undefined) => void;
|
|
17
|
+
quickSelect: (selection: DateQuickSelectSelection) => void;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
19
|
+
modelValue?: string | [string, string];
|
|
20
|
+
valueType: DateQuickSelectValueType;
|
|
21
|
+
quickSelect?: DateQuickSelectConfig | false;
|
|
22
|
+
quickSelection?: DateQuickSelectSelection;
|
|
23
|
+
datePickerProps?: Record<string, unknown>;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
clearable?: boolean;
|
|
26
|
+
}>, {
|
|
27
|
+
quickSelect: boolean;
|
|
28
|
+
datePickerProps: () => {};
|
|
29
|
+
clearable: boolean;
|
|
30
|
+
}>>> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: string | [string, string] | undefined) => any) | undefined;
|
|
32
|
+
onQuickSelect?: ((selection: DateQuickSelectSelection) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
quickSelect: DateQuickSelectConfig | false;
|
|
35
|
+
datePickerProps: Record<string, unknown>;
|
|
36
|
+
clearable: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
+
} : {
|
|
44
|
+
type: import('vue').PropType<T[K]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
|
+
default: D[K];
|
|
51
|
+
}> : P[K];
|
|
52
|
+
};
|
|
53
|
+
type __VLS_Prettify<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type DateQuickSelectValue = string | [string, string];
|
|
2
|
+
export type DateQuickSelectValueType = 'date' | 'dateRange' | 'time' | 'timeRange';
|
|
3
|
+
/** 日期快捷选择配置。设为 false 可隐藏全部快捷项。 */
|
|
4
|
+
export interface DateQuickSelectConfig {
|
|
5
|
+
/** 是否展示“昨天”,默认 false。 */
|
|
6
|
+
showYesterday?: boolean;
|
|
7
|
+
/** 是否展示“今天”,默认 true。 */
|
|
8
|
+
showToday?: boolean;
|
|
9
|
+
/** 范围选择器的“近 n 天”选项,默认 [7, 30]。 */
|
|
10
|
+
recentDays?: number[];
|
|
11
|
+
}
|
|
12
|
+
export interface DateQuickSelectSelection {
|
|
13
|
+
/** 快捷项标识:yesterday、today 或 recent-{天数}。 */
|
|
14
|
+
key: string;
|
|
15
|
+
/** 快捷项显示名称。 */
|
|
16
|
+
label: string;
|
|
17
|
+
/** 快捷项对应的值。 */
|
|
18
|
+
value: DateQuickSelectValue;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DateQuickSelectConfig, DateQuickSelectSelection, DateQuickSelectValue, DateQuickSelectValueType } from './types';
|
|
2
|
+
|
|
3
|
+
export declare function isDateRangeValueType(valueType: DateQuickSelectValueType): boolean;
|
|
4
|
+
export declare function isSameDateQuickValue(value: unknown, target: DateQuickSelectValue): boolean;
|
|
5
|
+
export declare function getDateQuickSelections({ valueType, config, valueFormat, }: {
|
|
6
|
+
valueType: DateQuickSelectValueType;
|
|
7
|
+
config: DateQuickSelectConfig | false;
|
|
8
|
+
valueFormat?: string;
|
|
9
|
+
}): DateQuickSelectSelection[];
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
export declare const DrawerForm: import('../utils/install').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
title: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
};
|
|
6
|
+
cancelText: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
open: {
|
|
11
|
+
type: import('vue').PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
model: {
|
|
15
|
+
type: import('vue').PropType<Record<string, unknown>>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
drawerProps: {
|
|
19
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').DrawerProps, "modelValue">>>;
|
|
20
|
+
};
|
|
21
|
+
formProps: {
|
|
22
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').FormProps, "model">>>;
|
|
23
|
+
};
|
|
24
|
+
onFinish: {
|
|
25
|
+
type: import('vue').PropType<(values: Record<string, unknown>) => boolean | void | Promise<boolean | void>>;
|
|
26
|
+
};
|
|
27
|
+
submitText: {
|
|
28
|
+
type: import('vue').PropType<string>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
submitter: {
|
|
32
|
+
type: import('vue').PropType<boolean>;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
resetOnClose: {
|
|
36
|
+
type: import('vue').PropType<boolean>;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onCancel?: (() => any) | undefined;
|
|
41
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
43
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
submit: () => Promise<boolean>;
|
|
46
|
+
resetFields: () => void | undefined;
|
|
47
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
48
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
49
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
+
cancel: () => void;
|
|
51
|
+
"update:open": (value: boolean) => void;
|
|
52
|
+
finish: (values: Record<string, unknown>) => void;
|
|
53
|
+
finishFailed: (error: unknown) => void;
|
|
54
|
+
}, import('vue').PublicProps, {
|
|
55
|
+
cancelText: string;
|
|
56
|
+
open: boolean;
|
|
57
|
+
submitText: string;
|
|
58
|
+
submitter: boolean;
|
|
59
|
+
resetOnClose: boolean;
|
|
60
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
61
|
+
P: {};
|
|
62
|
+
B: {};
|
|
63
|
+
D: {};
|
|
64
|
+
C: {};
|
|
65
|
+
M: {};
|
|
66
|
+
Defaults: {};
|
|
67
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
68
|
+
title: {
|
|
69
|
+
type: import('vue').PropType<string>;
|
|
70
|
+
};
|
|
71
|
+
cancelText: {
|
|
72
|
+
type: import('vue').PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
open: {
|
|
76
|
+
type: import('vue').PropType<boolean>;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
model: {
|
|
80
|
+
type: import('vue').PropType<Record<string, unknown>>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
drawerProps: {
|
|
84
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').DrawerProps, "modelValue">>>;
|
|
85
|
+
};
|
|
86
|
+
formProps: {
|
|
87
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').FormProps, "model">>>;
|
|
88
|
+
};
|
|
89
|
+
onFinish: {
|
|
90
|
+
type: import('vue').PropType<(values: Record<string, unknown>) => boolean | void | Promise<boolean | void>>;
|
|
91
|
+
};
|
|
92
|
+
submitText: {
|
|
93
|
+
type: import('vue').PropType<string>;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
submitter: {
|
|
97
|
+
type: import('vue').PropType<boolean>;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
resetOnClose: {
|
|
101
|
+
type: import('vue').PropType<boolean>;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
}>> & Readonly<{
|
|
105
|
+
onCancel?: (() => any) | undefined;
|
|
106
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
107
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
108
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
109
|
+
}>, {
|
|
110
|
+
submit: () => Promise<boolean>;
|
|
111
|
+
resetFields: () => void | undefined;
|
|
112
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
113
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
114
|
+
}, {}, {}, {}, {
|
|
115
|
+
cancelText: string;
|
|
116
|
+
open: boolean;
|
|
117
|
+
submitText: string;
|
|
118
|
+
submitter: boolean;
|
|
119
|
+
resetOnClose: boolean;
|
|
120
|
+
}>;
|
|
121
|
+
__isFragment?: never;
|
|
122
|
+
__isTeleport?: never;
|
|
123
|
+
__isSuspense?: never;
|
|
124
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
125
|
+
title: {
|
|
126
|
+
type: import('vue').PropType<string>;
|
|
127
|
+
};
|
|
128
|
+
cancelText: {
|
|
129
|
+
type: import('vue').PropType<string>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
open: {
|
|
133
|
+
type: import('vue').PropType<boolean>;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
model: {
|
|
137
|
+
type: import('vue').PropType<Record<string, unknown>>;
|
|
138
|
+
required: true;
|
|
139
|
+
};
|
|
140
|
+
drawerProps: {
|
|
141
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').DrawerProps, "modelValue">>>;
|
|
142
|
+
};
|
|
143
|
+
formProps: {
|
|
144
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').FormProps, "model">>>;
|
|
145
|
+
};
|
|
146
|
+
onFinish: {
|
|
147
|
+
type: import('vue').PropType<(values: Record<string, unknown>) => boolean | void | Promise<boolean | void>>;
|
|
148
|
+
};
|
|
149
|
+
submitText: {
|
|
150
|
+
type: import('vue').PropType<string>;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
submitter: {
|
|
154
|
+
type: import('vue').PropType<boolean>;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
resetOnClose: {
|
|
158
|
+
type: import('vue').PropType<boolean>;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
}>> & Readonly<{
|
|
162
|
+
onCancel?: (() => any) | undefined;
|
|
163
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
164
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
165
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
submit: () => Promise<boolean>;
|
|
168
|
+
resetFields: () => void | undefined;
|
|
169
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
170
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
171
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
172
|
+
cancel: () => void;
|
|
173
|
+
"update:open": (value: boolean) => void;
|
|
174
|
+
finish: (values: Record<string, unknown>) => void;
|
|
175
|
+
finishFailed: (error: unknown) => void;
|
|
176
|
+
}, string, {
|
|
177
|
+
cancelText: string;
|
|
178
|
+
open: boolean;
|
|
179
|
+
submitText: string;
|
|
180
|
+
submitter: boolean;
|
|
181
|
+
resetOnClose: boolean;
|
|
182
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
183
|
+
$slots: {
|
|
184
|
+
header?(_: {
|
|
185
|
+
close: () => void;
|
|
186
|
+
titleId: string;
|
|
187
|
+
titleClass: string;
|
|
188
|
+
}): any;
|
|
189
|
+
default?(_: {
|
|
190
|
+
model: Record<string, unknown>;
|
|
191
|
+
submitting: boolean;
|
|
192
|
+
}): any;
|
|
193
|
+
footer?(_: {
|
|
194
|
+
submit: () => Promise<boolean>;
|
|
195
|
+
cancel: () => void;
|
|
196
|
+
submitting: boolean;
|
|
197
|
+
}): any;
|
|
198
|
+
};
|
|
199
|
+
})> & Record<string, unknown>;
|
|
200
|
+
export type { DrawerFormProps } from '../shared/overlayForm/types';
|
|
201
|
+
export default DrawerForm;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { DrawerFormProps } from '../shared/overlayForm/types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
header?(_: {
|
|
5
|
+
close: () => void;
|
|
6
|
+
titleId: string;
|
|
7
|
+
titleClass: string;
|
|
8
|
+
}): any;
|
|
9
|
+
default?(_: {
|
|
10
|
+
model: Record<string, unknown>;
|
|
11
|
+
submitting: boolean;
|
|
12
|
+
}): any;
|
|
13
|
+
footer?(_: {
|
|
14
|
+
submit: () => Promise<boolean>;
|
|
15
|
+
cancel: () => void;
|
|
16
|
+
submitting: boolean;
|
|
17
|
+
}): any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DrawerFormProps>, {
|
|
20
|
+
open: boolean;
|
|
21
|
+
submitText: string;
|
|
22
|
+
cancelText: string;
|
|
23
|
+
submitter: boolean;
|
|
24
|
+
resetOnClose: boolean;
|
|
25
|
+
}>>, {
|
|
26
|
+
submit: () => Promise<boolean>;
|
|
27
|
+
resetFields: () => void | undefined;
|
|
28
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
29
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
cancel: () => void;
|
|
32
|
+
"update:open": (value: boolean) => void;
|
|
33
|
+
finish: (values: Record<string, unknown>) => void;
|
|
34
|
+
finishFailed: (error: unknown) => void;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DrawerFormProps>, {
|
|
36
|
+
open: boolean;
|
|
37
|
+
submitText: string;
|
|
38
|
+
cancelText: string;
|
|
39
|
+
submitter: boolean;
|
|
40
|
+
resetOnClose: boolean;
|
|
41
|
+
}>>> & Readonly<{
|
|
42
|
+
onCancel?: (() => any) | undefined;
|
|
43
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
45
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
cancelText: string;
|
|
48
|
+
open: boolean;
|
|
49
|
+
submitText: string;
|
|
50
|
+
submitter: boolean;
|
|
51
|
+
resetOnClose: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
56
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
57
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
58
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
59
|
+
} : {
|
|
60
|
+
type: import('vue').PropType<T[K]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type __VLS_WithDefaults<P, D> = {
|
|
65
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
66
|
+
default: D[K];
|
|
67
|
+
}> : P[K];
|
|
68
|
+
};
|
|
69
|
+
type __VLS_Prettify<T> = {
|
|
70
|
+
[K in keyof T]: T[K];
|
|
71
|
+
} & {};
|
|
72
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const Ellipsis: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<{
|
|
2
|
+
content?: string | undefined;
|
|
3
|
+
direction?: import('./types').EllipsisDirection | undefined;
|
|
4
|
+
rows?: number | undefined;
|
|
5
|
+
expandText?: import('vue').VNodeChild;
|
|
6
|
+
collapseText?: import('vue').VNodeChild;
|
|
7
|
+
stopPropagationForActionButtons?: import('./types').EllipsisActionPropagationEvent[] | undefined;
|
|
8
|
+
defaultExpanded?: boolean | undefined;
|
|
9
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
expand: (_expanded: boolean, _info: import('./types').EllipsisExpandInfo) => boolean;
|
|
13
|
+
contentClick: (_event: MouseEvent) => boolean;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
content?: string | undefined;
|
|
16
|
+
direction?: import('./types').EllipsisDirection | undefined;
|
|
17
|
+
rows?: number | undefined;
|
|
18
|
+
expandText?: import('vue').VNodeChild;
|
|
19
|
+
collapseText?: import('vue').VNodeChild;
|
|
20
|
+
stopPropagationForActionButtons?: import('./types').EllipsisActionPropagationEvent[] | undefined;
|
|
21
|
+
defaultExpanded?: boolean | undefined;
|
|
22
|
+
}> & Readonly<{
|
|
23
|
+
onExpand?: ((_expanded: boolean, _info: import('./types').EllipsisExpandInfo) => any) | undefined;
|
|
24
|
+
onContentClick?: ((_event: MouseEvent) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
rows: number;
|
|
27
|
+
direction: import('./types').EllipsisDirection;
|
|
28
|
+
content: string;
|
|
29
|
+
expandText: any;
|
|
30
|
+
collapseText: any;
|
|
31
|
+
stopPropagationForActionButtons: import('./types').EllipsisActionPropagationEvent[];
|
|
32
|
+
defaultExpanded: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, unknown>;
|
|
34
|
+
export * from './types';
|
|
35
|
+
export default Ellipsis;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type EllipsisDirection = 'start' | 'end' | 'middle';
|
|
4
|
+
export type EllipsisActionPropagationEvent = 'click' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchend';
|
|
5
|
+
export interface EllipsisExpandInfo {
|
|
6
|
+
event: MouseEvent;
|
|
7
|
+
}
|
|
8
|
+
export interface EllipsisProps {
|
|
9
|
+
/** 要截断的纯文本内容。 */
|
|
10
|
+
content?: string;
|
|
11
|
+
/** 省略位置。 */
|
|
12
|
+
direction?: EllipsisDirection;
|
|
13
|
+
/** 最多展示的行数。 */
|
|
14
|
+
rows?: number;
|
|
15
|
+
/** 展开操作文案或节点。设置后仅在内容实际被截断时展示。 */
|
|
16
|
+
expandText?: VNodeChild;
|
|
17
|
+
/** 收起操作文案或节点。设置后仅在已展开且内容实际被截断时展示。 */
|
|
18
|
+
collapseText?: VNodeChild;
|
|
19
|
+
/** 操作按钮需要阻止冒泡的事件类型。 */
|
|
20
|
+
stopPropagationForActionButtons?: EllipsisActionPropagationEvent[];
|
|
21
|
+
/** 初始是否展开。 */
|
|
22
|
+
defaultExpanded?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
/** 侧栏是否已折叠,折叠时箭头翻转 */
|
|
3
|
+
collapse?: boolean;
|
|
4
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
click: () => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/** 侧栏是否已折叠,折叠时箭头翻转 */
|
|
8
|
+
collapse?: boolean;
|
|
9
|
+
}>>> & Readonly<{
|
|
10
|
+
onClick?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export declare const Layout: import('../utils/install').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
header: {
|
|
4
|
+
type: import('vue').PropType<import('./types').LayoutHeaderConfig>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
trigger: {
|
|
8
|
+
type: import('vue').PropType<boolean>;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
mobile: {
|
|
12
|
+
type: import('vue').PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
withoutAnimation: {
|
|
16
|
+
type: import('vue').PropType<boolean>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
hasTagsView: {
|
|
20
|
+
type: import('vue').PropType<boolean>;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
sidebar: {
|
|
24
|
+
type: import('vue').PropType<import('..').SidebarProps>;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
sidebarHidden: {
|
|
28
|
+
type: import('vue').PropType<boolean>;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
onToggleSidebar?: (() => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
toggleSidebar: () => void;
|
|
35
|
+
}, import('vue').PublicProps, {
|
|
36
|
+
header: import('./types').LayoutHeaderConfig;
|
|
37
|
+
trigger: boolean;
|
|
38
|
+
mobile: boolean;
|
|
39
|
+
withoutAnimation: boolean;
|
|
40
|
+
hasTagsView: boolean;
|
|
41
|
+
sidebar: import('..').SidebarProps;
|
|
42
|
+
sidebarHidden: boolean;
|
|
43
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
44
|
+
P: {};
|
|
45
|
+
B: {};
|
|
46
|
+
D: {};
|
|
47
|
+
C: {};
|
|
48
|
+
M: {};
|
|
49
|
+
Defaults: {};
|
|
50
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
51
|
+
header: {
|
|
52
|
+
type: import('vue').PropType<import('./types').LayoutHeaderConfig>;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
trigger: {
|
|
56
|
+
type: import('vue').PropType<boolean>;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
mobile: {
|
|
60
|
+
type: import('vue').PropType<boolean>;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
withoutAnimation: {
|
|
64
|
+
type: import('vue').PropType<boolean>;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
hasTagsView: {
|
|
68
|
+
type: import('vue').PropType<boolean>;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
sidebar: {
|
|
72
|
+
type: import('vue').PropType<import('..').SidebarProps>;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
sidebarHidden: {
|
|
76
|
+
type: import('vue').PropType<boolean>;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
}>> & Readonly<{
|
|
80
|
+
onToggleSidebar?: (() => any) | undefined;
|
|
81
|
+
}>, {}, {}, {}, {}, {
|
|
82
|
+
header: import('./types').LayoutHeaderConfig;
|
|
83
|
+
trigger: boolean;
|
|
84
|
+
mobile: boolean;
|
|
85
|
+
withoutAnimation: boolean;
|
|
86
|
+
hasTagsView: boolean;
|
|
87
|
+
sidebar: import('..').SidebarProps;
|
|
88
|
+
sidebarHidden: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
__isFragment?: never;
|
|
91
|
+
__isTeleport?: never;
|
|
92
|
+
__isSuspense?: never;
|
|
93
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
94
|
+
header: {
|
|
95
|
+
type: import('vue').PropType<import('./types').LayoutHeaderConfig>;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
trigger: {
|
|
99
|
+
type: import('vue').PropType<boolean>;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
mobile: {
|
|
103
|
+
type: import('vue').PropType<boolean>;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
withoutAnimation: {
|
|
107
|
+
type: import('vue').PropType<boolean>;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
hasTagsView: {
|
|
111
|
+
type: import('vue').PropType<boolean>;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
sidebar: {
|
|
115
|
+
type: import('vue').PropType<import('..').SidebarProps>;
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
118
|
+
sidebarHidden: {
|
|
119
|
+
type: import('vue').PropType<boolean>;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{
|
|
123
|
+
onToggleSidebar?: (() => any) | undefined;
|
|
124
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
125
|
+
toggleSidebar: () => void;
|
|
126
|
+
}, string, {
|
|
127
|
+
header: import('./types').LayoutHeaderConfig;
|
|
128
|
+
trigger: boolean;
|
|
129
|
+
mobile: boolean;
|
|
130
|
+
withoutAnimation: boolean;
|
|
131
|
+
hasTagsView: boolean;
|
|
132
|
+
sidebar: import('..').SidebarProps;
|
|
133
|
+
sidebarHidden: boolean;
|
|
134
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
135
|
+
$slots: {
|
|
136
|
+
logo?(_: {
|
|
137
|
+
collapse: boolean;
|
|
138
|
+
grouped: boolean;
|
|
139
|
+
}): any;
|
|
140
|
+
trigger?(_: {}): any;
|
|
141
|
+
header?(_: {}): any;
|
|
142
|
+
main?(_: {}): any;
|
|
143
|
+
default?(_: {}): any;
|
|
144
|
+
};
|
|
145
|
+
})> & Record<string, unknown>;
|
|
146
|
+
export type { LayoutProps } from './types';
|
|
147
|
+
export default Layout;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { LayoutProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
logo?(_: {
|
|
5
|
+
collapse: boolean;
|
|
6
|
+
grouped: boolean;
|
|
7
|
+
}): any;
|
|
8
|
+
trigger?(_: {}): any;
|
|
9
|
+
header?(_: {}): any;
|
|
10
|
+
main?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LayoutProps>, {
|
|
14
|
+
sidebar: undefined;
|
|
15
|
+
header: undefined;
|
|
16
|
+
sidebarHidden: boolean;
|
|
17
|
+
trigger: boolean;
|
|
18
|
+
mobile: boolean;
|
|
19
|
+
withoutAnimation: boolean;
|
|
20
|
+
hasTagsView: boolean;
|
|
21
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
toggleSidebar: () => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LayoutProps>, {
|
|
24
|
+
sidebar: undefined;
|
|
25
|
+
header: undefined;
|
|
26
|
+
sidebarHidden: boolean;
|
|
27
|
+
trigger: boolean;
|
|
28
|
+
mobile: boolean;
|
|
29
|
+
withoutAnimation: boolean;
|
|
30
|
+
hasTagsView: boolean;
|
|
31
|
+
}>>> & Readonly<{
|
|
32
|
+
onToggleSidebar?: (() => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
header: import('./types').LayoutHeaderConfig;
|
|
35
|
+
trigger: boolean;
|
|
36
|
+
mobile: boolean;
|
|
37
|
+
withoutAnimation: boolean;
|
|
38
|
+
hasTagsView: boolean;
|
|
39
|
+
sidebar: import('../Sidebar/types').SidebarProps;
|
|
40
|
+
sidebarHidden: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
}> : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|