@done-coding/admin-core 0.5.0 → 0.5.1-alpha.1
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 +64 -53
- package/es/components/data-view/utils.mjs +36 -0
- package/es/components/display/TabsHeader.vue.mjs +2 -2
- 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 +2 -2
- 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 +33 -73
- 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 +0 -1
- 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/ConfirmModal.vue.d.ts +26 -83
- 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 +0 -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
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { FormSearchInstance, FormSearchProps, FormSearchSearchType } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
2
|
+
declare const _default: <PO extends Record<string, any>, SO extends Record<string, any>, SQ 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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
4
|
readonly onSearch?: ((data: import('./types').ExcludeNeverProperties<import('./types').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, type: FormSearchSearchType) => any) | undefined;
|
|
6
5
|
readonly onVisibleChange?: ((status: boolean) => any) | undefined;
|
|
7
6
|
readonly onHeightChange?: ((height: number) => any) | undefined;
|
|
8
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onVisibleChange" | "onHeightChange" | "onSearch"> & FormSearchProps<PO, SO, SQ> & Partial<{}>> & import('vue').PublicProps;
|
|
9
8
|
expose(exposed: import('vue').ShallowUnwrapRef<FormSearchInstance>): void;
|
|
10
9
|
attrs: any;
|
|
11
|
-
slots:
|
|
10
|
+
slots: Partial<Record<NonNullable<Extract<keyof PO, string>>, (_: any) => any>>;
|
|
12
11
|
emit: {
|
|
13
12
|
(e: "search", data: import('./types').ExcludeNeverProperties<import('./types').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, type: FormSearchSearchType): void;
|
|
14
13
|
(e: "heightChange", height: number): void;
|
|
@@ -18,6 +17,6 @@ declare const _default: <PO extends Record<string, any>, SO extends Record<strin
|
|
|
18
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
21
|
-
type
|
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
21
|
[K in keyof T]: T[K];
|
|
23
22
|
} & {};
|
|
@@ -1,54 +1,33 @@
|
|
|
1
1
|
import { OptionItem } from './types';
|
|
2
|
-
|
|
3
|
-
declare function __VLS_template(): {
|
|
4
|
-
option?(_: {
|
|
5
|
-
data: OptionItem;
|
|
6
|
-
}): any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
modelValue: OptionItem["value"];
|
|
10
|
-
options?: OptionItem[];
|
|
11
|
-
remoteMethod?: (query?: string) => Promise<OptionItem[]>;
|
|
12
|
-
itemCls?: string;
|
|
13
|
-
getOptions?: () => Promise<OptionItem[]>;
|
|
14
|
-
}>, {
|
|
15
|
-
options: () => never[];
|
|
16
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
-
"update:modelValue": (value: string | number) => void;
|
|
18
|
-
detailChange: (value?: OptionItem | undefined) => void;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
type __VLS_Props = {
|
|
20
3
|
modelValue: OptionItem["value"];
|
|
21
4
|
options?: OptionItem[];
|
|
22
5
|
remoteMethod?: (query?: string) => Promise<OptionItem[]>;
|
|
23
6
|
itemCls?: string;
|
|
24
7
|
getOptions?: () => Promise<OptionItem[]>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
option?(_: {
|
|
13
|
+
data: OptionItem;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
+
"update:modelValue": (value: string | number) => any;
|
|
22
|
+
detailChange: (value?: OptionItem | undefined) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
24
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
29
25
|
onDetailChange?: ((value?: OptionItem | undefined) => any) | undefined;
|
|
30
26
|
}>, {
|
|
31
27
|
options: OptionItem[];
|
|
32
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
33
|
-
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"]>;
|
|
34
30
|
export default _default;
|
|
35
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
-
} : {
|
|
40
|
-
type: import('vue').PropType<T[K]>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
type __VLS_WithDefaults<P, D> = {
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
-
default: D[K];
|
|
47
|
-
}> : P[K];
|
|
48
|
-
};
|
|
49
|
-
type __VLS_Prettify<T> = {
|
|
50
|
-
[K in keyof T]: T[K];
|
|
51
|
-
} & {};
|
|
52
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
32
|
new (): {
|
|
54
33
|
$slots: S;
|