@done-coding/admin-core 0.4.0 → 0.5.1-alpha.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/es/bridge/index.mjs +30 -42
- package/es/components/app-layout/AppHeader.vue.mjs +2 -2
- package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
- package/es/components/data-view/DataListView.vue.mjs +2 -2
- package/es/components/data-view/DataListView.vue2.mjs +63 -52
- package/es/components/data-view/utils.mjs +36 -0
- package/es/components/display/TabsMain.vue.mjs +1 -1
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +44 -44
- package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
- package/es/components/modal/ConfirmModal.vue.mjs +3 -3
- package/es/components/modal/DetailModal.vue.mjs +10 -10
- package/es/components/table/TableMain.vue.mjs +3 -3
- package/es/components/table/TableMain.vue2.mjs +167 -177
- package/es/components/table/TableToolbar.vue.mjs +3 -3
- package/es/components/table/TableToolbar.vue2.mjs +8 -4
- package/es/index.mjs +150 -180
- package/es/style.css +1 -1
- package/package.json +6 -5
- package/types/bridge/index.d.ts +3 -6
- package/types/bridge/route.d.ts +0 -1
- package/types/components/app-layout/AppBody.vue.d.ts +14 -34
- package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
- package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
- package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
- package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
- package/types/components/app-layout/AppPage.vue.d.ts +14 -39
- package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
- package/types/components/app-layout/index.d.ts +1 -19
- package/types/components/app-layout/types.d.ts +0 -1
- package/types/components/data-view/DataListView.vue.d.ts +9 -9
- package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
- package/types/components/data-view/index.d.ts +0 -1
- package/types/components/data-view/types.d.ts +9 -18
- package/types/components/data-view/utils.d.ts +5 -0
- package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
- package/types/components/display/HeightProvider.vue.d.ts +15 -31
- package/types/components/display/TabsHeader.vue.d.ts +27 -34
- package/types/components/display/TabsMain.vue.d.ts +14 -75
- package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
- package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
- package/types/components/display/WatchSize.vue.d.ts +20 -32
- package/types/components/display/index.d.ts +0 -3
- package/types/components/display/types.d.ts +1 -2
- package/types/components/form/FormItem.vue.d.ts +208 -33
- package/types/components/form/FormMain.vue.d.ts +6 -7
- package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
- package/types/components/form/FormSearch.vue.d.ts +5 -6
- package/types/components/form/FormSelect.vue.d.ts +19 -40
- package/types/components/form/FormTree.vue.d.ts +2037 -32
- package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
- package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
- package/types/components/form/form-search-utils.d.ts +0 -1
- package/types/components/form/index.d.ts +0 -3
- package/types/components/form/types.d.ts +2 -3
- package/types/components/form/utils.d.ts +0 -1
- package/types/components/list-page/ListPage.vue.d.ts +32 -33
- package/types/components/list-page/index.d.ts +0 -3
- package/types/components/list-page/types.d.ts +0 -1
- package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
- package/types/components/menu/MenuTree.vue.d.ts +117 -19
- package/types/components/menu/index.d.ts +0 -3
- package/types/components/misc/ActionBtn.vue.d.ts +10 -11
- package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
- package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
- package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
- package/types/components/misc/index.d.ts +4 -14
- package/types/components/misc/types.d.ts +0 -1
- package/types/components/modal/DetailModal.vue.d.ts +5 -6
- package/types/components/modal/ModalPorter.vue.d.ts +13 -18
- package/types/components/modal/ModalShelf.vue.d.ts +13 -18
- package/types/components/modal/index.d.ts +0 -4
- package/types/components/modal/modal-shelf-core.d.ts +0 -1
- package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
- package/types/components/modal/modal-shelf-types.d.ts +0 -1
- package/types/components/modal/types.d.ts +0 -1
- package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
- package/types/components/panel/PanelItem.vue.d.ts +7 -16
- package/types/components/panel/PanelMain.vue.d.ts +5 -6
- package/types/components/panel/index.d.ts +0 -4
- package/types/components/panel/types.d.ts +0 -1
- package/types/components/table/TableMain.vue.d.ts +12 -12
- package/types/components/table/TableToolbar.vue.d.ts +17 -108
- package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
- package/types/components/table/index.d.ts +0 -3
- package/types/components/table/types.d.ts +59 -19
- package/types/config/list-model.d.ts +2 -1
- package/types/helpers/form.d.ts +0 -1
- package/types/helpers/index.d.ts +0 -10
- package/types/helpers/list-helper.d.ts +0 -1
- package/types/hooks/menus-dispatch.d.ts +0 -1
- package/types/hooks/use-channel-viewport-height.d.ts +0 -1
- package/types/index.d.ts +0 -13
- package/types/inject/key.d.ts +0 -1
- package/types/router/guard/index.d.ts +0 -1
- package/types/router/guard/login.d.ts +0 -1
- package/types/router/guard/permission.d.ts +0 -1
- package/types/router/guard/types.d.ts +0 -1
- package/types/store/app.d.ts +1 -2
- package/types/store/router-permission.d.ts +0 -1
- package/types/store/user.d.ts +0 -1
- package/types/types/route.d.ts +0 -1
- package/types/utils/export.d.ts +11 -10
- package/types/utils/router.d.ts +0 -1
- package/es/components/app-layout/index.mjs +0 -32
- package/es/components/display/index.mjs +0 -18
- package/es/components/form/index.mjs +0 -32
- package/es/components/list-page/index.mjs +0 -14
- package/es/components/menu/index.mjs +0 -12
- package/es/components/misc/ActionButton.vue.mjs +0 -52
- package/es/components/misc/ActionButton.vue2.mjs +0 -4
- package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
- package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
- package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
- package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
- package/es/components/misc/index.mjs +0 -32
- package/es/components/modal/index.mjs +0 -23
- package/es/components/panel/index.mjs +0 -20
- package/es/components/table/index.mjs +0 -14
- package/types/components/misc/ActionButton.vue.d.ts +0 -24
- package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
- package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
- package/types/components/modal/ConfirmModal.vue.d.ts +0 -124
|
@@ -1,81 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: globalThis.PropType<number>;
|
|
14
|
-
default: number;
|
|
15
|
-
};
|
|
16
|
-
channel: {
|
|
17
|
-
type: globalThis.PropType<string>;
|
|
18
|
-
};
|
|
19
|
-
parentChannel: {
|
|
20
|
-
type: globalThis.PropType<string>;
|
|
21
|
-
};
|
|
22
|
-
padding: {
|
|
23
|
-
type: globalThis.PropType<import('./types').TabsMainPadding>;
|
|
24
|
-
};
|
|
25
|
-
refineReduceHeight: {
|
|
26
|
-
type: globalThis.PropType<number>;
|
|
27
|
-
default: number;
|
|
28
|
-
};
|
|
29
|
-
tabs: {
|
|
30
|
-
type: globalThis.PropType<TabsMainItem[]>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
variant: {
|
|
34
|
-
type: globalThis.PropType<import('./types').TabsHeaderVariant>;
|
|
35
|
-
};
|
|
36
|
-
refine: {
|
|
37
|
-
type: globalThis.PropType<boolean>;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
41
|
-
modelValue: import('vue').PropType<string>;
|
|
42
|
-
viewportHeight: {
|
|
43
|
-
type: globalThis.PropType<number>;
|
|
44
|
-
};
|
|
45
|
-
minHeight: {
|
|
46
|
-
type: globalThis.PropType<number>;
|
|
47
|
-
default: number;
|
|
48
|
-
};
|
|
49
|
-
channel: {
|
|
50
|
-
type: globalThis.PropType<string>;
|
|
51
|
-
};
|
|
52
|
-
parentChannel: {
|
|
53
|
-
type: globalThis.PropType<string>;
|
|
54
|
-
};
|
|
55
|
-
padding: {
|
|
56
|
-
type: globalThis.PropType<import('./types').TabsMainPadding>;
|
|
57
|
-
};
|
|
58
|
-
refineReduceHeight: {
|
|
59
|
-
type: globalThis.PropType<number>;
|
|
60
|
-
default: number;
|
|
61
|
-
};
|
|
62
|
-
tabs: {
|
|
63
|
-
type: globalThis.PropType<TabsMainItem[]>;
|
|
64
|
-
required: true;
|
|
65
|
-
};
|
|
66
|
-
variant: {
|
|
67
|
-
type: globalThis.PropType<import('./types').TabsHeaderVariant>;
|
|
68
|
-
};
|
|
69
|
-
refine: {
|
|
70
|
-
type: globalThis.PropType<boolean>;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
}>> & Readonly<{}>, {
|
|
1
|
+
import { TabsMainProps } from './types';
|
|
2
|
+
type __VLS_Props = TabsMainProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): any;
|
|
7
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: string) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
}>, {
|
|
74
13
|
minHeight: number;
|
|
75
14
|
refineReduceHeight: number;
|
|
76
15
|
refine: boolean;
|
|
77
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
78
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
79
18
|
export default _default;
|
|
80
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
20
|
new (): {
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
header?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
4
9
|
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
5
11
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
viewportHeightChange: (value: number | undefined) =>
|
|
12
|
+
viewportHeightChange: (value: number | undefined) => any;
|
|
7
13
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
8
14
|
onViewportHeightChange?: ((value: number | undefined) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
10
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
17
|
export default _default;
|
|
12
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
19
|
new (): {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TabsMainPadding } from './types';
|
|
2
|
-
|
|
3
2
|
interface TabsRefineFlowProps {
|
|
4
3
|
viewportHeight?: number;
|
|
5
4
|
minHeight?: number;
|
|
@@ -10,42 +9,25 @@ interface TabsRefineFlowProps {
|
|
|
10
9
|
refineReduceHeight?: number;
|
|
11
10
|
}
|
|
12
11
|
declare function __VLS_template(): {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
header?(_: {}): any;
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
15
19
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
viewportHeightChange: (value: number | undefined) => void;
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TabsRefineFlowProps>, {
|
|
22
|
-
padding: () => TabsMainPadding;
|
|
23
|
-
refineReduceHeight: number;
|
|
24
|
-
}>>> & Readonly<{
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<TabsRefineFlowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
viewportHeightChange: (value: number | undefined) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<TabsRefineFlowProps> & Readonly<{
|
|
25
24
|
onViewportHeightChange?: ((value: number | undefined) => any) | undefined;
|
|
26
25
|
}>, {
|
|
27
26
|
padding: TabsMainPadding;
|
|
28
27
|
refineReduceHeight: number;
|
|
29
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
30
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
30
|
export default _default;
|
|
32
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
-
} : {
|
|
37
|
-
type: import('vue').PropType<T[K]>;
|
|
38
|
-
required: true;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
type __VLS_WithDefaults<P, D> = {
|
|
42
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
-
default: D[K];
|
|
44
|
-
}> : P[K];
|
|
45
|
-
};
|
|
46
|
-
type __VLS_Prettify<T> = {
|
|
47
|
-
[K in keyof T]: T[K];
|
|
48
|
-
} & {};
|
|
49
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
32
|
new (): {
|
|
51
33
|
$slots: S;
|
|
@@ -1,42 +1,30 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
mode?: "height" | "width" | "both";
|
|
3
|
+
};
|
|
1
4
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
box: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
3
13
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
heightChange: (value: number) => void;
|
|
10
|
-
widthChange: (value: number) => void;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
-
mode?: "height" | "width" | "both";
|
|
13
|
-
}>, {
|
|
14
|
-
mode: string;
|
|
15
|
-
}>>> & Readonly<{
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
heightChange: (value: number) => any;
|
|
17
|
+
widthChange: (value: number) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
19
|
onHeightChange?: ((value: number) => any) | undefined;
|
|
17
20
|
onWidthChange?: ((value: number) => any) | undefined;
|
|
18
21
|
}>, {
|
|
19
22
|
mode: "height" | "width" | "both";
|
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
21
|
-
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
box: HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
27
|
export default _default;
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
type __VLS_WithDefaults<P, D> = {
|
|
33
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
-
default: D[K];
|
|
35
|
-
}> : P[K];
|
|
36
|
-
};
|
|
37
|
-
type __VLS_Prettify<T> = {
|
|
38
|
-
[K in keyof T]: T[K];
|
|
39
|
-
} & {};
|
|
40
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
29
|
new (): {
|
|
42
30
|
$slots: S;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { Plugin } from 'vue';
|
|
2
1
|
import { default as WatchSize } from './WatchSize.vue';
|
|
3
2
|
import { default as TabsMain } from './TabsMain.vue';
|
|
4
3
|
import { default as HeightProvider } from './HeightProvider.vue';
|
|
5
4
|
import { default as ActionBtnGroup } from './ActionBtnGroup.vue';
|
|
6
|
-
|
|
7
5
|
export {
|
|
8
6
|
/** 尺寸监听容器:debounce 测默认槽内容宽/高,`@height-change` / `@size-change` 上报 */
|
|
9
7
|
WatchSize,
|
|
@@ -26,5 +24,4 @@ HeightProvider,
|
|
|
26
24
|
* - 典型消费:TableMain.toolbar 内置 / 表格 OPERATE 列(BL-5 推广)。
|
|
27
25
|
*/
|
|
28
26
|
ActionBtnGroup, };
|
|
29
|
-
export declare const displayInstall: Plugin;
|
|
30
27
|
export * from './types';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Component, ComputedRef, VNode } from 'vue';
|
|
2
|
-
|
|
3
2
|
/** ActionBtnGroup 按钮 size 枚举(对齐 element-plus ElButton size) */
|
|
4
3
|
export type ActionBtnSize = "large" | "default" | "small";
|
|
5
4
|
/**
|
|
@@ -93,7 +92,7 @@ export interface TabsMainProps {
|
|
|
93
92
|
parentChannel?: string;
|
|
94
93
|
/** 默认插槽容器内置 padding [top,right,bottom,left],默认 [10,0,0,0];top+bottom 同步从 slot scope/channel viewportHeight 扣减 */
|
|
95
94
|
padding?: TabsMainPadding;
|
|
96
|
-
/** 精细化布局:
|
|
95
|
+
/** 精细化布局:false(默认) 不包 HeightProvider,默认槽 viewportHeight 直接给 viewportHeightFinal(不扣减),业务自然流;true 走 HeightProvider 精确扣 header reserve + padding 给 available */
|
|
97
96
|
refine?: boolean;
|
|
98
97
|
/** 精细化预留高度(px),从 viewportHeightFinal 中预扣,refine=false 时同样生效 */
|
|
99
98
|
refineReduceHeight?: number;
|
|
@@ -1,48 +1,223 @@
|
|
|
1
1
|
import { FormMainItemProps, FormItemSubmitType } from './types';
|
|
2
|
-
|
|
2
|
+
import { WatchStopHandle } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {
|
|
7
|
+
onTriggerChangeLink: (n: any, attachInfo?: any) => void;
|
|
8
|
+
modelValue: any;
|
|
9
|
+
"onUpdate:modelValue": (val: any) => void;
|
|
10
|
+
onChange?: (() => void) | undefined;
|
|
11
|
+
onBlur?: (() => void) | undefined;
|
|
12
|
+
onKeyup?: ((e: KeyboardEvent) => void) | undefined;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
} | {
|
|
15
|
+
onTriggerChangeLink?: undefined;
|
|
16
|
+
modelValue: any;
|
|
17
|
+
"onUpdate:modelValue": (val: any) => void;
|
|
18
|
+
onChange?: (() => void) | undefined;
|
|
19
|
+
onBlur?: (() => void) | undefined;
|
|
20
|
+
onKeyup?: ((e: KeyboardEvent) => void) | undefined;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
}): any;
|
|
23
|
+
};
|
|
24
|
+
refs: {
|
|
25
|
+
formItem: ({
|
|
26
|
+
$: import('vue').ComponentInternalInstance;
|
|
27
|
+
$data: {};
|
|
28
|
+
$props: {
|
|
29
|
+
readonly label?: string | undefined;
|
|
30
|
+
readonly labelWidth?: string | number | undefined;
|
|
31
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
32
|
+
readonly prop?: import('element-plus').FormItemProp | undefined;
|
|
33
|
+
readonly required?: boolean | undefined;
|
|
34
|
+
readonly rules?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule> | undefined;
|
|
35
|
+
readonly error?: string | undefined;
|
|
36
|
+
readonly validateStatus?: import('element-plus').FormItemValidateState | undefined;
|
|
37
|
+
readonly for?: string | undefined;
|
|
38
|
+
readonly inlineMessage?: boolean | undefined;
|
|
39
|
+
readonly showMessage?: boolean | undefined;
|
|
40
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
41
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
42
|
+
$attrs: import('vue').Attrs;
|
|
43
|
+
$refs: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
$slots: Readonly<{
|
|
47
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
$root: ComponentPublicInstance | null;
|
|
50
|
+
$parent: ComponentPublicInstance | null;
|
|
51
|
+
$host: Element | null;
|
|
52
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
53
|
+
$el: any;
|
|
54
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormItemProps> & Readonly<{}>, {
|
|
55
|
+
size: globalThis.ComputedRef<"" | "default" | "small" | "large">;
|
|
56
|
+
validateMessage: globalThis.Ref<string, string>;
|
|
57
|
+
validateState: globalThis.Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
58
|
+
validate: (trigger: string, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
59
|
+
clearValidate: () => void;
|
|
60
|
+
resetField: () => void;
|
|
61
|
+
setInitialValue: (value: any) => void;
|
|
62
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
63
|
+
required: boolean;
|
|
64
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
65
|
+
inlineMessage: boolean;
|
|
66
|
+
showMessage: boolean;
|
|
67
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
68
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
69
|
+
created?: (() => void) | (() => void)[];
|
|
70
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
71
|
+
mounted?: (() => void) | (() => void)[];
|
|
72
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
73
|
+
updated?: (() => void) | (() => void)[];
|
|
74
|
+
activated?: (() => void) | (() => void)[];
|
|
75
|
+
deactivated?: (() => void) | (() => void)[];
|
|
76
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
77
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
78
|
+
destroyed?: (() => void) | (() => void)[];
|
|
79
|
+
unmounted?: (() => void) | (() => void)[];
|
|
80
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
81
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
82
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
83
|
+
};
|
|
84
|
+
$forceUpdate: () => void;
|
|
85
|
+
$nextTick: typeof import('vue').nextTick;
|
|
86
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): WatchStopHandle;
|
|
87
|
+
} & Readonly<{
|
|
88
|
+
required: boolean;
|
|
89
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
90
|
+
inlineMessage: boolean;
|
|
91
|
+
showMessage: boolean;
|
|
92
|
+
}> & Omit<Readonly<import('element-plus').FormItemProps> & Readonly<{}>, "labelPosition" | "required" | "inlineMessage" | "showMessage" | "size" | "validateMessage" | "validateState" | "validate" | "clearValidate" | "resetField" | "setInitialValue"> & {
|
|
93
|
+
size: "" | "default" | "small" | "large";
|
|
94
|
+
validateMessage: string;
|
|
95
|
+
validateState: "" | "error" | "validating" | "success";
|
|
96
|
+
validate: (trigger: string, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
97
|
+
clearValidate: () => void;
|
|
98
|
+
resetField: () => void;
|
|
99
|
+
setInitialValue: (value: any) => void;
|
|
100
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
101
|
+
$slots: {
|
|
102
|
+
label?: (props: {
|
|
103
|
+
label: string;
|
|
104
|
+
}) => any;
|
|
105
|
+
} & {
|
|
106
|
+
default?: (props: {}) => any;
|
|
107
|
+
} & {
|
|
108
|
+
error?: (props: {
|
|
109
|
+
error: string;
|
|
110
|
+
}) => any;
|
|
111
|
+
};
|
|
112
|
+
}) | null;
|
|
113
|
+
};
|
|
114
|
+
rootEl: any;
|
|
21
115
|
};
|
|
22
|
-
|
|
116
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
117
|
+
declare const __VLS_component: import('vue').DefineComponent<FormMainItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
118
|
viewHideChange: (info: {
|
|
24
119
|
config: FormMainItemProps["config"];
|
|
25
120
|
status: boolean;
|
|
26
|
-
}) =>
|
|
27
|
-
submit: (type: FormItemSubmitType) =>
|
|
28
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
121
|
+
}) => any;
|
|
122
|
+
submit: (type: FormItemSubmitType) => any;
|
|
123
|
+
}, string, import('vue').PublicProps, Readonly<FormMainItemProps> & Readonly<{
|
|
29
124
|
onViewHideChange?: ((info: {
|
|
30
125
|
config: FormMainItemProps["config"];
|
|
31
126
|
status: boolean;
|
|
32
127
|
}) => any) | undefined;
|
|
33
128
|
onSubmit?: ((type: FormItemSubmitType) => any) | undefined;
|
|
34
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
35
|
-
|
|
129
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
130
|
+
formItem: ({
|
|
131
|
+
$: import('vue').ComponentInternalInstance;
|
|
132
|
+
$data: {};
|
|
133
|
+
$props: {
|
|
134
|
+
readonly label?: string | undefined;
|
|
135
|
+
readonly labelWidth?: string | number | undefined;
|
|
136
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
137
|
+
readonly prop?: import('element-plus').FormItemProp | undefined;
|
|
138
|
+
readonly required?: boolean | undefined;
|
|
139
|
+
readonly rules?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule> | undefined;
|
|
140
|
+
readonly error?: string | undefined;
|
|
141
|
+
readonly validateStatus?: import('element-plus').FormItemValidateState | undefined;
|
|
142
|
+
readonly for?: string | undefined;
|
|
143
|
+
readonly inlineMessage?: boolean | undefined;
|
|
144
|
+
readonly showMessage?: boolean | undefined;
|
|
145
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
146
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
147
|
+
$attrs: import('vue').Attrs;
|
|
148
|
+
$refs: {
|
|
149
|
+
[x: string]: unknown;
|
|
150
|
+
};
|
|
151
|
+
$slots: Readonly<{
|
|
152
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
$root: ComponentPublicInstance | null;
|
|
155
|
+
$parent: ComponentPublicInstance | null;
|
|
156
|
+
$host: Element | null;
|
|
157
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
158
|
+
$el: any;
|
|
159
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormItemProps> & Readonly<{}>, {
|
|
160
|
+
size: globalThis.ComputedRef<"" | "default" | "small" | "large">;
|
|
161
|
+
validateMessage: globalThis.Ref<string, string>;
|
|
162
|
+
validateState: globalThis.Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
163
|
+
validate: (trigger: string, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
164
|
+
clearValidate: () => void;
|
|
165
|
+
resetField: () => void;
|
|
166
|
+
setInitialValue: (value: any) => void;
|
|
167
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
168
|
+
required: boolean;
|
|
169
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
170
|
+
inlineMessage: boolean;
|
|
171
|
+
showMessage: boolean;
|
|
172
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
173
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
174
|
+
created?: (() => void) | (() => void)[];
|
|
175
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
176
|
+
mounted?: (() => void) | (() => void)[];
|
|
177
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
178
|
+
updated?: (() => void) | (() => void)[];
|
|
179
|
+
activated?: (() => void) | (() => void)[];
|
|
180
|
+
deactivated?: (() => void) | (() => void)[];
|
|
181
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
182
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
183
|
+
destroyed?: (() => void) | (() => void)[];
|
|
184
|
+
unmounted?: (() => void) | (() => void)[];
|
|
185
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
186
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
187
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
188
|
+
};
|
|
189
|
+
$forceUpdate: () => void;
|
|
190
|
+
$nextTick: typeof import('vue').nextTick;
|
|
191
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): WatchStopHandle;
|
|
192
|
+
} & Readonly<{
|
|
193
|
+
required: boolean;
|
|
194
|
+
labelPosition: "left" | "right" | "top" | "";
|
|
195
|
+
inlineMessage: boolean;
|
|
196
|
+
showMessage: boolean;
|
|
197
|
+
}> & Omit<Readonly<import('element-plus').FormItemProps> & Readonly<{}>, "labelPosition" | "required" | "inlineMessage" | "showMessage" | "size" | "validateMessage" | "validateState" | "validate" | "clearValidate" | "resetField" | "setInitialValue"> & {
|
|
198
|
+
size: "" | "default" | "small" | "large";
|
|
199
|
+
validateMessage: string;
|
|
200
|
+
validateState: "" | "error" | "validating" | "success";
|
|
201
|
+
validate: (trigger: string, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
202
|
+
clearValidate: () => void;
|
|
203
|
+
resetField: () => void;
|
|
204
|
+
setInitialValue: (value: any) => void;
|
|
205
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
206
|
+
$slots: {
|
|
207
|
+
label?: (props: {
|
|
208
|
+
label: string;
|
|
209
|
+
}) => any;
|
|
210
|
+
} & {
|
|
211
|
+
default?: (props: {}) => any;
|
|
212
|
+
} & {
|
|
213
|
+
error?: (props: {
|
|
214
|
+
error: string;
|
|
215
|
+
}) => any;
|
|
216
|
+
};
|
|
217
|
+
}) | null;
|
|
218
|
+
}, any>;
|
|
219
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
220
|
export default _default;
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
-
} : {
|
|
42
|
-
type: import('vue').PropType<T[K]>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
221
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
222
|
new (): {
|
|
48
223
|
$slots: S;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { FormMainInstance, FormMainProps, FormItemSubmitType } from './types';
|
|
2
2
|
import { ColProps } from 'element-plus';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
3
|
+
declare const _default: <PO extends Record<string, any>, SO extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
5
|
readonly onSubmit?: ((type: FormItemSubmitType) => any) | undefined;
|
|
7
6
|
readonly onLoadingChange?: ((status: boolean) => any) | undefined;
|
|
8
7
|
readonly onVisibleChange?: ((status: boolean) => any) | undefined;
|
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSubmit" | "onLoadingChange" | "onVisibleChange"> & FormMainProps<PO, SO> & Partial<{}>> & import('vue').PublicProps;
|
|
10
9
|
expose(exposed: import('vue').ShallowUnwrapRef<FormMainInstance>): void;
|
|
11
10
|
attrs: any;
|
|
12
|
-
slots:
|
|
11
|
+
slots: Partial<Record<NonNullable<Extract<keyof PO, string>>, (_: {
|
|
13
12
|
onTriggerChangeLink: (n: any, attachInfo?: any) => void;
|
|
14
13
|
modelValue: any;
|
|
15
14
|
"onUpdate:modelValue": (val: any) => void;
|
|
@@ -40,7 +39,7 @@ declare const _default: <PO extends Record<string, any>, SO extends Record<strin
|
|
|
40
39
|
xl?: import('element-plus').ColSize;
|
|
41
40
|
};
|
|
42
41
|
}): any;
|
|
43
|
-
}
|
|
42
|
+
};
|
|
44
43
|
emit: {
|
|
45
44
|
(e: "loadingChange" | "visibleChange", status: boolean): void;
|
|
46
45
|
(e: "submit", type: FormItemSubmitType): void;
|
|
@@ -49,6 +48,6 @@ declare const _default: <PO extends Record<string, any>, SO extends Record<strin
|
|
|
49
48
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
49
|
};
|
|
51
50
|
export default _default;
|
|
52
|
-
type
|
|
51
|
+
type __VLS_PrettifyLocal<T> = {
|
|
53
52
|
[K in keyof T]: T[K];
|
|
54
53
|
} & {};
|
|
@@ -1,35 +1,18 @@
|
|
|
1
1
|
import { OptionItem } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
|
-
modelValue: import('vue').PropType<OptionItem["value"]>;
|
|
19
|
-
options: {
|
|
20
|
-
type: globalThis.PropType<OptionItem[]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
mode: {
|
|
24
|
-
type: globalThis.PropType<"radio" | "buttonGroup">;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
notNull: {
|
|
28
|
-
type: globalThis.PropType<boolean>;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
}>> & Readonly<{}>, {
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: OptionItem[];
|
|
4
|
+
mode?: "radio" | "buttonGroup";
|
|
5
|
+
notNull?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
modelValue?: OptionItem["value"];
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: string | number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
14
|
+
}>, {
|
|
32
15
|
mode: "radio" | "buttonGroup";
|
|
33
16
|
notNull: boolean;
|
|
34
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
18
|
export default _default;
|