yswk-ui 0.1.0 → 0.1.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/dist/component/live/script/type.d.ts +2 -2
- package/dist/component/scan/ScanTobaResult/type.d.ts +3 -0
- package/dist/component/scan/ScanTobaResultV2/type.d.ts +3 -0
- package/dist/index.es.js +3545 -3449
- package/dist/utils/busiHelper.d.ts +1 -0
- package/dist/wkc-ui/component/address/AddressForm/index.vue.d.ts +5 -0
- package/dist/wkc-ui/component/address/AddressForm/type.d.ts +58 -0
- package/dist/wkc-ui/component/address/AddressList/index.vue.d.ts +7 -0
- package/dist/wkc-ui/component/address/AddressList/type.d.ts +100 -0
- package/dist/wkc-ui/component/address/script/index.vue.d.ts +29 -0
- package/dist/wkc-ui/component/address/script/type.d.ts +28 -0
- package/dist/wkc-ui/component/base/btn/BtnLink/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/btn/BtnLink/type.d.ts +89 -0
- package/dist/wkc-ui/component/base/btn/CountdownButton/type.d.ts +34 -0
- package/dist/wkc-ui/component/base/media/AudioPlayer/index.vue.d.ts +36 -0
- package/dist/wkc-ui/component/base/media/BlockBackground/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/media/BlockBackground/type.d.ts +171 -0
- package/dist/wkc-ui/component/base/media/ImgCommon/data.d.ts +1 -0
- package/dist/wkc-ui/component/base/media/ImgCommon/index.vue.d.ts +10 -0
- package/dist/wkc-ui/component/base/media/ImgCommon/type.d.ts +77 -0
- package/dist/wkc-ui/component/base/media/PageBackground/index.vue.d.ts +33 -0
- package/dist/wkc-ui/component/base/media/UserImg/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/media/UserImg/type.d.ts +55 -0
- package/dist/wkc-ui/component/base/media/VideoPlayer/index.vue.d.ts +49 -0
- package/dist/wkc-ui/component/base/text/ActTimeAlert/index.vue.d.ts +13 -0
- package/dist/wkc-ui/component/base/text/ActTimeAlert/type.d.ts +25 -0
- package/dist/wkc-ui/component/base/text/TextCommon/data.d.ts +1 -0
- package/dist/wkc-ui/component/base/text/TextCommon/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/base/text/TextCommon/type.d.ts +179 -0
- package/dist/wkc-ui/component/base/time/Countdown/index.vue.d.ts +35 -0
- package/dist/wkc-ui/component/index.d.ts +76 -0
- package/dist/wkc-ui/component/live/LiveEnter/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/live/LiveEnter/type.d.ts +38 -0
- package/dist/wkc-ui/component/live/LivePassword/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/live/LivePassword/type.d.ts +31 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/Chat/MsgInput.vue.d.ts +25 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/Chat/TabChat.vue.d.ts +12 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabEvaluate.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabGIftRank.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabImg.vue.d.ts +6 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabInfo.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabSign.vue.d.ts +2 -0
- package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabsIndex.vue.d.ts +9 -0
- package/dist/wkc-ui/component/live/LiveStream/components/VideoPlay/VideoPlay.vue.d.ts +10 -0
- package/dist/wkc-ui/component/live/LiveStream/index.vue.d.ts +9 -0
- package/dist/wkc-ui/component/live/LiveStream/type.d.ts +137 -0
- package/dist/wkc-ui/component/live/LiveText/index.vue.d.ts +7 -0
- package/dist/wkc-ui/component/live/LiveText/type.d.ts +46 -0
- package/dist/wkc-ui/component/live/script/type.d.ts +247 -0
- package/dist/wkc-ui/component/lucky/BlindBox/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/BlindBox/type.d.ts +66 -0
- package/dist/wkc-ui/component/lucky/FlipCard/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/FlipCard/type.d.ts +47 -0
- package/dist/wkc-ui/component/lucky/LuckyBag/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/LuckyBag/type.d.ts +153 -0
- package/dist/wkc-ui/component/lucky/NineGrid/index.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/NineGrid/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/NineGrid/type.d.ts +54 -0
- package/dist/wkc-ui/component/lucky/PasswordLottery/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/PasswordLottery/type.d.ts +47 -0
- package/dist/wkc-ui/component/lucky/PlateLottery/index.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/PlateLottery/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/PlateLottery/type.d.ts +66 -0
- package/dist/wkc-ui/component/lucky/PrizeDisplay/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/PrizeDisplay/type.d.ts +50 -0
- package/dist/wkc-ui/component/lucky/RedPacketRain/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/lucky/RedPacketRain/type.d.ts +28 -0
- package/dist/wkc-ui/component/lucky/ScratchCard/index.d.ts +6 -0
- package/dist/wkc-ui/component/lucky/ScratchCard/index.vue.d.ts +8 -0
- package/dist/wkc-ui/component/lucky/ScratchCard/type.d.ts +47 -0
- package/dist/wkc-ui/component/lucky/script/index.vue.d.ts +46 -0
- package/dist/wkc-ui/component/lucky/script/type.d.ts +37 -0
- package/dist/wkc-ui/component/point/script/type.d.ts +20 -0
- package/dist/wkc-ui/component/pop/PopNotice/index.vue.d.ts +2 -0
- package/dist/wkc-ui/component/pop/PopOverlay/index.vue.d.ts +9 -0
- package/dist/wkc-ui/component/pop/PopOverlay/type.d.ts +11 -0
- package/dist/wkc-ui/component/prize/MyPrizeList/index.vue.d.ts +3 -0
- package/dist/wkc-ui/component/prize/MyPrizeList/type.d.ts +115 -0
- package/dist/wkc-ui/component/prize/WinRecordBarrage/index.vue.d.ts +6 -0
- package/dist/wkc-ui/component/prize/WinRecordBarrage/type.d.ts +41 -0
- package/dist/wkc-ui/component/prize/WinRecordList/index.vue.d.ts +8 -0
- package/dist/wkc-ui/component/prize/WinRecordList/type.d.ts +54 -0
- package/dist/wkc-ui/component/register.d.ts +8 -0
- package/dist/wkc-ui/component/scan/ScanTobaInput/index.vue.d.ts +18 -0
- package/dist/wkc-ui/component/scan/ScanTobaInput/type.d.ts +187 -0
- package/dist/wkc-ui/component/scan/ScanTobaResult/index.vue.d.ts +10 -0
- package/dist/wkc-ui/component/scan/ScanTobaResult/type.d.ts +148 -0
- package/dist/wkc-ui/component/scan/ScanTobaResultV2/index.vue.d.ts +10 -0
- package/dist/wkc-ui/component/scan/ScanTobaResultV2/type.d.ts +154 -0
- package/dist/wkc-ui/component/shared/PopupWrapper/index.vue.d.ts +36 -0
- package/dist/wkc-ui/component/test/CaptchaInput/index.vue.d.ts +38 -0
- package/dist/wkc-ui/constants.d.ts +63 -0
- package/dist/wkc-ui/index.d.ts +3 -0
- package/dist/wkc-ui/types/act.d.ts +506 -0
- package/dist/wkc-ui/types/component.d.ts +30 -0
- package/dist/wkc-ui/utils/busiHelper.d.ts +24 -0
- package/dist/wkc-ui/utils/index.d.ts +12 -0
- package/dist/wkc-ui/utils/libraryManager.d.ts +154 -0
- package/dist/wkc-ui/utils/request.d.ts +29 -0
- package/dist/wkc-ui/utils/sessionHelper.d.ts +23 -0
- package/dist/wkc-ui/utils/styleHelper.d.ts +44 -0
- package/dist/wkc-ui/vite.config.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
|
|
3
|
+
styleSchema: import('./type').IStyleSchema;
|
|
4
|
+
LsTab: import('./type').ITab;
|
|
5
|
+
LsVideo: import('./type').IVideo;
|
|
6
|
+
LsComment: import('./type').IComment;
|
|
7
|
+
pageParams: import('./type').IPageParams;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export interface IStyleSchema {
|
|
2
|
+
position: {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
zIndex: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface IPageParams {
|
|
11
|
+
streamUrl?: string;
|
|
12
|
+
hdStreamUrl?: string;
|
|
13
|
+
sdStreamUrl?: string;
|
|
14
|
+
ldStreamUrl?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
viewerText?: string;
|
|
17
|
+
poster?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IVideo {
|
|
20
|
+
styleSchema?: {
|
|
21
|
+
footerLayout: 'left' | 'right' | 'between';
|
|
22
|
+
footerBorder: string;
|
|
23
|
+
quality: {
|
|
24
|
+
buttonWidth: number;
|
|
25
|
+
buttonHeight: number;
|
|
26
|
+
borderRadius: number;
|
|
27
|
+
fontSize: number;
|
|
28
|
+
textColor: string;
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
activeTextColor: string;
|
|
31
|
+
activeBackgroundColor: string;
|
|
32
|
+
};
|
|
33
|
+
viewer: {
|
|
34
|
+
text: string;
|
|
35
|
+
textColor: string;
|
|
36
|
+
fontSize: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface ITabItem {
|
|
41
|
+
visible: boolean;
|
|
42
|
+
alias: string;
|
|
43
|
+
orderTag: number;
|
|
44
|
+
backgroundImage: string;
|
|
45
|
+
backgroundColor: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ITabTextColor {
|
|
48
|
+
color: string;
|
|
49
|
+
activeColor: string;
|
|
50
|
+
activeLine: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ITabAppearance {
|
|
53
|
+
mode: 'line' | 'filled';
|
|
54
|
+
common: {
|
|
55
|
+
textColor: string;
|
|
56
|
+
activeTextColor: string;
|
|
57
|
+
isWeight?: boolean;
|
|
58
|
+
bgColor?: string;
|
|
59
|
+
};
|
|
60
|
+
line: {
|
|
61
|
+
activeLineColor: string;
|
|
62
|
+
};
|
|
63
|
+
filled: {
|
|
64
|
+
background: string;
|
|
65
|
+
activeBackground: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface IMsgAppearance {
|
|
69
|
+
showNickName: boolean;
|
|
70
|
+
nameColor: string;
|
|
71
|
+
nameBgColor: string;
|
|
72
|
+
msgColor: string;
|
|
73
|
+
msgBgColor: string;
|
|
74
|
+
borderStyle: 'style1' | 'style2' | 'style3';
|
|
75
|
+
radius: number;
|
|
76
|
+
msgBorderColor: string;
|
|
77
|
+
}
|
|
78
|
+
export interface IGiftGifEffectItem {
|
|
79
|
+
code: string;
|
|
80
|
+
url: string;
|
|
81
|
+
}
|
|
82
|
+
export interface IGiftGifConfig {
|
|
83
|
+
mode: 'none' | 'toLeft' | 'toTop';
|
|
84
|
+
previewGiftId: string;
|
|
85
|
+
textColor: string;
|
|
86
|
+
backgroundType: 'color' | 'gradient';
|
|
87
|
+
backgroundColor: string;
|
|
88
|
+
backgroundGradient: string;
|
|
89
|
+
leftIcon: string;
|
|
90
|
+
}
|
|
91
|
+
export interface IChatTabItem extends ITabItem {
|
|
92
|
+
msgAppearance: IMsgAppearance;
|
|
93
|
+
giftGif: IGiftGifConfig;
|
|
94
|
+
}
|
|
95
|
+
export interface ITab {
|
|
96
|
+
styleSchema?: {
|
|
97
|
+
textColor?: ITabTextColor;
|
|
98
|
+
appearance?: ITabAppearance;
|
|
99
|
+
chat: IChatTabItem;
|
|
100
|
+
info: ITabItem;
|
|
101
|
+
sign: ITabItem;
|
|
102
|
+
giftRank: ITabItem;
|
|
103
|
+
evaluate: ITabItem;
|
|
104
|
+
img: ITabItem;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export interface ICommentMenuItem {
|
|
108
|
+
visible: boolean;
|
|
109
|
+
iconUrl: string;
|
|
110
|
+
orderTag: number;
|
|
111
|
+
}
|
|
112
|
+
export interface IComment {
|
|
113
|
+
styleSchema?: {
|
|
114
|
+
topBorder: string;
|
|
115
|
+
input: {
|
|
116
|
+
backgroundColor: string;
|
|
117
|
+
leftIcon: string;
|
|
118
|
+
placeholder: string;
|
|
119
|
+
};
|
|
120
|
+
prizeRecord: ICommentMenuItem;
|
|
121
|
+
jump: ICommentMenuItem & {
|
|
122
|
+
targetUrl: string;
|
|
123
|
+
};
|
|
124
|
+
gift: ICommentMenuItem;
|
|
125
|
+
like: ICommentMenuItem & {
|
|
126
|
+
effectStyle: 'style1' | 'style2' | 'style3';
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface IProps {
|
|
131
|
+
styleSchema?: IStyleSchema;
|
|
132
|
+
pageParams?: IPageParams;
|
|
133
|
+
LsVideo: IVideo;
|
|
134
|
+
LsTab: ITab;
|
|
135
|
+
LsComment: IComment;
|
|
136
|
+
}
|
|
137
|
+
export declare const defaultProps: IProps;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
|
|
3
|
+
styleSchema: import('./type').IStyleSchema;
|
|
4
|
+
pageParams: import('./type').IPageParams;
|
|
5
|
+
previewConfig: Record<string, any>;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ILiveInfo } from '../../../types/act';
|
|
2
|
+
export type TextMode = 'appointment' | 'name' | 'subTitle';
|
|
3
|
+
export interface IStyleSchema {
|
|
4
|
+
position: {
|
|
5
|
+
top: number;
|
|
6
|
+
left: number;
|
|
7
|
+
width: number | string;
|
|
8
|
+
height: number | string;
|
|
9
|
+
zIndex: number;
|
|
10
|
+
};
|
|
11
|
+
textConfig: {
|
|
12
|
+
testText?: string;
|
|
13
|
+
textMode: TextMode;
|
|
14
|
+
appointment: {
|
|
15
|
+
leftText: string;
|
|
16
|
+
leftColor: string;
|
|
17
|
+
rightText: string;
|
|
18
|
+
rightColor: string;
|
|
19
|
+
fontSize: number;
|
|
20
|
+
};
|
|
21
|
+
name: {
|
|
22
|
+
color: string;
|
|
23
|
+
isWeight: boolean;
|
|
24
|
+
isItaly: boolean;
|
|
25
|
+
fontSize: number;
|
|
26
|
+
};
|
|
27
|
+
subTitle: {
|
|
28
|
+
color: string;
|
|
29
|
+
isWeight: boolean;
|
|
30
|
+
isItaly: boolean;
|
|
31
|
+
fontSize: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface IPageParams {
|
|
36
|
+
appointmentCount: number;
|
|
37
|
+
title: string;
|
|
38
|
+
subTitle: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IProps {
|
|
41
|
+
styleSchema: IStyleSchema;
|
|
42
|
+
pageParams?: IPageParams;
|
|
43
|
+
previewConfig?: Record<string, any>;
|
|
44
|
+
liveInfo?: ILiveInfo;
|
|
45
|
+
}
|
|
46
|
+
export declare const defaultProps: Omit<Required<IProps>, 'liveInfo'>;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
export interface IBaseRecord {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export interface IApiConfig extends IBaseRecord {
|
|
5
|
+
key?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
method?: string;
|
|
8
|
+
paramsSet?: IBaseRecord[];
|
|
9
|
+
}
|
|
10
|
+
export interface ITrackingItem extends IBaseRecord {
|
|
11
|
+
label?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ILiveBusinessSchema {
|
|
15
|
+
trackingSet?: {
|
|
16
|
+
trackingList?: ITrackingItem[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface ILiveInfo extends IBaseRecord {
|
|
20
|
+
id?: string;
|
|
21
|
+
liveId?: string;
|
|
22
|
+
tabConfigId?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ILuckyInfo extends IBaseRecord {
|
|
25
|
+
id?: string;
|
|
26
|
+
luckyId?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IPrizeInfo extends IBaseRecord {
|
|
29
|
+
id?: string;
|
|
30
|
+
prizeRecordId?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IGiftInfo extends IBaseRecord {
|
|
33
|
+
id?: string;
|
|
34
|
+
giftId?: string;
|
|
35
|
+
recordId?: string;
|
|
36
|
+
giftRecordId?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IMemberInfo extends IBaseRecord {
|
|
39
|
+
id?: string;
|
|
40
|
+
phone?: string;
|
|
41
|
+
nickname?: string;
|
|
42
|
+
headImgUrl?: string;
|
|
43
|
+
headImageUrl?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IProps {
|
|
46
|
+
businessSchema?: ILiveBusinessSchema;
|
|
47
|
+
previewConfig?: Record<string, IApiConfig> | IApiConfig[];
|
|
48
|
+
liveInfo?: ILiveInfo;
|
|
49
|
+
luckyInfo?: ILuckyInfo;
|
|
50
|
+
prizeInfo?: IPrizeInfo;
|
|
51
|
+
giftInfo?: IGiftInfo;
|
|
52
|
+
memberInfo?: IMemberInfo;
|
|
53
|
+
liveId?: string;
|
|
54
|
+
tabConfigId?: string;
|
|
55
|
+
luckyId?: string;
|
|
56
|
+
prizeRecordId?: string;
|
|
57
|
+
giftId?: string;
|
|
58
|
+
giftRecordId?: string;
|
|
59
|
+
phone?: string;
|
|
60
|
+
checkCode?: string;
|
|
61
|
+
password?: string;
|
|
62
|
+
lat?: number | string;
|
|
63
|
+
lng?: number | string;
|
|
64
|
+
}
|
|
65
|
+
export interface IMessageState {
|
|
66
|
+
interval: number;
|
|
67
|
+
likeNum: number;
|
|
68
|
+
liveStreamStatus: number | null;
|
|
69
|
+
liveStatus: number | null;
|
|
70
|
+
commentable: boolean;
|
|
71
|
+
personTimeNum: number;
|
|
72
|
+
personCountNum: number;
|
|
73
|
+
audienceNum: number;
|
|
74
|
+
currentTime: number | null;
|
|
75
|
+
messages: IBaseRecord[];
|
|
76
|
+
topMessage: IBaseRecord[];
|
|
77
|
+
gifts: IBaseRecord[];
|
|
78
|
+
luckyConfig: IBaseRecord | string | null;
|
|
79
|
+
luckyBagsConfig: IBaseRecord | string | null;
|
|
80
|
+
}
|
|
81
|
+
export interface ILiveState {
|
|
82
|
+
loading: boolean;
|
|
83
|
+
initialized: boolean;
|
|
84
|
+
entered: boolean;
|
|
85
|
+
polling: boolean;
|
|
86
|
+
pollingTimer: ReturnType<typeof setTimeout> | null;
|
|
87
|
+
liveTicket: string;
|
|
88
|
+
liveInfo: ILiveInfo | null;
|
|
89
|
+
appointmentInfo: IBaseRecord | null;
|
|
90
|
+
tabConfig: IBaseRecord | null;
|
|
91
|
+
rewardRankList: IBaseRecord[];
|
|
92
|
+
giftList: IBaseRecord[];
|
|
93
|
+
pointBalance: number | string;
|
|
94
|
+
signList: IBaseRecord[];
|
|
95
|
+
signStatus: IBaseRecord | null;
|
|
96
|
+
signLuckyInfo: IBaseRecord | null;
|
|
97
|
+
memberInfo: IMemberInfo | null;
|
|
98
|
+
evaluation: IBaseRecord | null;
|
|
99
|
+
prizeRecordList: IBaseRecord[];
|
|
100
|
+
luckyBagsInfo: IBaseRecord | null;
|
|
101
|
+
bagWinners: IBaseRecord[];
|
|
102
|
+
bagDrawResult: IBaseRecord | null;
|
|
103
|
+
messageData: IMessageState;
|
|
104
|
+
}
|
|
105
|
+
export declare const COMPONENT_EMIT_KEY = "comEvent";
|
|
106
|
+
export declare const COMPONENT_EVENT: {
|
|
107
|
+
updatePageParams: string;
|
|
108
|
+
getLocation: string;
|
|
109
|
+
openPopup: string;
|
|
110
|
+
};
|
|
111
|
+
export declare const liveScriptProps: {
|
|
112
|
+
businessSchema: {
|
|
113
|
+
type: ObjectConstructor;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
previewConfig: {
|
|
117
|
+
type: (ArrayConstructor | ObjectConstructor)[];
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
liveInfo: {
|
|
121
|
+
type: ObjectConstructor;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
luckyInfo: {
|
|
125
|
+
type: ObjectConstructor;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
prizeInfo: {
|
|
129
|
+
type: ObjectConstructor;
|
|
130
|
+
default: undefined;
|
|
131
|
+
};
|
|
132
|
+
giftInfo: {
|
|
133
|
+
type: ObjectConstructor;
|
|
134
|
+
default: undefined;
|
|
135
|
+
};
|
|
136
|
+
memberInfo: {
|
|
137
|
+
type: ObjectConstructor;
|
|
138
|
+
default: undefined;
|
|
139
|
+
};
|
|
140
|
+
liveId: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
tabConfigId: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
luckyId: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
152
|
+
prizeRecordId: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
giftId: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
giftRecordId: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
phone: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
checkCode: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
password: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
lat: {
|
|
177
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
178
|
+
default: number;
|
|
179
|
+
};
|
|
180
|
+
lng: {
|
|
181
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
182
|
+
default: number;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export declare const defaultProps: {
|
|
186
|
+
businessSchema: undefined;
|
|
187
|
+
previewConfig: {};
|
|
188
|
+
liveInfo: undefined;
|
|
189
|
+
luckyInfo: undefined;
|
|
190
|
+
prizeInfo: undefined;
|
|
191
|
+
giftInfo: undefined;
|
|
192
|
+
memberInfo: undefined;
|
|
193
|
+
liveId: string;
|
|
194
|
+
tabConfigId: string;
|
|
195
|
+
luckyId: string;
|
|
196
|
+
prizeRecordId: string;
|
|
197
|
+
giftId: string;
|
|
198
|
+
giftRecordId: string;
|
|
199
|
+
phone: string;
|
|
200
|
+
checkCode: string;
|
|
201
|
+
password: string;
|
|
202
|
+
lat: number;
|
|
203
|
+
lng: number;
|
|
204
|
+
};
|
|
205
|
+
export declare const normalizeArray: <T = IBaseRecord>(value: unknown) => T[];
|
|
206
|
+
export declare const parseJSONSafely: (value: unknown) => any;
|
|
207
|
+
export declare const getConfigId: (config: unknown) => any;
|
|
208
|
+
export declare const replaceTemplateValue: (value: unknown, params?: IBaseRecord) => unknown;
|
|
209
|
+
export declare const getPreviewItem: (previewConfig: Record<string, IApiConfig> | IApiConfig[] | undefined, key: string) => IApiConfig | null;
|
|
210
|
+
export declare const buildPreviewRequestConfig: ({ currentConfig, resetParams, }: {
|
|
211
|
+
currentConfig: IApiConfig;
|
|
212
|
+
resetParams?: IBaseRecord;
|
|
213
|
+
}) => IBaseRecord;
|
|
214
|
+
export declare const requestByPreviewConfig: ({ request, previewConfig, key, resetParams, }: {
|
|
215
|
+
request: (config: IBaseRecord) => Promise<any>;
|
|
216
|
+
previewConfig: Record<string, IApiConfig> | IApiConfig[] | undefined;
|
|
217
|
+
key: string;
|
|
218
|
+
resetParams?: IBaseRecord;
|
|
219
|
+
}) => Promise<any>;
|
|
220
|
+
export declare const createDefaultMessageData: () => IMessageState;
|
|
221
|
+
export declare const createDefaultLiveState: () => ILiveState;
|
|
222
|
+
export declare const createLivePublicState: (liveState: ILiveState, locationInfo: IBaseRecord) => {
|
|
223
|
+
initialized: boolean;
|
|
224
|
+
loading: boolean;
|
|
225
|
+
entered: boolean;
|
|
226
|
+
polling: boolean;
|
|
227
|
+
liveTicket: string;
|
|
228
|
+
liveInfo: ILiveInfo | null;
|
|
229
|
+
appointmentInfo: IBaseRecord | null;
|
|
230
|
+
tabConfig: IBaseRecord | null;
|
|
231
|
+
rewardRankList: IBaseRecord[];
|
|
232
|
+
giftList: IBaseRecord[];
|
|
233
|
+
pointBalance: string | number;
|
|
234
|
+
signList: IBaseRecord[];
|
|
235
|
+
signStatus: IBaseRecord | null;
|
|
236
|
+
signLuckyInfo: IBaseRecord | null;
|
|
237
|
+
memberInfo: IMemberInfo | null;
|
|
238
|
+
evaluation: IBaseRecord | null;
|
|
239
|
+
prizeRecordList: IBaseRecord[];
|
|
240
|
+
luckyBagsInfo: IBaseRecord | null;
|
|
241
|
+
bagWinners: IBaseRecord[];
|
|
242
|
+
bagDrawResult: IBaseRecord | null;
|
|
243
|
+
messageData: IMessageState;
|
|
244
|
+
locationInfo: IBaseRecord;
|
|
245
|
+
};
|
|
246
|
+
export declare const getEditingState: () => boolean;
|
|
247
|
+
export declare const triggerToast: (ToastImpl: ((message: string) => any) | undefined, message?: string) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
|
|
3
|
+
styleSchema: import('./type').IStyleSchema;
|
|
4
|
+
businessSchema: import('./type').IBusinessSchema;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface IStyleSchema {
|
|
2
|
+
position: {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
zIndex: number;
|
|
8
|
+
centerHorizontal?: boolean;
|
|
9
|
+
};
|
|
10
|
+
showcase: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
backgroundImage: string;
|
|
13
|
+
borderRadius: string;
|
|
14
|
+
padding: number;
|
|
15
|
+
gap: number;
|
|
16
|
+
shelf: {
|
|
17
|
+
row1Top: number;
|
|
18
|
+
row2Top: number;
|
|
19
|
+
row3Top: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
drawType: {
|
|
23
|
+
drawTypeSelect: 'clickButton' | 'clickBlindBox';
|
|
24
|
+
};
|
|
25
|
+
blindBoxClickButton: {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
activeBackgroundColor: string;
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
blindBoxImages: {
|
|
32
|
+
imgList: string[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
blindBoxClickBlindBox: {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
blindBoxImages: {
|
|
39
|
+
imgList: string[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
button: {
|
|
43
|
+
buttonImage: string;
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
marginTop: number;
|
|
49
|
+
};
|
|
50
|
+
animation: {
|
|
51
|
+
duration: number;
|
|
52
|
+
rounds: number;
|
|
53
|
+
animationMode: 'random' | 'horizontal-s' | 'vertical-s' | 'row-order';
|
|
54
|
+
previewAnimation?: boolean;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface IBusinessSchema {
|
|
58
|
+
}
|
|
59
|
+
export interface IProps {
|
|
60
|
+
styleSchema?: IStyleSchema;
|
|
61
|
+
businessSchema?: IBusinessSchema;
|
|
62
|
+
pageParams?: {
|
|
63
|
+
allowDraw: boolean;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export declare const defaultProps: IProps;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
|
|
3
|
+
styleSchema: import('./type').IStyleSchema;
|
|
4
|
+
businessSchema: import('./type').IBusinessSchema;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface IStyleSchema {
|
|
2
|
+
position: {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
width: number;
|
|
6
|
+
zIndex: number;
|
|
7
|
+
centerHorizontal?: boolean;
|
|
8
|
+
};
|
|
9
|
+
layout: {
|
|
10
|
+
cardCount: number;
|
|
11
|
+
gap: number;
|
|
12
|
+
cardHeight: number;
|
|
13
|
+
};
|
|
14
|
+
cardFront: {
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
backgroundImage: string;
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
borderColor: string;
|
|
19
|
+
borderWidth: number;
|
|
20
|
+
};
|
|
21
|
+
cardBack: {
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
backgroundImage: string;
|
|
24
|
+
prizeImgSize: number;
|
|
25
|
+
prizeImages: {
|
|
26
|
+
imgList: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
animation: {
|
|
30
|
+
duration: number;
|
|
31
|
+
previewAnimation?: boolean;
|
|
32
|
+
};
|
|
33
|
+
flipSettings: {
|
|
34
|
+
flipTimes: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface IBusinessSchema {
|
|
38
|
+
}
|
|
39
|
+
export interface IProps {
|
|
40
|
+
styleSchema?: IStyleSchema;
|
|
41
|
+
businessSchema?: IBusinessSchema;
|
|
42
|
+
pageParams?: {
|
|
43
|
+
allowFlip: boolean;
|
|
44
|
+
remainingFlips: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export declare const defaultProps: IProps;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3
|
+
export default _default;
|