3h1-ui 1.2.6 → 2.0.0
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/es/{ui/types/global.d.ts → global.d.ts} +102 -102
- package/es/{ui/types/index.d.ts → index.d.ts} +28 -28
- package/es/index.js +7751 -5410
- package/es/style.css +853 -625
- package/lib/global.d.ts +102 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.js +7718 -5380
- package/package.json +8 -6
- package/es/ui/index.d.ts +0 -20
- package/es/ui/src/Basic/index.d.ts +0 -4
- package/es/ui/src/Basic/src/BasicHelp.vue.d.ts +0 -99
- package/es/ui/src/Basic/src/BasicTitle.vue.d.ts +0 -117
- package/es/ui/src/Button/index.d.ts +0 -5
- package/es/ui/src/Button/src/BasicButton.vue.d.ts +0 -2
- package/es/ui/src/Button/src/PopConfirmButton.vue.d.ts +0 -24
- package/es/ui/src/Button/src/props.d.ts +0 -37
- package/es/ui/src/ClickOutSide/index.d.ts +0 -2
- package/es/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
- package/es/ui/src/Container/index.d.ts +0 -5
- package/es/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
- package/es/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
- package/es/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +0 -553
- package/es/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +0 -42
- package/es/ui/src/Container/src/typing.d.ts +0 -15
- package/es/ui/src/ContextMenu/index.d.ts +0 -3
- package/es/ui/src/ContextMenu/src/ContextMenu.vue.d.ts +0 -64
- package/es/ui/src/ContextMenu/src/createContextMenu.d.ts +0 -3
- package/es/ui/src/ContextMenu/src/typing.d.ts +0 -33
- package/es/ui/src/ContextMenu/src/useContextMenu.d.ts +0 -3
- package/es/ui/src/CountDown/index.d.ts +0 -3
- package/es/ui/src/CountDown/src/CountButton.vue.d.ts +0 -35
- package/es/ui/src/CountDown/src/CountdownInput.vue.d.ts +0 -41
- package/es/ui/src/CountDown/src/useCountdown.d.ts +0 -9
- package/es/ui/src/CountTo/index.d.ts +0 -2
- package/es/ui/src/CountTo/src/CountTo.vue.d.ts +0 -137
- package/es/ui/src/Cropper/index.d.ts +0 -4
- package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +0 -39
- package/es/ui/src/Cropper/src/Cropper.vue.d.ts +0 -87
- package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +0 -73
- package/es/ui/src/Cropper/src/typing.d.ts +0 -6
- package/es/ui/src/Description/index.d.ts +0 -4
- package/es/ui/src/Description/src/Description.vue.d.ts +0 -101
- package/es/ui/src/Description/src/typing.d.ts +0 -39
- package/es/ui/src/Description/src/useDescription.d.ts +0 -2
- package/es/ui/src/Drawer/index.d.ts +0 -3
- package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +0 -170
- package/es/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +0 -95
- package/es/ui/src/Drawer/src/props.d.ts +0 -115
- package/es/ui/src/Drawer/src/typing.d.ts +0 -177
- package/es/ui/src/Drawer/src/useDrawer.d.ts +0 -6
- package/es/ui/src/Dropdown/index.d.ts +0 -3
- package/es/ui/src/Dropdown/src/typing.d.ts +0 -9
- package/es/ui/src/Form/index.d.ts +0 -13
- package/es/ui/src/Form/src/BasicForm.vue.d.ts +0 -2
- package/es/ui/src/Form/src/componentMap.d.ts +0 -6
- package/es/ui/src/Form/src/components/ApiCascader.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiModalSelect/DeptTree.vue.d.ts +0 -130
- package/es/ui/src/Form/src/components/ApiModalSelect/Table.vue.d.ts +0 -11
- package/es/ui/src/Form/src/components/ApiRadioGroup.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiSelect.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiTransfer.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiTree.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiTreeSelect.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/FormAction.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/FormItem.vue.d.ts +0 -72
- package/es/ui/src/Form/src/components/RadioButtonGroup.vue.d.ts +0 -35
- package/es/ui/src/Form/src/helper.d.ts +0 -14
- package/es/ui/src/Form/src/hooks/useAutoFocus.d.ts +0 -10
- package/es/ui/src/Form/src/hooks/useComponentRegister.d.ts +0 -3
- package/es/ui/src/Form/src/hooks/useForm.d.ts +0 -10
- package/es/ui/src/Form/src/hooks/useFormContext.d.ts +0 -8
- package/es/ui/src/Form/src/hooks/useFormEvents.d.ts +0 -28
- package/es/ui/src/Form/src/hooks/useFormValues.d.ts +0 -13
- package/es/ui/src/Form/src/hooks/useLabelWidth.d.ts +0 -318
- package/es/ui/src/Form/src/props.d.ts +0 -2
- package/es/ui/src/Form/src/types/hooks.d.ts +0 -6
- package/es/ui/src/Icon/data/icons.data.d.ts +0 -2
- package/es/ui/src/Icon/index.d.ts +0 -5
- package/es/ui/src/Icon/src/SvgIcon.vue.d.ts +0 -45
- package/es/ui/src/Loading/index.d.ts +0 -4
- package/es/ui/src/Loading/src/Loading.vue.d.ts +0 -57
- package/es/ui/src/Loading/src/createLoading.d.ts +0 -13
- package/es/ui/src/Loading/src/typing.d.ts +0 -9
- package/es/ui/src/Loading/src/useLoading.d.ts +0 -11
- package/es/ui/src/Modal/index.d.ts +0 -4
- package/es/ui/src/Modal/src/components/BasicHelp.vue.d.ts +0 -99
- package/es/ui/src/Modal/src/components/BasicTitle.vue.d.ts +0 -117
- package/es/ui/src/Modal/src/components/Modal.d.ts +0 -10
- package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +0 -39
- package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +0 -14
- package/es/ui/src/Modal/src/components/ModalHeader.vue.d.ts +0 -19
- package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
- package/es/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
- package/es/ui/src/Modal/src/hooks/useAttrs.d.ts +0 -9
- package/es/ui/src/Modal/src/hooks/useContext.d.ts +0 -10
- package/es/ui/src/Modal/src/hooks/useDesign.d.ts +0 -22
- package/es/ui/src/Modal/src/hooks/useI18n.d.ts +0 -15
- package/es/ui/src/Modal/src/hooks/useModal.d.ts +0 -6
- package/es/ui/src/Modal/src/hooks/useModalContext.d.ts +0 -7
- package/es/ui/src/Modal/src/hooks/useModalDrag.d.ts +0 -7
- package/es/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +0 -11
- package/es/ui/src/Modal/src/hooks/useScrollTo.d.ts +0 -10
- package/es/ui/src/Modal/src/hooks/useTimeout.d.ts +0 -10
- package/es/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +0 -7
- package/es/ui/src/Modal/src/props.d.ts +0 -34
- package/es/ui/src/Modal/src/typing.d.ts +0 -173
- package/es/ui/src/Modal/src/utils/index.d.ts +0 -5
- package/es/ui/src/Modal/src/utils/is.d.ts +0 -13
- package/es/ui/src/Modal/src/utils/log.d.ts +0 -2
- package/es/ui/src/Modal/src/utils/tsxHelper.d.ts +0 -13
- package/es/ui/src/Page/index.d.ts +0 -4
- package/es/ui/src/Page/src/PageFooter.vue.d.ts +0 -5
- package/es/ui/src/Scrollbar/index.d.ts +0 -6
- package/es/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +0 -72
- package/es/ui/src/Scrollbar/src/bar.d.ts +0 -14
- package/es/ui/src/Scrollbar/src/types.d.ts +0 -18
- package/es/ui/src/Scrollbar/src/util.d.ts +0 -8
- package/es/ui/src/StrengthMeter/index.d.ts +0 -2
- package/es/ui/src/Table/index.d.ts +0 -11
- package/es/ui/src/Table/src/BasicTable.vue.d.ts +0 -2
- package/es/ui/src/Table/src/componentMap.d.ts +0 -6
- package/es/ui/src/Table/src/components/EditTableHeaderIcon.vue.d.ts +0 -14
- package/es/ui/src/Table/src/components/HeaderCell.vue.d.ts +0 -21
- package/es/ui/src/Table/src/components/TableAction.vue.d.ts +0 -2
- package/es/ui/src/Table/src/components/TableHeader.vue.d.ts +0 -40
- package/es/ui/src/Table/src/components/editable/CellComponent.d.ts +0 -10
- package/es/ui/src/Table/src/components/editable/helper.d.ts +0 -5
- package/es/ui/src/Table/src/components/editable/index.d.ts +0 -22
- package/es/ui/src/Table/src/components/settings/ColumnSetting.vue.d.ts +0 -29
- package/es/ui/src/Table/src/components/settings/FullScreenSetting.vue.d.ts +0 -6
- package/es/ui/src/Table/src/components/settings/ShowSearchSetting.vue.d.ts +0 -5
- package/es/ui/src/Table/src/components/settings/SizeSetting.vue.d.ts +0 -11
- package/es/ui/src/Table/src/components/settings/index.vue.d.ts +0 -23
- package/es/ui/src/Table/src/const.d.ts +0 -22
- package/es/ui/src/Table/src/hooks/useCustomRow.d.ts +0 -19
- package/es/ui/src/Table/src/hooks/useDataSource.d.ts +0 -28
- package/es/ui/src/Table/src/hooks/useLoading.d.ts +0 -6
- package/es/ui/src/Table/src/hooks/usePagination.d.ts +0 -10
- package/es/ui/src/Table/src/hooks/useRowSelection.d.ts +0 -12
- package/es/ui/src/Table/src/hooks/useScrollTo.d.ts +0 -4
- package/es/ui/src/Table/src/hooks/useTable.d.ts +0 -17
- package/es/ui/src/Table/src/hooks/useTableContext.d.ts +0 -13
- package/es/ui/src/Table/src/hooks/useTableExpand.d.ts +0 -14
- package/es/ui/src/Table/src/hooks/useTableFooter.d.ts +0 -9
- package/es/ui/src/Table/src/hooks/useTableForm.d.ts +0 -8
- package/es/ui/src/Table/src/hooks/useTableHeader.d.ts +0 -5
- package/es/ui/src/Table/src/hooks/useTableScroll.d.ts +0 -10
- package/es/ui/src/Table/src/hooks/useTableStyle.d.ts +0 -5
- package/es/ui/src/Table/src/props.d.ts +0 -2
- package/es/ui/src/Table/src/types/componentType.d.ts +0 -1
- package/es/ui/src/Table/src/types/pagination.d.ts +0 -93
- package/es/ui/src/Table/src/types/table.d.ts +0 -372
- package/es/ui/src/Table/src/types/tableAction.d.ts +0 -28
- package/es/ui/src/Transition/index.d.ts +0 -368
- package/es/ui/src/Transition/src/CollapseTransition.vue.d.ts +0 -11
- package/es/ui/src/Transition/src/CreateTransition.d.ts +0 -47
- package/es/ui/src/Transition/src/ExpandTransition.d.ts +0 -23
- package/es/ui/src/Tree/index.d.ts +0 -12
- package/es/ui/src/Tree/src/BasicTree.vue.d.ts +0 -94
- package/es/ui/src/Tree/src/TreeIcon.d.ts +0 -2
- package/es/ui/src/Tree/src/hooks/useTree.d.ts +0 -14
- package/es/ui/src/Tree/src/types/tree.d.ts +0 -105
- package/es/ui/src/Tree/style/index.d.ts +0 -0
- package/es/ui/src/directives/clickOutside.d.ts +0 -3
- package/es/ui/src/directives/index.d.ts +0 -1
- package/es/ui/src/enums/sizeEnum.d.ts +0 -11
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentRenderProxy,
|
|
3
|
-
VNode,
|
|
4
|
-
VNodeChild,
|
|
5
|
-
ComponentPublicInstance,
|
|
6
|
-
FunctionalComponent,
|
|
7
|
-
PropType as VuePropType
|
|
8
|
-
} from 'vue'
|
|
9
|
-
|
|
10
|
-
declare global {
|
|
11
|
-
const __APP_INFO__: {
|
|
12
|
-
pkg: {
|
|
13
|
-
name: string
|
|
14
|
-
version: string
|
|
15
|
-
dependencies: Recordable<string>
|
|
16
|
-
devDependencies: Recordable<string>
|
|
17
|
-
}
|
|
18
|
-
lastBuildTime: string
|
|
19
|
-
}
|
|
20
|
-
// declare interface Window {
|
|
21
|
-
// // Global vue app instance
|
|
22
|
-
// __APP__: App<Element>;
|
|
23
|
-
// }
|
|
24
|
-
|
|
25
|
-
// vue
|
|
26
|
-
declare type PropType<T> = VuePropType<T>
|
|
27
|
-
declare type VueNode = VNodeChild | JSX.Element
|
|
28
|
-
|
|
29
|
-
export type Writable<T> = {
|
|
30
|
-
-readonly [P in keyof T]: T[P]
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
declare type Nullable<T> = T | null
|
|
34
|
-
declare type NonNullable<T> = T extends null | undefined ? never : T
|
|
35
|
-
declare type Recordable<T = any> = Record<string, T>
|
|
36
|
-
declare type ReadonlyRecordable<T = any> = {
|
|
37
|
-
readonly [key: string]: T
|
|
38
|
-
}
|
|
39
|
-
declare type Indexable<T = any> = {
|
|
40
|
-
[key: string]: T
|
|
41
|
-
}
|
|
42
|
-
declare type DeepPartial<T> = {
|
|
43
|
-
[P in keyof T]?: DeepPartial<T[P]>
|
|
44
|
-
}
|
|
45
|
-
declare type TimeoutHandle = ReturnType<typeof setTimeout>
|
|
46
|
-
declare type IntervalHandle = ReturnType<typeof setInterval>
|
|
47
|
-
|
|
48
|
-
declare interface ChangeEvent extends Event {
|
|
49
|
-
target: HTMLInputElement
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare interface WheelEvent {
|
|
53
|
-
path?: EventTarget[]
|
|
54
|
-
}
|
|
55
|
-
interface ImportMetaEnv extends ViteEnv {
|
|
56
|
-
__: unknown
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare interface ViteEnv {
|
|
60
|
-
VITE_PORT: number
|
|
61
|
-
VITE_USE_MOCK: boolean
|
|
62
|
-
VITE_USE_PWA: boolean
|
|
63
|
-
VITE_PUBLIC_PATH: string
|
|
64
|
-
VITE_PROXY: [string, string][]
|
|
65
|
-
VITE_GLOB_APP_TITLE: string
|
|
66
|
-
VITE_GLOB_APP_SHORT_NAME: string
|
|
67
|
-
VITE_GLOB_COPY_RIGHT: string
|
|
68
|
-
VITE_USE_CDN: boolean
|
|
69
|
-
VITE_DROP_CONSOLE: boolean
|
|
70
|
-
VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'
|
|
71
|
-
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean
|
|
72
|
-
VITE_LEGACY: boolean
|
|
73
|
-
VITE_USE_IMAGEMIN: boolean
|
|
74
|
-
VITE_GENERATE_UI: string
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare function parseInt(s: string | number, radix?: number): number
|
|
78
|
-
|
|
79
|
-
declare function parseFloat(string: string | number): number
|
|
80
|
-
|
|
81
|
-
namespace JSX {
|
|
82
|
-
// tslint:disable no-empty-interface
|
|
83
|
-
type Element = VNode
|
|
84
|
-
// tslint:disable no-empty-interface
|
|
85
|
-
type ElementClass = ComponentRenderProxy
|
|
86
|
-
interface ElementAttributesProperty {
|
|
87
|
-
$props: any
|
|
88
|
-
}
|
|
89
|
-
interface IntrinsicElements {
|
|
90
|
-
[elem: string]: any
|
|
91
|
-
}
|
|
92
|
-
interface IntrinsicAttributes {
|
|
93
|
-
[elem: string]: any
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
declare module 'vue' {
|
|
99
|
-
export type JSXComponent<Props = any> =
|
|
100
|
-
| { new (): ComponentPublicInstance<Props> }
|
|
101
|
-
| FunctionalComponent<Props>
|
|
102
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
ComponentRenderProxy,
|
|
3
|
+
VNode,
|
|
4
|
+
VNodeChild,
|
|
5
|
+
ComponentPublicInstance,
|
|
6
|
+
FunctionalComponent,
|
|
7
|
+
PropType as VuePropType
|
|
8
|
+
} from 'vue'
|
|
9
|
+
|
|
10
|
+
declare global {
|
|
11
|
+
const __APP_INFO__: {
|
|
12
|
+
pkg: {
|
|
13
|
+
name: string
|
|
14
|
+
version: string
|
|
15
|
+
dependencies: Recordable<string>
|
|
16
|
+
devDependencies: Recordable<string>
|
|
17
|
+
}
|
|
18
|
+
lastBuildTime: string
|
|
19
|
+
}
|
|
20
|
+
// declare interface Window {
|
|
21
|
+
// // Global vue app instance
|
|
22
|
+
// __APP__: App<Element>;
|
|
23
|
+
// }
|
|
24
|
+
|
|
25
|
+
// vue
|
|
26
|
+
declare type PropType<T> = VuePropType<T>
|
|
27
|
+
declare type VueNode = VNodeChild | JSX.Element
|
|
28
|
+
|
|
29
|
+
export type Writable<T> = {
|
|
30
|
+
-readonly [P in keyof T]: T[P]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare type Nullable<T> = T | null
|
|
34
|
+
declare type NonNullable<T> = T extends null | undefined ? never : T
|
|
35
|
+
declare type Recordable<T = any> = Record<string, T>
|
|
36
|
+
declare type ReadonlyRecordable<T = any> = {
|
|
37
|
+
readonly [key: string]: T
|
|
38
|
+
}
|
|
39
|
+
declare type Indexable<T = any> = {
|
|
40
|
+
[key: string]: T
|
|
41
|
+
}
|
|
42
|
+
declare type DeepPartial<T> = {
|
|
43
|
+
[P in keyof T]?: DeepPartial<T[P]>
|
|
44
|
+
}
|
|
45
|
+
declare type TimeoutHandle = ReturnType<typeof setTimeout>
|
|
46
|
+
declare type IntervalHandle = ReturnType<typeof setInterval>
|
|
47
|
+
|
|
48
|
+
declare interface ChangeEvent extends Event {
|
|
49
|
+
target: HTMLInputElement
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare interface WheelEvent {
|
|
53
|
+
path?: EventTarget[]
|
|
54
|
+
}
|
|
55
|
+
interface ImportMetaEnv extends ViteEnv {
|
|
56
|
+
__: unknown
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare interface ViteEnv {
|
|
60
|
+
VITE_PORT: number
|
|
61
|
+
VITE_USE_MOCK: boolean
|
|
62
|
+
VITE_USE_PWA: boolean
|
|
63
|
+
VITE_PUBLIC_PATH: string
|
|
64
|
+
VITE_PROXY: [string, string][]
|
|
65
|
+
VITE_GLOB_APP_TITLE: string
|
|
66
|
+
VITE_GLOB_APP_SHORT_NAME: string
|
|
67
|
+
VITE_GLOB_COPY_RIGHT: string
|
|
68
|
+
VITE_USE_CDN: boolean
|
|
69
|
+
VITE_DROP_CONSOLE: boolean
|
|
70
|
+
VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'
|
|
71
|
+
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean
|
|
72
|
+
VITE_LEGACY: boolean
|
|
73
|
+
VITE_USE_IMAGEMIN: boolean
|
|
74
|
+
VITE_GENERATE_UI: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare function parseInt(s: string | number, radix?: number): number
|
|
78
|
+
|
|
79
|
+
declare function parseFloat(string: string | number): number
|
|
80
|
+
|
|
81
|
+
namespace JSX {
|
|
82
|
+
// tslint:disable no-empty-interface
|
|
83
|
+
type Element = VNode
|
|
84
|
+
// tslint:disable no-empty-interface
|
|
85
|
+
type ElementClass = ComponentRenderProxy
|
|
86
|
+
interface ElementAttributesProperty {
|
|
87
|
+
$props: any
|
|
88
|
+
}
|
|
89
|
+
interface IntrinsicElements {
|
|
90
|
+
[elem: string]: any
|
|
91
|
+
}
|
|
92
|
+
interface IntrinsicAttributes {
|
|
93
|
+
[elem: string]: any
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare module 'vue' {
|
|
99
|
+
export type JSXComponent<Props = any> =
|
|
100
|
+
| { new (): ComponentPublicInstance<Props> }
|
|
101
|
+
| FunctionalComponent<Props>
|
|
102
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
declare interface Fn<T = any, R = T> {
|
|
2
|
-
(...arg: T[]): R
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare interface PromiseFn<T = any, R = T> {
|
|
6
|
-
(...arg: T[]): Promise<R>
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare type RefType<T> = T | null
|
|
10
|
-
|
|
11
|
-
declare type LabelValueOptions = {
|
|
12
|
-
label: string
|
|
13
|
-
value: any
|
|
14
|
-
[key: string]: string | number | boolean
|
|
15
|
-
}[]
|
|
16
|
-
|
|
17
|
-
declare type EmitType = (event: string, ...args: any[]) => void
|
|
18
|
-
|
|
19
|
-
declare type TargetContext = '_self' | '_blank'
|
|
20
|
-
|
|
21
|
-
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|
22
|
-
$el: T
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> =
|
|
26
|
-
ComponentElRef<T> | null
|
|
27
|
-
|
|
28
|
-
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
|
|
1
|
+
declare interface Fn<T = any, R = T> {
|
|
2
|
+
(...arg: T[]): R
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare interface PromiseFn<T = any, R = T> {
|
|
6
|
+
(...arg: T[]): Promise<R>
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare type RefType<T> = T | null
|
|
10
|
+
|
|
11
|
+
declare type LabelValueOptions = {
|
|
12
|
+
label: string
|
|
13
|
+
value: any
|
|
14
|
+
[key: string]: string | number | boolean
|
|
15
|
+
}[]
|
|
16
|
+
|
|
17
|
+
declare type EmitType = (event: string, ...args: any[]) => void
|
|
18
|
+
|
|
19
|
+
declare type TargetContext = '_self' | '_blank'
|
|
20
|
+
|
|
21
|
+
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|
22
|
+
$el: T
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> =
|
|
26
|
+
ComponentElRef<T> | null
|
|
27
|
+
|
|
28
|
+
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
|