@hoenergy/hoenergy-template-pc 1.1.5 → 1.1.7

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.
Files changed (88) hide show
  1. package/dist/components/Business/dataEntry/FormaxEleTimePicker/index.d.ts +5 -0
  2. package/dist/components/Business/dataEntry/FormaxEleTimePicker/index.vue.d.ts +9 -0
  3. package/dist/components/Business/dataEntry/modalSearchTable/hooks/useModalSearchTable.d.ts +18 -0
  4. package/dist/components/Business/dataEntry/modalSearchTable/index.d.ts +6 -0
  5. package/dist/components/Business/dataEntry/modalSearchTable/index.vue.d.ts +35 -0
  6. package/dist/components/Business/dataEntry/modalTableSelect/hooks/useModalTableSelect.d.ts +18 -0
  7. package/dist/components/Business/dataEntry/modalTableSelect/index.d.ts +6 -0
  8. package/dist/components/Business/dataEntry/modalTableSelect/index.vue.d.ts +37 -0
  9. package/dist/components/charts/chart/FormaxChart/getSize.d.ts +5 -0
  10. package/dist/components/charts/chart/FormaxChart/index.d.ts +5 -0
  11. package/dist/components/charts/chart/FormaxChart/index.vue.d.ts +37 -0
  12. package/dist/components/charts/chartCard/FormaxChartCard/index.d.ts +5 -0
  13. package/dist/components/charts/chartCard/FormaxChartCard/index.vue.d.ts +71 -0
  14. package/dist/components/data/form/searchForm/index.d.ts +8 -0
  15. package/dist/components/data/form/searchForm/src/BasicForm.vue.d.ts +202 -0
  16. package/dist/components/data/form/searchForm/src/helper.d.ts +10 -0
  17. package/dist/components/data/form/searchForm/src/hooks/helper.d.ts +8 -0
  18. package/dist/components/data/form/searchForm/src/hooks/useForm.d.ts +5 -0
  19. package/dist/components/data/form/searchForm/src/hooks/useFormContext.d.ts +2 -0
  20. package/dist/components/data/form/searchForm/src/hooks/useFormEvents.d.ts +23 -0
  21. package/dist/components/data/form/searchForm/src/hooks/useFormValues.d.ts +12 -0
  22. package/dist/components/data/form/searchForm/src/icon.d.ts +208 -0
  23. package/dist/components/data/form/searchForm/src/props.d.ts +73 -0
  24. package/dist/components/data/form/searchForm/src/types/form.d.ts +60 -0
  25. package/dist/components/data/form/searchForm/src/types/index.d.ts +1 -0
  26. package/dist/components/data/form/searchForm/src/utils/index.d.ts +17 -0
  27. package/dist/components/data/form/searchForm/src/utils/is.d.ts +59 -0
  28. package/dist/components/data/form/searchForm/src/utils/propTypes.d.ts +9 -0
  29. package/dist/components/data/table/FormaxTable/index.d.ts +7 -0
  30. package/dist/components/data/table/FormaxTable/src/BasicTable.d.ts +6 -0
  31. package/dist/components/data/table/FormaxTable/src/Table.vue.d.ts +98 -0
  32. package/dist/components/data/table/FormaxTable/src/components/settings/ColumnSetting.vue.d.ts +31 -0
  33. package/dist/components/data/table/FormaxTable/src/const.d.ts +9 -0
  34. package/dist/components/data/table/FormaxTable/src/hooks/useColumns.d.ts +10 -0
  35. package/dist/components/data/table/FormaxTable/src/hooks/useDataSource.d.ts +20 -0
  36. package/dist/components/data/table/FormaxTable/src/hooks/useLoading.d.ts +6 -0
  37. package/dist/components/data/table/FormaxTable/src/hooks/usePagination.d.ts +10 -0
  38. package/dist/components/data/table/FormaxTable/src/hooks/useTableContext.d.ts +13 -0
  39. package/dist/components/data/table/FormaxTable/src/props.d.ts +1 -0
  40. package/dist/components/data/table/FormaxTable/src/types/componentType.d.ts +1 -0
  41. package/dist/components/data/table/FormaxTable/src/types/pagination.d.ts +10 -0
  42. package/dist/components/data/table/FormaxTable/src/types/table.d.ts +36 -0
  43. package/dist/components/data/table/FormaxTable/src/types/tableAction.d.ts +23 -0
  44. package/dist/components/data/table/FormaxTable/src/utils.d.ts +11 -0
  45. package/dist/components/general/button/FormaxButton/index.d.ts +2 -0
  46. package/dist/components/general/calendar/FormaxCalendar/index.d.ts +5 -0
  47. package/dist/components/general/calendar/FormaxCalendar/index.vue.d.ts +8362 -0
  48. package/dist/components/general/card/FormaxCard/index.d.ts +5 -0
  49. package/dist/components/general/card/FormaxCard/index.vue.d.ts +17 -0
  50. package/dist/components/general/icon/FormaxIcon/index.d.ts +5 -0
  51. package/dist/components/general/icon/FormaxIcon/index.vue.d.ts +15 -0
  52. package/dist/components/general/iconSelect/FormaxIconSelect/icons.d.ts +1 -0
  53. package/dist/components/general/iconSelect/FormaxIconSelect/index.d.ts +5 -0
  54. package/dist/components/general/iconSelect/FormaxIconSelect/index.vue.d.ts +16 -0
  55. package/dist/components/general/infoCard/FormaxInfoCard/index.d.ts +5 -0
  56. package/dist/components/general/infoCard/FormaxInfoCard/index.vue.d.ts +43 -0
  57. package/dist/components/general/loading/FormaxLoading/index.d.ts +5 -0
  58. package/dist/components/general/loading/FormaxLoading/index.vue.d.ts +43 -0
  59. package/dist/components/general/map/MapPoint/index.d.ts +5 -0
  60. package/dist/components/general/map/MapPoint/index.vue.d.ts +33 -0
  61. package/dist/components/general/modal/FormaxModal/index.d.ts +7 -0
  62. package/dist/components/general/modal/FormaxModal/src/basicModal.vue.d.ts +28 -0
  63. package/dist/components/general/modal/FormaxModal/src/hooks/helper.d.ts +8 -0
  64. package/dist/components/general/modal/FormaxModal/src/hooks/useModal.d.ts +2 -0
  65. package/dist/components/general/modal/FormaxModal/src/props.d.ts +1 -0
  66. package/dist/components/general/modal/FormaxModal/src/type/index.d.ts +16 -0
  67. package/dist/components/general/modal/FormaxModal/src/utils/Drag.d.ts +2 -0
  68. package/dist/components/general/modal/FormaxModal/src/utils/index.d.ts +17 -0
  69. package/dist/components/general/modal/FormaxModal/src/utils/is.d.ts +59 -0
  70. package/dist/components/general/title/FormaxTitle/index.d.ts +5 -0
  71. package/dist/components/general/title/FormaxTitle/index.vue.d.ts +50 -0
  72. package/dist/components/general/viewer/FormaxFileViewer/index.d.ts +5 -0
  73. package/dist/components/general/viewer/FormaxFileViewer/index.vue.d.ts +19 -0
  74. package/dist/components/globalConfig/ConfigProvider/FormaxConfigProvider/index.d.ts +5 -0
  75. package/dist/components/globalConfig/ConfigProvider/FormaxConfigProvider/index.vue.d.ts +25 -0
  76. package/dist/directives/formaxLoading.d.ts +19 -0
  77. package/dist/docs/DocPage.vue.d.ts +7 -0
  78. package/dist/docs/index.d.ts +2 -0
  79. package/dist/hook/useLocale.hook.d.ts +12 -0
  80. package/dist/hook/useTheme.hook.d.ts +22 -0
  81. package/dist/index.d.ts +141 -0
  82. package/dist/index.js +919 -0
  83. package/dist/index.mjs +186281 -0
  84. package/dist/mock.d.ts +13 -0
  85. package/dist/style.css +1 -0
  86. package/dist/types.d.ts +54 -0
  87. package/package.json +4 -4
  88. package/vite.config.ts +4 -0
@@ -0,0 +1,5 @@
1
+ import { default as FormaxEleTimePicker } from './index.vue';
2
+ import { FormaxComponent } from '../../../../types';
3
+ export { FormaxEleTimePicker };
4
+ export declare const FormaxEleTimePickerComponent: FormaxComponent;
5
+ export default FormaxEleTimePickerComponent;
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ value?: string | null;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ "update:value": (value: string | null) => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ "onUpdate:value"?: ((value: string | null) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,18 @@
1
+ export interface ModalSearchTableMethods {
2
+ openModal: () => void;
3
+ closeModal: () => void;
4
+ setModalProps: (props: any) => void;
5
+ setFormProps: (props: any) => void;
6
+ setProps: (props: {
7
+ modalProps?: any;
8
+ formProps?: any;
9
+ }) => void;
10
+ }
11
+ export type UseModalSearchTableReturnType = [
12
+ (instance: ModalSearchTableMethods) => void,
13
+ ModalSearchTableMethods
14
+ ];
15
+ export declare function useModalSearchTable(options?: {
16
+ modalProps?: any;
17
+ formProps?: any;
18
+ }): UseModalSearchTableReturnType;
@@ -0,0 +1,6 @@
1
+ import { default as ModalSearchTable } from './index.vue';
2
+ import { FormaxComponent } from '../../../../types';
3
+ export { ModalSearchTable };
4
+ export { useModalSearchTable } from './hooks/useModalSearchTable';
5
+ export declare const FormaxModalSearchTableComponent: FormaxComponent;
6
+ export default FormaxModalSearchTableComponent;
@@ -0,0 +1,35 @@
1
+ interface Props {
2
+ title?: string;
3
+ width?: number | string;
4
+ labelWidth?: number | string;
5
+ schemas: any[];
6
+ columns: any[];
7
+ rowKey: any;
8
+ labelField?: string;
9
+ request?: (params: Record<string, any>) => Promise<any>;
10
+ toolbarShow?: boolean;
11
+ multiple?: boolean;
12
+ modelValue?: any;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ reset: (value: Record<string, any>) => any;
16
+ submit: (value: Record<string, any>) => any;
17
+ confirm: (value: any[]) => any;
18
+ register: (value: any) => any;
19
+ "form-register": (value: any) => any;
20
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
21
+ onReset?: ((value: Record<string, any>) => any) | undefined;
22
+ onSubmit?: ((value: Record<string, any>) => any) | undefined;
23
+ onConfirm?: ((value: any[]) => any) | undefined;
24
+ onRegister?: ((value: any) => any) | undefined;
25
+ "onForm-register"?: ((value: any) => any) | undefined;
26
+ }>, {
27
+ title: string;
28
+ labelWidth: number | string;
29
+ width: number | string;
30
+ multiple: boolean;
31
+ toolbarShow: boolean;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
+ tableRef: unknown;
34
+ }, any>;
35
+ export default _default;
@@ -0,0 +1,18 @@
1
+ export interface ModalTableSelectMethods {
2
+ openModal: () => void;
3
+ closeModal: () => void;
4
+ setModalProps: (props: any) => void;
5
+ setFormProps: (props: any) => void;
6
+ setProps: (props: {
7
+ modalProps?: any;
8
+ formProps?: any;
9
+ }) => void;
10
+ }
11
+ export type UseModalTableSelectReturnType = [
12
+ (instance: ModalTableSelectMethods) => void,
13
+ ModalTableSelectMethods
14
+ ];
15
+ export declare function useModalTableSelect(options?: {
16
+ modalProps?: any;
17
+ formProps?: any;
18
+ }): UseModalTableSelectReturnType;
@@ -0,0 +1,6 @@
1
+ import { default as ModalTableSelect } from './index.vue';
2
+ import { FormaxComponent } from '../../../../types';
3
+ export { ModalTableSelect };
4
+ export { useModalTableSelect } from './hooks/useModalTableSelect';
5
+ export declare const FormaxModalTableSelectComponent: FormaxComponent;
6
+ export default FormaxModalTableSelectComponent;
@@ -0,0 +1,37 @@
1
+ interface Props {
2
+ title?: string;
3
+ width?: number | string;
4
+ labelWidth?: number | string;
5
+ columns: any[];
6
+ rowKey: any;
7
+ labelField?: string;
8
+ selectedColumnKeys?: string[];
9
+ request?: (params: Record<string, any>) => Promise<any>;
10
+ toolbarShow?: boolean;
11
+ checkable?: boolean;
12
+ modelValue?: any;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ reset: (value: Record<string, any>) => any;
16
+ submit: (value: Record<string, any>) => any;
17
+ confirm: (value: any[]) => any;
18
+ register: (value: any) => any;
19
+ "form-register": (value: any) => any;
20
+ "update:modelValue": (value: any) => any;
21
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
22
+ onReset?: ((value: Record<string, any>) => any) | undefined;
23
+ onSubmit?: ((value: Record<string, any>) => any) | undefined;
24
+ onConfirm?: ((value: any[]) => any) | undefined;
25
+ onRegister?: ((value: any) => any) | undefined;
26
+ "onForm-register"?: ((value: any) => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
28
+ }>, {
29
+ title: string;
30
+ labelWidth: number | string;
31
+ width: number | string;
32
+ toolbarShow: boolean;
33
+ checkable: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
35
+ tableRef: unknown;
36
+ }, any>;
37
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ export declare const getWidth: (domRef: Ref<HTMLElement | null>) => {
3
+ width: Ref<number, number>;
4
+ height: Ref<number, number>;
5
+ };
@@ -0,0 +1,5 @@
1
+ import { default as FormaxChart } from './index.vue';
2
+ import { FormaxComponent } from '../../../../types';
3
+ export { FormaxChart };
4
+ export declare const FormaxChartComponent: FormaxComponent;
5
+ export default FormaxChartComponent;
@@ -0,0 +1,37 @@
1
+ import * as echarts from 'echarts';
2
+ declare function dispatchAction(payload: any, opt: any): void;
3
+ declare function setOption(params: any, notMerge?: boolean): void;
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ option: ObjectConstructor;
6
+ height: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {
11
+ getOption: () => echarts.EChartsCoreOption | undefined;
12
+ setOption: typeof setOption;
13
+ dispatchAction: typeof dispatchAction;
14
+ resize: () => void;
15
+ getChartInstance: () => echarts.ECharts;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ click: (...args: any[]) => void;
18
+ mousemove: (...args: any[]) => void;
19
+ zoomChange: (...args: any[]) => void;
20
+ seriesClick: (...args: any[]) => void;
21
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
+ option: ObjectConstructor;
23
+ height: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ }>> & Readonly<{
28
+ onClick?: ((...args: any[]) => any) | undefined;
29
+ onMousemove?: ((...args: any[]) => any) | undefined;
30
+ onZoomChange?: ((...args: any[]) => any) | undefined;
31
+ onSeriesClick?: ((...args: any[]) => any) | undefined;
32
+ }>, {
33
+ height: string;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
35
+ chartDom: HTMLDivElement;
36
+ }, HTMLDivElement>;
37
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { default as FormaxChartCard } from './index.vue';
2
+ import { FormaxComponent } from '../../../../types';
3
+ export { FormaxChartCard };
4
+ export declare const FormaxChartCardComponent: FormaxComponent;
5
+ export default FormaxChartCardComponent;
@@ -0,0 +1,71 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ header?(_: {}): any;
5
+ action?(_: {}): any;
6
+ footer?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ name: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ height: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ type: {
22
+ type: StringConstructor;
23
+ };
24
+ tooltip: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ data: {
29
+ type: ObjectConstructor;
30
+ required: true;
31
+ default: () => {};
32
+ };
33
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ select: (...args: any[]) => void;
35
+ detail: (...args: any[]) => void;
36
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ name: {
38
+ type: StringConstructor;
39
+ required: true;
40
+ };
41
+ height: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ type: {
46
+ type: StringConstructor;
47
+ };
48
+ tooltip: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ data: {
53
+ type: ObjectConstructor;
54
+ required: true;
55
+ default: () => {};
56
+ };
57
+ }>> & Readonly<{
58
+ onSelect?: ((...args: any[]) => any) | undefined;
59
+ onDetail?: ((...args: any[]) => any) | undefined;
60
+ }>, {
61
+ data: Record<string, any>;
62
+ height: string;
63
+ tooltip: string;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -0,0 +1,8 @@
1
+ import { default as BasicForm } from './src/BasicForm.vue';
2
+ import { FormaxComponent } from '../../../../types';
3
+ export { BasicForm };
4
+ export { useForm } from './src/hooks/useForm';
5
+ export * from './src/types/form';
6
+ export * from './src/types/index';
7
+ export declare const FormaxFormComponent: FormaxComponent;
8
+ export default FormaxFormComponent;
@@ -0,0 +1,202 @@
1
+ import { $at } from 'i18n-auto-extractor';
2
+ import { GridProps } from 'naive-ui/lib/grid';
3
+ import { Ref } from 'vue';
4
+ import { FormProps, FormSchema } from './types/form';
5
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ labelWidth: {
7
+ type: import('vue').PropType<number | string>;
8
+ default: number;
9
+ };
10
+ schemas: {
11
+ type: import('vue').PropType<FormSchema[]>;
12
+ default: () => never[];
13
+ };
14
+ layout: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ inline: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ isFit: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ size: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ labelPlacement: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ isFull: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ showActionButtonGroup: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
39
+ default: boolean;
40
+ };
41
+ showResetButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
42
+ default: boolean;
43
+ };
44
+ resetButtonOptions: import('vue').PropType<Partial<import('naive-ui/lib').ButtonProps>>;
45
+ showSubmitButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
46
+ default: boolean;
47
+ };
48
+ submitButtonOptions: import('vue').PropType<Partial<import('naive-ui/lib').ButtonProps>>;
49
+ showAdvancedButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
50
+ default: boolean;
51
+ };
52
+ submitButtonText: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ resetButtonText: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ gridProps: import('vue').PropType<GridProps>;
61
+ giProps: import('vue').PropType<import('naive-ui/lib/grid').GridItemProps>;
62
+ baseGridStyle: {
63
+ type: import('vue').PropType<import('vue').CSSProperties>;
64
+ };
65
+ collapsed: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ collapsedRows: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ }>, {
74
+ formElRef: Ref<any, any>;
75
+ AddIcon: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
76
+ ArrowBackIcon: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
77
+ formModel: any;
78
+ getGrid: import('vue').ComputedRef<GridProps>;
79
+ getProps: import('vue').ComputedRef<FormProps>;
80
+ getBindValue: import('vue').ComputedRef<any>;
81
+ getSchema: import('vue').ComputedRef<FormSchema[]>;
82
+ getSubmitBtnOptions: import('vue').ComputedRef<{
83
+ size: string;
84
+ textColor: string;
85
+ type: string;
86
+ } & Partial<import('naive-ui/lib').ButtonProps>>;
87
+ getResetBtnOptions: import('vue').ComputedRef<{
88
+ size: string;
89
+ type: string;
90
+ } & Partial<import('naive-ui/lib').ButtonProps>>;
91
+ handleSubmit: (e?: Event) => Promise<object | boolean>;
92
+ resetFields: () => Promise<void>;
93
+ loadingSub: Ref<boolean, boolean>;
94
+ isInline: import('vue').ComputedRef<boolean>;
95
+ getComponentProps: (schema: any) => any;
96
+ unfoldToggle: () => void;
97
+ isFit: import('vue').ComputedRef<boolean>;
98
+ contentStyle: Ref<{
99
+ paddingBottom: string;
100
+ }, {
101
+ paddingBottom: string;
102
+ } | {
103
+ paddingBottom: string;
104
+ }>;
105
+ $at: typeof $at;
106
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("reset" | "submit" | "register")[], "reset" | "submit" | "register", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
107
+ labelWidth: {
108
+ type: import('vue').PropType<number | string>;
109
+ default: number;
110
+ };
111
+ schemas: {
112
+ type: import('vue').PropType<FormSchema[]>;
113
+ default: () => never[];
114
+ };
115
+ layout: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ };
119
+ inline: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ isFit: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ size: {
128
+ type: StringConstructor;
129
+ default: string;
130
+ };
131
+ labelPlacement: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ };
135
+ isFull: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ showActionButtonGroup: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
140
+ default: boolean;
141
+ };
142
+ showResetButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
143
+ default: boolean;
144
+ };
145
+ resetButtonOptions: import('vue').PropType<Partial<import('naive-ui/lib').ButtonProps>>;
146
+ showSubmitButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
147
+ default: boolean;
148
+ };
149
+ submitButtonOptions: import('vue').PropType<Partial<import('naive-ui/lib').ButtonProps>>;
150
+ showAdvancedButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/shared/vue-types.d8e57a80').b<boolean>> & {
151
+ default: boolean;
152
+ };
153
+ submitButtonText: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ resetButtonText: {
158
+ type: StringConstructor;
159
+ default: string;
160
+ };
161
+ gridProps: import('vue').PropType<GridProps>;
162
+ giProps: import('vue').PropType<import('naive-ui/lib/grid').GridItemProps>;
163
+ baseGridStyle: {
164
+ type: import('vue').PropType<import('vue').CSSProperties>;
165
+ };
166
+ collapsed: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ collapsedRows: {
171
+ type: NumberConstructor;
172
+ default: number;
173
+ };
174
+ }>> & Readonly<{
175
+ onReset?: ((...args: any[]) => any) | undefined;
176
+ onSubmit?: ((...args: any[]) => any) | undefined;
177
+ onRegister?: ((...args: any[]) => any) | undefined;
178
+ }>, {
179
+ size: string;
180
+ collapsed: boolean;
181
+ collapsedRows: number;
182
+ inline: boolean;
183
+ labelWidth: string | number;
184
+ schemas: FormSchema[];
185
+ layout: string;
186
+ isFit: boolean;
187
+ labelPlacement: string;
188
+ isFull: boolean;
189
+ showActionButtonGroup: boolean;
190
+ showResetButton: boolean;
191
+ showSubmitButton: boolean;
192
+ showAdvancedButton: boolean;
193
+ submitButtonText: string;
194
+ resetButtonText: string;
195
+ }, {}, {
196
+ DownOutlined: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('vue').EmitsOptions, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
197
+ UpOutlined: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('vue').EmitsOptions, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
198
+ QuestionCircleOutlined: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('vue').EmitsOptions, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
199
+ SearchOutlined: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('vue').EmitsOptions, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
200
+ RetweetOutlined: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('vue').EmitsOptions, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
201
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
202
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { ComponentType } from './types/index';
2
+ /**
3
+ * @description: 生成placeholder
4
+ */
5
+ export declare function createPlaceholderMessage(component: ComponentType): "" | "请输入" | "请选择";
6
+ /**
7
+ * 时间字段
8
+ */
9
+ export declare const dateItemType: string[];
10
+ export declare function defaultType(component: any): "" | null | undefined;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @description: Is it a production mode
3
+ */
4
+ export declare function isProdMode(): boolean;
5
+ /**
6
+ * @description: Get dynamic props
7
+ */
8
+ export declare function getDynamicProps<T extends {}, U>(props: T): Partial<U>;
@@ -0,0 +1,5 @@
1
+ import { FormProps, UseFormReturnType } from '../types/form';
2
+ import { DynamicProps } from '#/types/utils.d.ts';
3
+ type Props = Partial<DynamicProps<FormProps>>;
4
+ export declare function useForm(props?: Props): UseFormReturnType;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function createFormContext(instance: any): void;
2
+ export declare function useFormContext(): unknown;
@@ -0,0 +1,23 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { FormProps, FormSchema, FormActionType } from '../types/form';
3
+ declare type EmitType = (event: string, ...args: any[]) => void;
4
+ interface UseFormActionContext {
5
+ emit: EmitType;
6
+ getProps: ComputedRef<FormProps>;
7
+ getSchema: ComputedRef<FormSchema[]>;
8
+ formModel: any;
9
+ formElRef: Ref<FormActionType>;
10
+ defaultFormModel: any;
11
+ loadingSub: Ref<boolean>;
12
+ handleFormValues: Function;
13
+ }
14
+ export declare function useFormEvents({ emit, getProps, formModel, getSchema, formElRef, defaultFormModel, loadingSub, handleFormValues, }: UseFormActionContext): {
15
+ handleSubmit: (e?: Event) => Promise<object | boolean>;
16
+ validate: () => Promise<any>;
17
+ resetFields: () => Promise<void>;
18
+ getFieldsValue: () => any;
19
+ clearValidate: () => Promise<void>;
20
+ setFieldsValue: (values: any) => Promise<void>;
21
+ setLoading: (value: boolean) => void;
22
+ };
23
+ export {};
@@ -0,0 +1,12 @@
1
+ import { Ref, ComputedRef } from 'vue';
2
+ import { FormSchema } from '../types/form';
3
+ interface UseFormValuesContext {
4
+ defaultFormModel: Ref<any>;
5
+ getSchema: ComputedRef<FormSchema[]>;
6
+ formModel: any;
7
+ }
8
+ export declare function useFormValues({ defaultFormModel, getSchema, formModel, }: UseFormValuesContext): {
9
+ handleFormValues: (values: any) => any;
10
+ initDefault: () => void;
11
+ };
12
+ export {};