@qqt-product/ui 0.0.12 → 0.0.13
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/dist/components/ComponentsDemo.vue.d.ts +13 -0
- package/dist/components/EditPage.vue.d.ts +6011 -0
- package/dist/components/PreviewList.vue.d.ts +218 -0
- package/dist/components/hook/use-field-select-modal-hook.d.ts +288 -0
- package/dist/components/login.vue.d.ts +19 -0
- package/dist/components/mock.d.ts +260 -0
- package/dist/components/mockList.d.ts +44 -0
- package/dist/index.es.js +79830 -58293
- package/dist/index.umd.js +15319 -54
- package/dist/lib/components/breadcrumb/index.d.ts +10 -0
- package/dist/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -0
- package/dist/lib/components/card-list-layout/index.d.ts +147 -0
- package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +70 -0
- package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +79 -0
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +144 -0
- package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +30 -0
- package/dist/lib/components/card-list-layout/src/types.d.ts +41 -0
- package/dist/lib/components/cascader/index.d.ts +42 -54
- package/dist/lib/components/cascader/src/cascader-types.d.ts +17 -23
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +42 -54
- package/dist/lib/components/cascader/src/use-cascader.d.ts +2 -2
- package/dist/lib/components/checkbox/index.d.ts +113 -0
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +62 -0
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +109 -0
- package/dist/lib/components/checkbox/src/use-checkbox.d.ts +2 -0
- package/dist/lib/components/codeEditorModel/index.d.ts +187 -0
- package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +184 -0
- package/dist/lib/components/collapse-transition/index.d.ts +16 -0
- package/dist/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +15 -0
- package/dist/lib/components/coutdown/index.d.ts +94 -0
- package/dist/lib/components/coutdown/src/coutdown.d.ts +56 -0
- package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +99 -0
- package/dist/lib/components/currency/index.d.ts +109 -0
- package/dist/lib/components/currency/src/currency-type.d.ts +47 -0
- package/dist/lib/components/currency/src/currency.vue.d.ts +105 -0
- package/dist/lib/components/currency/src/use-currency.d.ts +2 -0
- package/dist/lib/components/currency/src/use-methods.d.ts +14 -0
- package/dist/lib/components/detail-form/index.d.ts +102 -0
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +99 -0
- package/dist/lib/components/detail-form/src/use-detail-form.d.ts +2 -0
- package/dist/lib/components/detail-grid/index.d.ts +2633 -0
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +2630 -0
- package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +10 -0
- package/dist/lib/components/detail-grid/src/use-detail-grid.d.ts +2 -0
- package/dist/lib/components/detail-page-layout/index.d.ts +186 -0
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +183 -0
- package/dist/lib/components/detail-page-layout/src/use-detail-page-layout.d.ts +2 -0
- package/dist/lib/components/edit-form/index.d.ts +103 -62
- package/dist/lib/components/edit-form/src/edit-form-types.d.ts +28 -24
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +104 -62
- package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +11 -0
- package/dist/lib/components/edit-form/src/hook/use-form-config-hook.d.ts +8 -0
- package/dist/lib/components/edit-form/src/use-edit-form.d.ts +1 -1
- package/dist/lib/components/edit-grid/index.d.ts +90 -63
- package/dist/lib/components/edit-grid/src/components/empty/index.d.ts +8 -0
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +33 -24
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +90 -63
- package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +10 -0
- package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +4 -0
- package/dist/lib/components/edit-grid/src/use-edit-grid.d.ts +1 -1
- package/dist/lib/components/edit-page-layout/index.d.ts +66 -10
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +206 -38
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +66 -10
- package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -0
- package/dist/lib/components/editor/index.d.ts +31 -0
- package/dist/lib/components/editor/src/index.vue.d.ts +28 -0
- package/dist/lib/components/field-select-modal/index.d.ts +150 -0
- package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +85 -0
- package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +146 -0
- package/dist/lib/components/field-select-modal/src/use-field-select-modal.d.ts +6 -0
- package/dist/lib/components/index.d.ts +23 -3
- package/dist/lib/components/item-wrap/index.d.ts +57 -0
- package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +27 -0
- package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +53 -0
- package/dist/lib/components/item-wrap/src/use-item-wrap.d.ts +2 -0
- package/dist/lib/components/layout/index.d.ts +93 -12
- package/dist/lib/components/layout/src/header/index.vue.d.ts +109 -76
- package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +8 -17
- package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +15 -2
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +99 -61
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +26 -6
- package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +22 -39
- package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +34 -0
- package/dist/lib/components/layout/src/index.vue.d.ts +93 -26
- package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +4 -1
- package/dist/lib/components/layout/src/menu/menu.vue.d.ts +56 -72
- package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +4 -22
- package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +3 -21
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +23 -24
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +1 -10
- package/dist/lib/components/layout/src/sider/search.vue.d.ts +77 -2
- package/dist/lib/components/layout/src/types.d.ts +68 -0
- package/dist/lib/components/{layout-auchor → layout-anchor}/index.d.ts +9 -6
- package/dist/lib/components/{layout-auchor/src/layout-auchor-types.d.ts → layout-anchor/src/layout-anchor-types.d.ts} +3 -3
- package/dist/lib/components/{layout-auchor → layout-anchor}/src/layout-auchor.vue.d.ts +6 -3
- package/dist/lib/components/layout-anchor/src/use-layout-anchor.d.ts +2 -0
- package/dist/lib/components/layout-buttons/index.d.ts +38 -1
- package/dist/lib/components/layout-buttons/src/layout-buttons-types.d.ts +16 -0
- package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +38 -1
- package/dist/lib/components/layout-buttons/src/use-layout-buttons.d.ts +1 -1
- package/dist/lib/components/layout-pattern/index.d.ts +7 -13
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +34 -4
- package/dist/lib/components/layout-pattern/src/layout-pattern-types.d.ts +3 -5
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +7 -13
- package/dist/lib/components/list-page-layout/index.d.ts +244 -0
- package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +21 -0
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +293 -0
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/use-grid-slot-hook.d.ts +22 -0
- package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +16 -0
- package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/types.d.ts +4 -0
- package/dist/lib/components/list-page-layout/src/components/common/help-text-modal/help-text-modal.vue.d.ts +8 -0
- package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +40 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +48 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +5088 -0
- package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +13 -0
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +95 -0
- package/dist/lib/components/list-page-layout/src/components/list-content-buttons/events-helper.d.ts +6 -0
- package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +33 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +27 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +15 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +9 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +103 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +56 -0
- package/dist/lib/components/list-page-layout/src/hooks/export-xls-hook.d.ts +4 -0
- package/dist/lib/components/list-page-layout/src/hooks/fetch-data-hook.d.ts +5 -0
- package/dist/lib/components/list-page-layout/src/hooks/fetch-head-data-hook.d.ts +6 -0
- package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +6 -0
- package/dist/lib/components/list-page-layout/src/hooks/list-slot-hook.d.ts +9 -0
- package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +13 -0
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +238 -0
- package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +358 -0
- package/dist/lib/components/list-page-layout/src/symbol.d.ts +11 -0
- package/dist/lib/components/list-page-layout/src/tokens.d.ts +12 -0
- package/dist/lib/components/list-page-layout/src/types.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/utils/gridConfig.d.ts +174 -0
- package/dist/lib/components/page-layout/index.d.ts +11 -1
- package/dist/lib/components/page-layout/src/constant/buttons.d.ts +10 -0
- package/dist/lib/components/page-layout/src/constant/index.d.ts +3 -0
- package/dist/lib/components/page-layout/src/constant/items.d.ts +3 -0
- package/dist/lib/components/page-layout/src/constant/symbol.d.ts +15 -0
- package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +6 -0
- package/dist/lib/components/page-layout/src/hook/use-page-data-hook.d.ts +6 -0
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +26 -0
- package/dist/lib/components/page-layout/src/hook/use-ref-instance-hook.d.ts +7 -0
- package/dist/lib/components/page-layout/src/hook/use-remote-config-hook.d.ts +5 -2
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +6 -1
- package/dist/lib/components/page-layout/src/token.d.ts +7 -1
- package/dist/lib/components/page-layout/src/util.d.ts +10 -35
- package/dist/lib/components/radio/index.d.ts +104 -0
- package/dist/lib/components/radio/src/radio-types.d.ts +56 -0
- package/dist/lib/components/radio/src/radio.vue.d.ts +100 -0
- package/dist/lib/components/radio/src/use-radio.d.ts +2 -0
- package/dist/lib/components/remote-select/index.d.ts +122 -0
- package/dist/lib/components/remote-select/src/remote-select-types.d.ts +50 -0
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +118 -0
- package/dist/lib/components/remote-select/src/use-remote-select.d.ts +6 -0
- package/dist/lib/components/select/index.d.ts +10 -41
- package/dist/lib/components/select/src/select-types.d.ts +4 -15
- package/dist/lib/components/select/src/select.vue.d.ts +10 -41
- package/dist/lib/components/select/src/use-select.d.ts +2 -2
- package/dist/lib/components/select-modal/index.d.ts +329 -0
- package/dist/lib/components/select-modal/src/select-modal-types.d.ts +51 -0
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +325 -0
- package/dist/lib/components/select-modal/src/use-select-modal.d.ts +6 -0
- package/dist/lib/components/shared/hooks/use-namespace-last.d.ts +23 -0
- package/dist/lib/components/shared/hooks/use-namespace.d.ts +3 -3
- package/dist/lib/components/switch/index.d.ts +2 -4
- package/dist/lib/components/switch/src/switch-types.d.ts +0 -2
- package/dist/lib/components/switch/src/switch.vue.d.ts +2 -4
- package/dist/lib/components/tree-select/index.d.ts +114 -0
- package/dist/lib/components/tree-select/src/tree-select-types.d.ts +60 -0
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +110 -0
- package/dist/lib/components/tree-select/src/use-tree-select.d.ts +2 -0
- package/dist/lib/components/upload-file/index.d.ts +266 -0
- package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +20 -0
- package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +11 -0
- package/dist/lib/components/upload-file/src/hook/use-operation-column-hook.d.ts +15 -0
- package/dist/lib/components/upload-file/src/upload-file-types.d.ts +154 -0
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +258 -0
- package/dist/lib/components/upload-image/index.d.ts +191 -0
- package/dist/lib/components/upload-image/src/upload-image-type.d.ts +53 -0
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +187 -0
- package/dist/lib/components/vxe-select/index.d.ts +116 -0
- package/dist/lib/components/vxe-select/src/use-vxe-select.d.ts +2 -0
- package/dist/lib/components/vxe-select/src/vxe-select-types.d.ts +58 -0
- package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +112 -0
- package/dist/lib/index.d.ts +16 -2
- package/dist/lib/setting/vxe-table/config.d.ts +3 -0
- package/dist/lib/utils/event.d.ts +37 -0
- package/dist/router/index.d.ts +4 -0
- package/dist/stores/user.d.ts +25 -0
- package/dist/style.css +6 -8
- package/dist/utils/qApiPlugin.d.ts +6 -0
- package/dist/views/dashboard/workspace.vue.d.ts +6972 -0
- package/dist/vite-env.d.ts +15 -0
- package/package.json +17 -4
- package/dist/lib/components/layout/src/menu/icon.d.ts +0 -6
- package/dist/lib/components/layout-auchor/src/use-layout-auchor.d.ts +0 -2
- package/dist/lib/components/layout-header/index.d.ts +0 -17
- package/dist/lib/components/layout-header/src/layout-header-types.d.ts +0 -8
- package/dist/lib/components/layout-header/src/layout-header.vue.d.ts +0 -13
- package/dist/lib/components/layout-header/src/use-layout-header.d.ts +0 -2
- package/dist/lib/constant/constant.d.ts +0 -1
- package/dist/lib/types/ComponentCustomProperties .d.ts +0 -6
|
@@ -1,87 +1,129 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Breakpoint } from 'ant-design-vue/lib/_util/responsiveObserve';
|
|
2
|
+
import type { PickerLocale } from 'ant-design-vue/es/date-picker/generatePicker';
|
|
3
|
+
import type { RuleObject } from 'ant-design-vue/es/form';
|
|
4
|
+
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
|
|
5
|
+
import type { PageButton, RecordStringNumber, FormFieldsItem } from '../../edit-page-layout';
|
|
6
|
+
import type { FormInstance } from 'ant-design-vue';
|
|
7
|
+
import { FormFieldsItemUpload } from '../../edit-page-layout';
|
|
3
8
|
declare const _sfc_main: DefineComponent<{
|
|
4
|
-
groupName: {
|
|
5
|
-
type: PropType<string>;
|
|
6
|
-
default:
|
|
9
|
+
readonly groupName: {
|
|
10
|
+
readonly type: PropType<string>;
|
|
11
|
+
readonly default: "";
|
|
7
12
|
};
|
|
8
|
-
groupNameI18nKey: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
default:
|
|
13
|
+
readonly groupNameI18nKey: {
|
|
14
|
+
readonly type: PropType<string>;
|
|
15
|
+
readonly default: "";
|
|
11
16
|
};
|
|
12
|
-
groupCode: {
|
|
13
|
-
type: PropType<string>;
|
|
14
|
-
default:
|
|
17
|
+
readonly groupCode: {
|
|
18
|
+
readonly type: PropType<string>;
|
|
19
|
+
readonly default: "";
|
|
15
20
|
};
|
|
16
|
-
groupType: {
|
|
17
|
-
type: PropType<string>;
|
|
18
|
-
default:
|
|
21
|
+
readonly groupType: {
|
|
22
|
+
readonly type: PropType<string>;
|
|
23
|
+
readonly default: "";
|
|
19
24
|
};
|
|
20
|
-
sortOrder: {
|
|
21
|
-
type: PropType<string>;
|
|
22
|
-
default:
|
|
25
|
+
readonly sortOrder: {
|
|
26
|
+
readonly type: PropType<string>;
|
|
27
|
+
readonly default: "";
|
|
23
28
|
};
|
|
24
|
-
buttons: {
|
|
25
|
-
type: PropType<PageButton[]>;
|
|
26
|
-
default()
|
|
29
|
+
readonly buttons: {
|
|
30
|
+
readonly type: PropType<PageButton[]>;
|
|
31
|
+
readonly default: () => never[];
|
|
27
32
|
};
|
|
28
|
-
formFields: {
|
|
29
|
-
type: PropType<FormFieldsItem[]>;
|
|
30
|
-
default()
|
|
33
|
+
readonly formFields: {
|
|
34
|
+
readonly type: PropType<FormFieldsItem[]>;
|
|
35
|
+
readonly default: () => never[];
|
|
31
36
|
};
|
|
32
|
-
extend: {
|
|
33
|
-
type: ObjectConstructor;
|
|
34
|
-
default()
|
|
37
|
+
readonly extend: {
|
|
38
|
+
readonly type: ObjectConstructor;
|
|
39
|
+
readonly default: () => {};
|
|
40
|
+
};
|
|
41
|
+
readonly shake: {
|
|
42
|
+
readonly type: PropType<boolean>;
|
|
43
|
+
readonly default: true;
|
|
35
44
|
};
|
|
36
45
|
}, {
|
|
37
|
-
|
|
46
|
+
busAccount: ComputedRef<string>;
|
|
47
|
+
shake: Ref<boolean>;
|
|
48
|
+
formRef: Ref<FormInstance | undefined>;
|
|
38
49
|
classes: ComputedRef<{
|
|
39
50
|
[key: string]: string | boolean;
|
|
40
51
|
}>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
52
|
+
noHiddenFieldFormFields: ComputedRef<FormFieldsItem[]>;
|
|
53
|
+
rules: ComputedRef<Record<string, RuleObject[]>>;
|
|
54
|
+
pageData: Ref<RecordStringNumber>;
|
|
55
|
+
locale: PickerLocale;
|
|
56
|
+
getColConfig: (field: FormFieldsItem) => {
|
|
57
|
+
xs: number;
|
|
58
|
+
sm: number;
|
|
59
|
+
md: number;
|
|
60
|
+
lg: number;
|
|
61
|
+
xl: number;
|
|
62
|
+
xxl: number;
|
|
63
|
+
xxxl: number;
|
|
64
|
+
};
|
|
65
|
+
screens: Ref<Partial<Record<Breakpoint, boolean>>>;
|
|
66
|
+
handleUploadData: (file: FormFieldsItemUpload) => {
|
|
67
|
+
businessType: string;
|
|
68
|
+
headId: {};
|
|
69
|
+
};
|
|
70
|
+
resetForm: () => void;
|
|
71
|
+
handleInputBlur: (event: Event, config: FormFieldsItem) => void;
|
|
72
|
+
handleSwitchChange: (value: string, config: FormFieldsItem) => void;
|
|
73
|
+
handleSelectChange: (value: string, config: FormFieldsItem) => void;
|
|
74
|
+
handleRadioChange: (value: string, config: FormFieldsItem) => void;
|
|
75
|
+
handleUploadChange: (value: string, config: FormFieldsItem) => void;
|
|
76
|
+
handleCurrencyChange: (value: string, config: FormFieldsItem) => void;
|
|
77
|
+
handleRemoteSelectChange: (value: string, config: FormFieldsItem) => void;
|
|
78
|
+
handleSelectModalChange: (data: RecordStringNumber[], config: FormFieldsItem) => void;
|
|
79
|
+
handleDateChange: (value: string, config: FormFieldsItem) => void;
|
|
80
|
+
handleCodeChange: (value: string, config: FormFieldsItem) => void;
|
|
44
81
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
45
|
-
groupName: {
|
|
46
|
-
type: PropType<string>;
|
|
47
|
-
default:
|
|
82
|
+
readonly groupName: {
|
|
83
|
+
readonly type: PropType<string>;
|
|
84
|
+
readonly default: "";
|
|
85
|
+
};
|
|
86
|
+
readonly groupNameI18nKey: {
|
|
87
|
+
readonly type: PropType<string>;
|
|
88
|
+
readonly default: "";
|
|
48
89
|
};
|
|
49
|
-
|
|
50
|
-
type: PropType<string>;
|
|
51
|
-
default:
|
|
90
|
+
readonly groupCode: {
|
|
91
|
+
readonly type: PropType<string>;
|
|
92
|
+
readonly default: "";
|
|
52
93
|
};
|
|
53
|
-
|
|
54
|
-
type: PropType<string>;
|
|
55
|
-
default:
|
|
94
|
+
readonly groupType: {
|
|
95
|
+
readonly type: PropType<string>;
|
|
96
|
+
readonly default: "";
|
|
56
97
|
};
|
|
57
|
-
|
|
58
|
-
type: PropType<string>;
|
|
59
|
-
default:
|
|
98
|
+
readonly sortOrder: {
|
|
99
|
+
readonly type: PropType<string>;
|
|
100
|
+
readonly default: "";
|
|
60
101
|
};
|
|
61
|
-
|
|
62
|
-
type: PropType<
|
|
63
|
-
default:
|
|
102
|
+
readonly buttons: {
|
|
103
|
+
readonly type: PropType<PageButton[]>;
|
|
104
|
+
readonly default: () => never[];
|
|
64
105
|
};
|
|
65
|
-
|
|
66
|
-
type: PropType<
|
|
67
|
-
default()
|
|
106
|
+
readonly formFields: {
|
|
107
|
+
readonly type: PropType<FormFieldsItem[]>;
|
|
108
|
+
readonly default: () => never[];
|
|
68
109
|
};
|
|
69
|
-
|
|
70
|
-
type:
|
|
71
|
-
default()
|
|
110
|
+
readonly extend: {
|
|
111
|
+
readonly type: ObjectConstructor;
|
|
112
|
+
readonly default: () => {};
|
|
72
113
|
};
|
|
73
|
-
|
|
74
|
-
type:
|
|
75
|
-
default
|
|
114
|
+
readonly shake: {
|
|
115
|
+
readonly type: PropType<boolean>;
|
|
116
|
+
readonly default: true;
|
|
76
117
|
};
|
|
77
118
|
}>>, {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
groupCode: string;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
119
|
+
readonly formFields: FormFieldsItem[];
|
|
120
|
+
readonly extend: Record<string, any>;
|
|
121
|
+
readonly groupCode: string;
|
|
122
|
+
readonly groupName: string;
|
|
123
|
+
readonly groupNameI18nKey: string;
|
|
124
|
+
readonly groupType: string;
|
|
125
|
+
readonly sortOrder: string;
|
|
126
|
+
readonly buttons: PageButton[];
|
|
127
|
+
readonly shake: boolean;
|
|
86
128
|
}>;
|
|
87
129
|
export default _sfc_main;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FormFieldsItem, RecordStringNumber } from '../../../edit-page-layout';
|
|
2
|
+
export declare const handleInputBlur: (event: Event, config: FormFieldsItem) => void;
|
|
3
|
+
export declare const handleSelectChange: (value: string, config: FormFieldsItem) => void;
|
|
4
|
+
export declare const handleSwitchChange: (value: string, config: FormFieldsItem) => void;
|
|
5
|
+
export declare const handleRadioChange: (value: string, config: FormFieldsItem) => void;
|
|
6
|
+
export declare const handleUploadChange: (value: string, config: FormFieldsItem) => void;
|
|
7
|
+
export declare const handleCurrencyChange: (value: string, config: FormFieldsItem) => void;
|
|
8
|
+
export declare const handleRemoteSelectChange: (value: string, config: FormFieldsItem) => void;
|
|
9
|
+
export declare const handleSelectModalChange: (data: RecordStringNumber[], config: FormFieldsItem) => void;
|
|
10
|
+
export declare const handleDateChange: (value: string, config: FormFieldsItem) => void;
|
|
11
|
+
export declare const handleCodeChange: (value: string, config: FormFieldsItem) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuleObject } from 'ant-design-vue/es/form';
|
|
2
|
+
import type { FormFieldsItem } from '../../../edit-page-layout';
|
|
3
|
+
import type { ComputedRef } from 'vue';
|
|
4
|
+
import type { EditFormProps } from '../edit-form-types';
|
|
5
|
+
export default function useFormConfig(props: EditFormProps): {
|
|
6
|
+
noHiddenFieldFormFields: ComputedRef<FormFieldsItem[]>;
|
|
7
|
+
rules: ComputedRef<Record<string, RuleObject[]>>;
|
|
8
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { EditFormReturnType } from './edit-form-types';
|
|
2
|
-
export default function
|
|
2
|
+
export default function useEditForm(): EditFormReturnType;
|
|
@@ -1,49 +1,60 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ruleItem } from './src/hook/use-grid-config-hook';
|
|
2
|
+
import type { VxeGridProps, VxeGridInstance, SizeType, VxeTablePropTypes, VxeColumnPropTypes, VxeTooltipPropTypes, VxeTableDefines, SlotVNodeType, VxeTableConstructor, VxeTablePrivateMethods, VxeGridConstructor, VxeTableProDefines, VxePagerPropTypes, VxeGridPropTypes, VxeButtonPropTypes, VxeToolbarPropTypes, VxeFormPropTypes, VxeFormItemPropTypes, VxeFormItemProps, FormItemTitleRenderParams, FormItemContentRenderParams } from 'vxe-table';
|
|
3
|
+
import type { PageButton, ColumnItem, RecordStringNumber, PageButtonWithGroupCode } from '../edit-page-layout';
|
|
3
4
|
import type { DefineComponent, PropType, ComputedRef, Ref, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
5
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
5
6
|
import QEditForm from './src/edit-grid.vue';
|
|
6
7
|
export * from './src/edit-grid-types';
|
|
7
8
|
export { QEditForm };
|
|
8
9
|
declare const _default: SFCWithInstall<DefineComponent<{
|
|
9
|
-
groupName: {
|
|
10
|
-
type: PropType<string>;
|
|
11
|
-
default:
|
|
10
|
+
readonly groupName: {
|
|
11
|
+
readonly type: PropType<string>;
|
|
12
|
+
readonly default: "";
|
|
12
13
|
};
|
|
13
|
-
groupNameI18nKey: {
|
|
14
|
-
type: PropType<string>;
|
|
15
|
-
default:
|
|
14
|
+
readonly groupNameI18nKey: {
|
|
15
|
+
readonly type: PropType<string>;
|
|
16
|
+
readonly default: "";
|
|
16
17
|
};
|
|
17
|
-
groupCode: {
|
|
18
|
-
type: PropType<string>;
|
|
19
|
-
default:
|
|
18
|
+
readonly groupCode: {
|
|
19
|
+
readonly type: PropType<string>;
|
|
20
|
+
readonly default: "";
|
|
20
21
|
};
|
|
21
|
-
groupType: {
|
|
22
|
-
type: PropType<string>;
|
|
23
|
-
default:
|
|
22
|
+
readonly groupType: {
|
|
23
|
+
readonly type: PropType<string>;
|
|
24
|
+
readonly default: "";
|
|
24
25
|
};
|
|
25
|
-
sortOrder: {
|
|
26
|
-
type: PropType<string>;
|
|
27
|
-
default:
|
|
26
|
+
readonly sortOrder: {
|
|
27
|
+
readonly type: PropType<string>;
|
|
28
|
+
readonly default: "";
|
|
28
29
|
};
|
|
29
|
-
buttons: {
|
|
30
|
-
type: PropType<PageButton[]>;
|
|
31
|
-
default()
|
|
30
|
+
readonly buttons: {
|
|
31
|
+
readonly type: PropType<PageButton[]>;
|
|
32
|
+
readonly default: () => never[];
|
|
32
33
|
};
|
|
33
|
-
columns: {
|
|
34
|
-
type: PropType<ColumnItem[]>;
|
|
35
|
-
default()
|
|
34
|
+
readonly columns: {
|
|
35
|
+
readonly type: PropType<ColumnItem[]>;
|
|
36
|
+
readonly default: () => never[];
|
|
36
37
|
};
|
|
37
|
-
extend: {
|
|
38
|
-
type: ObjectConstructor;
|
|
39
|
-
default()
|
|
38
|
+
readonly extend: {
|
|
39
|
+
readonly type: ObjectConstructor;
|
|
40
|
+
readonly default: () => {};
|
|
41
|
+
};
|
|
42
|
+
readonly vxeGridConfig: {
|
|
43
|
+
readonly type: PropType<VxeGridProps<any>>;
|
|
44
|
+
readonly default: () => {};
|
|
45
|
+
};
|
|
46
|
+
readonly shake: {
|
|
47
|
+
readonly type: PropType<boolean>;
|
|
48
|
+
readonly default: true;
|
|
40
49
|
};
|
|
41
50
|
}, {
|
|
42
51
|
classes: ComputedRef<{
|
|
43
52
|
[key: string]: string | boolean;
|
|
44
53
|
}>;
|
|
45
|
-
columns: Ref<ColumnItem[]>;
|
|
46
54
|
buttons: Ref<PageButton[]>;
|
|
55
|
+
groupName: Ref<string>;
|
|
56
|
+
groupCode: Ref<string>;
|
|
57
|
+
wrapBoxHeight: ComputedRef<number>;
|
|
47
58
|
xGrid: Ref<VxeGridInstance | undefined>;
|
|
48
59
|
gridOptions: {
|
|
49
60
|
size?: SizeType | undefined;
|
|
@@ -1891,7 +1902,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
1891
1902
|
}) => VxeTableDefines.ColumnOptions[]) | undefined;
|
|
1892
1903
|
} | undefined;
|
|
1893
1904
|
editConfig?: {
|
|
1894
|
-
trigger?: "" | "
|
|
1905
|
+
trigger?: "" | "manual" | "click" | "dblclick" | null | undefined;
|
|
1895
1906
|
enabled?: boolean | undefined;
|
|
1896
1907
|
mode?: string | undefined;
|
|
1897
1908
|
icon?: string | undefined;
|
|
@@ -2233,7 +2244,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
2233
2244
|
enabled?: boolean | undefined;
|
|
2234
2245
|
slots?: any;
|
|
2235
2246
|
size?: SizeType | undefined;
|
|
2236
|
-
layouts?: ("PrevJump" | "PrevPage" | "
|
|
2247
|
+
layouts?: ("PrevJump" | "PrevPage" | "JumpNumber" | "NextPage" | "NextJump" | "Sizes" | "FullJump" | "PageCount" | "Total" | "Number" | "Jump")[] | undefined;
|
|
2237
2248
|
currentPage?: number | undefined;
|
|
2238
2249
|
loading?: boolean | undefined;
|
|
2239
2250
|
pageSize?: number | undefined;
|
|
@@ -2289,12 +2300,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
2289
2300
|
slots?: {
|
|
2290
2301
|
buttons?: string | ((params: {
|
|
2291
2302
|
[key: string]: any;
|
|
2292
|
-
}) => JSX.Element |
|
|
2303
|
+
}) => string[] | JSX.Element | VNode<RendererNode, RendererElement, {
|
|
2293
2304
|
[key: string]: any;
|
|
2294
2305
|
}>[] | JSX.Element[]) | undefined;
|
|
2295
2306
|
tools?: string | ((params: {
|
|
2296
2307
|
[key: string]: any;
|
|
2297
|
-
}) => JSX.Element |
|
|
2308
|
+
}) => string[] | JSX.Element | VNode<RendererNode, RendererElement, {
|
|
2298
2309
|
[key: string]: any;
|
|
2299
2310
|
}>[] | JSX.Element[]) | undefined;
|
|
2300
2311
|
} | undefined;
|
|
@@ -2562,47 +2573,63 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
2562
2573
|
escRestore?: boolean | undefined;
|
|
2563
2574
|
} | undefined;
|
|
2564
2575
|
};
|
|
2576
|
+
pageData: Ref<RecordStringNumber>;
|
|
2577
|
+
handleDeleteRow: (btn: PageButtonWithGroupCode) => void;
|
|
2578
|
+
handleUploadFile: (btn: PageButtonWithGroupCode) => void;
|
|
2579
|
+
computedColumns: ComputedRef<VxeGridPropTypes.Columns>;
|
|
2580
|
+
editRules: ComputedRef<ruleItem>;
|
|
2581
|
+
shake: Ref<boolean>;
|
|
2565
2582
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
2566
|
-
groupName: {
|
|
2567
|
-
type: PropType<string>;
|
|
2568
|
-
default:
|
|
2583
|
+
readonly groupName: {
|
|
2584
|
+
readonly type: PropType<string>;
|
|
2585
|
+
readonly default: "";
|
|
2586
|
+
};
|
|
2587
|
+
readonly groupNameI18nKey: {
|
|
2588
|
+
readonly type: PropType<string>;
|
|
2589
|
+
readonly default: "";
|
|
2590
|
+
};
|
|
2591
|
+
readonly groupCode: {
|
|
2592
|
+
readonly type: PropType<string>;
|
|
2593
|
+
readonly default: "";
|
|
2569
2594
|
};
|
|
2570
|
-
|
|
2571
|
-
type: PropType<string>;
|
|
2572
|
-
default:
|
|
2595
|
+
readonly groupType: {
|
|
2596
|
+
readonly type: PropType<string>;
|
|
2597
|
+
readonly default: "";
|
|
2573
2598
|
};
|
|
2574
|
-
|
|
2575
|
-
type: PropType<string>;
|
|
2576
|
-
default:
|
|
2599
|
+
readonly sortOrder: {
|
|
2600
|
+
readonly type: PropType<string>;
|
|
2601
|
+
readonly default: "";
|
|
2577
2602
|
};
|
|
2578
|
-
|
|
2579
|
-
type: PropType<
|
|
2580
|
-
default:
|
|
2603
|
+
readonly buttons: {
|
|
2604
|
+
readonly type: PropType<PageButton[]>;
|
|
2605
|
+
readonly default: () => never[];
|
|
2581
2606
|
};
|
|
2582
|
-
|
|
2583
|
-
type: PropType<
|
|
2584
|
-
default:
|
|
2607
|
+
readonly columns: {
|
|
2608
|
+
readonly type: PropType<ColumnItem[]>;
|
|
2609
|
+
readonly default: () => never[];
|
|
2585
2610
|
};
|
|
2586
|
-
|
|
2587
|
-
type:
|
|
2588
|
-
default()
|
|
2611
|
+
readonly extend: {
|
|
2612
|
+
readonly type: ObjectConstructor;
|
|
2613
|
+
readonly default: () => {};
|
|
2589
2614
|
};
|
|
2590
|
-
|
|
2591
|
-
type: PropType<
|
|
2592
|
-
default()
|
|
2615
|
+
readonly vxeGridConfig: {
|
|
2616
|
+
readonly type: PropType<VxeGridProps<any>>;
|
|
2617
|
+
readonly default: () => {};
|
|
2593
2618
|
};
|
|
2594
|
-
|
|
2595
|
-
type:
|
|
2596
|
-
default
|
|
2619
|
+
readonly shake: {
|
|
2620
|
+
readonly type: PropType<boolean>;
|
|
2621
|
+
readonly default: true;
|
|
2597
2622
|
};
|
|
2598
2623
|
}>>, {
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
groupCode: string;
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2624
|
+
readonly vxeGridConfig: VxeGridProps<any>;
|
|
2625
|
+
readonly extend: Record<string, any>;
|
|
2626
|
+
readonly groupCode: string;
|
|
2627
|
+
readonly columns: ColumnItem[];
|
|
2628
|
+
readonly groupName: string;
|
|
2629
|
+
readonly groupNameI18nKey: string;
|
|
2630
|
+
readonly groupType: string;
|
|
2631
|
+
readonly sortOrder: string;
|
|
2632
|
+
readonly buttons: PageButton[];
|
|
2633
|
+
readonly shake: boolean;
|
|
2607
2634
|
}>>;
|
|
2608
2635
|
export default _default;
|
|
@@ -1,37 +1,46 @@
|
|
|
1
1
|
import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { PageButton, ColumnItem } from '../../edit-page-layout';
|
|
3
|
+
import { VxeGridProps } from 'vxe-table';
|
|
3
4
|
export declare const editGridProps: {
|
|
4
|
-
groupName: {
|
|
5
|
-
type: PropType<string>;
|
|
6
|
-
default:
|
|
5
|
+
readonly groupName: {
|
|
6
|
+
readonly type: PropType<string>;
|
|
7
|
+
readonly default: "";
|
|
7
8
|
};
|
|
8
|
-
groupNameI18nKey: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
default:
|
|
9
|
+
readonly groupNameI18nKey: {
|
|
10
|
+
readonly type: PropType<string>;
|
|
11
|
+
readonly default: "";
|
|
11
12
|
};
|
|
12
|
-
groupCode: {
|
|
13
|
-
type: PropType<string>;
|
|
14
|
-
default:
|
|
13
|
+
readonly groupCode: {
|
|
14
|
+
readonly type: PropType<string>;
|
|
15
|
+
readonly default: "";
|
|
15
16
|
};
|
|
16
|
-
groupType: {
|
|
17
|
-
type: PropType<string>;
|
|
18
|
-
default:
|
|
17
|
+
readonly groupType: {
|
|
18
|
+
readonly type: PropType<string>;
|
|
19
|
+
readonly default: "";
|
|
19
20
|
};
|
|
20
|
-
sortOrder: {
|
|
21
|
-
type: PropType<string>;
|
|
22
|
-
default:
|
|
21
|
+
readonly sortOrder: {
|
|
22
|
+
readonly type: PropType<string>;
|
|
23
|
+
readonly default: "";
|
|
23
24
|
};
|
|
24
|
-
buttons: {
|
|
25
|
-
type: PropType<PageButton[]>;
|
|
26
|
-
default()
|
|
25
|
+
readonly buttons: {
|
|
26
|
+
readonly type: PropType<PageButton[]>;
|
|
27
|
+
readonly default: () => never[];
|
|
27
28
|
};
|
|
28
|
-
columns: {
|
|
29
|
-
type: PropType<ColumnItem[]>;
|
|
30
|
-
default()
|
|
29
|
+
readonly columns: {
|
|
30
|
+
readonly type: PropType<ColumnItem[]>;
|
|
31
|
+
readonly default: () => never[];
|
|
31
32
|
};
|
|
32
|
-
extend: {
|
|
33
|
-
type: ObjectConstructor;
|
|
34
|
-
default()
|
|
33
|
+
readonly extend: {
|
|
34
|
+
readonly type: ObjectConstructor;
|
|
35
|
+
readonly default: () => {};
|
|
36
|
+
};
|
|
37
|
+
readonly vxeGridConfig: {
|
|
38
|
+
readonly type: PropType<VxeGridProps<any>>;
|
|
39
|
+
readonly default: () => {};
|
|
40
|
+
};
|
|
41
|
+
readonly shake: {
|
|
42
|
+
readonly type: PropType<boolean>;
|
|
43
|
+
readonly default: true;
|
|
35
44
|
};
|
|
36
45
|
};
|
|
37
46
|
export type EditGridProps = ExtractPropTypes<typeof editGridProps>;
|