@qqt-product/ui 0.0.13 → 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 +123349 -77525
- package/dist/index.umd.js +254 -15296
- 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/breadcrumb/index.d.ts +1 -1
- package/dist/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +1 -1
- 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 +3 -3
- package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +5 -5
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +8 -18
- package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +1 -1
- package/dist/lib/components/cascader/index.d.ts +12 -10
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +12 -10
- package/dist/lib/components/checkbox/index.d.ts +6 -6
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +6 -6
- package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +121 -0
- package/dist/lib/components/collapse-transition/index.d.ts +1 -1
- package/dist/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
- 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 +4 -14
- package/dist/lib/components/coutdown/src/coutdown.d.ts +0 -8
- package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +4 -22
- package/dist/lib/components/currency/index.d.ts +2 -2
- package/dist/lib/components/currency/src/currency.vue.d.ts +2 -2
- package/dist/lib/components/detail-form/index.d.ts +27 -6
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +27 -7
- package/dist/lib/components/detail-grid/index.d.ts +337 -288
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +336 -288
- package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +2 -2
- package/dist/lib/components/detail-page-layout/index.d.ts +21 -4
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +20 -4
- package/dist/lib/components/edit-form/index.d.ts +31 -6
- 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 +30 -6
- package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +7 -1
- package/dist/lib/components/edit-grid/index.d.ts +338 -289
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +2 -2
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +337 -289
- package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +4 -4
- package/dist/lib/components/edit-page-layout/index.d.ts +20 -4
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +151 -26
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +20 -4
- package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
- package/dist/lib/components/editor/index.d.ts +23 -9
- package/dist/lib/components/editor/src/index.vue.d.ts +23 -9
- package/dist/lib/components/field-select-modal/index.d.ts +29 -13
- package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +11 -4
- package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +29 -13
- 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 +4 -4
- package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +4 -4
- 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/index.d.ts +2 -2
- package/dist/lib/components/layout/src/header/index.vue.d.ts +11 -11
- package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +2 -2
- package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +9 -9
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +4 -4
- package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +2 -2
- package/dist/lib/components/layout/src/index.vue.d.ts +2 -2
- package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/menu/menu.vue.d.ts +2 -2
- package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +2 -2
- package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +2 -2
- package/dist/lib/components/layout/src/sider/search.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/types.d.ts +1 -0
- package/dist/lib/components/layout-anchor/index.d.ts +3 -2
- package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +3 -2
- package/dist/lib/components/layout-buttons/index.d.ts +5 -4
- package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +3 -3
- package/dist/lib/components/layout-pattern/index.d.ts +13 -3
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +156 -7
- 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 +13 -3
- package/dist/lib/components/list-page-layout/index.d.ts +80 -18
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +25 -24
- package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/help-text-modal/help-text-modal.vue.d.ts +1 -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 +646 -556
- package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +1 -3
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +14 -12
- package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +1 -1
- 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 +5 -3
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +9 -3
- package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +2 -1
- 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/components/list-header/module/tabs/index.vue.d.ts +1 -1
- 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 +78 -17
- package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +62 -10
- package/dist/lib/components/list-page-layout/src/tokens.d.ts +2 -2
- 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 +3 -2
- 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/page-layout/src/page-layout.vue.d.ts +1 -1
- package/dist/lib/components/radio/index.d.ts +6 -6
- package/dist/lib/components/radio/src/radio.vue.d.ts +6 -6
- package/dist/lib/components/relation-graph/src/relation-graph-types.d.ts +23 -0
- package/dist/lib/components/remote-select/index.d.ts +31 -72
- 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 +32 -73
- 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 +9 -9
- package/dist/lib/components/select/src/select-types.d.ts +5 -1
- package/dist/lib/components/select/src/select.vue.d.ts +9 -9
- package/dist/lib/components/select-modal/index.d.ts +118 -76
- 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 +118 -76
- 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/switch/index.d.ts +2 -2
- package/dist/lib/components/switch/src/switch.vue.d.ts +2 -2
- package/dist/lib/components/tree-select/index.d.ts +10 -9
- 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 +10 -9
- package/dist/lib/components/upload-file/index.d.ts +30 -31
- package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +29 -16
- package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +1 -1
- package/dist/lib/components/upload-file/src/upload-file-types.d.ts +19 -28
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +28 -29
- 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 +5 -3
- package/dist/lib/utils/event.d.ts +35 -2
- package/dist/style.css +1 -6
- package/package.json +35 -29
- package/dist/components/ComponentsDemo.vue.d.ts +0 -13
- package/dist/components/EditPage.vue.d.ts +0 -6011
- package/dist/components/PreviewList.vue.d.ts +0 -218
- package/dist/components/hook/use-field-select-modal-hook.d.ts +0 -288
- package/dist/components/login.vue.d.ts +0 -19
- package/dist/components/mock.d.ts +0 -260
- package/dist/components/mockList.d.ts +0 -44
- package/dist/lib/components/codeEditorModel/index.d.ts +0 -187
- package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +0 -184
- package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +0 -21
- package/dist/lib/components/upload-file/src/hook/use-operation-column-hook.d.ts +0 -15
- package/dist/router/index.d.ts +0 -4
- package/dist/stores/user.d.ts +0 -25
- package/dist/utils/qApiPlugin.d.ts +0 -6
- package/dist/views/dashboard/workspace.vue.d.ts +0 -6972
|
@@ -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
|
+
};
|
|
@@ -6,5 +6,5 @@ export { QBreadcrumb };
|
|
|
6
6
|
declare const _default: SFCWithInstall<DefineComponent<{}, {
|
|
7
7
|
name: ComputedRef<RouteRecordName | null | undefined>;
|
|
8
8
|
breadList: ComputedRef<RouteLocationMatched[]>;
|
|
9
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>>;
|
|
9
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>>;
|
|
10
10
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, A
|
|
|
3
3
|
declare const _sfc_main: DefineComponent<{}, {
|
|
4
4
|
name: ComputedRef<RouteRecordName | null | undefined>;
|
|
5
5
|
breadList: ComputedRef<RouteLocationMatched[]>;
|
|
6
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
|
|
6
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
7
7
|
export default _sfc_main;
|
|
@@ -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';
|
|
@@ -79,17 +79,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
79
79
|
pageChange: VxePagerEvents.PageChange;
|
|
80
80
|
tableData: Ref<ObjectMap[]>;
|
|
81
81
|
columns: Ref<GridColumn[]>;
|
|
82
|
+
tabsList: Ref<TabListItem[]>;
|
|
83
|
+
titleProp: Ref<string>;
|
|
82
84
|
buttons: Ref<OptColumnListItem[]>;
|
|
83
85
|
pagerConfig: Ref<VxeGridPropTypes.PagerConfig>;
|
|
86
|
+
listConfig: Ref<ListPageLayoutProps>;
|
|
84
87
|
queryConfig: Ref<Record<string, any>>;
|
|
85
|
-
tabsList: Ref<TabListItem[]>;
|
|
86
|
-
titleProp: Ref<string>;
|
|
87
|
-
listConfig: Ref<{
|
|
88
|
-
pageData: PageData;
|
|
89
|
-
apiUrls: ApiUrls;
|
|
90
|
-
loading: boolean;
|
|
91
|
-
extraListConfig: ObjectMap;
|
|
92
|
-
}>;
|
|
93
88
|
showSidebar: Ref<boolean>;
|
|
94
89
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
95
90
|
titleProp: {
|
|
@@ -131,17 +126,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
131
126
|
}>>, {
|
|
132
127
|
tableData: ObjectMap[];
|
|
133
128
|
columns: GridColumn[];
|
|
129
|
+
tabsList: TabListItem[];
|
|
130
|
+
titleProp: string;
|
|
134
131
|
buttons: OptColumnListItem[];
|
|
135
132
|
pagerConfig: VxeGridPropTypes.PagerConfig;
|
|
133
|
+
listConfig: ListPageLayoutProps;
|
|
136
134
|
queryConfig: Record<string, any>;
|
|
137
|
-
tabsList: TabListItem[];
|
|
138
|
-
titleProp: string;
|
|
139
|
-
listConfig: {
|
|
140
|
-
pageData: PageData;
|
|
141
|
-
apiUrls: ApiUrls;
|
|
142
|
-
loading: boolean;
|
|
143
|
-
extraListConfig: ObjectMap;
|
|
144
|
-
};
|
|
145
135
|
showSidebar: boolean;
|
|
146
|
-
}>>;
|
|
136
|
+
}, {}>>;
|
|
147
137
|
export default _default;
|
|
@@ -62,9 +62,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
62
62
|
title: string;
|
|
63
63
|
tableData: ObjectMap[];
|
|
64
64
|
columns: GridColumn[];
|
|
65
|
-
buttons: OptColumnListItem[];
|
|
66
|
-
pagerConfig: Record<string, any>;
|
|
67
65
|
dataIndex: string;
|
|
68
66
|
titleProp: string;
|
|
69
|
-
|
|
67
|
+
buttons: OptColumnListItem[];
|
|
68
|
+
pagerConfig: Record<string, any>;
|
|
69
|
+
}, {}>;
|
|
70
70
|
export default _sfc_main;
|
|
@@ -32,12 +32,12 @@ declare const _sfc_main: DefineComponent<{
|
|
|
32
32
|
getAuthCodeBtns: (btns: OptColumnListItem[]) => OptColumnListItem[];
|
|
33
33
|
handleClick: (btn: cardItem, row: ObjectMap) => void;
|
|
34
34
|
handleExtendLink: (col: object, column: object) => void;
|
|
35
|
-
item: Ref<Record<string, any>>;
|
|
36
35
|
title: Ref<string>;
|
|
37
36
|
columns: Ref<GridColumn[]>;
|
|
38
|
-
buttons: Ref<OptColumnListItem[]>;
|
|
39
37
|
dataIndex: Ref<string>;
|
|
38
|
+
item: Ref<Record<string, any>>;
|
|
40
39
|
titleProp: Ref<string>;
|
|
40
|
+
buttons: Ref<OptColumnListItem[]>;
|
|
41
41
|
localButtons: ComputedRef<OptColumnListItem[]>;
|
|
42
42
|
extraColumns: ComputedRef<GridColumn[]>;
|
|
43
43
|
localColumns: ComputedRef<GridColumn[]>;
|
|
@@ -69,11 +69,11 @@ declare const _sfc_main: DefineComponent<{
|
|
|
69
69
|
default(): never[];
|
|
70
70
|
};
|
|
71
71
|
}>>, {
|
|
72
|
-
item: Record<string, any>;
|
|
73
72
|
title: string;
|
|
74
73
|
columns: GridColumn[];
|
|
75
|
-
buttons: OptColumnListItem[];
|
|
76
74
|
dataIndex: string;
|
|
75
|
+
item: Record<string, any>;
|
|
77
76
|
titleProp: string;
|
|
78
|
-
|
|
77
|
+
buttons: OptColumnListItem[];
|
|
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;
|
|
@@ -76,17 +76,12 @@ declare const _sfc_main: DefineComponent<{
|
|
|
76
76
|
pageChange: VxePagerEvents.PageChange;
|
|
77
77
|
tableData: Ref<ObjectMap[]>;
|
|
78
78
|
columns: Ref<GridColumn[]>;
|
|
79
|
+
tabsList: Ref<TabListItem[]>;
|
|
80
|
+
titleProp: Ref<string>;
|
|
79
81
|
buttons: Ref<OptColumnListItem[]>;
|
|
80
82
|
pagerConfig: Ref<VxeGridPropTypes.PagerConfig>;
|
|
83
|
+
listConfig: Ref<ListPageLayoutProps>;
|
|
81
84
|
queryConfig: Ref<Record<string, any>>;
|
|
82
|
-
tabsList: Ref<TabListItem[]>;
|
|
83
|
-
titleProp: Ref<string>;
|
|
84
|
-
listConfig: Ref<{
|
|
85
|
-
pageData: PageData;
|
|
86
|
-
apiUrls: ApiUrls;
|
|
87
|
-
loading: boolean;
|
|
88
|
-
extraListConfig: ObjectMap;
|
|
89
|
-
}>;
|
|
90
85
|
showSidebar: Ref<boolean>;
|
|
91
86
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
92
87
|
titleProp: {
|
|
@@ -128,17 +123,12 @@ declare const _sfc_main: DefineComponent<{
|
|
|
128
123
|
}>>, {
|
|
129
124
|
tableData: ObjectMap[];
|
|
130
125
|
columns: GridColumn[];
|
|
126
|
+
tabsList: TabListItem[];
|
|
127
|
+
titleProp: string;
|
|
131
128
|
buttons: OptColumnListItem[];
|
|
132
129
|
pagerConfig: VxeGridPropTypes.PagerConfig;
|
|
130
|
+
listConfig: ListPageLayoutProps;
|
|
133
131
|
queryConfig: Record<string, any>;
|
|
134
|
-
tabsList: TabListItem[];
|
|
135
|
-
titleProp: string;
|
|
136
|
-
listConfig: {
|
|
137
|
-
pageData: PageData;
|
|
138
|
-
apiUrls: ApiUrls;
|
|
139
|
-
loading: boolean;
|
|
140
|
-
extraListConfig: ObjectMap;
|
|
141
|
-
};
|
|
142
132
|
showSidebar: boolean;
|
|
143
|
-
}>;
|
|
133
|
+
}, {}>;
|
|
144
134
|
export default _sfc_main;
|
|
@@ -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
|
}, {
|
|
82
|
-
readonly dictCode: string;
|
|
83
84
|
readonly busAccount: string;
|
|
84
|
-
readonly options: CascaderOptionType[] | undefined;
|
|
85
85
|
readonly placeholder: string;
|
|
86
|
-
readonly value: string;
|
|
87
86
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
87
|
+
readonly value: string;
|
|
88
|
+
readonly options: CascaderOptionType[] | undefined;
|
|
88
89
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
89
|
-
|
|
90
|
+
readonly dictCode: string;
|
|
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
|
}, {
|
|
78
|
-
readonly dictCode: string;
|
|
79
80
|
readonly busAccount: string;
|
|
80
|
-
readonly options: CascaderOptionType[] | undefined;
|
|
81
81
|
readonly placeholder: string;
|
|
82
|
-
readonly value: string;
|
|
83
82
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
83
|
+
readonly value: string;
|
|
84
|
+
readonly options: CascaderOptionType[] | undefined;
|
|
84
85
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
85
|
-
|
|
86
|
+
readonly dictCode: string;
|
|
87
|
+
}, {}>;
|
|
86
88
|
export default _sfc_main;
|
|
@@ -99,15 +99,15 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
99
99
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
}, {
|
|
102
|
-
readonly dictCode: string;
|
|
103
102
|
readonly busAccount: string;
|
|
104
|
-
readonly required: "0" | "1";
|
|
105
|
-
readonly options: Option[];
|
|
106
|
-
readonly colSpan: string;
|
|
107
|
-
readonly value: string;
|
|
108
103
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
104
|
+
readonly value: string;
|
|
105
|
+
readonly options: Option[];
|
|
109
106
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
107
|
+
readonly required: "0" | "1";
|
|
108
|
+
readonly dictCode: string;
|
|
110
109
|
readonly isLayout: boolean;
|
|
110
|
+
readonly colSpan: string;
|
|
111
111
|
readonly selectControlType: string;
|
|
112
|
-
}>>;
|
|
112
|
+
}, {}>>;
|
|
113
113
|
export default _default;
|
|
@@ -95,15 +95,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
95
95
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
96
96
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
97
97
|
}, {
|
|
98
|
-
readonly dictCode: string;
|
|
99
98
|
readonly busAccount: string;
|
|
100
|
-
readonly required: "0" | "1";
|
|
101
|
-
readonly options: Option[];
|
|
102
|
-
readonly colSpan: string;
|
|
103
|
-
readonly value: string;
|
|
104
99
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
100
|
+
readonly value: string;
|
|
101
|
+
readonly options: Option[];
|
|
105
102
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
103
|
+
readonly required: "0" | "1";
|
|
104
|
+
readonly dictCode: string;
|
|
106
105
|
readonly isLayout: boolean;
|
|
106
|
+
readonly colSpan: string;
|
|
107
107
|
readonly selectControlType: string;
|
|
108
|
-
}>;
|
|
108
|
+
}, {}>;
|
|
109
109
|
export default _sfc_main;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { Extension } from '@codemirror/state';
|
|
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
|
+
}
|
|
12
|
+
declare const _sfc_main: DefineComponent<{
|
|
13
|
+
editorModalFlag: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
value: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
isAllowToOpenMode: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
options: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default: () => {
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
indentWithTab: boolean;
|
|
30
|
+
tabSize: number;
|
|
31
|
+
autofocus: boolean;
|
|
32
|
+
placeholder: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
showLabel: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
customButton: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
code: Ref<string>;
|
|
49
|
+
visible: Ref<boolean>;
|
|
50
|
+
editorOption: {
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
indentWithTab: boolean;
|
|
53
|
+
tabSize: number;
|
|
54
|
+
autofocus: boolean;
|
|
55
|
+
placeholder: string;
|
|
56
|
+
basic: boolean;
|
|
57
|
+
phrases: {
|
|
58
|
+
Completions: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
oneDark: Extension;
|
|
62
|
+
handleSureClick: () => void;
|
|
63
|
+
handleSureClose: () => void;
|
|
64
|
+
handleToOpenMode: () => void;
|
|
65
|
+
vattrs: Ref<{
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
}>;
|
|
68
|
+
extensions: Extension[];
|
|
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
|
+
};
|
|
77
|
+
value: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
isAllowToOpenMode: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
options: {
|
|
86
|
+
type: ObjectConstructor;
|
|
87
|
+
default: () => {
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
indentWithTab: boolean;
|
|
90
|
+
tabSize: number;
|
|
91
|
+
autofocus: boolean;
|
|
92
|
+
placeholder: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
disabled: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: null;
|
|
98
|
+
};
|
|
99
|
+
showLabel: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
customButton: {
|
|
104
|
+
type: ArrayConstructor;
|
|
105
|
+
default: () => never[];
|
|
106
|
+
};
|
|
107
|
+
}>> & {
|
|
108
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
onHandleSureClick?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
onHandleSureClose?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
"onUpdate:editorModalFlag"?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
value: string;
|
|
115
|
+
options: Record<string, any>;
|
|
116
|
+
editorModalFlag: boolean;
|
|
117
|
+
isAllowToOpenMode: boolean;
|
|
118
|
+
showLabel: string;
|
|
119
|
+
customButton: unknown[];
|
|
120
|
+
}, {}>;
|
|
121
|
+
export default _sfc_main;
|
|
@@ -12,5 +12,5 @@ declare const _default: SFCWithInstall<DefineComponent<{}, {
|
|
|
12
12
|
leave(el: RendererElement): void;
|
|
13
13
|
afterLeave(el: RendererElement): void;
|
|
14
14
|
};
|
|
15
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>>;
|
|
15
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>>;
|
|
16
16
|
export default _default;
|
|
@@ -11,5 +11,5 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
11
11
|
leave(el: RendererElement): void;
|
|
12
12
|
afterLeave(el: RendererElement): void;
|
|
13
13
|
};
|
|
14
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
|
|
14
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
15
15
|
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
|
+
}
|