@qqt-product/ui 0.0.14 → 0.0.15
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/index.es.js +112024 -41701
- package/dist/index.umd.js +254 -15197
- package/dist/lib/components/audit-modal/index.d.ts +324 -0
- package/dist/lib/components/audit-modal/src/audit-modal-type.d.ts +65 -0
- package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +320 -0
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +675 -0
- package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +406 -0
- package/dist/lib/components/audit-modal/src/component/field-select-modal-types.d.ts +93 -0
- package/dist/lib/components/audit-modal/src/component/field-select-modal.vue.d.ts +163 -0
- package/dist/lib/components/audit-modal/src/component/use-field-select-modal.d.ts +6 -0
- package/dist/lib/components/audit-modal/src/hook/list-slot-hook.d.ts +16 -0
- package/dist/lib/components/audit-modal/src/hook/use-audit-config-hook.d.ts +6 -0
- package/dist/lib/components/audit-modal/src/hook/use-field-select-modal-hook.d.ts +9 -0
- package/dist/lib/components/card-list-layout/index.d.ts +8 -18
- package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +2 -2
- package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +2 -2
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +8 -18
- package/dist/lib/components/cascader/index.d.ts +10 -8
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +10 -8
- package/dist/lib/components/checkbox/index.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/dist/lib/components/{codeEditorModel/src/codeEditorModel.vue.d.ts → code-editor-model/src/code-editor-model.vue.d.ts} +40 -9
- package/dist/lib/components/countdown/index.d.ts +122 -0
- package/dist/lib/components/countdown/src/countdown-types.d.ts +87 -0
- package/dist/lib/components/countdown/src/countdown.d.ts +118 -0
- package/dist/lib/components/countdown/src/use-countdown.d.ts +2 -0
- package/dist/lib/components/coutdown/index.d.ts +3 -3
- package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +3 -3
- package/dist/lib/components/currency/index.d.ts +1 -1
- package/dist/lib/components/currency/src/currency.vue.d.ts +1 -1
- package/dist/lib/components/detail-form/index.d.ts +23 -2
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +23 -3
- package/dist/lib/components/detail-grid/index.d.ts +10 -6
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +9 -6
- package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +1 -1
- package/dist/lib/components/detail-page-layout/index.d.ts +20 -3
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +19 -3
- package/dist/lib/components/edit-form/index.d.ts +27 -2
- package/dist/lib/components/edit-form/src/edit-form-types.d.ts +4 -0
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +26 -2
- package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +7 -1
- package/dist/lib/components/edit-grid/index.d.ts +11 -6
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +10 -6
- package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +3 -3
- package/dist/lib/components/edit-page-layout/index.d.ts +19 -3
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +143 -22
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +19 -3
- package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
- package/dist/lib/components/editor/index.d.ts +22 -8
- package/dist/lib/components/editor/src/index.vue.d.ts +22 -8
- package/dist/lib/components/field-select-modal/index.d.ts +24 -8
- package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +9 -2
- package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +24 -8
- package/dist/lib/components/flow-view/index.d.ts +121 -0
- package/dist/lib/components/flow-view/src/flow-view-modal-types.d.ts +60 -0
- package/dist/lib/components/flow-view/src/flow-view.d.ts +118 -0
- package/dist/lib/components/flow-view/src/use-flow-view-modal.d.ts +2 -0
- package/dist/lib/components/import-modal/index.d.ts +90 -0
- package/dist/lib/components/import-modal/src/import-modal-types.d.ts +28 -0
- package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +86 -0
- package/dist/lib/components/index.d.ts +11 -2
- package/dist/lib/components/item-wrap/index.d.ts +3 -3
- package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +3 -3
- package/dist/lib/components/ladder-price/index.d.ts +58 -0
- package/dist/lib/components/ladder-price/src/LadderNotPriceModal.vue.d.ts +35 -0
- package/dist/lib/components/ladder-price/src/LadderPriceModal.vue.d.ts +38 -0
- package/dist/lib/components/ladder-price/src/ladder-not-price-modal-types.d.ts +16 -0
- package/dist/lib/components/ladder-price/src/ladder-price-modal-types.d.ts +15 -0
- package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +35 -0
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +55 -0
- package/dist/lib/components/ladder-price/src/use-ladder-not-price-modal.d.ts +6 -0
- package/dist/lib/components/ladder-price/src/use-ladder-price.d.ts +6 -0
- package/dist/lib/components/layout/src/types.d.ts +1 -0
- package/dist/lib/components/layout-anchor/index.d.ts +2 -1
- package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +2 -1
- package/dist/lib/components/layout-buttons/index.d.ts +2 -1
- package/dist/lib/components/layout-pattern/index.d.ts +12 -2
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +126 -15
- package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +46 -0
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +12 -2
- package/dist/lib/components/list-page-layout/index.d.ts +77 -15
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +2 -1
- package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +3 -1
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +10 -10
- package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +0 -2
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +6 -4
- package/dist/lib/components/list-page-layout/src/components/list-header/hooks/use-callback-hook.d.ts +3 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +4 -2
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +8 -2
- package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +14 -6
- package/dist/lib/components/list-page-layout/src/hooks/auth-button.d.ts +4 -0
- package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/hooks/list-slot-hook.d.ts +10 -4
- package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +8 -0
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +75 -14
- package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +59 -7
- package/dist/lib/components/list-page-layout/src/utils/gridConfig.d.ts +6 -21
- package/dist/lib/components/list-page-layout/src/utils/index.d.ts +2 -0
- package/dist/lib/components/page-layout/index.d.ts +2 -1
- package/dist/lib/components/page-layout/src/constant/buttons.d.ts +28 -2
- package/dist/lib/components/page-layout/src/constant/symbol.d.ts +35 -0
- package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +1 -1
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +19 -9
- package/dist/lib/components/radio/index.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +1 -1
- package/dist/lib/components/relation-graph/src/relation-graph-types.d.ts +23 -0
- package/dist/lib/components/remote-select/index.d.ts +30 -71
- package/dist/lib/components/remote-select/src/remote-select-types.d.ts +44 -28
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +31 -72
- package/dist/lib/components/sale-template/index.d.ts +99 -0
- package/dist/lib/components/sale-template/src/sale-template-types.d.ts +41 -0
- package/dist/lib/components/sale-template/src/sale-template.vue.d.ts +95 -0
- package/dist/lib/components/sale-template/src/use-sale-template.d.ts +2 -0
- package/dist/lib/components/select/index.d.ts +6 -6
- package/dist/lib/components/select/src/select-types.d.ts +5 -1
- package/dist/lib/components/select/src/select.vue.d.ts +6 -6
- package/dist/lib/components/select-modal/index.d.ts +54 -16
- package/dist/lib/components/select-modal/src/select-modal-types.d.ts +24 -4
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +54 -16
- package/dist/lib/components/select-template/index.d.ts +92 -0
- package/dist/lib/components/select-template/src/select-template-type.d.ts +32 -0
- package/dist/lib/components/select-template/src/select-template.vue.d.ts +88 -0
- package/dist/lib/components/tree-select/index.d.ts +8 -7
- package/dist/lib/components/tree-select/src/tree-select-types.d.ts +7 -1
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +8 -7
- package/dist/lib/components/upload-file/index.d.ts +15 -24
- package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +0 -1
- package/dist/lib/components/upload-file/src/upload-file-types.d.ts +14 -10
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +13 -23
- package/dist/lib/components/upload-file-vxe/index.d.ts +78 -0
- package/dist/lib/components/upload-file-vxe/src/upload-file-vxe-types.d.ts +38 -0
- package/dist/lib/components/upload-file-vxe/src/upload-file-vxe.vue.d.ts +75 -0
- package/dist/lib/components/upload-image/index.d.ts +3 -3
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +3 -3
- package/dist/lib/components/useChart/index.d.ts +11 -0
- package/dist/lib/components/useChart/lib.d.ts +2 -0
- package/dist/lib/components/useChart/types.d.ts +21 -0
- package/dist/lib/components/vxe-select/index.d.ts +24 -6
- package/dist/lib/components/vxe-select/src/vxe-select-types.d.ts +7 -1
- package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +24 -6
- package/dist/lib/index.d.ts +4 -1
- package/dist/lib/utils/event.d.ts +35 -2
- package/dist/style.css +1 -6
- package/package.json +24 -18
- package/dist/lib/components/codeEditorModel/index.d.ts +0 -93
- package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +0 -21
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import { RecordStringNumber } from '../../../edit-page-layout/src/edit-page-layout-types';
|
|
3
|
+
import { ObjectMap } from '../../../list-page-layout/src/list-page-layout-types';
|
|
4
|
+
import { Form } from '../audit-modal-type';
|
|
5
|
+
export default function useFieldSelectModal(formState: ObjectMap): {
|
|
6
|
+
fieldSelectModal: Ref<any>;
|
|
7
|
+
selectUsers: Ref<((btn: Form) => void) | null>;
|
|
8
|
+
tagSelectOk: Ref<(data: RecordStringNumber[]) => void>;
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VxeGridPropTypes, SizeType, VxePagerPropTypes, VxePagerEvents } from 'vxe-table';
|
|
2
|
-
import type { TabListItem, ListPageLayoutProps, GridColumn, ObjectMap, OptColumnListItem
|
|
2
|
+
import type { TabListItem, ListPageLayoutProps, GridColumn, ObjectMap, OptColumnListItem } from '../list-page-layout';
|
|
3
3
|
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
4
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
5
5
|
import QCardListLayout from './src/index.vue';
|
|
@@ -47,7 +47,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
47
47
|
enabled?: boolean | undefined;
|
|
48
48
|
slots?: any;
|
|
49
49
|
size?: SizeType | undefined;
|
|
50
|
-
layouts?: ("PrevJump" | "PrevPage" | "
|
|
50
|
+
layouts?: ("PrevJump" | "PrevPage" | "JumpNumber" | "NextPage" | "NextJump" | "Sizes" | "FullJump" | "PageCount" | "Total" | "Number" | "Jump")[] | undefined;
|
|
51
51
|
currentPage?: number | undefined;
|
|
52
52
|
loading?: boolean | undefined;
|
|
53
53
|
pageSize?: number | undefined;
|
|
@@ -77,18 +77,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
77
77
|
handleFinishFailed: () => void;
|
|
78
78
|
handleToggleCardMode: () => void;
|
|
79
79
|
pageChange: VxePagerEvents.PageChange;
|
|
80
|
+
tableData: Ref<ObjectMap[]>;
|
|
81
|
+
columns: Ref<GridColumn[]>;
|
|
80
82
|
tabsList: Ref<TabListItem[]>;
|
|
81
83
|
titleProp: Ref<string>;
|
|
82
|
-
columns: Ref<GridColumn[]>;
|
|
83
84
|
buttons: Ref<OptColumnListItem[]>;
|
|
84
|
-
tableData: Ref<ObjectMap[]>;
|
|
85
85
|
pagerConfig: Ref<VxeGridPropTypes.PagerConfig>;
|
|
86
|
-
listConfig: Ref<
|
|
87
|
-
loading: boolean;
|
|
88
|
-
extraListConfig: ObjectMap;
|
|
89
|
-
pageData: PageData;
|
|
90
|
-
apiUrls: ApiUrls;
|
|
91
|
-
}>;
|
|
86
|
+
listConfig: Ref<ListPageLayoutProps>;
|
|
92
87
|
queryConfig: Ref<Record<string, any>>;
|
|
93
88
|
showSidebar: Ref<boolean>;
|
|
94
89
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
@@ -129,18 +124,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
129
124
|
default: boolean;
|
|
130
125
|
};
|
|
131
126
|
}>>, {
|
|
127
|
+
tableData: ObjectMap[];
|
|
128
|
+
columns: GridColumn[];
|
|
132
129
|
tabsList: TabListItem[];
|
|
133
130
|
titleProp: string;
|
|
134
|
-
columns: GridColumn[];
|
|
135
131
|
buttons: OptColumnListItem[];
|
|
136
|
-
tableData: ObjectMap[];
|
|
137
132
|
pagerConfig: VxeGridPropTypes.PagerConfig;
|
|
138
|
-
listConfig:
|
|
139
|
-
loading: boolean;
|
|
140
|
-
extraListConfig: ObjectMap;
|
|
141
|
-
pageData: PageData;
|
|
142
|
-
apiUrls: ApiUrls;
|
|
143
|
-
};
|
|
133
|
+
listConfig: ListPageLayoutProps;
|
|
144
134
|
queryConfig: Record<string, any>;
|
|
145
135
|
showSidebar: boolean;
|
|
146
136
|
}, {}>>;
|
|
@@ -60,11 +60,11 @@ declare const _sfc_main: DefineComponent<{
|
|
|
60
60
|
};
|
|
61
61
|
}>>, {
|
|
62
62
|
title: string;
|
|
63
|
+
tableData: ObjectMap[];
|
|
64
|
+
columns: GridColumn[];
|
|
63
65
|
dataIndex: string;
|
|
64
66
|
titleProp: string;
|
|
65
|
-
columns: GridColumn[];
|
|
66
67
|
buttons: OptColumnListItem[];
|
|
67
|
-
tableData: ObjectMap[];
|
|
68
68
|
pagerConfig: Record<string, any>;
|
|
69
69
|
}, {}>;
|
|
70
70
|
export default _sfc_main;
|
|
@@ -33,10 +33,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
33
33
|
handleClick: (btn: cardItem, row: ObjectMap) => void;
|
|
34
34
|
handleExtendLink: (col: object, column: object) => void;
|
|
35
35
|
title: Ref<string>;
|
|
36
|
+
columns: Ref<GridColumn[]>;
|
|
36
37
|
dataIndex: Ref<string>;
|
|
37
38
|
item: Ref<Record<string, any>>;
|
|
38
39
|
titleProp: Ref<string>;
|
|
39
|
-
columns: Ref<GridColumn[]>;
|
|
40
40
|
buttons: Ref<OptColumnListItem[]>;
|
|
41
41
|
localButtons: ComputedRef<OptColumnListItem[]>;
|
|
42
42
|
extraColumns: ComputedRef<GridColumn[]>;
|
|
@@ -70,10 +70,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
70
70
|
};
|
|
71
71
|
}>>, {
|
|
72
72
|
title: string;
|
|
73
|
+
columns: GridColumn[];
|
|
73
74
|
dataIndex: string;
|
|
74
75
|
item: Record<string, any>;
|
|
75
76
|
titleProp: string;
|
|
76
|
-
columns: GridColumn[];
|
|
77
77
|
buttons: OptColumnListItem[];
|
|
78
78
|
}, {}>;
|
|
79
79
|
export default _sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { SizeType, VxePagerPropTypes, VxeGridPropTypes, VxePagerEvents } from 'vxe-table';
|
|
3
|
-
import
|
|
3
|
+
import { ListPageLayoutProps, GridColumn, ObjectMap, OptColumnListItem, TabListItem } from '../../list-page-layout';
|
|
4
4
|
declare const _sfc_main: DefineComponent<{
|
|
5
5
|
titleProp: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -44,7 +44,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
44
44
|
enabled?: boolean | undefined;
|
|
45
45
|
slots?: any;
|
|
46
46
|
size?: SizeType | undefined;
|
|
47
|
-
layouts?: ("PrevJump" | "PrevPage" | "
|
|
47
|
+
layouts?: ("PrevJump" | "PrevPage" | "JumpNumber" | "NextPage" | "NextJump" | "Sizes" | "FullJump" | "PageCount" | "Total" | "Number" | "Jump")[] | undefined;
|
|
48
48
|
currentPage?: number | undefined;
|
|
49
49
|
loading?: boolean | undefined;
|
|
50
50
|
pageSize?: number | undefined;
|
|
@@ -74,18 +74,13 @@ declare const _sfc_main: DefineComponent<{
|
|
|
74
74
|
handleFinishFailed: () => void;
|
|
75
75
|
handleToggleCardMode: () => void;
|
|
76
76
|
pageChange: VxePagerEvents.PageChange;
|
|
77
|
+
tableData: Ref<ObjectMap[]>;
|
|
78
|
+
columns: Ref<GridColumn[]>;
|
|
77
79
|
tabsList: Ref<TabListItem[]>;
|
|
78
80
|
titleProp: Ref<string>;
|
|
79
|
-
columns: Ref<GridColumn[]>;
|
|
80
81
|
buttons: Ref<OptColumnListItem[]>;
|
|
81
|
-
tableData: Ref<ObjectMap[]>;
|
|
82
82
|
pagerConfig: Ref<VxeGridPropTypes.PagerConfig>;
|
|
83
|
-
listConfig: Ref<
|
|
84
|
-
loading: boolean;
|
|
85
|
-
extraListConfig: ObjectMap;
|
|
86
|
-
pageData: PageData;
|
|
87
|
-
apiUrls: ApiUrls;
|
|
88
|
-
}>;
|
|
83
|
+
listConfig: Ref<ListPageLayoutProps>;
|
|
89
84
|
queryConfig: Ref<Record<string, any>>;
|
|
90
85
|
showSidebar: Ref<boolean>;
|
|
91
86
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
@@ -126,18 +121,13 @@ declare const _sfc_main: DefineComponent<{
|
|
|
126
121
|
default: boolean;
|
|
127
122
|
};
|
|
128
123
|
}>>, {
|
|
124
|
+
tableData: ObjectMap[];
|
|
125
|
+
columns: GridColumn[];
|
|
129
126
|
tabsList: TabListItem[];
|
|
130
127
|
titleProp: string;
|
|
131
|
-
columns: GridColumn[];
|
|
132
128
|
buttons: OptColumnListItem[];
|
|
133
|
-
tableData: ObjectMap[];
|
|
134
129
|
pagerConfig: VxeGridPropTypes.PagerConfig;
|
|
135
|
-
listConfig:
|
|
136
|
-
loading: boolean;
|
|
137
|
-
extraListConfig: ObjectMap;
|
|
138
|
-
pageData: PageData;
|
|
139
|
-
apiUrls: ApiUrls;
|
|
140
|
-
};
|
|
130
|
+
listConfig: ListPageLayoutProps;
|
|
141
131
|
queryConfig: Record<string, any>;
|
|
142
132
|
showSidebar: boolean;
|
|
143
133
|
}, {}>;
|
|
@@ -38,13 +38,15 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
38
38
|
[key: string]: string | boolean;
|
|
39
39
|
}>;
|
|
40
40
|
realValue: Ref<string[]>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
label?: unknown;
|
|
44
|
-
disabled?: boolean | undefined;
|
|
45
|
-
children?: any[] | undefined;
|
|
41
|
+
optionList: Ref<{
|
|
42
|
+
[x: string]: any;
|
|
46
43
|
isLeaf?: boolean | undefined;
|
|
47
|
-
|
|
44
|
+
loading?: boolean | undefined;
|
|
45
|
+
children?: any[] | undefined;
|
|
46
|
+
label?: any;
|
|
47
|
+
value?: string | number | null | undefined;
|
|
48
|
+
disabled?: boolean | undefined;
|
|
49
|
+
}[] | undefined>;
|
|
48
50
|
onChange: (value: string) => void;
|
|
49
51
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
50
52
|
readonly value: {
|
|
@@ -79,12 +81,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
79
81
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
80
82
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
81
83
|
}, {
|
|
84
|
+
readonly busAccount: string;
|
|
85
|
+
readonly placeholder: string;
|
|
82
86
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
83
87
|
readonly value: string;
|
|
84
88
|
readonly options: CascaderOptionType[] | undefined;
|
|
85
89
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
86
|
-
readonly placeholder: string;
|
|
87
|
-
readonly busAccount: string;
|
|
88
90
|
readonly dictCode: string;
|
|
89
91
|
}, {}>>;
|
|
90
92
|
export default _default;
|
|
@@ -34,13 +34,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
34
34
|
[key: string]: string | boolean;
|
|
35
35
|
}>;
|
|
36
36
|
realValue: Ref<string[]>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
label?: unknown;
|
|
40
|
-
disabled?: boolean | undefined;
|
|
41
|
-
children?: any[] | undefined;
|
|
37
|
+
optionList: Ref<{
|
|
38
|
+
[x: string]: any;
|
|
42
39
|
isLeaf?: boolean | undefined;
|
|
43
|
-
|
|
40
|
+
loading?: boolean | undefined;
|
|
41
|
+
children?: any[] | undefined;
|
|
42
|
+
label?: any;
|
|
43
|
+
value?: string | number | null | undefined;
|
|
44
|
+
disabled?: boolean | undefined;
|
|
45
|
+
}[] | undefined>;
|
|
44
46
|
onChange: (value: string) => void;
|
|
45
47
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
46
48
|
readonly value: {
|
|
@@ -75,12 +77,12 @@ declare const _sfc_main: DefineComponent<{
|
|
|
75
77
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
76
78
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
77
79
|
}, {
|
|
80
|
+
readonly busAccount: string;
|
|
81
|
+
readonly placeholder: string;
|
|
78
82
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
79
83
|
readonly value: string;
|
|
80
84
|
readonly options: CascaderOptionType[] | undefined;
|
|
81
85
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
82
|
-
readonly placeholder: string;
|
|
83
|
-
readonly busAccount: string;
|
|
84
86
|
readonly dictCode: string;
|
|
85
87
|
}, {}>;
|
|
86
88
|
export default _sfc_main;
|
|
@@ -99,12 +99,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
99
99
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
}, {
|
|
102
|
+
readonly busAccount: string;
|
|
102
103
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
103
104
|
readonly value: string;
|
|
104
105
|
readonly options: Option[];
|
|
105
106
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
106
107
|
readonly required: "0" | "1";
|
|
107
|
-
readonly busAccount: string;
|
|
108
108
|
readonly dictCode: string;
|
|
109
109
|
readonly isLayout: boolean;
|
|
110
110
|
readonly colSpan: string;
|
|
@@ -95,12 +95,12 @@ declare const _sfc_main: DefineComponent<{
|
|
|
95
95
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
96
96
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
97
97
|
}, {
|
|
98
|
+
readonly busAccount: string;
|
|
98
99
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
99
100
|
readonly value: string;
|
|
100
101
|
readonly options: Option[];
|
|
101
102
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
102
103
|
readonly required: "0" | "1";
|
|
103
|
-
readonly busAccount: string;
|
|
104
104
|
readonly dictCode: string;
|
|
105
105
|
readonly isLayout: boolean;
|
|
106
106
|
readonly colSpan: string;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
|
-
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import type { LanguageSupport } from '@codemirror/language';
|
|
4
|
+
interface mixButtonType extends Array<string> {
|
|
5
|
+
name: string;
|
|
6
|
+
key: string;
|
|
7
|
+
arrts: {
|
|
8
|
+
type: 'primary';
|
|
9
|
+
};
|
|
10
|
+
callback: (params: string) => void;
|
|
11
|
+
}
|
|
3
12
|
declare const _sfc_main: DefineComponent<{
|
|
13
|
+
editorModalFlag: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
4
17
|
value: {
|
|
5
18
|
type: StringConstructor;
|
|
6
19
|
default: string;
|
|
@@ -27,10 +40,14 @@ declare const _sfc_main: DefineComponent<{
|
|
|
27
40
|
type: StringConstructor;
|
|
28
41
|
default: string;
|
|
29
42
|
};
|
|
43
|
+
customButton: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
30
47
|
}, {
|
|
31
48
|
code: Ref<string>;
|
|
32
|
-
|
|
33
|
-
editorOption:
|
|
49
|
+
visible: Ref<boolean>;
|
|
50
|
+
editorOption: {
|
|
34
51
|
disabled: boolean;
|
|
35
52
|
indentWithTab: boolean;
|
|
36
53
|
tabSize: number;
|
|
@@ -40,16 +57,23 @@ declare const _sfc_main: DefineComponent<{
|
|
|
40
57
|
phrases: {
|
|
41
58
|
Completions: string;
|
|
42
59
|
};
|
|
43
|
-
}
|
|
60
|
+
};
|
|
44
61
|
oneDark: Extension;
|
|
45
62
|
handleSureClick: () => void;
|
|
46
|
-
|
|
63
|
+
handleSureClose: () => void;
|
|
47
64
|
handleToOpenMode: () => void;
|
|
48
|
-
|
|
65
|
+
vattrs: Ref<{
|
|
49
66
|
[x: string]: unknown;
|
|
50
67
|
}>;
|
|
51
68
|
extensions: Extension[];
|
|
52
|
-
|
|
69
|
+
mixButton: ComputedRef<mixButtonType[]>;
|
|
70
|
+
jsLang: LanguageSupport;
|
|
71
|
+
handleToOpenValueMode: (val: string) => void;
|
|
72
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "handleSureClick" | "handleSureClose" | "update:editorModalFlag")[], "update:value" | "handleSureClick" | "handleSureClose" | "update:editorModalFlag", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
73
|
+
editorModalFlag: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
53
77
|
value: {
|
|
54
78
|
type: StringConstructor;
|
|
55
79
|
default: string;
|
|
@@ -76,15 +100,22 @@ declare const _sfc_main: DefineComponent<{
|
|
|
76
100
|
type: StringConstructor;
|
|
77
101
|
default: string;
|
|
78
102
|
};
|
|
103
|
+
customButton: {
|
|
104
|
+
type: ArrayConstructor;
|
|
105
|
+
default: () => never[];
|
|
106
|
+
};
|
|
79
107
|
}>> & {
|
|
80
108
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
81
109
|
onHandleSureClick?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
|
|
110
|
+
onHandleSureClose?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
"onUpdate:editorModalFlag"?: ((...args: any[]) => any) | undefined;
|
|
83
112
|
}, {
|
|
113
|
+
disabled: boolean;
|
|
84
114
|
value: string;
|
|
85
115
|
options: Record<string, any>;
|
|
86
|
-
|
|
116
|
+
editorModalFlag: boolean;
|
|
87
117
|
isAllowToOpenMode: boolean;
|
|
88
118
|
showLabel: string;
|
|
119
|
+
customButton: unknown[];
|
|
89
120
|
}, {}>;
|
|
90
121
|
export default _sfc_main;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { Map } from '@qqt-product/api';
|
|
2
|
+
import type { intervalValidator, ProgressParams } from './src/countdown-types';
|
|
3
|
+
import type { DefineComponent, PropType, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
5
|
+
import QCountdown from './src/countdown';
|
|
6
|
+
export * from './src/countdown-types';
|
|
7
|
+
export { QCountdown };
|
|
8
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
9
|
+
readonly autoStart: {
|
|
10
|
+
readonly type: BooleanConstructor;
|
|
11
|
+
readonly default: true;
|
|
12
|
+
};
|
|
13
|
+
readonly emitEvents: {
|
|
14
|
+
readonly type: BooleanConstructor;
|
|
15
|
+
readonly default: true;
|
|
16
|
+
};
|
|
17
|
+
readonly interval: {
|
|
18
|
+
readonly type: NumberConstructor;
|
|
19
|
+
readonly default: 1000;
|
|
20
|
+
readonly validator: typeof intervalValidator;
|
|
21
|
+
};
|
|
22
|
+
readonly now: {
|
|
23
|
+
readonly type: PropType<() => Promise<Map>>;
|
|
24
|
+
readonly default: null;
|
|
25
|
+
};
|
|
26
|
+
readonly tag: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "span";
|
|
29
|
+
};
|
|
30
|
+
readonly time: {
|
|
31
|
+
readonly type: NumberConstructor;
|
|
32
|
+
readonly default: 0;
|
|
33
|
+
readonly validator: typeof intervalValidator;
|
|
34
|
+
};
|
|
35
|
+
readonly transform: {
|
|
36
|
+
readonly type: PropType<(<T>(props: T) => T)>;
|
|
37
|
+
readonly default: <T_1>(props: T_1) => T_1;
|
|
38
|
+
};
|
|
39
|
+
readonly start: {
|
|
40
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
41
|
+
default: unknown;
|
|
42
|
+
};
|
|
43
|
+
readonly progress: {
|
|
44
|
+
type: PropType<((params: ProgressParams) => void) | ((params: ProgressParams) => void)[]>;
|
|
45
|
+
default: unknown;
|
|
46
|
+
};
|
|
47
|
+
readonly abort: {
|
|
48
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
49
|
+
default: unknown;
|
|
50
|
+
};
|
|
51
|
+
readonly end: {
|
|
52
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
53
|
+
default: unknown;
|
|
54
|
+
};
|
|
55
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("start" | "progress" | "abort" | "end")[], "start" | "progress" | "abort" | "end", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
58
|
+
readonly autoStart: {
|
|
59
|
+
readonly type: BooleanConstructor;
|
|
60
|
+
readonly default: true;
|
|
61
|
+
};
|
|
62
|
+
readonly emitEvents: {
|
|
63
|
+
readonly type: BooleanConstructor;
|
|
64
|
+
readonly default: true;
|
|
65
|
+
};
|
|
66
|
+
readonly interval: {
|
|
67
|
+
readonly type: NumberConstructor;
|
|
68
|
+
readonly default: 1000;
|
|
69
|
+
readonly validator: typeof intervalValidator;
|
|
70
|
+
};
|
|
71
|
+
readonly now: {
|
|
72
|
+
readonly type: PropType<() => Promise<Map>>;
|
|
73
|
+
readonly default: null;
|
|
74
|
+
};
|
|
75
|
+
readonly tag: {
|
|
76
|
+
readonly type: StringConstructor;
|
|
77
|
+
readonly default: "span";
|
|
78
|
+
};
|
|
79
|
+
readonly time: {
|
|
80
|
+
readonly type: NumberConstructor;
|
|
81
|
+
readonly default: 0;
|
|
82
|
+
readonly validator: typeof intervalValidator;
|
|
83
|
+
};
|
|
84
|
+
readonly transform: {
|
|
85
|
+
readonly type: PropType<(<T>(props: T) => T)>;
|
|
86
|
+
readonly default: <T_1>(props: T_1) => T_1;
|
|
87
|
+
};
|
|
88
|
+
readonly start: {
|
|
89
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
90
|
+
default: unknown;
|
|
91
|
+
};
|
|
92
|
+
readonly progress: {
|
|
93
|
+
type: PropType<((params: ProgressParams) => void) | ((params: ProgressParams) => void)[]>;
|
|
94
|
+
default: unknown;
|
|
95
|
+
};
|
|
96
|
+
readonly abort: {
|
|
97
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
98
|
+
default: unknown;
|
|
99
|
+
};
|
|
100
|
+
readonly end: {
|
|
101
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
102
|
+
default: unknown;
|
|
103
|
+
};
|
|
104
|
+
}>> & {
|
|
105
|
+
onAbort?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
onProgress?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
readonly start: (() => void) | (() => void)[];
|
|
111
|
+
readonly progress: ((params: ProgressParams) => void) | ((params: ProgressParams) => void)[];
|
|
112
|
+
readonly abort: (() => void) | (() => void)[];
|
|
113
|
+
readonly end: (() => void) | (() => void)[];
|
|
114
|
+
readonly autoStart: boolean;
|
|
115
|
+
readonly emitEvents: boolean;
|
|
116
|
+
readonly interval: number;
|
|
117
|
+
readonly now: () => Promise<Map>;
|
|
118
|
+
readonly tag: string;
|
|
119
|
+
readonly time: number;
|
|
120
|
+
readonly transform: <T>(props: T) => T;
|
|
121
|
+
}, {}>>;
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { Map } from '@qqt-product/api';
|
|
3
|
+
export interface ProgressParams {
|
|
4
|
+
days: number;
|
|
5
|
+
hours: number;
|
|
6
|
+
minutes: number;
|
|
7
|
+
seconds: number;
|
|
8
|
+
milliseconds: number;
|
|
9
|
+
totalDays: number;
|
|
10
|
+
totalHours: number;
|
|
11
|
+
totalMinutes: number;
|
|
12
|
+
totalSeconds: number;
|
|
13
|
+
totalMilliseconds: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function intervalValidator(n: number): boolean;
|
|
16
|
+
export declare const countdownProps: {
|
|
17
|
+
/**
|
|
18
|
+
* Starts the countdown automatically when initialized.
|
|
19
|
+
*/
|
|
20
|
+
readonly autoStart: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: true;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Emits the countdown events.
|
|
26
|
+
*/
|
|
27
|
+
readonly emitEvents: {
|
|
28
|
+
readonly type: BooleanConstructor;
|
|
29
|
+
readonly default: true;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The interval time (in milliseconds) of the countdown progress.
|
|
33
|
+
*/
|
|
34
|
+
readonly interval: {
|
|
35
|
+
readonly type: NumberConstructor;
|
|
36
|
+
readonly default: 1000;
|
|
37
|
+
readonly validator: typeof intervalValidator;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Generate the current time of a specific time zone.
|
|
41
|
+
*/
|
|
42
|
+
readonly now: {
|
|
43
|
+
readonly type: PropType<() => Promise<Map>>;
|
|
44
|
+
readonly default: null;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* The tag name of the component's root element.
|
|
48
|
+
*/
|
|
49
|
+
readonly tag: {
|
|
50
|
+
readonly type: StringConstructor;
|
|
51
|
+
readonly default: "span";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The time (in milliseconds) to count down from.
|
|
55
|
+
*/
|
|
56
|
+
readonly time: {
|
|
57
|
+
readonly type: NumberConstructor;
|
|
58
|
+
readonly default: 0;
|
|
59
|
+
readonly validator: typeof intervalValidator;
|
|
60
|
+
};
|
|
61
|
+
readonly transform: {
|
|
62
|
+
readonly type: PropType<(<T>(props: T) => T)>;
|
|
63
|
+
readonly default: <T_1>(props: T_1) => T_1;
|
|
64
|
+
};
|
|
65
|
+
readonly start: {
|
|
66
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
67
|
+
default: unknown;
|
|
68
|
+
};
|
|
69
|
+
readonly progress: {
|
|
70
|
+
type: PropType<((params: ProgressParams) => void) | ((params: ProgressParams) => void)[]>;
|
|
71
|
+
default: unknown;
|
|
72
|
+
};
|
|
73
|
+
readonly abort: {
|
|
74
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
75
|
+
default: unknown;
|
|
76
|
+
};
|
|
77
|
+
readonly end: {
|
|
78
|
+
type: PropType<(() => void) | (() => void)[]>;
|
|
79
|
+
default: unknown;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export type CountdownProps = ExtractPropTypes<typeof countdownProps>;
|
|
83
|
+
export interface UseCountdownReturnType {
|
|
84
|
+
classes: ComputedRef<{
|
|
85
|
+
[key: string]: string | boolean;
|
|
86
|
+
}>;
|
|
87
|
+
}
|