@zjhc/ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +51 -0
- package/NOTICE +23 -0
- package/README.md +177 -2
- package/dist/component.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts +5 -0
- package/dist/components/autocomplete/src/autoComplete.vue.d.ts +511 -0
- package/dist/components/autocomplete/src/autocomplete.d.ts +50 -0
- package/dist/components/collapse-container/index.d.ts +6 -0
- package/dist/components/collapse-container/src/collapseContainer.vue.d.ts +47 -0
- package/dist/components/collapse-container/src/instance.d.ts +2 -0
- package/dist/components/collapse-panel/index.d.ts +6 -0
- package/dist/components/collapse-panel/src/collapsePanel.vue.d.ts +68 -0
- package/dist/components/collapse-panel/src/instance.d.ts +2 -0
- package/dist/components/complex-table/index.d.ts +7 -0
- package/dist/components/complex-table/src/ComplexTable.vue.d.ts +1428 -0
- package/dist/components/complex-table/src/TableOperator.vue.d.ts +41 -0
- package/dist/components/complex-table/src/instance.d.ts +4 -0
- package/dist/components/dialog/index.d.ts +5 -0
- package/dist/components/dialog/src/dialog-content.d.ts +20 -0
- package/dist/components/dialog/src/dialog.d.ts +76 -0
- package/dist/components/dialog/src/dialog.vue.d.ts +456 -0
- package/dist/components/dialog/src/dialogContent.vue.d.ts +74 -0
- package/dist/components/dialog/src/use-dialog.d.ts +23 -0
- package/dist/components/edit-table-column/EditTableColumn.vue.d.ts +79 -0
- package/dist/components/edit-table-column/index.d.ts +6 -0
- package/dist/components/edit-table-column/registerComp.d.ts +3 -0
- package/dist/components/edit-table-column/type.d.ts +14 -0
- package/dist/components/group-container/index.d.ts +6 -0
- package/dist/components/group-container/src/groupContainer.vue.d.ts +43 -0
- package/dist/components/group-container/src/instance.d.ts +2 -0
- package/dist/components/index.d.ts +13 -0
- package/dist/components/loading/index.d.ts +11 -0
- package/dist/components/loading/src/directive.d.ts +13 -0
- package/dist/components/loading/src/loading.d.ts +27 -0
- package/dist/components/loading/src/service.d.ts +3 -0
- package/dist/components/loading/src/types.d.ts +61 -0
- package/dist/components/search-layout/index.d.ts +6 -0
- package/dist/components/search-layout/src/instance.d.ts +2 -0
- package/dist/components/search-layout/src/searchLayout.vue.d.ts +22 -0
- package/dist/components/search-panel/index.d.ts +6 -0
- package/dist/components/search-panel/src/instance.d.ts +2 -0
- package/dist/components/search-panel/src/searchPanel.vue.d.ts +17 -0
- package/dist/components/search-panel-layout/index.d.ts +6 -0
- package/dist/components/search-panel-layout/src/layout.d.ts +95 -0
- package/dist/components/sticky-toolbar/index.d.ts +6 -0
- package/dist/components/sticky-toolbar/src/instance.d.ts +2 -0
- package/dist/components/sticky-toolbar/src/stickyToolbar.vue.d.ts +43 -0
- package/dist/components/switch-mode/index.d.ts +7 -0
- package/dist/components/switch-theme/index.d.ts +7 -0
- package/dist/components/table-toolbar/index.d.ts +7 -0
- package/dist/components/table-toolbar/src/buttonGroup.vue.d.ts +79 -0
- package/dist/components/table-toolbar/src/interface.d.ts +21 -0
- package/dist/components/table-toolbar/src/tableToolbar.vue.d.ts +71 -0
- package/dist/constants/aria.d.ts +17 -0
- package/dist/constants/date.d.ts +3 -0
- package/dist/constants/event.d.ts +3 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/key.d.ts +1 -0
- package/dist/constants/size.d.ts +7 -0
- package/dist/defaults.d.ts +5 -0
- package/dist/hooks/complex-table/index.d.ts +33 -0
- package/dist/hooks/get-cookie/index.d.ts +4 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/oper-modal/index.d.ts +8 -0
- package/dist/hooks/post-message/index.d.ts +19 -0
- package/dist/hooks/set-theme/index.d.ts +2 -0
- package/dist/hooks/use-draggable-resize/index.d.ts +10 -0
- package/dist/hooks/use-loading/index.d.ts +4 -0
- package/dist/hooks/use-namespace/index.d.ts +20 -0
- package/dist/icons/arrow-down.vue.d.ts +2 -0
- package/dist/icons/arrow-up.vue.d.ts +2 -0
- package/dist/icons/check.vue.d.ts +2 -0
- package/dist/icons/close.vue.d.ts +2 -0
- package/dist/icons/copy-document.vue.d.ts +2 -0
- package/dist/icons/filter.vue.d.ts +2 -0
- package/dist/icons/full-screen.vue.d.ts +2 -0
- package/dist/icons/index.d.ts +9 -0
- package/dist/icons/loading.vue.d.ts +2 -0
- package/dist/icons/minus.vue.d.ts +2 -0
- package/dist/index.cjs +3985 -0
- package/dist/index.css +2661 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +3985 -0
- package/dist/make-installer.d.ts +5 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/types/enhance/accessory.d.ts +45 -0
- package/dist/types/enhance/biztrace.d.ts +75 -0
- package/dist/types/enhance/form.d.ts +83 -0
- package/dist/types/enhance/heai.d.ts +47 -0
- package/dist/types/enhance/workflow.d.ts +385 -0
- package/dist/types/extension/extension.d.ts +58 -0
- package/dist/types/extension/frame.d.ts +48 -0
- package/dist/types/extension/job.d.ts +36 -0
- package/dist/types/framework/auth.d.ts +38 -0
- package/dist/types/framework/config.d.ts +13 -0
- package/dist/types/framework/core.d.ts +24 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/style.d.ts +10 -0
- package/dist/utils/tools/istype.d.ts +11 -0
- package/dist/utils/tools/security.d.ts +2 -0
- package/dist/utils/tools/throw-error.d.ts +1 -0
- package/dist/utils/tools/tree.d.ts +2 -0
- package/dist/utils/vue/index.d.ts +2 -0
- package/dist/utils/vue/install.d.ts +6 -0
- package/dist/utils/vue/shared.d.ts +10 -0
- package/dist/utils/vue/typescript.d.ts +5 -0
- package/dist/version.d.ts +1 -0
- package/package.json +76 -4
- package/theme-chalk/autocomplete.css +144 -0
- package/theme-chalk/base-var.css +1037 -0
- package/theme-chalk/base.css +120 -0
- package/theme-chalk/collapse-container.css +71 -0
- package/theme-chalk/collapse-panel.css +49 -0
- package/theme-chalk/complextable.css +72 -0
- package/theme-chalk/dark.css +134 -0
- package/theme-chalk/dialog.css +0 -0
- package/theme-chalk/document-tables.css +175 -0
- package/theme-chalk/group-container.css +159 -0
- package/theme-chalk/index.css +2661 -0
- package/theme-chalk/loading.css +86 -0
- package/theme-chalk/page.css +34 -0
- package/theme-chalk/pub-class.css +417 -0
- package/theme-chalk/reset.css +152 -0
- package/theme-chalk/search-panel.css +31 -0
- package/theme-chalk/searchlayout.css +125 -0
- package/theme-chalk/src/autocomplete.scss +103 -0
- package/theme-chalk/src/base-var.scss +489 -0
- package/theme-chalk/src/base.scss +1 -0
- package/theme-chalk/src/black/index.scss +4 -0
- package/theme-chalk/src/collapse-container.scss +44 -0
- package/theme-chalk/src/collapse-panel.scss +26 -0
- package/theme-chalk/src/common/var.scss +154 -0
- package/theme-chalk/src/complextable.scss +47 -0
- package/theme-chalk/src/dark/css-vars.scss +35 -0
- package/theme-chalk/src/dark/var.scss +198 -0
- package/theme-chalk/src/dialog.scss +0 -0
- package/theme-chalk/src/document-tables.scss +133 -0
- package/theme-chalk/src/group-container.scss +139 -0
- package/theme-chalk/src/index.scss +17 -0
- package/theme-chalk/src/light/css-vars.scss +4 -0
- package/theme-chalk/src/light/var.scss +158 -0
- package/theme-chalk/src/loading.scss +68 -0
- package/theme-chalk/src/mixins/_var.scss +48 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +133 -0
- package/theme-chalk/src/mixins/mixins.scss +211 -0
- package/theme-chalk/src/page.scss +8 -0
- package/theme-chalk/src/pub-class.scss +127 -0
- package/theme-chalk/src/reset.scss +155 -0
- package/theme-chalk/src/search-panel.scss +10 -0
- package/theme-chalk/src/searchlayout.scss +114 -0
- package/theme-chalk/src/sticky-toolbar.scss +59 -0
- package/theme-chalk/src/table-toolbar.scss +36 -0
- package/theme-chalk/src/var.scss +32 -0
- package/theme-chalk/src/zjhc/alert.scss +16 -0
- package/theme-chalk/src/zjhc/anchor.scss +10 -0
- package/theme-chalk/src/zjhc/autocomplete.scss +11 -0
- package/theme-chalk/src/zjhc/backtop.scss +8 -0
- package/theme-chalk/src/zjhc/breadcrumb.scss +3 -0
- package/theme-chalk/src/zjhc/button.scss +82 -0
- package/theme-chalk/src/zjhc/calendar.scss +5 -0
- package/theme-chalk/src/zjhc/card.scss +5 -0
- package/theme-chalk/src/zjhc/cascader.scss +26 -0
- package/theme-chalk/src/zjhc/checkbox.scss +59 -0
- package/theme-chalk/src/zjhc/collapse.scss +8 -0
- package/theme-chalk/src/zjhc/dateEditor.scss +14 -0
- package/theme-chalk/src/zjhc/descriptions.scss +32 -0
- package/theme-chalk/src/zjhc/dialog.scss +148 -0
- package/theme-chalk/src/zjhc/drawer.scss +4 -0
- package/theme-chalk/src/zjhc/dropdown.scss +16 -0
- package/theme-chalk/src/zjhc/empty.scss +3 -0
- package/theme-chalk/src/zjhc/fontsize.scss +42 -0
- package/theme-chalk/src/zjhc/form.scss +33 -0
- package/theme-chalk/src/zjhc/index.scss +48 -0
- package/theme-chalk/src/zjhc/input.scss +47 -0
- package/theme-chalk/src/zjhc/link.scss +20 -0
- package/theme-chalk/src/zjhc/main.scss +3 -0
- package/theme-chalk/src/zjhc/mention.scss +9 -0
- package/theme-chalk/src/zjhc/menu.scss +0 -0
- package/theme-chalk/src/zjhc/message-box.scss +57 -0
- package/theme-chalk/src/zjhc/message.scss +13 -0
- package/theme-chalk/src/zjhc/notification.scss +4 -0
- package/theme-chalk/src/zjhc/number.scss +9 -0
- package/theme-chalk/src/zjhc/overlay.scss +3 -0
- package/theme-chalk/src/zjhc/page.scss +3 -0
- package/theme-chalk/src/zjhc/pagination.scss +64 -0
- package/theme-chalk/src/zjhc/picker.scss +85 -0
- package/theme-chalk/src/zjhc/popover.scss +13 -0
- package/theme-chalk/src/zjhc/popper.scss +13 -0
- package/theme-chalk/src/zjhc/radio.scss +49 -0
- package/theme-chalk/src/zjhc/scrollbar.scss +5 -0
- package/theme-chalk/src/zjhc/segmented.scss +18 -0
- package/theme-chalk/src/zjhc/select.scss +49 -0
- package/theme-chalk/src/zjhc/steps.scss +40 -0
- package/theme-chalk/src/zjhc/switch.scss +11 -0
- package/theme-chalk/src/zjhc/table-v2.scss +16 -0
- package/theme-chalk/src/zjhc/table.scss +44 -0
- package/theme-chalk/src/zjhc/tabs.scss +15 -0
- package/theme-chalk/src/zjhc/tags.scss +25 -0
- package/theme-chalk/src/zjhc/timeline.scss +16 -0
- package/theme-chalk/src/zjhc/tour.scss +9 -0
- package/theme-chalk/src/zjhc/tree.scss +6 -0
- package/theme-chalk/src/zjhc/upload.scss +6 -0
- package/theme-chalk/sticky-toolbar.css +71 -0
- package/theme-chalk/table-toolbar.css +53 -0
- package/theme-chalk/var.css +120 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TableAction, ButtonType } from './interface';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
actions: {
|
|
5
|
+
type: PropType<TableAction[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
moreButtonText: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
buttonType: {
|
|
15
|
+
type: PropType<ButtonType>;
|
|
16
|
+
required: false;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
plain: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
space: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
required: false;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
rows: {
|
|
30
|
+
type: PropType<any[]>;
|
|
31
|
+
required: false;
|
|
32
|
+
default: () => any[];
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
command: (...args: any[]) => void;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
actions: {
|
|
38
|
+
type: PropType<TableAction[]>;
|
|
39
|
+
required: true;
|
|
40
|
+
default: () => any[];
|
|
41
|
+
};
|
|
42
|
+
moreButtonText: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
required: false;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
buttonType: {
|
|
48
|
+
type: PropType<ButtonType>;
|
|
49
|
+
required: false;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
plain: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
space: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
rows: {
|
|
63
|
+
type: PropType<any[]>;
|
|
64
|
+
required: false;
|
|
65
|
+
default: () => any[];
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
onCommand?: (...args: any[]) => any;
|
|
69
|
+
}>, {
|
|
70
|
+
actions: TableAction[];
|
|
71
|
+
moreButtonText: string;
|
|
72
|
+
buttonType: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
73
|
+
plain: boolean;
|
|
74
|
+
space: number;
|
|
75
|
+
rows: any[];
|
|
76
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
77
|
+
groupRef: HTMLDivElement;
|
|
78
|
+
}, HTMLDivElement>;
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ButtonType } from 'element-plus';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
export type TableActionMode = 'none' | 'one' | 'more';
|
|
4
|
+
export type ActionPosition = 'left' | 'right';
|
|
5
|
+
export type ActionEvent = (row?: any, index?: number) => void;
|
|
6
|
+
export type ActionMouseEvent = (row?: any, index?: number, event?: MouseEvent) => void;
|
|
7
|
+
export interface TableAction {
|
|
8
|
+
key: string;
|
|
9
|
+
type?: ButtonType;
|
|
10
|
+
position?: ActionPosition;
|
|
11
|
+
limit?: TableActionMode;
|
|
12
|
+
icon?: string | Component;
|
|
13
|
+
plain?: boolean;
|
|
14
|
+
text?: string;
|
|
15
|
+
tooltip?: string;
|
|
16
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
17
|
+
confirm?: boolean | string;
|
|
18
|
+
onclick: string | ActionEvent | ActionMouseEvent;
|
|
19
|
+
children?: Array<TableAction>;
|
|
20
|
+
}
|
|
21
|
+
export type { ButtonType };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TableAction } from './interface';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
actions: {
|
|
5
|
+
type: PropType<TableAction[]>;
|
|
6
|
+
required: false;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
moreButtonText: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
primaryColSpan: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
secondaryColSpan: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
rows: {
|
|
23
|
+
type: PropType<any[]>;
|
|
24
|
+
required: false;
|
|
25
|
+
default: () => any[];
|
|
26
|
+
};
|
|
27
|
+
space: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
"on-command": (...args: any[]) => void;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
actions: {
|
|
36
|
+
type: PropType<TableAction[]>;
|
|
37
|
+
required: false;
|
|
38
|
+
default: () => any[];
|
|
39
|
+
};
|
|
40
|
+
moreButtonText: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: false;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
primaryColSpan: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
};
|
|
49
|
+
secondaryColSpan: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
required: false;
|
|
52
|
+
};
|
|
53
|
+
rows: {
|
|
54
|
+
type: PropType<any[]>;
|
|
55
|
+
required: false;
|
|
56
|
+
default: () => any[];
|
|
57
|
+
};
|
|
58
|
+
space: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
required: false;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
}>> & Readonly<{
|
|
64
|
+
"onOn-command"?: (...args: any[]) => any;
|
|
65
|
+
}>, {
|
|
66
|
+
actions: TableAction[];
|
|
67
|
+
moreButtonText: string;
|
|
68
|
+
space: number;
|
|
69
|
+
rows: any[];
|
|
70
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const EVENT_CODE: {
|
|
2
|
+
tab: string;
|
|
3
|
+
enter: string;
|
|
4
|
+
space: string;
|
|
5
|
+
left: string;
|
|
6
|
+
up: string;
|
|
7
|
+
right: string;
|
|
8
|
+
down: string;
|
|
9
|
+
esc: string;
|
|
10
|
+
delete: string;
|
|
11
|
+
backspace: string;
|
|
12
|
+
numpadEnter: string;
|
|
13
|
+
pageUp: string;
|
|
14
|
+
pageDown: string;
|
|
15
|
+
home: string;
|
|
16
|
+
end: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const datePickTypes: readonly ["year", "years", "month", "months", "date", "dates", "week", "datetime", "datetimerange", "daterange", "monthrange", "yearrange"];
|
|
2
|
+
export declare const WEEK_DAYS: readonly ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
|
|
3
|
+
export type DatePickType = typeof datePickTypes[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const INSTALLED_KEY: unique symbol;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ZjhcConfig, PageInfo } from '../../types';
|
|
2
|
+
export declare function useComplexTable<T>(config: ZjhcConfig): {
|
|
3
|
+
tableData: import('vue').Ref<import('@vue/reactivity').UnwrapRefSimple<T>[], T[] | import('@vue/reactivity').UnwrapRefSimple<T>[]>;
|
|
4
|
+
tablePagination: {
|
|
5
|
+
readonly small?: boolean;
|
|
6
|
+
readonly background?: boolean;
|
|
7
|
+
readonly pagerCount?: number;
|
|
8
|
+
readonly layout?: string;
|
|
9
|
+
readonly pageSizes?: number[];
|
|
10
|
+
readonly popperClass?: "";
|
|
11
|
+
readonly prevText?: string;
|
|
12
|
+
readonly prevIcon?: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
readonly nextText?: string;
|
|
14
|
+
readonly nextIcon?: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
readonly teleported?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
16
|
+
readonly disabled?: boolean;
|
|
17
|
+
readonly hideOnSinglePage?: boolean;
|
|
18
|
+
readonly pageSize?: number;
|
|
19
|
+
readonly defaultPageSize?: number;
|
|
20
|
+
readonly total?: number;
|
|
21
|
+
readonly pageCount?: number;
|
|
22
|
+
readonly currentPage?: number;
|
|
23
|
+
readonly defaultCurrentPage?: number;
|
|
24
|
+
readonly popperStyle?: any;
|
|
25
|
+
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
|
|
26
|
+
readonly appendSizeTo?: string;
|
|
27
|
+
visible?: boolean;
|
|
28
|
+
};
|
|
29
|
+
setData: (data?: Array<T>) => void;
|
|
30
|
+
setPagination: (pageData?: PageInfo<T>) => void;
|
|
31
|
+
setPageIndex: (pageIndex: number) => void;
|
|
32
|
+
setPageSizes: (pageSize: number) => void;
|
|
33
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare function useOperModal<T extends object>(initValue: T): {
|
|
3
|
+
mode: Ref<string, string>;
|
|
4
|
+
visible: Ref<boolean, boolean>;
|
|
5
|
+
info: Ref<T, T>;
|
|
6
|
+
setOperModal: (m: string, v: boolean, i: T) => void;
|
|
7
|
+
clearOperModal: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FrameUserInfo } from '../../types';
|
|
2
|
+
export interface MessageType {
|
|
3
|
+
type: string;
|
|
4
|
+
data: Record<string, unknown>;
|
|
5
|
+
}
|
|
6
|
+
export declare const COOKIE_TYPE = "cookie";
|
|
7
|
+
export declare const GET_COOKIE_TYPE = "get-top-cookie";
|
|
8
|
+
export declare const FRAME_USER_INFO_TYPE = "frame-user-info";
|
|
9
|
+
export declare const FRAME_REFRESH = "frame-refresh";
|
|
10
|
+
export type ToRecord<T> = {
|
|
11
|
+
[K in keyof T]: unknown;
|
|
12
|
+
};
|
|
13
|
+
export declare function postMessage(target: MessageEventSource | null, message: MessageType, origin?: string): void;
|
|
14
|
+
export declare function addMessageListener(): void;
|
|
15
|
+
export declare function postUserInfoMessage(target: MessageEventSource | null, frameUserInfo: FrameUserInfo): void;
|
|
16
|
+
export declare const COOKIE_NAME = "x-customs-user";
|
|
17
|
+
export declare function getTopCookie(name?: string): void;
|
|
18
|
+
export declare function postCookieMessage(target: MessageEventSource | null, cookieName?: string): void;
|
|
19
|
+
export declare function postRefreshMessage(target: MessageEventSource | null): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
export declare const useDraggableAndResizable: (targetRef: Ref<HTMLElement | undefined>, dragRef: Ref<HTMLElement | undefined>, draggable: ComputedRef<boolean>, resizable: ComputedRef<boolean>, isFullscreen: ComputedRef<boolean>, alignCenter: ComputedRef<boolean>, overflow?: ComputedRef<boolean>) => {
|
|
3
|
+
resetPosition: () => void;
|
|
4
|
+
resetSize: () => void;
|
|
5
|
+
onExpand: () => void;
|
|
6
|
+
onCompress: () => void;
|
|
7
|
+
onMinus: () => void;
|
|
8
|
+
fullscreen: Ref<boolean, boolean>;
|
|
9
|
+
minus: Ref<boolean, boolean>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const defaultNamespace = "zjhc";
|
|
2
|
+
/**
|
|
3
|
+
* 用于创建和管理BEM类名的工具函数
|
|
4
|
+
* @param {string} block 块名
|
|
5
|
+
* @returns 返回一个对象,包含用于创建BEM类名的各种方法
|
|
6
|
+
*/
|
|
7
|
+
export declare const useNamespace: (block: string) => {
|
|
8
|
+
namespace: import('vue').ComputedRef<string>;
|
|
9
|
+
b: (blockSuffix?: string) => string;
|
|
10
|
+
e: (element?: string) => string;
|
|
11
|
+
m: (modifier?: string) => string;
|
|
12
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
13
|
+
em: (element?: string, modifier?: string) => string;
|
|
14
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
15
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
16
|
+
is: {
|
|
17
|
+
(name: string, state: boolean | undefined): string;
|
|
18
|
+
(name: string): string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as Loading } from './loading.vue';
|
|
2
|
+
export { default as Check } from './check.vue';
|
|
3
|
+
export { default as ArrowDown } from './arrow-down.vue';
|
|
4
|
+
export { default as ArrowUp } from './arrow-up.vue';
|
|
5
|
+
export { default as Filter } from './filter.vue';
|
|
6
|
+
export { default as Close } from './close.vue';
|
|
7
|
+
export { default as Minus } from './minus.vue';
|
|
8
|
+
export { default as CopyDocument } from './copy-document.vue';
|
|
9
|
+
export { default as FullScreen } from './full-screen.vue';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|