@quicktvui/qtx 0.0.0-stage → 0.9.0-alpha.2
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/AI_CONTRACT.md +472 -0
- package/README.md +174 -2
- package/dist/components/QtxAppIcon/QtxAppIcon.vue.d.ts +73 -0
- package/dist/components/QtxAppIcon/QtxAppIconBase.vue.d.ts +144 -0
- package/dist/components/QtxAppIcon/index.d.ts +13 -0
- package/dist/components/QtxAppIcon/types.d.ts +157 -0
- package/dist/components/QtxButton/QtxButton.vue.d.ts +24 -0
- package/dist/components/QtxButton/QtxButtonBase.vue.d.ts +64 -0
- package/dist/components/QtxButton/index.d.ts +13 -0
- package/dist/components/QtxChannelNav/QtxChannelNav.vue.d.ts +48 -0
- package/dist/components/QtxChannelNav/QtxChannelNavBase.vue.d.ts +127 -0
- package/dist/components/QtxChannelNav/index.d.ts +13 -0
- package/dist/components/QtxChannelNav/types.d.ts +232 -0
- package/dist/components/QtxCheckbox/QtxCheckbox.vue.d.ts +110 -0
- package/dist/components/QtxCheckbox/index.d.ts +13 -0
- package/dist/components/QtxCheckboxGroup/QtxCheckboxGroup.vue.d.ts +103 -0
- package/dist/components/QtxCheckboxGroup/index.d.ts +13 -0
- package/dist/components/QtxCollapseMenuGroup/QtxCollapseMenuGroup.vue.d.ts +9 -0
- package/dist/components/QtxCollapseMenuGroup/QtxCollapseMenuGroupBase.vue.d.ts +40 -0
- package/dist/components/QtxCollapseMenuGroup/index.d.ts +13 -0
- package/dist/components/QtxCollapseMenuList/QtxCollapseMenuList.vue.d.ts +12 -0
- package/dist/components/QtxCollapseMenuList/QtxCollapseMenuListBase.vue.d.ts +32 -0
- package/dist/components/QtxCollapseMenuList/index.d.ts +13 -0
- package/dist/components/QtxDatePicker/QtxDatePicker.vue.d.ts +28 -0
- package/dist/components/QtxDatePicker/index.d.ts +13 -0
- package/dist/components/QtxGridTabs/QtxGridTabs.vue.d.ts +11 -0
- package/dist/components/QtxGridTabs/index.d.ts +13 -0
- package/dist/components/QtxGridTabs/useGridItemPresence.d.ts +26 -0
- package/dist/components/QtxGridTabs/useGridTabs.d.ts +163 -0
- package/dist/components/QtxGridTabs/useGridTabsData.d.ts +20 -0
- package/dist/components/QtxGridTabs/useGridTabsUpdater.d.ts +24 -0
- package/dist/components/QtxHsvBackground/QtxHsvBackground.vue.d.ts +26 -0
- package/dist/components/QtxHsvBackground/index.d.ts +13 -0
- package/dist/components/QtxInputView/QtxInputView.vue.d.ts +42 -0
- package/dist/components/QtxInputView/QtxInputViewBase.vue.d.ts +46 -0
- package/dist/components/QtxInputView/index.d.ts +13 -0
- package/dist/components/QtxKeyboard/QtxKeyboard.vue.d.ts +59 -0
- package/dist/components/QtxKeyboard/index.d.ts +13 -0
- package/dist/components/QtxList/QtxList.vue.d.ts +96 -0
- package/dist/components/QtxList/QtxListBase.vue.d.ts +11 -0
- package/dist/components/QtxList/capture.d.ts +86 -0
- package/dist/components/QtxList/index.d.ts +13 -0
- package/dist/components/QtxList/types.d.ts +78 -0
- package/dist/components/QtxNumericKeyboard/QtxNumericKeyboard.vue.d.ts +28 -0
- package/dist/components/QtxNumericKeyboard/index.d.ts +13 -0
- package/dist/components/QtxPortalItem/QtxPortalItem.vue.d.ts +24 -0
- package/dist/components/QtxPortalItem/index.d.ts +13 -0
- package/dist/components/QtxPortalPool/QtxPortalPool.vue.d.ts +11 -0
- package/dist/components/QtxPortalPool/index.d.ts +13 -0
- package/dist/components/QtxPoster/QtxPoster.vue.d.ts +60 -0
- package/dist/components/QtxPoster/QtxPosterBase.vue.d.ts +117 -0
- package/dist/components/QtxPoster/index.d.ts +13 -0
- package/dist/components/QtxPoster/types.d.ts +133 -0
- package/dist/components/QtxRadioGroup/QtxRadioGroup.vue.d.ts +103 -0
- package/dist/components/QtxRadioGroup/index.d.ts +13 -0
- package/dist/components/QtxRatingBar/QtxRatingBar.vue.d.ts +34 -0
- package/dist/components/QtxRatingBar/index.d.ts +13 -0
- package/dist/components/QtxSettingSwitch/QtxSettingSwitch.vue.d.ts +111 -0
- package/dist/components/QtxSettingSwitch/index.d.ts +6 -0
- package/dist/components/QtxSvgImage/QtxSvgImage.vue.d.ts +26 -0
- package/dist/components/QtxSvgImage/index.d.ts +13 -0
- package/dist/components/QtxSwitcher/QtxSwitcher.vue.d.ts +52 -0
- package/dist/components/QtxSwitcher/index.d.ts +13 -0
- package/dist/components/QtxTabContent/QtxTabContent.vue.d.ts +24 -0
- package/dist/components/QtxTabs/QtxTabs.vue.d.ts +37 -0
- package/dist/components/QtxTabs/index.d.ts +16 -0
- package/dist/core/installQtx.d.ts +40 -0
- package/dist/core/portalCoordinator.d.ts +4 -0
- package/dist/core/qtxGate.d.ts +13 -0
- package/dist/core/theme.d.ts +12 -0
- package/dist/directives/v-portal-to.d.ts +4 -0
- package/dist/index.d.ts +146 -0
- package/dist/modules/AddonEnvModule.d.ts +4 -0
- package/dist/modules/ExtraUIConfigModule.d.ts +7 -0
- package/dist/modules/GridTabsConfigModule.d.ts +7 -0
- package/dist/modules/QtxVersionModule.d.ts +4 -0
- package/dist/preset-items/QtxStyledList.vue.d.ts +65 -0
- package/dist/preset-items/compact.d.ts +2 -0
- package/dist/preset-items/glint.d.ts +11 -0
- package/dist/preset-items/index.d.ts +45 -0
- package/dist/preset-items/retired-items.d.ts +22 -0
- package/dist/preset-items/types.d.ts +112 -0
- package/dist/qtx.cjs.js +1 -0
- package/dist/qtx.es.js +6847 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +50 -0
- package/package.json +32 -4
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { QtxAppIconProps, QtxAppIconState } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<QtxAppIconProps>>, {
|
|
3
|
+
getNativeNode(): any;
|
|
4
|
+
setAppIcon(packageName: string): void;
|
|
5
|
+
setLocalIcon(src: string, kind?: string | undefined): void;
|
|
6
|
+
setIconUrl(url: string): void;
|
|
7
|
+
setVariant(variant: string): void;
|
|
8
|
+
setBannerData(banner: Record<string, any>): void;
|
|
9
|
+
setInstallState(state: string): void;
|
|
10
|
+
setProgress(progress: number): void;
|
|
11
|
+
setRatingAndPrice(rating: string, price: string): void;
|
|
12
|
+
setLabel(text: string): void;
|
|
13
|
+
applyPatch(patch: Record<string, any>): void;
|
|
14
|
+
clearIconCache(packageName?: string | undefined): void;
|
|
15
|
+
requestFocus(): Promise<string>;
|
|
16
|
+
clear(): void;
|
|
17
|
+
recycle(): void;
|
|
18
|
+
getState(): Promise<QtxAppIconState>;
|
|
19
|
+
cancelImageLoad(): void;
|
|
20
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
click: (payload: any) => void;
|
|
22
|
+
focus: (payload: any) => void;
|
|
23
|
+
blur: (payload: any) => void;
|
|
24
|
+
longClick: (payload: any) => void;
|
|
25
|
+
iconResolved: (payload: any) => void;
|
|
26
|
+
iconLoadError: (payload: any) => void;
|
|
27
|
+
installStateChange: (payload: any) => void;
|
|
28
|
+
progressChange: (payload: any) => void;
|
|
29
|
+
bannerAction: (payload: any) => void;
|
|
30
|
+
variantChange: (payload: any) => void;
|
|
31
|
+
stateChange: (payload: any) => void;
|
|
32
|
+
bind: (payload: any) => void;
|
|
33
|
+
recycle: (payload: any) => void;
|
|
34
|
+
patch: (payload: any) => void;
|
|
35
|
+
imageLoadStart: (payload: any) => void;
|
|
36
|
+
imageLoadSuccess: (payload: any) => void;
|
|
37
|
+
imageLoadError: (payload: any) => void;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<QtxAppIconProps>>> & Readonly<{
|
|
39
|
+
onBlur?: ((payload: any) => any) | undefined;
|
|
40
|
+
onClick?: ((payload: any) => any) | undefined;
|
|
41
|
+
onFocus?: ((payload: any) => any) | undefined;
|
|
42
|
+
onLongClick?: ((payload: any) => any) | undefined;
|
|
43
|
+
onImageLoadStart?: ((payload: any) => any) | undefined;
|
|
44
|
+
onImageLoadSuccess?: ((payload: any) => any) | undefined;
|
|
45
|
+
onImageLoadError?: ((payload: any) => any) | undefined;
|
|
46
|
+
onStateChange?: ((payload: any) => any) | undefined;
|
|
47
|
+
onBind?: ((payload: any) => any) | undefined;
|
|
48
|
+
onRecycle?: ((payload: any) => any) | undefined;
|
|
49
|
+
onPatch?: ((payload: any) => any) | undefined;
|
|
50
|
+
onIconResolved?: ((payload: any) => any) | undefined;
|
|
51
|
+
onIconLoadError?: ((payload: any) => any) | undefined;
|
|
52
|
+
onInstallStateChange?: ((payload: any) => any) | undefined;
|
|
53
|
+
onProgressChange?: ((payload: any) => any) | undefined;
|
|
54
|
+
onBannerAction?: ((payload: any) => any) | undefined;
|
|
55
|
+
onVariantChange?: ((payload: any) => any) | undefined;
|
|
56
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
57
|
+
default?(_: {}): any;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
+
} : {
|
|
65
|
+
type: import('vue').PropType<T[K]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
icon?: string | undefined;
|
|
3
|
+
image?: string | undefined;
|
|
4
|
+
imgUrl?: string | undefined;
|
|
5
|
+
localIcon?: string | undefined;
|
|
6
|
+
resName?: string | undefined;
|
|
7
|
+
resId?: any;
|
|
8
|
+
filePath?: string | undefined;
|
|
9
|
+
assetPath?: string | undefined;
|
|
10
|
+
packageName?: string | undefined;
|
|
11
|
+
fallbackIcon?: string | undefined;
|
|
12
|
+
iconScaleType?: string | undefined;
|
|
13
|
+
iconCornerRadius?: any;
|
|
14
|
+
variant?: string | undefined;
|
|
15
|
+
banner?: any;
|
|
16
|
+
title?: string | undefined;
|
|
17
|
+
appLabel?: string | undefined;
|
|
18
|
+
rating?: any;
|
|
19
|
+
price?: string | undefined;
|
|
20
|
+
installState?: string | undefined;
|
|
21
|
+
progress?: any;
|
|
22
|
+
appTag?: string | undefined;
|
|
23
|
+
buttonText?: string | undefined;
|
|
24
|
+
aspectRatio?: any;
|
|
25
|
+
cornerRadius?: any;
|
|
26
|
+
span?: any;
|
|
27
|
+
state?: string | undefined;
|
|
28
|
+
placeholderColor?: string | undefined;
|
|
29
|
+
loadingDelayMs?: any;
|
|
30
|
+
focusable?: boolean | undefined;
|
|
31
|
+
focusScale?: any;
|
|
32
|
+
focusBorder?: boolean | undefined;
|
|
33
|
+
focusGlow?: boolean | undefined;
|
|
34
|
+
clickPayload?: any;
|
|
35
|
+
focusPayload?: any;
|
|
36
|
+
actionPayload?: any;
|
|
37
|
+
}>>, {
|
|
38
|
+
getNativeNode: () => any;
|
|
39
|
+
setAppIcon: (...args: any[]) => void;
|
|
40
|
+
setLocalIcon: (...args: any[]) => void;
|
|
41
|
+
setIconUrl: (...args: any[]) => void;
|
|
42
|
+
setVariant: (...args: any[]) => void;
|
|
43
|
+
setBannerData: (...args: any[]) => void;
|
|
44
|
+
setInstallState: (...args: any[]) => void;
|
|
45
|
+
setProgress: (...args: any[]) => void;
|
|
46
|
+
setRatingAndPrice: (...args: any[]) => void;
|
|
47
|
+
setLabel: (...args: any[]) => void;
|
|
48
|
+
applyPatch: (...args: any[]) => void;
|
|
49
|
+
clearIconCache: (...args: any[]) => void;
|
|
50
|
+
requestFocus: (...args: any[]) => void;
|
|
51
|
+
clear: (...args: any[]) => void;
|
|
52
|
+
recycle: (...args: any[]) => void;
|
|
53
|
+
getState: (...args: any[]) => void;
|
|
54
|
+
cancelImageLoad: (...args: any[]) => void;
|
|
55
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
+
onClick: (payload?: any) => void;
|
|
57
|
+
onFocus: (payload?: any) => void;
|
|
58
|
+
onBlur: (payload?: any) => void;
|
|
59
|
+
onLongClick: (payload?: any) => void;
|
|
60
|
+
onIconResolved: (payload?: any) => void;
|
|
61
|
+
onIconLoadError: (payload?: any) => void;
|
|
62
|
+
onInstallStateChange: (payload?: any) => void;
|
|
63
|
+
onProgressChange: (payload?: any) => void;
|
|
64
|
+
onBannerAction: (payload?: any) => void;
|
|
65
|
+
onVariantChange: (payload?: any) => void;
|
|
66
|
+
onStateChange: (payload?: any) => void;
|
|
67
|
+
onBind: (payload?: any) => void;
|
|
68
|
+
onRecycle: (payload?: any) => void;
|
|
69
|
+
onPatch: (payload?: any) => void;
|
|
70
|
+
onImageLoadStart: (payload?: any) => void;
|
|
71
|
+
onImageLoadSuccess: (payload?: any) => void;
|
|
72
|
+
onImageLoadError: (payload?: any) => void;
|
|
73
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
74
|
+
icon?: string | undefined;
|
|
75
|
+
image?: string | undefined;
|
|
76
|
+
imgUrl?: string | undefined;
|
|
77
|
+
localIcon?: string | undefined;
|
|
78
|
+
resName?: string | undefined;
|
|
79
|
+
resId?: any;
|
|
80
|
+
filePath?: string | undefined;
|
|
81
|
+
assetPath?: string | undefined;
|
|
82
|
+
packageName?: string | undefined;
|
|
83
|
+
fallbackIcon?: string | undefined;
|
|
84
|
+
iconScaleType?: string | undefined;
|
|
85
|
+
iconCornerRadius?: any;
|
|
86
|
+
variant?: string | undefined;
|
|
87
|
+
banner?: any;
|
|
88
|
+
title?: string | undefined;
|
|
89
|
+
appLabel?: string | undefined;
|
|
90
|
+
rating?: any;
|
|
91
|
+
price?: string | undefined;
|
|
92
|
+
installState?: string | undefined;
|
|
93
|
+
progress?: any;
|
|
94
|
+
appTag?: string | undefined;
|
|
95
|
+
buttonText?: string | undefined;
|
|
96
|
+
aspectRatio?: any;
|
|
97
|
+
cornerRadius?: any;
|
|
98
|
+
span?: any;
|
|
99
|
+
state?: string | undefined;
|
|
100
|
+
placeholderColor?: string | undefined;
|
|
101
|
+
loadingDelayMs?: any;
|
|
102
|
+
focusable?: boolean | undefined;
|
|
103
|
+
focusScale?: any;
|
|
104
|
+
focusBorder?: boolean | undefined;
|
|
105
|
+
focusGlow?: boolean | undefined;
|
|
106
|
+
clickPayload?: any;
|
|
107
|
+
focusPayload?: any;
|
|
108
|
+
actionPayload?: any;
|
|
109
|
+
}>>> & Readonly<{
|
|
110
|
+
onOnBlur?: ((payload?: any) => any) | undefined;
|
|
111
|
+
onOnClick?: ((payload?: any) => any) | undefined;
|
|
112
|
+
onOnFocus?: ((payload?: any) => any) | undefined;
|
|
113
|
+
onOnLongClick?: ((payload?: any) => any) | undefined;
|
|
114
|
+
onOnImageLoadStart?: ((payload?: any) => any) | undefined;
|
|
115
|
+
onOnImageLoadSuccess?: ((payload?: any) => any) | undefined;
|
|
116
|
+
onOnImageLoadError?: ((payload?: any) => any) | undefined;
|
|
117
|
+
onOnStateChange?: ((payload?: any) => any) | undefined;
|
|
118
|
+
onOnBind?: ((payload?: any) => any) | undefined;
|
|
119
|
+
onOnRecycle?: ((payload?: any) => any) | undefined;
|
|
120
|
+
onOnPatch?: ((payload?: any) => any) | undefined;
|
|
121
|
+
onOnIconResolved?: ((payload?: any) => any) | undefined;
|
|
122
|
+
onOnIconLoadError?: ((payload?: any) => any) | undefined;
|
|
123
|
+
onOnInstallStateChange?: ((payload?: any) => any) | undefined;
|
|
124
|
+
onOnProgressChange?: ((payload?: any) => any) | undefined;
|
|
125
|
+
onOnBannerAction?: ((payload?: any) => any) | undefined;
|
|
126
|
+
onOnVariantChange?: ((payload?: any) => any) | undefined;
|
|
127
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
128
|
+
default?(_: {}): any;
|
|
129
|
+
}>;
|
|
130
|
+
export default _default;
|
|
131
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
132
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
133
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
134
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
135
|
+
} : {
|
|
136
|
+
type: import('vue').PropType<T[K]>;
|
|
137
|
+
required: true;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
141
|
+
new (): {
|
|
142
|
+
$slots: S;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import QtxAppIcon from './QtxAppIcon.vue';
|
|
3
|
+
export declare const QtxAppIconPlugin: {
|
|
4
|
+
install: (app: App) => void;
|
|
5
|
+
};
|
|
6
|
+
export { QtxAppIcon };
|
|
7
|
+
export default QtxAppIconPlugin;
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
QtxAppIcon: typeof QtxAppIcon;
|
|
11
|
+
'qtx-app-icon': typeof QtxAppIcon;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QtxAppIcon 组件签名类型(应用图标卡片 SDUI 契约)。
|
|
3
|
+
* 独立文件以避免 index.ts ⇄ QtxAppIcon.vue 类型循环。
|
|
4
|
+
*/
|
|
5
|
+
export interface QtxAppIconProps {
|
|
6
|
+
/** 主图标地址,多来源别名之一(优先级 icon > image > imgUrl),默认空 */
|
|
7
|
+
icon?: string;
|
|
8
|
+
/** 图标地址别名(优先级次于 icon),默认空 */
|
|
9
|
+
image?: string;
|
|
10
|
+
/** 图标地址别名(优先级最低),默认空 */
|
|
11
|
+
imgUrl?: string;
|
|
12
|
+
/** 本地图标资源(drawable / assets / file),默认空 */
|
|
13
|
+
localIcon?: string;
|
|
14
|
+
/** Android 资源名(按名称解析 drawable),默认空 */
|
|
15
|
+
resName?: string;
|
|
16
|
+
/** Android 资源 ID(R.drawable.xxx / 数字 id),默认空 */
|
|
17
|
+
resId?: string | number;
|
|
18
|
+
/** 图标文件路径(本地文件),默认空 */
|
|
19
|
+
filePath?: string;
|
|
20
|
+
/** 图标 assets 路径,默认空 */
|
|
21
|
+
assetPath?: string;
|
|
22
|
+
/** 应用包名(按已安装应用解析图标),默认空 */
|
|
23
|
+
packageName?: string;
|
|
24
|
+
/** 图标解析 / 加载失败时的兜底图,默认空 */
|
|
25
|
+
fallbackIcon?: string;
|
|
26
|
+
/** 图标缩放类型(如 fitCenter / centerCrop),默认 fitCenter */
|
|
27
|
+
iconScaleType?: string;
|
|
28
|
+
/** 图标圆角半径(px),默认 12 */
|
|
29
|
+
iconCornerRadius?: number;
|
|
30
|
+
/** 卡片版式:icon / banner,默认 icon */
|
|
31
|
+
variant?: 'icon' | 'banner' | string;
|
|
32
|
+
/** banner 版式数据(键值开放),默认空 */
|
|
33
|
+
banner?: Record<string, any>;
|
|
34
|
+
/** 卡片主标题,默认空 */
|
|
35
|
+
title?: string;
|
|
36
|
+
/** 应用名称(等价于 title 的应用侧别名),默认空 */
|
|
37
|
+
appLabel?: string;
|
|
38
|
+
/** 应用评分,默认 0 */
|
|
39
|
+
rating?: number | string;
|
|
40
|
+
/** 应用价格文案,默认空 */
|
|
41
|
+
price?: string;
|
|
42
|
+
/** 安装状态(如 not_installed / installing / installed),默认 not_installed */
|
|
43
|
+
installState?: string;
|
|
44
|
+
/** 安装 / 下载进度(0-100),默认 0 */
|
|
45
|
+
progress?: number;
|
|
46
|
+
/** 应用标签(角标文案),默认空 */
|
|
47
|
+
appTag?: string;
|
|
48
|
+
/** 操作按钮文案,默认空 */
|
|
49
|
+
buttonText?: string;
|
|
50
|
+
/** 卡片宽高比(宽 / 高),默认 1 */
|
|
51
|
+
aspectRatio?: number;
|
|
52
|
+
/** 卡片圆角半径(px),默认 12 */
|
|
53
|
+
cornerRadius?: number;
|
|
54
|
+
/** 网格跨列数,默认 1 */
|
|
55
|
+
span?: number;
|
|
56
|
+
/** 卡片状态,默认 loading */
|
|
57
|
+
state?: string;
|
|
58
|
+
/** 占位图背景色,默认 #2E2E2E */
|
|
59
|
+
placeholderColor?: string;
|
|
60
|
+
/** 加载态延迟显示毫秒数,默认 300 */
|
|
61
|
+
loadingDelayMs?: number;
|
|
62
|
+
/** 是否可获焦,默认 true */
|
|
63
|
+
focusable?: boolean;
|
|
64
|
+
/** 获焦缩放倍率,默认 1.05 */
|
|
65
|
+
focusScale?: number;
|
|
66
|
+
/** 是否显示获焦描边,默认 true */
|
|
67
|
+
focusBorder?: boolean;
|
|
68
|
+
/** 是否显示获焦光晕,默认 false */
|
|
69
|
+
focusGlow?: boolean;
|
|
70
|
+
/** 点击事件附带载荷(键值开放,随 click 事件回传),默认空 */
|
|
71
|
+
clickPayload?: Record<string, any>;
|
|
72
|
+
/** 获焦事件附带载荷(键值开放,随 focus 事件回传),默认空 */
|
|
73
|
+
focusPayload?: Record<string, any>;
|
|
74
|
+
/** 操作按钮事件附带载荷(键值开放,随 bannerAction 事件回传),默认空 */
|
|
75
|
+
actionPayload?: Record<string, any>;
|
|
76
|
+
/** 卡片宽度(数字自动补 px),默认 0 */
|
|
77
|
+
width?: number | string;
|
|
78
|
+
/** 卡片高度(数字自动补 px),默认 0 */
|
|
79
|
+
height?: number | string;
|
|
80
|
+
}
|
|
81
|
+
export interface QtxAppIconEventPayload {
|
|
82
|
+
/** 条目 ID */
|
|
83
|
+
itemId?: string;
|
|
84
|
+
/** 应用包名 */
|
|
85
|
+
packageName?: string;
|
|
86
|
+
/** 列表位置索引 */
|
|
87
|
+
position?: number;
|
|
88
|
+
/** 业务自定义载荷 */
|
|
89
|
+
payload?: any;
|
|
90
|
+
/** 事件来源 */
|
|
91
|
+
source?: string;
|
|
92
|
+
/** 事件类别 */
|
|
93
|
+
kind?: string;
|
|
94
|
+
/** 变更原因 */
|
|
95
|
+
reason?: string;
|
|
96
|
+
/** 变更前的值 / 状态 */
|
|
97
|
+
from?: string;
|
|
98
|
+
/** 变更后的值 / 状态 */
|
|
99
|
+
to?: string;
|
|
100
|
+
/** 增量更新涉及的键集合 */
|
|
101
|
+
patchKeys?: string[];
|
|
102
|
+
}
|
|
103
|
+
export interface QtxAppIconState {
|
|
104
|
+
/** 当前卡片状态 */
|
|
105
|
+
state?: string;
|
|
106
|
+
/** 当前版式(icon / banner) */
|
|
107
|
+
variant?: string;
|
|
108
|
+
/** 当前安装状态 */
|
|
109
|
+
installState?: string;
|
|
110
|
+
/** 当前安装 / 下载进度(0-100) */
|
|
111
|
+
progress?: number;
|
|
112
|
+
/** 状态来源 */
|
|
113
|
+
source?: string;
|
|
114
|
+
/** 数据代数(复用 / 增量更新计数) */
|
|
115
|
+
generation?: number;
|
|
116
|
+
/** 是否处于图标加载中 */
|
|
117
|
+
loading?: boolean;
|
|
118
|
+
}
|
|
119
|
+
/** QtxAppIcon 对外事件全集(camelCase,与 Vue 壳 defineEmits 一一对应) */
|
|
120
|
+
export declare const QTX_APP_ICON_EVENTS: readonly ["click", "focus", "blur", "longClick", "iconResolved", "iconLoadError", "installStateChange", "progressChange", "bannerAction", "variantChange", "stateChange", "bind", "recycle", "patch", "imageLoadStart", "imageLoadSuccess", "imageLoadError"];
|
|
121
|
+
/** ref 暴露方法:与 QtxAppIcon.vue 的 defineExpose 一一对应;改实现须同步本接口并重跑 docs:gen */
|
|
122
|
+
export interface QtxAppIconExpose {
|
|
123
|
+
/** 取原生节点代理(Base→gate→$el,带 nodeId) */
|
|
124
|
+
getNativeNode(): any;
|
|
125
|
+
/** 按应用包名解析并切换应用图标 */
|
|
126
|
+
setAppIcon(packageName: string): void;
|
|
127
|
+
/** 切换为本地图标,kind 指定 drawable / assets / file 等 */
|
|
128
|
+
setLocalIcon(src: string, kind?: string): void;
|
|
129
|
+
/** 切换为网络图标地址 */
|
|
130
|
+
setIconUrl(url: string): void;
|
|
131
|
+
/** 切换卡片版式(icon / banner) */
|
|
132
|
+
setVariant(variant: string): void;
|
|
133
|
+
/** 设置 banner 版式数据 */
|
|
134
|
+
setBannerData(banner: Record<string, any>): void;
|
|
135
|
+
/** 设置安装状态 */
|
|
136
|
+
setInstallState(state: string): void;
|
|
137
|
+
/** 设置安装 / 下载进度(0-100) */
|
|
138
|
+
setProgress(progress: number): void;
|
|
139
|
+
/** 同时设置评分与价格文案 */
|
|
140
|
+
setRatingAndPrice(rating: string, price: string): void;
|
|
141
|
+
/** 设置应用名称 / 主标题 */
|
|
142
|
+
setLabel(text: string): void;
|
|
143
|
+
/** 局部增量更新(按 patch 键原位刷新,不重建) */
|
|
144
|
+
applyPatch(patch: Record<string, any>): void;
|
|
145
|
+
/** 清除图标缓存(传包名清指定应用,不传清全部) */
|
|
146
|
+
clearIconCache(packageName?: string): void;
|
|
147
|
+
/** 请求焦点,返回聚焦结果标识 */
|
|
148
|
+
requestFocus(): Promise<string>;
|
|
149
|
+
/** 清空卡片内容 */
|
|
150
|
+
clear(): void;
|
|
151
|
+
/** 回收并重置卡片(复用前调用) */
|
|
152
|
+
recycle(): void;
|
|
153
|
+
/** 读取当前卡片状态快照 */
|
|
154
|
+
getState(): Promise<QtxAppIconState>;
|
|
155
|
+
/** 取消当前进行中的图标加载 */
|
|
156
|
+
cancelImageLoad(): void;
|
|
157
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
width?: string | number | undefined;
|
|
3
|
+
height?: string | number | undefined;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
width?: string | number | undefined;
|
|
6
|
+
height?: string | number | undefined;
|
|
7
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
text?: string | undefined;
|
|
3
|
+
icon?: string | undefined;
|
|
4
|
+
iconSize?: any;
|
|
5
|
+
iconSpace?: any;
|
|
6
|
+
layoutDirection?: string | undefined;
|
|
7
|
+
fontSize?: any;
|
|
8
|
+
maxLines?: any;
|
|
9
|
+
textColor?: string | undefined;
|
|
10
|
+
focusTextColor?: string | undefined;
|
|
11
|
+
backgroundColor?: string | undefined;
|
|
12
|
+
focusBackgroundColor?: string | undefined;
|
|
13
|
+
normalBorderWidth?: any;
|
|
14
|
+
normalBorderColor?: string | undefined;
|
|
15
|
+
focusBorderColor?: string | undefined;
|
|
16
|
+
cornerRadius?: any;
|
|
17
|
+
focusScale?: any;
|
|
18
|
+
enableFocusBorder?: boolean | undefined;
|
|
19
|
+
autofocus?: boolean | undefined;
|
|
20
|
+
contentPadding?: any;
|
|
21
|
+
}>>, {
|
|
22
|
+
getNativeNode: () => any;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
onButtonCustomEvent: (payload?: any) => void;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
26
|
+
text?: string | undefined;
|
|
27
|
+
icon?: string | undefined;
|
|
28
|
+
iconSize?: any;
|
|
29
|
+
iconSpace?: any;
|
|
30
|
+
layoutDirection?: string | undefined;
|
|
31
|
+
fontSize?: any;
|
|
32
|
+
maxLines?: any;
|
|
33
|
+
textColor?: string | undefined;
|
|
34
|
+
focusTextColor?: string | undefined;
|
|
35
|
+
backgroundColor?: string | undefined;
|
|
36
|
+
focusBackgroundColor?: string | undefined;
|
|
37
|
+
normalBorderWidth?: any;
|
|
38
|
+
normalBorderColor?: string | undefined;
|
|
39
|
+
focusBorderColor?: string | undefined;
|
|
40
|
+
cornerRadius?: any;
|
|
41
|
+
focusScale?: any;
|
|
42
|
+
enableFocusBorder?: boolean | undefined;
|
|
43
|
+
autofocus?: boolean | undefined;
|
|
44
|
+
contentPadding?: any;
|
|
45
|
+
}>>> & Readonly<{
|
|
46
|
+
onOnButtonCustomEvent?: ((payload?: any) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
48
|
+
default?(_: {}): any;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
52
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
53
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
54
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
55
|
+
} : {
|
|
56
|
+
type: import('vue').PropType<T[K]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import QtxButton from './QtxButton.vue';
|
|
3
|
+
export declare const QtxButtonPlugin: {
|
|
4
|
+
install: (app: App) => void;
|
|
5
|
+
};
|
|
6
|
+
export { QtxButton };
|
|
7
|
+
export default QtxButtonPlugin;
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
QtxButton: typeof QtxButton;
|
|
11
|
+
'qtx-button': typeof QtxButton;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { QtxChannelNavProps, QtxChannelNavState, QtxChannelNavItem, QtxChannelNavEventPayload, QtxChannelNavScrollPayload } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<QtxChannelNavProps>>, {
|
|
3
|
+
getNativeNode(): any;
|
|
4
|
+
setActive(key: string): void;
|
|
5
|
+
getActiveKey(): Promise<string>;
|
|
6
|
+
getFocusedKey(): Promise<string>;
|
|
7
|
+
requestFocus(): Promise<string>;
|
|
8
|
+
clearFocus(): Promise<string>;
|
|
9
|
+
getState(): Promise<QtxChannelNavState>;
|
|
10
|
+
scrollToKey(key: string): Promise<string>;
|
|
11
|
+
updateItems(items: QtxChannelNavItem[]): Promise<string>;
|
|
12
|
+
setOrientation(orientation: string): Promise<string>;
|
|
13
|
+
setStyle(tokens: Partial<QtxChannelNavProps>): Promise<string>;
|
|
14
|
+
getItemCount(): Promise<number>;
|
|
15
|
+
getItemAt(index: number): Promise<QtxChannelNavItem>;
|
|
16
|
+
getScrollState(): Promise<QtxChannelNavState>;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
change: (key: string, payload: QtxChannelNavEventPayload) => void;
|
|
19
|
+
"update:active": (key: string) => void;
|
|
20
|
+
focus: (key: string, payload: QtxChannelNavEventPayload) => void;
|
|
21
|
+
blur: (key: string, payload: QtxChannelNavEventPayload) => void;
|
|
22
|
+
longClick: (key: string, payload: QtxChannelNavEventPayload) => void;
|
|
23
|
+
scroll: (payload: QtxChannelNavScrollPayload) => void;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<QtxChannelNavProps>>> & Readonly<{
|
|
25
|
+
onBlur?: ((key: string, payload: QtxChannelNavEventPayload) => any) | undefined;
|
|
26
|
+
onChange?: ((key: string, payload: QtxChannelNavEventPayload) => any) | undefined;
|
|
27
|
+
onFocus?: ((key: string, payload: QtxChannelNavEventPayload) => any) | undefined;
|
|
28
|
+
onScroll?: ((payload: QtxChannelNavScrollPayload) => any) | undefined;
|
|
29
|
+
"onUpdate:active"?: ((key: string) => any) | undefined;
|
|
30
|
+
onLongClick?: ((key: string, payload: QtxChannelNavEventPayload) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
items?: any;
|
|
3
|
+
active?: string | undefined;
|
|
4
|
+
orientation?: string | undefined;
|
|
5
|
+
itemWidth?: any;
|
|
6
|
+
itemHeight?: any;
|
|
7
|
+
gap?: any;
|
|
8
|
+
paddingLeft?: any;
|
|
9
|
+
paddingTop?: any;
|
|
10
|
+
paddingRight?: any;
|
|
11
|
+
paddingBottom?: any;
|
|
12
|
+
reverseLayout?: boolean | undefined;
|
|
13
|
+
iconPosition?: string | undefined;
|
|
14
|
+
gravity?: string | undefined;
|
|
15
|
+
align?: string | undefined;
|
|
16
|
+
crossAlign?: string | undefined;
|
|
17
|
+
fontSize?: any;
|
|
18
|
+
borderRadius?: any;
|
|
19
|
+
iconSize?: any;
|
|
20
|
+
focusBorderWidth?: any;
|
|
21
|
+
normalBg?: string | undefined;
|
|
22
|
+
normalText?: string | undefined;
|
|
23
|
+
focusBg?: string | undefined;
|
|
24
|
+
focusText?: string | undefined;
|
|
25
|
+
focusBorderColor?: string | undefined;
|
|
26
|
+
selectedBg?: string | undefined;
|
|
27
|
+
selectedText?: string | undefined;
|
|
28
|
+
disabledBg?: string | undefined;
|
|
29
|
+
disabledText?: string | undefined;
|
|
30
|
+
indicator?: string | undefined;
|
|
31
|
+
indicatorColor?: string | undefined;
|
|
32
|
+
indicatorSize?: any;
|
|
33
|
+
badgeBg?: string | undefined;
|
|
34
|
+
badgeText?: string | undefined;
|
|
35
|
+
scrollMode?: string | undefined;
|
|
36
|
+
smoothScroll?: boolean | undefined;
|
|
37
|
+
focusable?: boolean | undefined;
|
|
38
|
+
selectOnFocus?: boolean | undefined;
|
|
39
|
+
focusMemory?: boolean | undefined;
|
|
40
|
+
defaultFocusKey?: string | undefined;
|
|
41
|
+
maxPoolSize?: any;
|
|
42
|
+
}>>, {
|
|
43
|
+
getNativeNode: () => any;
|
|
44
|
+
setActive: (...args: any[]) => void;
|
|
45
|
+
getActiveKey: (...args: any[]) => void;
|
|
46
|
+
getFocusedKey: (...args: any[]) => void;
|
|
47
|
+
requestFocus: (...args: any[]) => void;
|
|
48
|
+
clearFocus: (...args: any[]) => void;
|
|
49
|
+
getState: (...args: any[]) => void;
|
|
50
|
+
scrollToKey: (...args: any[]) => void;
|
|
51
|
+
updateItems: (...args: any[]) => void;
|
|
52
|
+
setOrientation: (...args: any[]) => void;
|
|
53
|
+
setStyle: (...args: any[]) => void;
|
|
54
|
+
getItemCount: (...args: any[]) => void;
|
|
55
|
+
getItemAt: (...args: any[]) => void;
|
|
56
|
+
getScrollState: (...args: any[]) => void;
|
|
57
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
|
+
onChange: (payload?: any) => void;
|
|
59
|
+
onFocus: (payload?: any) => void;
|
|
60
|
+
onBlur: (payload?: any) => void;
|
|
61
|
+
onLongClick: (payload?: any) => void;
|
|
62
|
+
onScroll: (payload?: any) => void;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
64
|
+
items?: any;
|
|
65
|
+
active?: string | undefined;
|
|
66
|
+
orientation?: string | undefined;
|
|
67
|
+
itemWidth?: any;
|
|
68
|
+
itemHeight?: any;
|
|
69
|
+
gap?: any;
|
|
70
|
+
paddingLeft?: any;
|
|
71
|
+
paddingTop?: any;
|
|
72
|
+
paddingRight?: any;
|
|
73
|
+
paddingBottom?: any;
|
|
74
|
+
reverseLayout?: boolean | undefined;
|
|
75
|
+
iconPosition?: string | undefined;
|
|
76
|
+
gravity?: string | undefined;
|
|
77
|
+
align?: string | undefined;
|
|
78
|
+
crossAlign?: string | undefined;
|
|
79
|
+
fontSize?: any;
|
|
80
|
+
borderRadius?: any;
|
|
81
|
+
iconSize?: any;
|
|
82
|
+
focusBorderWidth?: any;
|
|
83
|
+
normalBg?: string | undefined;
|
|
84
|
+
normalText?: string | undefined;
|
|
85
|
+
focusBg?: string | undefined;
|
|
86
|
+
focusText?: string | undefined;
|
|
87
|
+
focusBorderColor?: string | undefined;
|
|
88
|
+
selectedBg?: string | undefined;
|
|
89
|
+
selectedText?: string | undefined;
|
|
90
|
+
disabledBg?: string | undefined;
|
|
91
|
+
disabledText?: string | undefined;
|
|
92
|
+
indicator?: string | undefined;
|
|
93
|
+
indicatorColor?: string | undefined;
|
|
94
|
+
indicatorSize?: any;
|
|
95
|
+
badgeBg?: string | undefined;
|
|
96
|
+
badgeText?: string | undefined;
|
|
97
|
+
scrollMode?: string | undefined;
|
|
98
|
+
smoothScroll?: boolean | undefined;
|
|
99
|
+
focusable?: boolean | undefined;
|
|
100
|
+
selectOnFocus?: boolean | undefined;
|
|
101
|
+
focusMemory?: boolean | undefined;
|
|
102
|
+
defaultFocusKey?: string | undefined;
|
|
103
|
+
maxPoolSize?: any;
|
|
104
|
+
}>>> & Readonly<{
|
|
105
|
+
onOnBlur?: ((payload?: any) => any) | undefined;
|
|
106
|
+
onOnChange?: ((payload?: any) => any) | undefined;
|
|
107
|
+
onOnFocus?: ((payload?: any) => any) | undefined;
|
|
108
|
+
onOnScroll?: ((payload?: any) => any) | undefined;
|
|
109
|
+
onOnLongClick?: ((payload?: any) => any) | undefined;
|
|
110
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
111
|
+
default?(_: {}): any;
|
|
112
|
+
}>;
|
|
113
|
+
export default _default;
|
|
114
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
115
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
116
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
117
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
118
|
+
} : {
|
|
119
|
+
type: import('vue').PropType<T[K]>;
|
|
120
|
+
required: true;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
124
|
+
new (): {
|
|
125
|
+
$slots: S;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import QtxChannelNav from './QtxChannelNav.vue';
|
|
3
|
+
export declare const QtxChannelNavPlugin: {
|
|
4
|
+
install: (app: App) => void;
|
|
5
|
+
};
|
|
6
|
+
export { QtxChannelNav };
|
|
7
|
+
export default QtxChannelNavPlugin;
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
QtxChannelNav: typeof QtxChannelNav;
|
|
11
|
+
'qtx-channel-nav': typeof QtxChannelNav;
|
|
12
|
+
}
|
|
13
|
+
}
|