@qqt-product/ui 0.0.11 → 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/README.md +16 -16
- 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 +79530 -57898
- 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 +63 -62
- package/dist/lib/components/cascader/src/cascader-types.d.ts +18 -24
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +86 -0
- 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/{select/src/select.d.ts → checkbox/src/checkbox.vue.d.ts} +53 -48
- 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 +29 -25
- 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 +126 -89
- 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 +34 -25
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +126 -89
- 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 +210 -42
- 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 +223 -0
- 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 +19 -0
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +176 -0
- 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 +27 -45
- 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 +17 -1
- 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 +4 -6
- 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-types.d.ts +1 -1
- 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 +29 -42
- package/dist/lib/components/select/src/select-types.d.ts +6 -17
- package/dist/lib/components/select/src/select.vue.d.ts +91 -0
- 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 +4 -4
- package/dist/lib/components/switch/index.d.ts +8 -7
- package/dist/lib/components/switch/src/switch-types.d.ts +1 -3
- package/dist/lib/components/switch/src/{switch.d.ts → switch.vue.d.ts} +9 -8
- 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/plugins/table/pro/vxe-table-pro.es6.min.d.ts +7 -7
- 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 +23 -8
- package/package.json +25 -12
- package/dist/lib/components/cascader/src/cascader.d.ts +0 -85
- 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,23 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
1
|
+
import type { modeValidator, SelectOption } from './src/select-types';
|
|
2
|
+
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
4
|
-
import QSelect from './src/select';
|
|
4
|
+
import QSelect from './src/select.vue';
|
|
5
5
|
export * from './src/select-types';
|
|
6
6
|
export { QSelect };
|
|
7
7
|
declare const _default: SFCWithInstall<DefineComponent<{
|
|
8
|
-
readonly required: {
|
|
9
|
-
readonly type: PropType<"0" | "1">;
|
|
10
|
-
readonly default: "";
|
|
11
|
-
readonly validator: typeof requiredValidator;
|
|
12
|
-
};
|
|
13
8
|
readonly value: {
|
|
14
9
|
readonly type: StringConstructor;
|
|
15
10
|
readonly default: "";
|
|
16
11
|
};
|
|
17
|
-
readonly maxTagCount: {
|
|
18
|
-
readonly type: NumberConstructor;
|
|
19
|
-
readonly default: 1;
|
|
20
|
-
};
|
|
21
12
|
readonly busAccount: {
|
|
22
13
|
readonly type: StringConstructor;
|
|
23
14
|
readonly default: "";
|
|
@@ -27,16 +18,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
27
18
|
readonly default: "combobox";
|
|
28
19
|
readonly validator: typeof modeValidator;
|
|
29
20
|
};
|
|
30
|
-
readonly placeholder: {
|
|
31
|
-
readonly type: StringConstructor;
|
|
32
|
-
readonly default: "请选择";
|
|
33
|
-
};
|
|
34
21
|
readonly dictCode: {
|
|
35
22
|
readonly type: StringConstructor;
|
|
36
23
|
readonly default: "";
|
|
37
24
|
};
|
|
38
25
|
readonly options: {
|
|
39
|
-
readonly type: PropType<
|
|
26
|
+
readonly type: PropType<SelectOption[]>;
|
|
40
27
|
readonly default: () => never[];
|
|
41
28
|
};
|
|
42
29
|
readonly 'onUpdate:value': {
|
|
@@ -47,20 +34,27 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
47
34
|
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
48
35
|
default: unknown;
|
|
49
36
|
};
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
}, {
|
|
38
|
+
classes: ComputedRef<{
|
|
39
|
+
[key: string]: string | boolean;
|
|
40
|
+
}>;
|
|
41
|
+
realValue: Ref<string | string[]>;
|
|
42
|
+
mode: ComputedRef<string>;
|
|
43
|
+
options: Ref<{
|
|
44
|
+
[x: string]: string;
|
|
45
|
+
title: string;
|
|
46
|
+
value: string;
|
|
47
|
+
id: string;
|
|
48
|
+
textI18nKey: string;
|
|
49
|
+
children?: unknown[] | undefined;
|
|
50
|
+
label: string;
|
|
51
|
+
}[]>;
|
|
52
|
+
onChange: (value: string) => void;
|
|
53
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
56
54
|
readonly value: {
|
|
57
55
|
readonly type: StringConstructor;
|
|
58
56
|
readonly default: "";
|
|
59
57
|
};
|
|
60
|
-
readonly maxTagCount: {
|
|
61
|
-
readonly type: NumberConstructor;
|
|
62
|
-
readonly default: 1;
|
|
63
|
-
};
|
|
64
58
|
readonly busAccount: {
|
|
65
59
|
readonly type: StringConstructor;
|
|
66
60
|
readonly default: "";
|
|
@@ -70,16 +64,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
70
64
|
readonly default: "combobox";
|
|
71
65
|
readonly validator: typeof modeValidator;
|
|
72
66
|
};
|
|
73
|
-
readonly placeholder: {
|
|
74
|
-
readonly type: StringConstructor;
|
|
75
|
-
readonly default: "请选择";
|
|
76
|
-
};
|
|
77
67
|
readonly dictCode: {
|
|
78
68
|
readonly type: StringConstructor;
|
|
79
69
|
readonly default: "";
|
|
80
70
|
};
|
|
81
71
|
readonly options: {
|
|
82
|
-
readonly type: PropType<
|
|
72
|
+
readonly type: PropType<SelectOption[]>;
|
|
83
73
|
readonly default: () => never[];
|
|
84
74
|
};
|
|
85
75
|
readonly 'onUpdate:value': {
|
|
@@ -91,18 +81,15 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
91
81
|
default: unknown;
|
|
92
82
|
};
|
|
93
83
|
}>> & {
|
|
94
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
95
84
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
96
86
|
}, {
|
|
97
|
-
readonly required: "0" | "1";
|
|
98
|
-
readonly options: WithChildrenOption[];
|
|
99
|
-
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
100
|
-
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
101
|
-
readonly value: string;
|
|
102
|
-
readonly placeholder: string;
|
|
103
|
-
readonly maxTagCount: number;
|
|
104
|
-
readonly busAccount: string;
|
|
105
|
-
readonly dictCode: string;
|
|
106
87
|
readonly mode: "multiple" | "tags" | "combobox";
|
|
88
|
+
readonly dictCode: string;
|
|
89
|
+
readonly busAccount: string;
|
|
90
|
+
readonly options: SelectOption[];
|
|
91
|
+
readonly value: string;
|
|
92
|
+
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
93
|
+
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
107
94
|
}>>;
|
|
108
95
|
export default _default;
|
|
@@ -6,25 +6,18 @@ export interface Option {
|
|
|
6
6
|
textI18nKey: string;
|
|
7
7
|
[K: string]: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type WithChildrenOption = Option & {
|
|
10
10
|
children?: unknown[];
|
|
11
11
|
};
|
|
12
|
+
export type SelectOption = WithChildrenOption & {
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
12
15
|
export declare function modeValidator(mode: string): boolean;
|
|
13
|
-
export declare function requiredValidator(val: string): boolean;
|
|
14
16
|
export declare const selectProps: {
|
|
15
|
-
readonly required: {
|
|
16
|
-
readonly type: PropType<"0" | "1">;
|
|
17
|
-
readonly default: "";
|
|
18
|
-
readonly validator: typeof requiredValidator;
|
|
19
|
-
};
|
|
20
17
|
readonly value: {
|
|
21
18
|
readonly type: StringConstructor;
|
|
22
19
|
readonly default: "";
|
|
23
20
|
};
|
|
24
|
-
readonly maxTagCount: {
|
|
25
|
-
readonly type: NumberConstructor;
|
|
26
|
-
readonly default: 1;
|
|
27
|
-
};
|
|
28
21
|
readonly busAccount: {
|
|
29
22
|
readonly type: StringConstructor;
|
|
30
23
|
readonly default: "";
|
|
@@ -34,16 +27,12 @@ export declare const selectProps: {
|
|
|
34
27
|
readonly default: "combobox";
|
|
35
28
|
readonly validator: typeof modeValidator;
|
|
36
29
|
};
|
|
37
|
-
readonly placeholder: {
|
|
38
|
-
readonly type: StringConstructor;
|
|
39
|
-
readonly default: "请选择";
|
|
40
|
-
};
|
|
41
30
|
readonly dictCode: {
|
|
42
31
|
readonly type: StringConstructor;
|
|
43
32
|
readonly default: "";
|
|
44
33
|
};
|
|
45
34
|
readonly options: {
|
|
46
|
-
readonly type: PropType<
|
|
35
|
+
readonly type: PropType<SelectOption[]>;
|
|
47
36
|
readonly default: () => never[];
|
|
48
37
|
};
|
|
49
38
|
readonly 'onUpdate:value': {
|
|
@@ -55,7 +44,7 @@ export declare const selectProps: {
|
|
|
55
44
|
default: unknown;
|
|
56
45
|
};
|
|
57
46
|
};
|
|
58
|
-
export
|
|
47
|
+
export type SelectProps = ExtractPropTypes<typeof selectProps>;
|
|
59
48
|
export interface UseSelectReturnType {
|
|
60
49
|
classes: ComputedRef<{
|
|
61
50
|
[key: string]: string | boolean;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
|
|
2
|
+
import type { modeValidator, SelectOption } from './select-types';
|
|
3
|
+
declare const _sfc_main: DefineComponent<{
|
|
4
|
+
readonly value: {
|
|
5
|
+
readonly type: StringConstructor;
|
|
6
|
+
readonly default: "";
|
|
7
|
+
};
|
|
8
|
+
readonly busAccount: {
|
|
9
|
+
readonly type: StringConstructor;
|
|
10
|
+
readonly default: "";
|
|
11
|
+
};
|
|
12
|
+
readonly mode: {
|
|
13
|
+
readonly type: PropType<"multiple" | "tags" | "combobox">;
|
|
14
|
+
readonly default: "combobox";
|
|
15
|
+
readonly validator: typeof modeValidator;
|
|
16
|
+
};
|
|
17
|
+
readonly dictCode: {
|
|
18
|
+
readonly type: StringConstructor;
|
|
19
|
+
readonly default: "";
|
|
20
|
+
};
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly type: PropType<SelectOption[]>;
|
|
23
|
+
readonly default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
readonly 'onUpdate:value': {
|
|
26
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
27
|
+
default: unknown;
|
|
28
|
+
};
|
|
29
|
+
readonly onChange: {
|
|
30
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
31
|
+
default: unknown;
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
classes: ComputedRef<{
|
|
35
|
+
[key: string]: string | boolean;
|
|
36
|
+
}>;
|
|
37
|
+
realValue: Ref<string | string[]>;
|
|
38
|
+
mode: ComputedRef<string>;
|
|
39
|
+
options: Ref<{
|
|
40
|
+
[x: string]: string;
|
|
41
|
+
title: string;
|
|
42
|
+
value: string;
|
|
43
|
+
id: string;
|
|
44
|
+
textI18nKey: string;
|
|
45
|
+
children?: unknown[] | undefined;
|
|
46
|
+
label: string;
|
|
47
|
+
}[]>;
|
|
48
|
+
onChange: (value: string) => void;
|
|
49
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
50
|
+
readonly value: {
|
|
51
|
+
readonly type: StringConstructor;
|
|
52
|
+
readonly default: "";
|
|
53
|
+
};
|
|
54
|
+
readonly busAccount: {
|
|
55
|
+
readonly type: StringConstructor;
|
|
56
|
+
readonly default: "";
|
|
57
|
+
};
|
|
58
|
+
readonly mode: {
|
|
59
|
+
readonly type: PropType<"multiple" | "tags" | "combobox">;
|
|
60
|
+
readonly default: "combobox";
|
|
61
|
+
readonly validator: typeof modeValidator;
|
|
62
|
+
};
|
|
63
|
+
readonly dictCode: {
|
|
64
|
+
readonly type: StringConstructor;
|
|
65
|
+
readonly default: "";
|
|
66
|
+
};
|
|
67
|
+
readonly options: {
|
|
68
|
+
readonly type: PropType<SelectOption[]>;
|
|
69
|
+
readonly default: () => never[];
|
|
70
|
+
};
|
|
71
|
+
readonly 'onUpdate:value': {
|
|
72
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
73
|
+
default: unknown;
|
|
74
|
+
};
|
|
75
|
+
readonly onChange: {
|
|
76
|
+
type: PropType<((value: string) => void) | ((value: string) => void)[]>;
|
|
77
|
+
default: unknown;
|
|
78
|
+
};
|
|
79
|
+
}>> & {
|
|
80
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
readonly mode: "multiple" | "tags" | "combobox";
|
|
84
|
+
readonly dictCode: string;
|
|
85
|
+
readonly busAccount: string;
|
|
86
|
+
readonly options: SelectOption[];
|
|
87
|
+
readonly value: string;
|
|
88
|
+
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
89
|
+
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
90
|
+
}>;
|
|
91
|
+
export default _sfc_main;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function useSelect(
|
|
1
|
+
import { UseSelectReturnType } from './select-types';
|
|
2
|
+
export default function useSelect(): UseSelectReturnType;
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import type { MessageType } from 'ant-design-vue/lib/message';
|
|
2
|
+
import type { VxeTableProps, VxeGridInstance } from 'vxe-table';
|
|
3
|
+
import type { ModalConfig, RequestMethod, ModalType, OpenFuncType, TablePage } from '../field-select-modal';
|
|
4
|
+
import type { Config, RecordStringNumber } from './src/select-modal-types';
|
|
5
|
+
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentInternalInstance, ExtractPropTypes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
6
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
7
|
+
import QSelectModal from './src/select-modal.vue';
|
|
8
|
+
export * from './src/select-modal-types';
|
|
9
|
+
export { QSelectModal };
|
|
10
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
11
|
+
value: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
config: {
|
|
16
|
+
type: PropType<Config>;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
onChange: {
|
|
20
|
+
type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
|
|
21
|
+
default: unknown;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
classes: ComputedRef<{
|
|
25
|
+
[x: string]: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
value: Ref<string>;
|
|
28
|
+
fieldSelectModal: Ref<({
|
|
29
|
+
$: ComponentInternalInstance;
|
|
30
|
+
$data: {};
|
|
31
|
+
$props: Partial<{
|
|
32
|
+
modalConfig: ModalConfig;
|
|
33
|
+
modalTitle: string;
|
|
34
|
+
apiUrls: string;
|
|
35
|
+
requestMethod: RequestMethod;
|
|
36
|
+
tableConfig: VxeTableProps<any>;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
selectModal: ModalType;
|
|
39
|
+
}> & Omit<Readonly<ExtractPropTypes<{
|
|
40
|
+
modalTitle: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
apiUrls: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
requestMethod: {
|
|
49
|
+
type: PropType<RequestMethod>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
modalConfig: {
|
|
53
|
+
type: PropType<ModalConfig>;
|
|
54
|
+
default: () => {};
|
|
55
|
+
};
|
|
56
|
+
tableConfig: {
|
|
57
|
+
type: PropType<VxeTableProps<any>>;
|
|
58
|
+
default: () => {
|
|
59
|
+
height: number;
|
|
60
|
+
isTree: boolean;
|
|
61
|
+
radioConfig: {};
|
|
62
|
+
checkboxConfig: {
|
|
63
|
+
highlight: boolean;
|
|
64
|
+
reserve: boolean;
|
|
65
|
+
trigger: string;
|
|
66
|
+
};
|
|
67
|
+
pagerConfig: {};
|
|
68
|
+
treeConfig: {};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
placeholder: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
selectModal: {
|
|
76
|
+
type: PropType<ModalType>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
}>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "modalConfig" | "modalTitle" | "apiUrls" | "requestMethod" | "tableConfig" | "placeholder" | "selectModal">;
|
|
80
|
+
$attrs: {
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
$refs: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
};
|
|
86
|
+
$slots: Readonly<{
|
|
87
|
+
[name: string]: Slot | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
90
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
91
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
92
|
+
$el: any;
|
|
93
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
94
|
+
modalTitle: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
apiUrls: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
requestMethod: {
|
|
103
|
+
type: PropType<RequestMethod>;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
modalConfig: {
|
|
107
|
+
type: PropType<ModalConfig>;
|
|
108
|
+
default: () => {};
|
|
109
|
+
};
|
|
110
|
+
tableConfig: {
|
|
111
|
+
type: PropType<VxeTableProps<any>>;
|
|
112
|
+
default: () => {
|
|
113
|
+
height: number;
|
|
114
|
+
isTree: boolean;
|
|
115
|
+
radioConfig: {};
|
|
116
|
+
checkboxConfig: {
|
|
117
|
+
highlight: boolean;
|
|
118
|
+
reserve: boolean;
|
|
119
|
+
trigger: string;
|
|
120
|
+
};
|
|
121
|
+
pagerConfig: {};
|
|
122
|
+
treeConfig: {};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
placeholder: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
selectModal: {
|
|
130
|
+
type: PropType<ModalType>;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
}>>, {
|
|
134
|
+
classes: ComputedRef<{
|
|
135
|
+
[x: string]: boolean;
|
|
136
|
+
}>;
|
|
137
|
+
selectGrid: Ref<VxeGridInstance | null>;
|
|
138
|
+
data: {
|
|
139
|
+
url: string;
|
|
140
|
+
params: {
|
|
141
|
+
pageNo: number;
|
|
142
|
+
pageSize: number;
|
|
143
|
+
keyWord?: string | undefined;
|
|
144
|
+
total?: number | undefined;
|
|
145
|
+
align?: string | undefined;
|
|
146
|
+
pageSizes?: number[] | undefined;
|
|
147
|
+
layouts?: string[] | undefined;
|
|
148
|
+
perfect?: boolean | undefined;
|
|
149
|
+
};
|
|
150
|
+
modalLoading: boolean;
|
|
151
|
+
loading: boolean;
|
|
152
|
+
};
|
|
153
|
+
modalShow: Ref<boolean>;
|
|
154
|
+
modalConfigComputed: ComputedRef<any>;
|
|
155
|
+
tableConfigComputed: ComputedRef<any>;
|
|
156
|
+
tablePage: {
|
|
157
|
+
currentPage: number;
|
|
158
|
+
pageSize: number;
|
|
159
|
+
total?: number | undefined;
|
|
160
|
+
align?: string | undefined;
|
|
161
|
+
pageSizes?: number[] | undefined;
|
|
162
|
+
layouts?: string[] | undefined;
|
|
163
|
+
perfect?: boolean | undefined;
|
|
164
|
+
};
|
|
165
|
+
tableData: Ref<Record<string, unknown>[]>;
|
|
166
|
+
columns: Ref<{
|
|
167
|
+
type?: string | undefined;
|
|
168
|
+
field?: string | undefined;
|
|
169
|
+
title?: string | undefined;
|
|
170
|
+
align?: string | undefined;
|
|
171
|
+
fieldLabelI18nKey?: string | undefined;
|
|
172
|
+
width?: number | undefined;
|
|
173
|
+
}[]>;
|
|
174
|
+
form: {
|
|
175
|
+
keyWord: string;
|
|
176
|
+
};
|
|
177
|
+
selectModal: Ref<ModalType>;
|
|
178
|
+
getPagerConfig: ComputedRef<any>;
|
|
179
|
+
modalTitle: Ref<string>;
|
|
180
|
+
placeholder: Ref<string>;
|
|
181
|
+
open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
|
|
182
|
+
close: () => void;
|
|
183
|
+
onSearch: (keyWord: string) => void;
|
|
184
|
+
handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
|
|
185
|
+
selectedOk: () => void;
|
|
186
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
187
|
+
modalConfig: ModalConfig;
|
|
188
|
+
modalTitle: string;
|
|
189
|
+
apiUrls: string;
|
|
190
|
+
requestMethod: RequestMethod;
|
|
191
|
+
tableConfig: VxeTableProps<any>;
|
|
192
|
+
placeholder: string;
|
|
193
|
+
selectModal: ModalType;
|
|
194
|
+
}, {}, string> & {
|
|
195
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
196
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
197
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
198
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
199
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
200
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
201
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
202
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
203
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
204
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
205
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
206
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
207
|
+
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
208
|
+
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
209
|
+
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
210
|
+
};
|
|
211
|
+
$forceUpdate: () => void;
|
|
212
|
+
$nextTick: typeof nextTick;
|
|
213
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
214
|
+
} & Readonly<ExtractPropTypes<{
|
|
215
|
+
modalTitle: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
apiUrls: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
default: string;
|
|
222
|
+
};
|
|
223
|
+
requestMethod: {
|
|
224
|
+
type: PropType<RequestMethod>;
|
|
225
|
+
default: string;
|
|
226
|
+
};
|
|
227
|
+
modalConfig: {
|
|
228
|
+
type: PropType<ModalConfig>;
|
|
229
|
+
default: () => {};
|
|
230
|
+
};
|
|
231
|
+
tableConfig: {
|
|
232
|
+
type: PropType<VxeTableProps<any>>;
|
|
233
|
+
default: () => {
|
|
234
|
+
height: number;
|
|
235
|
+
isTree: boolean;
|
|
236
|
+
radioConfig: {};
|
|
237
|
+
checkboxConfig: {
|
|
238
|
+
highlight: boolean;
|
|
239
|
+
reserve: boolean;
|
|
240
|
+
trigger: string;
|
|
241
|
+
};
|
|
242
|
+
pagerConfig: {};
|
|
243
|
+
treeConfig: {};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
placeholder: {
|
|
247
|
+
type: StringConstructor;
|
|
248
|
+
default: string;
|
|
249
|
+
};
|
|
250
|
+
selectModal: {
|
|
251
|
+
type: PropType<ModalType>;
|
|
252
|
+
default: string;
|
|
253
|
+
};
|
|
254
|
+
}>> & ShallowUnwrapRef<{
|
|
255
|
+
classes: ComputedRef<{
|
|
256
|
+
[x: string]: boolean;
|
|
257
|
+
}>;
|
|
258
|
+
selectGrid: Ref<VxeGridInstance | null>;
|
|
259
|
+
data: {
|
|
260
|
+
url: string;
|
|
261
|
+
params: {
|
|
262
|
+
pageNo: number;
|
|
263
|
+
pageSize: number;
|
|
264
|
+
keyWord?: string | undefined;
|
|
265
|
+
total?: number | undefined;
|
|
266
|
+
align?: string | undefined;
|
|
267
|
+
pageSizes?: number[] | undefined;
|
|
268
|
+
layouts?: string[] | undefined;
|
|
269
|
+
perfect?: boolean | undefined;
|
|
270
|
+
};
|
|
271
|
+
modalLoading: boolean;
|
|
272
|
+
loading: boolean;
|
|
273
|
+
};
|
|
274
|
+
modalShow: Ref<boolean>;
|
|
275
|
+
modalConfigComputed: ComputedRef<any>;
|
|
276
|
+
tableConfigComputed: ComputedRef<any>;
|
|
277
|
+
tablePage: {
|
|
278
|
+
currentPage: number;
|
|
279
|
+
pageSize: number;
|
|
280
|
+
total?: number | undefined;
|
|
281
|
+
align?: string | undefined;
|
|
282
|
+
pageSizes?: number[] | undefined;
|
|
283
|
+
layouts?: string[] | undefined;
|
|
284
|
+
perfect?: boolean | undefined;
|
|
285
|
+
};
|
|
286
|
+
tableData: Ref<Record<string, unknown>[]>;
|
|
287
|
+
columns: Ref<{
|
|
288
|
+
type?: string | undefined;
|
|
289
|
+
field?: string | undefined;
|
|
290
|
+
title?: string | undefined;
|
|
291
|
+
align?: string | undefined;
|
|
292
|
+
fieldLabelI18nKey?: string | undefined;
|
|
293
|
+
width?: number | undefined;
|
|
294
|
+
}[]>;
|
|
295
|
+
form: {
|
|
296
|
+
keyWord: string;
|
|
297
|
+
};
|
|
298
|
+
selectModal: Ref<ModalType>;
|
|
299
|
+
getPagerConfig: ComputedRef<any>;
|
|
300
|
+
modalTitle: Ref<string>;
|
|
301
|
+
placeholder: Ref<string>;
|
|
302
|
+
open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
|
|
303
|
+
close: () => void;
|
|
304
|
+
onSearch: (keyWord: string) => void;
|
|
305
|
+
handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
|
|
306
|
+
selectedOk: () => void;
|
|
307
|
+
}> & {} & ComponentCustomProperties & {}) | undefined>;
|
|
308
|
+
openSelectModal: () => MessageType | undefined;
|
|
309
|
+
onChange: (checkedValues: RecordStringNumber[]) => void;
|
|
310
|
+
clearInputValue: () => void;
|
|
311
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
312
|
+
value: {
|
|
313
|
+
type: StringConstructor;
|
|
314
|
+
default: string;
|
|
315
|
+
};
|
|
316
|
+
config: {
|
|
317
|
+
type: PropType<Config>;
|
|
318
|
+
default: () => {};
|
|
319
|
+
};
|
|
320
|
+
onChange: {
|
|
321
|
+
type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
|
|
322
|
+
default: unknown;
|
|
323
|
+
};
|
|
324
|
+
}>>, {
|
|
325
|
+
value: string;
|
|
326
|
+
onChange: ((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[];
|
|
327
|
+
config: Config;
|
|
328
|
+
}>>;
|
|
329
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ComputedRef, PropType, ExtractPropTypes, SetupContext } from 'vue';
|
|
2
|
+
import type { FormFieldsItem, Payload, RecordStringNumber } from './../../edit-page-layout';
|
|
3
|
+
import type { ModalType, RequestMethod } from './../../field-select-modal/src/field-select-modal-types';
|
|
4
|
+
export { RecordStringNumber };
|
|
5
|
+
export interface Columns {
|
|
6
|
+
type?: string;
|
|
7
|
+
field?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
align?: string;
|
|
10
|
+
fieldLabelI18nKey?: string;
|
|
11
|
+
width?: number;
|
|
12
|
+
}
|
|
13
|
+
export type HandleBefore = (value?: RecordStringNumber) => Promise<string | boolean | void>;
|
|
14
|
+
export type ModalParams = Record<number | string, unknown> | ((value?: RecordStringNumber) => Record<number | string, unknown>);
|
|
15
|
+
export interface DefaultPayload {
|
|
16
|
+
ctx?: SetupContext;
|
|
17
|
+
value?: Payload;
|
|
18
|
+
}
|
|
19
|
+
export interface Extend {
|
|
20
|
+
current?: number;
|
|
21
|
+
modalColumns?: Columns[];
|
|
22
|
+
modalUrl?: string;
|
|
23
|
+
modalConfigs?: unknown[];
|
|
24
|
+
modalParams?: ModalParams;
|
|
25
|
+
selectModal?: ModalType;
|
|
26
|
+
requestMethod?: RequestMethod;
|
|
27
|
+
handleBefore?: HandleBefore;
|
|
28
|
+
}
|
|
29
|
+
export interface Config extends FormFieldsItem {
|
|
30
|
+
extend: Extend;
|
|
31
|
+
}
|
|
32
|
+
export declare const selectModalProps: {
|
|
33
|
+
value: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
config: {
|
|
38
|
+
type: PropType<Config>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
onChange: {
|
|
42
|
+
type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
|
|
43
|
+
default: unknown;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export type SelectModalProps = ExtractPropTypes<typeof selectModalProps>;
|
|
47
|
+
export interface UseSelectModalType {
|
|
48
|
+
classes: ComputedRef<{
|
|
49
|
+
[key: string]: string | boolean;
|
|
50
|
+
}>;
|
|
51
|
+
}
|