urit-qf-ui 0.2.7 → 1.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/README.md +88 -22
- package/dist/components/UBaseInfo.vue.d.ts +22 -0
- package/dist/components/UCascader.vue.d.ts +22 -37
- package/dist/components/UDialog.vue.d.ts +94 -0
- package/dist/components/UForm.vue.d.ts +233 -0
- package/dist/components/UMenu.vue.d.ts +230 -11
- package/dist/components/UResults.vue.d.ts +23 -0
- package/dist/components/USearch.vue.d.ts +51 -0
- package/dist/components/UTable.vue.d.ts +54 -0
- package/dist/components/UTablePage.vue.d.ts +152 -0
- package/dist/index.d.ts +33 -18
- package/dist/index.js +2962 -3147
- package/dist/index.umd.cjs +1 -2
- package/dist/layout/UGrid.vue.d.ts +44 -0
- package/dist/model/base-info.d.ts +113 -0
- package/dist/model/cascader.d.ts +135 -0
- package/dist/model/form.d.ts +143 -0
- package/dist/model/grid.d.ts +53 -0
- package/dist/model/menu.d.ts +140 -0
- package/dist/model/results.d.ts +90 -0
- package/dist/model/search.d.ts +93 -0
- package/dist/model/table-page.d.ts +44 -0
- package/dist/model/table.d.ts +163 -0
- package/dist/parser/cascader.d.ts +35 -0
- package/dist/parser/form.d.ts +7 -0
- package/dist/parser/menu.d.ts +5 -0
- package/dist/parser/table-page.d.ts +15 -0
- package/dist/parser/yaml-parser.d.ts +41 -0
- package/dist/qf/interface.d.ts +22 -0
- package/dist/qf/qf.d.ts +23 -1
- package/dist/style.css +1 -1
- package/dist/utils/base-info.d.ts +39 -0
- package/dist/utils/cascader.d.ts +45 -0
- package/dist/utils/form.d.ts +59 -0
- package/dist/utils/menu.d.ts +14 -0
- package/dist/utils/results.d.ts +38 -0
- package/dist/utils/search.d.ts +8 -0
- package/dist/utils/table.d.ts +16 -0
- package/package.json +1 -1
- package/dist/components/UDate.vue.d.ts +0 -47
- package/dist/components/UDict.vue.d.ts +0 -49
- package/dist/components/UInput.vue.d.ts +0 -52
- package/dist/components/UInputNumber.vue.d.ts +0 -52
- package/dist/components/UToggle.vue.d.ts +0 -54
- package/dist/show/UCascaderShow.vue.d.ts +0 -11
- package/dist/show/UDateShow.vue.d.ts +0 -15
- package/dist/show/UDictShow.vue.d.ts +0 -9
- package/dist/show/UFieldView.vue.d.ts +0 -24
- package/dist/show/UInputShow.vue.d.ts +0 -10
- package/dist/show/UToggleShow.vue.d.ts +0 -12
- package/dist/ts/constant.d.ts +0 -24
- package/dist/ts/dict.d.ts +0 -105
- package/dist/ts/form-render.d.ts +0 -30
- package/dist/ts/http.d.ts +0 -13
- package/dist/ts/model.d.ts +0 -202
- package/dist/ts/notify.d.ts +0 -42
- package/dist/ts/table-data-service.d.ts +0 -30
- package/dist/ts/table-render.d.ts +0 -210
- package/dist/uform/FormContainer.vue.d.ts +0 -37
- package/dist/uform/FormField.vue.d.ts +0 -16
- package/dist/uform/FormGrid.vue.d.ts +0 -24
- package/dist/uform/FormRender.vue.d.ts +0 -104
- package/dist/uform/TableDetail.vue.d.ts +0 -37
- package/dist/uform/TableGrid.vue.d.ts +0 -51
- package/dist/uform/TablePagination.vue.d.ts +0 -14
- package/dist/uform/TableRender.vue.d.ts +0 -618
- package/dist/uform/TableSearch.vue.d.ts +0 -38
- package/dist/uform/TableToolbar.vue.d.ts +0 -31
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { MenuClickPayload,
|
|
1
|
+
import { MenuClickPayload, MenuJumpType, MenuOpenType, MenuOptions } from '../model/menu';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/** 菜单配置(含 menus / projectName / mode / width / expandAll …) */
|
|
4
|
+
options?: MenuOptions | null;
|
|
5
|
+
/** 菜单模式:sidebar 左侧栏 | horizontal 水平(覆盖配置) */
|
|
5
6
|
mode?: 'sidebar' | 'horizontal';
|
|
7
|
+
/** 项目名称(覆盖配置) */
|
|
6
8
|
projectName?: string;
|
|
9
|
+
/** 当前激活菜单的跳转目标(一般传当前路由地址) */
|
|
7
10
|
activePath?: string;
|
|
11
|
+
/** 菜单宽度(仅 sidebar 模式生效,覆盖配置) */
|
|
8
12
|
width?: number;
|
|
9
13
|
}
|
|
10
14
|
declare function __VLS_template(): {
|
|
@@ -12,7 +16,7 @@ declare function __VLS_template(): {
|
|
|
12
16
|
slots: {
|
|
13
17
|
brand?(_: {
|
|
14
18
|
projectName: string;
|
|
15
|
-
mode: "
|
|
19
|
+
mode: "horizontal" | "sidebar";
|
|
16
20
|
}): any;
|
|
17
21
|
'menu-title'?(_: {
|
|
18
22
|
item: {
|
|
@@ -27,6 +31,7 @@ declare function __VLS_template(): {
|
|
|
27
31
|
};
|
|
28
32
|
level: number;
|
|
29
33
|
index: number;
|
|
34
|
+
parent: null;
|
|
30
35
|
}): any;
|
|
31
36
|
'menu-item'?(_: {
|
|
32
37
|
item: {
|
|
@@ -68,25 +73,239 @@ declare function __VLS_template(): {
|
|
|
68
73
|
parent: null;
|
|
69
74
|
}): any;
|
|
70
75
|
logout?(_: {
|
|
71
|
-
mode: "
|
|
76
|
+
mode: "horizontal" | "sidebar";
|
|
72
77
|
}): any;
|
|
73
78
|
};
|
|
74
|
-
refs: {
|
|
75
|
-
|
|
79
|
+
refs: {
|
|
80
|
+
menuRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
81
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
82
|
+
readonly defaultActive: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
83
|
+
readonly defaultOpeneds: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
84
|
+
readonly uniqueOpened: BooleanConstructor;
|
|
85
|
+
readonly router: BooleanConstructor;
|
|
86
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "hover" | "click", unknown, "hover", boolean>;
|
|
87
|
+
readonly collapse: BooleanConstructor;
|
|
88
|
+
readonly backgroundColor: StringConstructor;
|
|
89
|
+
readonly textColor: StringConstructor;
|
|
90
|
+
readonly activeTextColor: StringConstructor;
|
|
91
|
+
readonly closeOnClickOutside: BooleanConstructor;
|
|
92
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
93
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
94
|
+
readonly popperOffset: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
95
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
96
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
97
|
+
readonly popperClass: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
98
|
+
readonly popperStyle: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | (((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
99
|
+
readonly showTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
100
|
+
readonly hideTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
101
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
102
|
+
}>> & Readonly<{
|
|
103
|
+
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
104
|
+
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
105
|
+
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | NavigationFailure> | undefined) => any) | undefined;
|
|
106
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
107
|
+
[key: string]: any;
|
|
108
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
109
|
+
close: (index: string, indexPath: string[]) => boolean;
|
|
110
|
+
open: (index: string, indexPath: string[]) => boolean;
|
|
111
|
+
select: (index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | NavigationFailure>) => boolean;
|
|
112
|
+
}, import('vue').PublicProps, {
|
|
113
|
+
readonly collapse: boolean;
|
|
114
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
115
|
+
readonly popperClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
116
|
+
readonly popperStyle: import('vue').StyleValue;
|
|
117
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
118
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
119
|
+
readonly showTimeout: number;
|
|
120
|
+
readonly hideTimeout: number;
|
|
121
|
+
readonly defaultActive: string;
|
|
122
|
+
readonly defaultOpeneds: string[];
|
|
123
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "hover" | "click", unknown>;
|
|
124
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
125
|
+
readonly popperOffset: number;
|
|
126
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
127
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
128
|
+
readonly uniqueOpened: boolean;
|
|
129
|
+
readonly router: boolean;
|
|
130
|
+
readonly closeOnClickOutside: boolean;
|
|
131
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
132
|
+
P: {};
|
|
133
|
+
B: {};
|
|
134
|
+
D: {};
|
|
135
|
+
C: {};
|
|
136
|
+
M: {};
|
|
137
|
+
Defaults: {};
|
|
138
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
139
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
140
|
+
readonly defaultActive: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
141
|
+
readonly defaultOpeneds: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
142
|
+
readonly uniqueOpened: BooleanConstructor;
|
|
143
|
+
readonly router: BooleanConstructor;
|
|
144
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "hover" | "click", unknown, "hover", boolean>;
|
|
145
|
+
readonly collapse: BooleanConstructor;
|
|
146
|
+
readonly backgroundColor: StringConstructor;
|
|
147
|
+
readonly textColor: StringConstructor;
|
|
148
|
+
readonly activeTextColor: StringConstructor;
|
|
149
|
+
readonly closeOnClickOutside: BooleanConstructor;
|
|
150
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
151
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
152
|
+
readonly popperOffset: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
153
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
154
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
155
|
+
readonly popperClass: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
156
|
+
readonly popperStyle: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | (((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
157
|
+
readonly showTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
158
|
+
readonly hideTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
159
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
160
|
+
}>> & Readonly<{
|
|
161
|
+
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
162
|
+
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
163
|
+
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | NavigationFailure> | undefined) => any) | undefined;
|
|
164
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
165
|
+
[key: string]: any;
|
|
166
|
+
}>, {}, {}, {}, {
|
|
167
|
+
readonly collapse: boolean;
|
|
168
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
169
|
+
readonly popperClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
170
|
+
readonly popperStyle: import('vue').StyleValue;
|
|
171
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
172
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
173
|
+
readonly showTimeout: number;
|
|
174
|
+
readonly hideTimeout: number;
|
|
175
|
+
readonly defaultActive: string;
|
|
176
|
+
readonly defaultOpeneds: string[];
|
|
177
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "hover" | "click", unknown>;
|
|
178
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
179
|
+
readonly popperOffset: number;
|
|
180
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
181
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
182
|
+
readonly uniqueOpened: boolean;
|
|
183
|
+
readonly router: boolean;
|
|
184
|
+
readonly closeOnClickOutside: boolean;
|
|
185
|
+
}> | null;
|
|
186
|
+
};
|
|
187
|
+
rootEl: any;
|
|
76
188
|
};
|
|
77
189
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
78
190
|
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
79
|
-
|
|
191
|
+
setOptions: (options: MenuOptions | null) => void;
|
|
192
|
+
getOptions: () => MenuOptions | null;
|
|
80
193
|
setActivePath: (path: string) => void;
|
|
194
|
+
expandAllMenus: () => Promise<void>;
|
|
81
195
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
82
196
|
"menu-click": (payload: MenuClickPayload) => any;
|
|
83
197
|
logout: () => any;
|
|
84
198
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
85
199
|
"onMenu-click"?: ((payload: MenuClickPayload) => any) | undefined;
|
|
86
200
|
onLogout?: (() => any) | undefined;
|
|
87
|
-
}>, {
|
|
88
|
-
|
|
89
|
-
|
|
201
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
202
|
+
menuRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
203
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
204
|
+
readonly defaultActive: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
205
|
+
readonly defaultOpeneds: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
206
|
+
readonly uniqueOpened: BooleanConstructor;
|
|
207
|
+
readonly router: BooleanConstructor;
|
|
208
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "hover" | "click", unknown, "hover", boolean>;
|
|
209
|
+
readonly collapse: BooleanConstructor;
|
|
210
|
+
readonly backgroundColor: StringConstructor;
|
|
211
|
+
readonly textColor: StringConstructor;
|
|
212
|
+
readonly activeTextColor: StringConstructor;
|
|
213
|
+
readonly closeOnClickOutside: BooleanConstructor;
|
|
214
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
215
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
216
|
+
readonly popperOffset: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
217
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
218
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
219
|
+
readonly popperClass: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
220
|
+
readonly popperStyle: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | (((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
221
|
+
readonly showTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
222
|
+
readonly hideTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
223
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
224
|
+
}>> & Readonly<{
|
|
225
|
+
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
226
|
+
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
227
|
+
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | NavigationFailure> | undefined) => any) | undefined;
|
|
228
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
229
|
+
[key: string]: any;
|
|
230
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
231
|
+
close: (index: string, indexPath: string[]) => boolean;
|
|
232
|
+
open: (index: string, indexPath: string[]) => boolean;
|
|
233
|
+
select: (index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | NavigationFailure>) => boolean;
|
|
234
|
+
}, import('vue').PublicProps, {
|
|
235
|
+
readonly collapse: boolean;
|
|
236
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
237
|
+
readonly popperClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
238
|
+
readonly popperStyle: import('vue').StyleValue;
|
|
239
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
240
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
241
|
+
readonly showTimeout: number;
|
|
242
|
+
readonly hideTimeout: number;
|
|
243
|
+
readonly defaultActive: string;
|
|
244
|
+
readonly defaultOpeneds: string[];
|
|
245
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "hover" | "click", unknown>;
|
|
246
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
247
|
+
readonly popperOffset: number;
|
|
248
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
249
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
250
|
+
readonly uniqueOpened: boolean;
|
|
251
|
+
readonly router: boolean;
|
|
252
|
+
readonly closeOnClickOutside: boolean;
|
|
253
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
254
|
+
P: {};
|
|
255
|
+
B: {};
|
|
256
|
+
D: {};
|
|
257
|
+
C: {};
|
|
258
|
+
M: {};
|
|
259
|
+
Defaults: {};
|
|
260
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
261
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
262
|
+
readonly defaultActive: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
263
|
+
readonly defaultOpeneds: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
264
|
+
readonly uniqueOpened: BooleanConstructor;
|
|
265
|
+
readonly router: BooleanConstructor;
|
|
266
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "hover" | "click", unknown, "hover", boolean>;
|
|
267
|
+
readonly collapse: BooleanConstructor;
|
|
268
|
+
readonly backgroundColor: StringConstructor;
|
|
269
|
+
readonly textColor: StringConstructor;
|
|
270
|
+
readonly activeTextColor: StringConstructor;
|
|
271
|
+
readonly closeOnClickOutside: BooleanConstructor;
|
|
272
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
273
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
274
|
+
readonly popperOffset: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
275
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
276
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
277
|
+
readonly popperClass: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import('element-plus/es/utils/typescript.mjs').ClassValue[]) | (() => import('element-plus/es/utils/typescript.mjs').ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
278
|
+
readonly popperStyle: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | (((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
279
|
+
readonly showTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
280
|
+
readonly hideTimeout: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
281
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
282
|
+
}>> & Readonly<{
|
|
283
|
+
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
284
|
+
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
285
|
+
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | NavigationFailure> | undefined) => any) | undefined;
|
|
286
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
}>, {}, {}, {}, {
|
|
289
|
+
readonly collapse: boolean;
|
|
290
|
+
readonly ellipsis: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
291
|
+
readonly popperClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
292
|
+
readonly popperStyle: import('vue').StyleValue;
|
|
293
|
+
readonly persistent: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
294
|
+
readonly mode: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
295
|
+
readonly showTimeout: number;
|
|
296
|
+
readonly hideTimeout: number;
|
|
297
|
+
readonly defaultActive: string;
|
|
298
|
+
readonly defaultOpeneds: string[];
|
|
299
|
+
readonly menuTrigger: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "hover" | "click", unknown>;
|
|
300
|
+
readonly collapseTransition: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
301
|
+
readonly popperOffset: number;
|
|
302
|
+
readonly ellipsisIcon: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
303
|
+
readonly popperEffect: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
304
|
+
readonly uniqueOpened: boolean;
|
|
305
|
+
readonly router: boolean;
|
|
306
|
+
readonly closeOnClickOutside: boolean;
|
|
307
|
+
}> | null;
|
|
308
|
+
}, any>;
|
|
90
309
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
91
310
|
export default _default;
|
|
92
311
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ResultsColumn, ResultsOptions } from '../model/results';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 结果表配置:columns / striped / border / 颜色 / 宽高 … 见 model/results.ts */
|
|
4
|
+
options?: ResultsOptions | null;
|
|
5
|
+
/** 数据行。传了数组就以它为准(空数组也算),不传才退回 options.data */
|
|
6
|
+
data?: any[] | null;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): any;
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
11
|
+
setOptions: (options: ResultsOptions | null) => void;
|
|
12
|
+
getOptions: () => ResultsOptions | null;
|
|
13
|
+
getRows: () => any[];
|
|
14
|
+
getColumns: () => ResultsColumn[];
|
|
15
|
+
getText: (row: any, prop?: string) => string;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { SearchItem, SearchOptions } from '../model/search';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 搜索条件(v-model) */
|
|
4
|
+
modelValue?: Record<string, any>;
|
|
5
|
+
/** 搜索栏配置 */
|
|
6
|
+
options?: SearchOptions;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: Partial<Record<string, (_: {
|
|
11
|
+
item: SearchItem;
|
|
12
|
+
value: any;
|
|
13
|
+
model: Record<string, any>;
|
|
14
|
+
setModel: (model: Record<string, any>) => void;
|
|
15
|
+
}) => any>> & {
|
|
16
|
+
actions?(_: {
|
|
17
|
+
params: Record<string, any>;
|
|
18
|
+
search: () => void;
|
|
19
|
+
reset: () => void;
|
|
20
|
+
}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: any;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
27
|
+
setOptions: (options: SearchOptions | null) => void;
|
|
28
|
+
getOptions: () => SearchOptions | null;
|
|
29
|
+
setModel: (model: Record<string, any>) => void;
|
|
30
|
+
setValue: (field: string, value: any) => void;
|
|
31
|
+
getQuery: () => Record<string, any>;
|
|
32
|
+
search: () => void;
|
|
33
|
+
reset: () => void;
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
36
|
+
search: (params: Record<string, any>) => any;
|
|
37
|
+
reset: (params: Record<string, any>) => any;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
40
|
+
onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
41
|
+
onReset?: ((params: Record<string, any>) => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
modelValue: Record<string, any>;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { TableActionConfig, TableColumnConfig, TableOptions } from '../model/table';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 表格数据。传了就原样用(空数组也算传),不传才退回 options.data */
|
|
4
|
+
data?: any[];
|
|
5
|
+
/** 表格配置(列、边框、斑马纹等)。异步场景改用组件的 setOptions() */
|
|
6
|
+
options?: TableOptions;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): any;
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
11
|
+
setOptions: (options: TableOptions | null) => void;
|
|
12
|
+
getOptions: () => TableOptions | null;
|
|
13
|
+
clearSelection: (...args: any[]) => any;
|
|
14
|
+
getSelectionRows: () => any;
|
|
15
|
+
toggleRowSelection: (...args: any[]) => any;
|
|
16
|
+
toggleAllSelection: () => any;
|
|
17
|
+
toggleRowExpansion: (...args: any[]) => any;
|
|
18
|
+
setCurrentRow: (...args: any[]) => any;
|
|
19
|
+
clearSort: () => any;
|
|
20
|
+
clearFilter: (...args: any[]) => any;
|
|
21
|
+
doLayout: () => any;
|
|
22
|
+
sort: (...args: any[]) => any;
|
|
23
|
+
scrollTo: (...args: any[]) => any;
|
|
24
|
+
getColumns: () => TableColumnConfig[];
|
|
25
|
+
/** 原始 el-table 实例,兜底用 */
|
|
26
|
+
tableRef: globalThis.Ref<any, any>;
|
|
27
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
sort: (sort: {
|
|
29
|
+
prop: string;
|
|
30
|
+
order: string | null;
|
|
31
|
+
}) => any;
|
|
32
|
+
"row-click": (row: any, column: any, event: Event) => any;
|
|
33
|
+
"selection-change": (rows: any[]) => any;
|
|
34
|
+
"expand-change": (row: any, expandedRows: any[]) => any;
|
|
35
|
+
"cell-click": (row: any, column: any, cell: any, event: Event) => any;
|
|
36
|
+
"action-click": (action: TableActionConfig, row: any, $index: number | null) => any;
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
38
|
+
onSort?: ((sort: {
|
|
39
|
+
prop: string;
|
|
40
|
+
order: string | null;
|
|
41
|
+
}) => any) | undefined;
|
|
42
|
+
"onRow-click"?: ((row: any, column: any, event: Event) => any) | undefined;
|
|
43
|
+
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
44
|
+
"onExpand-change"?: ((row: any, expandedRows: any[]) => any) | undefined;
|
|
45
|
+
"onCell-click"?: ((row: any, column: any, cell: any, event: Event) => any) | undefined;
|
|
46
|
+
"onAction-click"?: ((action: TableActionConfig, row: any, $index: number | null) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { TableActionConfig } from '../model/table';
|
|
2
|
+
import { TablePageConfig } from '../model/table-page';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** 列表页配置:{tableOptions, searchOptions, key, form, api …}。异步场景改用 setOptions() */
|
|
5
|
+
options?: TablePageConfig | null;
|
|
6
|
+
/**
|
|
7
|
+
* 表格配置 ID(如 'user')。**非空时组件自己走 API 取配置**(忽略 props.options),
|
|
8
|
+
* 取完按 autoLoad 自动拉一次列表。
|
|
9
|
+
*/
|
|
10
|
+
tableId?: string;
|
|
11
|
+
/** 表格数据。传了就原样用(空数组也算传),组件不再自己拉数据、也不在增删改后刷新 */
|
|
12
|
+
data?: any[];
|
|
13
|
+
/** 搜索条件(v-model) */
|
|
14
|
+
modelValue?: Record<string, any>;
|
|
15
|
+
/** 配置就绪后是否自动拉一次列表,默认 true */
|
|
16
|
+
autoLoad?: boolean;
|
|
17
|
+
/** 分页大小,默认 20(只有 yaml 配了 pagination 才会带上) */
|
|
18
|
+
pageSize?: number;
|
|
19
|
+
/**
|
|
20
|
+
* 组件根高度(数字按 px)。设了就进入**定高模式**:
|
|
21
|
+
* 搜索栏 / 分页栏 / 按钮栏固定,表格撑满剩余高度、在自己的区域里滚(表头固定)。
|
|
22
|
+
* 用 style / 外层 flex 定高时改传 `fill`。
|
|
23
|
+
*/
|
|
24
|
+
height?: number | string;
|
|
25
|
+
/**
|
|
26
|
+
* 定高模式开关,默认 false。用 `style="height:…"` 或外层容器定高时传 true ——
|
|
27
|
+
* 效果同 `height` prop(表格内部滚动、表头吸顶),只是高度不由本组件给。
|
|
28
|
+
*/
|
|
29
|
+
fill?: boolean;
|
|
30
|
+
/** 是否显示分页栏,默认 true。yaml 没配 pagination 且没传 data 时本来就不显示 */
|
|
31
|
+
showPagination?: boolean;
|
|
32
|
+
/** 每页条数选项,默认 [10, 20, 50, 100] */
|
|
33
|
+
pageSizes?: number[];
|
|
34
|
+
/** el-pagination 的 layout,默认 'total, sizes, prev, pager, next, jumper' */
|
|
35
|
+
paginationLayout?: string;
|
|
36
|
+
/** 分页码是否要底色,默认 true */
|
|
37
|
+
paginationBackground?: boolean;
|
|
38
|
+
/** 透传给 el-pagination 的其它属性(EP 有什么就写什么) */
|
|
39
|
+
paginationProps?: Record<string, any>;
|
|
40
|
+
/**
|
|
41
|
+
* 底部按钮栏对齐,默认 'right'。配合 `#footer` 插槽用(没插槽整条不渲染)。
|
|
42
|
+
*/
|
|
43
|
+
footerAlign?: 'left' | 'center' | 'right';
|
|
44
|
+
/** 底部按钮栏高度,默认 50(数字按 px) */
|
|
45
|
+
footerHeight?: number | string;
|
|
46
|
+
/** 底部按钮栏背景色(css 值,如 '#f5f7fa');不传透明 */
|
|
47
|
+
footerBg?: string;
|
|
48
|
+
}
|
|
49
|
+
declare function __VLS_template(): any;
|
|
50
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
51
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
52
|
+
setOptions: (options: TablePageConfig | null) => void;
|
|
53
|
+
getOptions: () => TablePageConfig | null;
|
|
54
|
+
getRows: () => any[];
|
|
55
|
+
getColumns: () => import('..').TableColumnConfig[];
|
|
56
|
+
getSearchModel: () => Record<string, any>;
|
|
57
|
+
load: (params?: Record<string, any>) => Promise<any[]>;
|
|
58
|
+
reload: () => Promise<any[]>;
|
|
59
|
+
setPage: (page: number) => Promise<void>;
|
|
60
|
+
setPageSize: (size: number) => Promise<void>;
|
|
61
|
+
deleteRow: (row: any) => Promise<void>;
|
|
62
|
+
openForm: (mode?: "add" | "edit", row?: any, formId?: string) => Promise<void>;
|
|
63
|
+
closeForm: () => void;
|
|
64
|
+
submitForm: () => Promise<void>;
|
|
65
|
+
/** 原始 UForm 实例(弹窗内),兜底用 */
|
|
66
|
+
formRef: globalThis.Ref<any, any>;
|
|
67
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
|
+
sort: (sort: {
|
|
69
|
+
prop: string;
|
|
70
|
+
order: string | null;
|
|
71
|
+
}) => any;
|
|
72
|
+
"update:modelValue": (model: Record<string, any>) => any;
|
|
73
|
+
delete: (row: any) => any;
|
|
74
|
+
error: (error: any) => any;
|
|
75
|
+
search: (params: Record<string, any>) => any;
|
|
76
|
+
load: (payload: {
|
|
77
|
+
rows: any[];
|
|
78
|
+
total: number;
|
|
79
|
+
}) => any;
|
|
80
|
+
"row-click": (row: any, column: any, event: Event) => any;
|
|
81
|
+
"selection-change": (rows: any[]) => any;
|
|
82
|
+
"expand-change": (row: any, rows: any[]) => any;
|
|
83
|
+
"cell-click": (row: any, column: any, cell: any, event: Event) => any;
|
|
84
|
+
"action-click": (action: TableActionConfig, row: any, $index: number | null) => any;
|
|
85
|
+
reset: (params: Record<string, any>) => any;
|
|
86
|
+
"page-change": (payload: {
|
|
87
|
+
page: number;
|
|
88
|
+
pageSize: number;
|
|
89
|
+
}) => any;
|
|
90
|
+
"delete-success": (row: any) => any;
|
|
91
|
+
"form-submit": (payload: {
|
|
92
|
+
mode: "add" | "edit";
|
|
93
|
+
model: Record<string, any>;
|
|
94
|
+
row: any;
|
|
95
|
+
}) => any;
|
|
96
|
+
"form-success": (payload: {
|
|
97
|
+
mode: "add" | "edit";
|
|
98
|
+
model: Record<string, any>;
|
|
99
|
+
data: any;
|
|
100
|
+
}) => any;
|
|
101
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
102
|
+
onSort?: ((sort: {
|
|
103
|
+
prop: string;
|
|
104
|
+
order: string | null;
|
|
105
|
+
}) => any) | undefined;
|
|
106
|
+
"onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
|
|
107
|
+
onDelete?: ((row: any) => any) | undefined;
|
|
108
|
+
onError?: ((error: any) => any) | undefined;
|
|
109
|
+
onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
110
|
+
onLoad?: ((payload: {
|
|
111
|
+
rows: any[];
|
|
112
|
+
total: number;
|
|
113
|
+
}) => any) | undefined;
|
|
114
|
+
"onRow-click"?: ((row: any, column: any, event: Event) => any) | undefined;
|
|
115
|
+
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
116
|
+
"onExpand-change"?: ((row: any, rows: any[]) => any) | undefined;
|
|
117
|
+
"onCell-click"?: ((row: any, column: any, cell: any, event: Event) => any) | undefined;
|
|
118
|
+
"onAction-click"?: ((action: TableActionConfig, row: any, $index: number | null) => any) | undefined;
|
|
119
|
+
onReset?: ((params: Record<string, any>) => any) | undefined;
|
|
120
|
+
"onPage-change"?: ((payload: {
|
|
121
|
+
page: number;
|
|
122
|
+
pageSize: number;
|
|
123
|
+
}) => any) | undefined;
|
|
124
|
+
"onDelete-success"?: ((row: any) => any) | undefined;
|
|
125
|
+
"onForm-submit"?: ((payload: {
|
|
126
|
+
mode: "add" | "edit";
|
|
127
|
+
model: Record<string, any>;
|
|
128
|
+
row: any;
|
|
129
|
+
}) => any) | undefined;
|
|
130
|
+
"onForm-success"?: ((payload: {
|
|
131
|
+
mode: "add" | "edit";
|
|
132
|
+
model: Record<string, any>;
|
|
133
|
+
data: any;
|
|
134
|
+
}) => any) | undefined;
|
|
135
|
+
}>, {
|
|
136
|
+
fill: boolean;
|
|
137
|
+
autoLoad: boolean;
|
|
138
|
+
pageSize: number;
|
|
139
|
+
showPagination: boolean;
|
|
140
|
+
pageSizes: number[];
|
|
141
|
+
paginationLayout: string;
|
|
142
|
+
paginationBackground: boolean;
|
|
143
|
+
footerAlign: "left" | "center" | "right";
|
|
144
|
+
footerHeight: number | string;
|
|
145
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
146
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
147
|
+
export default _default;
|
|
148
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
149
|
+
new (): {
|
|
150
|
+
$slots: S;
|
|
151
|
+
};
|
|
152
|
+
};
|