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.
Files changed (103) hide show
  1. package/dist/component/live/script/type.d.ts +2 -2
  2. package/dist/component/scan/ScanTobaResult/type.d.ts +3 -0
  3. package/dist/component/scan/ScanTobaResultV2/type.d.ts +3 -0
  4. package/dist/index.es.js +3545 -3449
  5. package/dist/utils/busiHelper.d.ts +1 -0
  6. package/dist/wkc-ui/component/address/AddressForm/index.vue.d.ts +5 -0
  7. package/dist/wkc-ui/component/address/AddressForm/type.d.ts +58 -0
  8. package/dist/wkc-ui/component/address/AddressList/index.vue.d.ts +7 -0
  9. package/dist/wkc-ui/component/address/AddressList/type.d.ts +100 -0
  10. package/dist/wkc-ui/component/address/script/index.vue.d.ts +29 -0
  11. package/dist/wkc-ui/component/address/script/type.d.ts +28 -0
  12. package/dist/wkc-ui/component/base/btn/BtnLink/index.vue.d.ts +6 -0
  13. package/dist/wkc-ui/component/base/btn/BtnLink/type.d.ts +89 -0
  14. package/dist/wkc-ui/component/base/btn/CountdownButton/type.d.ts +34 -0
  15. package/dist/wkc-ui/component/base/media/AudioPlayer/index.vue.d.ts +36 -0
  16. package/dist/wkc-ui/component/base/media/BlockBackground/index.vue.d.ts +6 -0
  17. package/dist/wkc-ui/component/base/media/BlockBackground/type.d.ts +171 -0
  18. package/dist/wkc-ui/component/base/media/ImgCommon/data.d.ts +1 -0
  19. package/dist/wkc-ui/component/base/media/ImgCommon/index.vue.d.ts +10 -0
  20. package/dist/wkc-ui/component/base/media/ImgCommon/type.d.ts +77 -0
  21. package/dist/wkc-ui/component/base/media/PageBackground/index.vue.d.ts +33 -0
  22. package/dist/wkc-ui/component/base/media/UserImg/index.vue.d.ts +6 -0
  23. package/dist/wkc-ui/component/base/media/UserImg/type.d.ts +55 -0
  24. package/dist/wkc-ui/component/base/media/VideoPlayer/index.vue.d.ts +49 -0
  25. package/dist/wkc-ui/component/base/text/ActTimeAlert/index.vue.d.ts +13 -0
  26. package/dist/wkc-ui/component/base/text/ActTimeAlert/type.d.ts +25 -0
  27. package/dist/wkc-ui/component/base/text/TextCommon/data.d.ts +1 -0
  28. package/dist/wkc-ui/component/base/text/TextCommon/index.vue.d.ts +6 -0
  29. package/dist/wkc-ui/component/base/text/TextCommon/type.d.ts +179 -0
  30. package/dist/wkc-ui/component/base/time/Countdown/index.vue.d.ts +35 -0
  31. package/dist/wkc-ui/component/index.d.ts +76 -0
  32. package/dist/wkc-ui/component/live/LiveEnter/index.vue.d.ts +6 -0
  33. package/dist/wkc-ui/component/live/LiveEnter/type.d.ts +38 -0
  34. package/dist/wkc-ui/component/live/LivePassword/index.vue.d.ts +6 -0
  35. package/dist/wkc-ui/component/live/LivePassword/type.d.ts +31 -0
  36. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/Chat/MsgInput.vue.d.ts +25 -0
  37. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/Chat/TabChat.vue.d.ts +12 -0
  38. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabEvaluate.vue.d.ts +2 -0
  39. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabGIftRank.vue.d.ts +2 -0
  40. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabImg.vue.d.ts +6 -0
  41. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabInfo.vue.d.ts +2 -0
  42. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabSign.vue.d.ts +2 -0
  43. package/dist/wkc-ui/component/live/LiveStream/components/Tabs/TabsIndex.vue.d.ts +9 -0
  44. package/dist/wkc-ui/component/live/LiveStream/components/VideoPlay/VideoPlay.vue.d.ts +10 -0
  45. package/dist/wkc-ui/component/live/LiveStream/index.vue.d.ts +9 -0
  46. package/dist/wkc-ui/component/live/LiveStream/type.d.ts +137 -0
  47. package/dist/wkc-ui/component/live/LiveText/index.vue.d.ts +7 -0
  48. package/dist/wkc-ui/component/live/LiveText/type.d.ts +46 -0
  49. package/dist/wkc-ui/component/live/script/type.d.ts +247 -0
  50. package/dist/wkc-ui/component/lucky/BlindBox/index.vue.d.ts +6 -0
  51. package/dist/wkc-ui/component/lucky/BlindBox/type.d.ts +66 -0
  52. package/dist/wkc-ui/component/lucky/FlipCard/index.vue.d.ts +6 -0
  53. package/dist/wkc-ui/component/lucky/FlipCard/type.d.ts +47 -0
  54. package/dist/wkc-ui/component/lucky/LuckyBag/index.vue.d.ts +3 -0
  55. package/dist/wkc-ui/component/lucky/LuckyBag/type.d.ts +153 -0
  56. package/dist/wkc-ui/component/lucky/NineGrid/index.d.ts +6 -0
  57. package/dist/wkc-ui/component/lucky/NineGrid/index.vue.d.ts +6 -0
  58. package/dist/wkc-ui/component/lucky/NineGrid/type.d.ts +54 -0
  59. package/dist/wkc-ui/component/lucky/PasswordLottery/index.vue.d.ts +3 -0
  60. package/dist/wkc-ui/component/lucky/PasswordLottery/type.d.ts +47 -0
  61. package/dist/wkc-ui/component/lucky/PlateLottery/index.d.ts +6 -0
  62. package/dist/wkc-ui/component/lucky/PlateLottery/index.vue.d.ts +6 -0
  63. package/dist/wkc-ui/component/lucky/PlateLottery/type.d.ts +66 -0
  64. package/dist/wkc-ui/component/lucky/PrizeDisplay/index.vue.d.ts +3 -0
  65. package/dist/wkc-ui/component/lucky/PrizeDisplay/type.d.ts +50 -0
  66. package/dist/wkc-ui/component/lucky/RedPacketRain/index.vue.d.ts +3 -0
  67. package/dist/wkc-ui/component/lucky/RedPacketRain/type.d.ts +28 -0
  68. package/dist/wkc-ui/component/lucky/ScratchCard/index.d.ts +6 -0
  69. package/dist/wkc-ui/component/lucky/ScratchCard/index.vue.d.ts +8 -0
  70. package/dist/wkc-ui/component/lucky/ScratchCard/type.d.ts +47 -0
  71. package/dist/wkc-ui/component/lucky/script/index.vue.d.ts +46 -0
  72. package/dist/wkc-ui/component/lucky/script/type.d.ts +37 -0
  73. package/dist/wkc-ui/component/point/script/type.d.ts +20 -0
  74. package/dist/wkc-ui/component/pop/PopNotice/index.vue.d.ts +2 -0
  75. package/dist/wkc-ui/component/pop/PopOverlay/index.vue.d.ts +9 -0
  76. package/dist/wkc-ui/component/pop/PopOverlay/type.d.ts +11 -0
  77. package/dist/wkc-ui/component/prize/MyPrizeList/index.vue.d.ts +3 -0
  78. package/dist/wkc-ui/component/prize/MyPrizeList/type.d.ts +115 -0
  79. package/dist/wkc-ui/component/prize/WinRecordBarrage/index.vue.d.ts +6 -0
  80. package/dist/wkc-ui/component/prize/WinRecordBarrage/type.d.ts +41 -0
  81. package/dist/wkc-ui/component/prize/WinRecordList/index.vue.d.ts +8 -0
  82. package/dist/wkc-ui/component/prize/WinRecordList/type.d.ts +54 -0
  83. package/dist/wkc-ui/component/register.d.ts +8 -0
  84. package/dist/wkc-ui/component/scan/ScanTobaInput/index.vue.d.ts +18 -0
  85. package/dist/wkc-ui/component/scan/ScanTobaInput/type.d.ts +187 -0
  86. package/dist/wkc-ui/component/scan/ScanTobaResult/index.vue.d.ts +10 -0
  87. package/dist/wkc-ui/component/scan/ScanTobaResult/type.d.ts +148 -0
  88. package/dist/wkc-ui/component/scan/ScanTobaResultV2/index.vue.d.ts +10 -0
  89. package/dist/wkc-ui/component/scan/ScanTobaResultV2/type.d.ts +154 -0
  90. package/dist/wkc-ui/component/shared/PopupWrapper/index.vue.d.ts +36 -0
  91. package/dist/wkc-ui/component/test/CaptchaInput/index.vue.d.ts +38 -0
  92. package/dist/wkc-ui/constants.d.ts +63 -0
  93. package/dist/wkc-ui/index.d.ts +3 -0
  94. package/dist/wkc-ui/types/act.d.ts +506 -0
  95. package/dist/wkc-ui/types/component.d.ts +30 -0
  96. package/dist/wkc-ui/utils/busiHelper.d.ts +24 -0
  97. package/dist/wkc-ui/utils/index.d.ts +12 -0
  98. package/dist/wkc-ui/utils/libraryManager.d.ts +154 -0
  99. package/dist/wkc-ui/utils/request.d.ts +29 -0
  100. package/dist/wkc-ui/utils/sessionHelper.d.ts +23 -0
  101. package/dist/wkc-ui/utils/styleHelper.d.ts +44 -0
  102. package/dist/wkc-ui/vite.config.d.ts +2 -0
  103. package/package.json +1 -1
@@ -0,0 +1,153 @@
1
+ export interface IActionConfig {
2
+ actionType: 'none' | 'navigation' | 'popup' | 'page';
3
+ presetUrl?: string;
4
+ popupSet?: {
5
+ popupAction?: 'open' | 'close' | 'closeAll';
6
+ targetPopupId?: string;
7
+ closeCurrentBeforeOpen?: boolean;
8
+ targetOpenId?: string;
9
+ };
10
+ pageAction?: 'close' | 'back' | 'reload';
11
+ }
12
+ export interface IEventRelative {
13
+ priority?: boolean;
14
+ eventKey?: string;
15
+ }
16
+ export interface IFeaturedPrize {
17
+ image: string;
18
+ name: string;
19
+ subText?: string;
20
+ quantityText?: string;
21
+ statusText?: string;
22
+ }
23
+ export interface ITaskItem {
24
+ id: string;
25
+ title: string;
26
+ subText?: string;
27
+ icon?: string;
28
+ completed?: boolean;
29
+ buttonText?: string;
30
+ buttonDisabled?: boolean;
31
+ actionConfig?: IActionConfig;
32
+ eventRelative?: IEventRelative;
33
+ }
34
+ export interface IStyleSchema {
35
+ position: {
36
+ left: number;
37
+ top: number;
38
+ width: number;
39
+ height: number;
40
+ zIndex: number;
41
+ centerHorizontal?: boolean;
42
+ };
43
+ container: {
44
+ backgroundColor: string;
45
+ gradientBackground?: string;
46
+ backgroundImage?: string;
47
+ borderRadius: string;
48
+ paddingTop: number;
49
+ paddingRight: number;
50
+ paddingBottom: number;
51
+ paddingLeft: number;
52
+ boxShadow?: string;
53
+ };
54
+ header: {
55
+ titleColor: string;
56
+ titleFontSize: number;
57
+ titleFontWeight: number;
58
+ statusBackgroundColor: string;
59
+ statusTextColor: string;
60
+ statusFontSize: number;
61
+ statusBorderRadius: string;
62
+ };
63
+ featuredPrize: {
64
+ cardBackgroundColor: string;
65
+ cardGradientBackground?: string;
66
+ cardBackgroundImage?: string;
67
+ cardBorderRadius: string;
68
+ imageWidth: number;
69
+ imageHeight: number;
70
+ imageBorderRadius: string;
71
+ titleColor: string;
72
+ titleFontSize: number;
73
+ titleFontWeight: number;
74
+ subTextColor: string;
75
+ subTextFontSize: number;
76
+ quantityColor: string;
77
+ quantityFontSize: number;
78
+ };
79
+ participant: {
80
+ iconColor: string;
81
+ textColor: string;
82
+ fontSize: number;
83
+ fontWeight: number;
84
+ };
85
+ taskList: {
86
+ backgroundColor: string;
87
+ gradientBackground?: string;
88
+ backgroundImage?: string;
89
+ borderRadius: string;
90
+ paddingTop: number;
91
+ paddingRight: number;
92
+ paddingBottom: number;
93
+ paddingLeft: number;
94
+ titleColor: string;
95
+ titleFontSize: number;
96
+ titleFontWeight: number;
97
+ descColor: string;
98
+ descFontSize: number;
99
+ itemGap: number;
100
+ };
101
+ taskItem: {
102
+ minHeight: number;
103
+ iconSize: number;
104
+ iconColor: string;
105
+ completedIconColor: string;
106
+ titleColor: string;
107
+ completedTitleColor: string;
108
+ titleFontSize: number;
109
+ titleFontWeight: number;
110
+ subTextColor: string;
111
+ subTextFontSize: number;
112
+ buttonWidth: number;
113
+ buttonHeight: number;
114
+ buttonBorderRadius: string;
115
+ buttonTextColor: string;
116
+ buttonTextFontSize: number;
117
+ buttonTextFontWeight: number;
118
+ buttonBackgroundColor: string;
119
+ buttonGradientBackground?: string;
120
+ buttonBackgroundImage?: string;
121
+ buttonDisabledBackgroundColor: string;
122
+ buttonDisabledTextColor: string;
123
+ };
124
+ primaryButton: {
125
+ marginTop: number;
126
+ height: number;
127
+ borderRadius: string;
128
+ textColor: string;
129
+ fontSize: number;
130
+ fontWeight: number;
131
+ disabledTextColor: string;
132
+ backgroundColor: string;
133
+ gradientBackground?: string;
134
+ backgroundImage?: string;
135
+ disabledBackgroundColor: string;
136
+ };
137
+ }
138
+ export interface IPageParams {
139
+ allowDraw?: boolean;
140
+ title?: string;
141
+ taskTitle?: string;
142
+ taskDescription?: string;
143
+ featuredPrize?: IFeaturedPrize;
144
+ participantText?: string;
145
+ taskList?: ITaskItem[];
146
+ drawButtonText?: string;
147
+ disabledButtonText?: string;
148
+ }
149
+ export interface IProps {
150
+ styleSchema?: IStyleSchema;
151
+ pageParams?: IPageParams;
152
+ }
153
+ export declare const defaultProps: IProps;
@@ -0,0 +1,6 @@
1
+ import { IComponentConfig } from '../../../types/component';
2
+ /**
3
+ * 九宫格抽奖组件完整配置
4
+ */
5
+ export declare const nineGridComponent: IComponentConfig;
6
+ export default nineGridComponent;
@@ -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,54 @@
1
+ export interface IPrizeItem {
2
+ name: string;
3
+ img: string;
4
+ rank: number;
5
+ }
6
+ export interface IStyleSchema {
7
+ position: {
8
+ top: number;
9
+ left: number;
10
+ width: number;
11
+ height: number;
12
+ zIndex: number;
13
+ centerHorizontal?: boolean;
14
+ };
15
+ grid: {
16
+ backgroundColor: string;
17
+ borderColor: string;
18
+ borderWidth: number;
19
+ borderRadius: string;
20
+ gap: number;
21
+ };
22
+ prizeItem: {
23
+ backgroundColor: string;
24
+ activeBackgroundColor: string;
25
+ backgroundImage: string;
26
+ activeBackgroundImage: string;
27
+ borderRadius: string;
28
+ imgSize: number;
29
+ prizeImages: {
30
+ imgList: string[];
31
+ };
32
+ };
33
+ button: {
34
+ buttonImage: string;
35
+ backgroundColor: string;
36
+ borderRadius: string;
37
+ };
38
+ animation: {
39
+ duration: number;
40
+ rounds: number;
41
+ previewAnimation?: boolean;
42
+ };
43
+ }
44
+ export interface IBusinessSchema {
45
+ prizes: IPrizeItem[];
46
+ }
47
+ export interface IProps {
48
+ styleSchema?: IStyleSchema;
49
+ businessSchema?: IBusinessSchema;
50
+ pageParams?: {
51
+ allowDraw: boolean;
52
+ };
53
+ }
54
+ 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;
@@ -0,0 +1,47 @@
1
+ export interface IStyleSchema {
2
+ position: {
3
+ left: number;
4
+ top: number;
5
+ width: number;
6
+ height: number;
7
+ zIndex: number;
8
+ centerHorizontal?: boolean;
9
+ };
10
+ inputConfig?: {
11
+ height?: number;
12
+ borderRadius?: number;
13
+ borderColor?: string;
14
+ backgroundColor?: string;
15
+ placeholder?: string;
16
+ textConfig?: {
17
+ fontSize?: number;
18
+ color?: string;
19
+ };
20
+ };
21
+ buttonConfig?: {
22
+ height?: number;
23
+ borderRadius?: number;
24
+ text?: string;
25
+ backgroundStyle?: {
26
+ backgroundColor?: string;
27
+ gradientBackground?: string;
28
+ backgroundImage?: string;
29
+ };
30
+ textConfig?: {
31
+ fontSize?: number;
32
+ fontWeight?: number;
33
+ color?: string;
34
+ };
35
+ };
36
+ }
37
+ export interface IBusinessSchema {
38
+ onSubmit?: string;
39
+ }
40
+ export interface IProps {
41
+ styleSchema?: IStyleSchema;
42
+ businessSchema?: IBusinessSchema;
43
+ pageParams?: {
44
+ correctPassword?: string;
45
+ };
46
+ }
47
+ export declare const defaultProps: IProps;
@@ -0,0 +1,6 @@
1
+ import { IComponentConfig } from '../../../types/component';
2
+ /**
3
+ * 转盘抽奖组件完整配置
4
+ */
5
+ export declare const plateLotteryComponent: IComponentConfig;
6
+ export default plateLotteryComponent;
@@ -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 IPrizeItem {
2
+ name: string;
3
+ img: string;
4
+ rank: number;
5
+ }
6
+ export interface IStyleSchema {
7
+ position: {
8
+ top: number;
9
+ left: number;
10
+ width: number;
11
+ height: number;
12
+ zIndex: number;
13
+ centerHorizontal?: boolean;
14
+ };
15
+ layout: {
16
+ prizeCount: number;
17
+ rotateMode: 'plate' | 'pointer';
18
+ backgroundImage: string;
19
+ backgroundColor: string;
20
+ padding: number;
21
+ };
22
+ plate: {
23
+ backgroundColor: string;
24
+ backgroundImage: string;
25
+ borderRadius: string;
26
+ };
27
+ prizeItem: {
28
+ innerPadding: number;
29
+ oddBackgroundColor: string;
30
+ evenBackgroundColor: string;
31
+ borderColor: string;
32
+ borderWidth: number;
33
+ imgSize: number;
34
+ prizeImages: {
35
+ imgList: string[];
36
+ };
37
+ };
38
+ pointer: {
39
+ pointerImage: string;
40
+ width: number;
41
+ height: number;
42
+ offsetY: number;
43
+ button: {
44
+ buttonImage: string;
45
+ backgroundColor: string;
46
+ buttonSize: number;
47
+ borderRadius: string;
48
+ };
49
+ };
50
+ animation: {
51
+ duration: number;
52
+ rounds: number;
53
+ previewAnimation?: boolean;
54
+ };
55
+ }
56
+ export interface IBusinessSchema {
57
+ prizes: IPrizeItem[];
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,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;
@@ -0,0 +1,50 @@
1
+ import { ILuckyInfo } from '../../../types/act';
2
+ export interface IStyleSchema {
3
+ position: {
4
+ left: number;
5
+ top: number;
6
+ width: number;
7
+ height: number;
8
+ zIndex: number;
9
+ centerHorizontal?: boolean;
10
+ };
11
+ scrollWrapConfig?: {
12
+ backgroundColor?: '#E8994B';
13
+ };
14
+ itemConfig?: {
15
+ itemWidth?: number;
16
+ itemHeight?: number;
17
+ itemGap?: number;
18
+ backgroundImage?: string;
19
+ backgroundColor?: string;
20
+ borderRadius?: number;
21
+ };
22
+ imageConfig?: {
23
+ height?: number;
24
+ margin?: number;
25
+ };
26
+ nameConfig?: {
27
+ height?: number;
28
+ padding?: number;
29
+ textConfig?: {
30
+ fontSize?: number;
31
+ fontWeight?: number;
32
+ color?: string;
33
+ textAlign?: 'left' | 'center' | 'right';
34
+ };
35
+ };
36
+ animationConfig?: {
37
+ animationSpeed?: number;
38
+ };
39
+ }
40
+ export interface IBusinessSchema {
41
+ previewCount?: number;
42
+ }
43
+ export interface IProps {
44
+ styleSchema?: IStyleSchema;
45
+ businessSchema?: IBusinessSchema;
46
+ pageParams?: {
47
+ luckyInfo?: ILuckyInfo;
48
+ };
49
+ }
50
+ 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, {}, any>;
3
+ export default _default;
@@ -0,0 +1,28 @@
1
+ export interface IStyleSchema {
2
+ position: {
3
+ left: number;
4
+ top: number;
5
+ width: number;
6
+ height: number;
7
+ zIndex: number;
8
+ centerHorizontal?: boolean;
9
+ };
10
+ rainConfig?: {
11
+ duration?: number;
12
+ redPacketCount?: number;
13
+ fallSpeed?: number;
14
+ redPacketSize?: number;
15
+ };
16
+ redPacketImage?: string;
17
+ }
18
+ export interface IBusinessSchema {
19
+ onCatch?: string;
20
+ }
21
+ export interface IProps {
22
+ styleSchema?: IStyleSchema;
23
+ businessSchema?: IBusinessSchema;
24
+ pageParams?: {
25
+ isActive?: boolean;
26
+ };
27
+ }
28
+ export declare const defaultProps: IProps;
@@ -0,0 +1,6 @@
1
+ import { IComponentConfig } from '../../../types/component';
2
+ /**
3
+ * 组件完整配置
4
+ */
5
+ export declare const scratchCardComponent: IComponentConfig;
6
+ export default scratchCardComponent;
@@ -0,0 +1,8 @@
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, {
6
+ canvas: HTMLCanvasElement;
7
+ }, HTMLDivElement>;
8
+ export default _default;
@@ -0,0 +1,47 @@
1
+ export interface IPrizeItem {
2
+ name: string;
3
+ img: string;
4
+ rank: number;
5
+ }
6
+ export interface IStyleSchema {
7
+ position: {
8
+ top: number;
9
+ left: number;
10
+ width: number;
11
+ height: number;
12
+ zIndex: number;
13
+ centerHorizontal?: boolean;
14
+ };
15
+ canvas: {
16
+ textColor: string;
17
+ fontSize: number;
18
+ backgroundColor: string;
19
+ backgroundImage: string;
20
+ };
21
+ prizeImg: {
22
+ padding: number;
23
+ width: number;
24
+ height: number;
25
+ imgUrl: string;
26
+ };
27
+ button: {
28
+ top: number;
29
+ left: number;
30
+ width: number;
31
+ height: number;
32
+ borderRadius: string;
33
+ backgroundColor: string;
34
+ backgroundImage: string;
35
+ };
36
+ }
37
+ export interface IBusinessSchema {
38
+ prizes: IPrizeItem[];
39
+ }
40
+ export interface IProps {
41
+ styleSchema?: IStyleSchema;
42
+ businessSchema?: IBusinessSchema;
43
+ pageParams?: {
44
+ allowDraw: boolean;
45
+ };
46
+ }
47
+ export declare const defaultProps: IProps;
@@ -0,0 +1,46 @@
1
+ import { ILuckyDrawResult } from '../../../types/act';
2
+ import { IProps } from './type';
3
+ declare const _default: import('vue').DefineComponent<IProps, {
4
+ getWinRecordList: () => Promise<void>;
5
+ getActWinRank30: (isForceQuery?: boolean) => Promise<{
6
+ id: string;
7
+ userId?: string | undefined;
8
+ actId?: string | undefined;
9
+ luckyId?: string | undefined;
10
+ sourceId?: string | undefined;
11
+ target?: string | undefined;
12
+ prizeId?: string | undefined;
13
+ prizeName?: string | undefined;
14
+ prizeRank?: number | undefined;
15
+ status?: number | undefined;
16
+ provCode?: string | undefined;
17
+ provName?: string | undefined;
18
+ cityCode?: string | undefined;
19
+ cityName?: string | undefined;
20
+ countyCode?: string | undefined;
21
+ countyName?: string | undefined;
22
+ gpsLat?: number | undefined;
23
+ gpsLng?: number | undefined;
24
+ luckyDate?: string | undefined;
25
+ luckyTime?: string | undefined;
26
+ nickname?: string | undefined;
27
+ headImgUrl?: string | undefined;
28
+ prizeImg?: {
29
+ id?: string | undefined;
30
+ sourceId?: string | undefined;
31
+ sourceType?: string | undefined;
32
+ materialId?: string | undefined;
33
+ url: string;
34
+ type: string;
35
+ }[] | undefined;
36
+ }[]>;
37
+ executeDraw: () => Promise<{
38
+ drawResult: ILuckyDrawResult;
39
+ popupId: string;
40
+ } | null>;
41
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ comEvent: (...args: any[]) => void;
43
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
44
+ onComEvent?: ((...args: any[]) => any) | undefined;
45
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { IActivityInfo } from '../../../types/act';
2
+ import { IApiConfig, ITrackingItem } from '../../../types/component';
3
+ export interface IBusinessSchema {
4
+ drawConfig?: {
5
+ drawType?: 'normal' | 'point';
6
+ };
7
+ prizePopup: {
8
+ goodsPopId: string;
9
+ pointPopId: string;
10
+ failPopId: string;
11
+ showPrizePopup?: boolean;
12
+ };
13
+ trackingSet?: {
14
+ trackingList?: ITrackingItem[];
15
+ };
16
+ }
17
+ export interface IProps {
18
+ businessSchema?: IBusinessSchema;
19
+ previewConfig?: Record<string, IApiConfig>;
20
+ phaseInfo: {
21
+ phaseId: string;
22
+ sourceId?: string;
23
+ };
24
+ activityInfo?: IActivityInfo;
25
+ }
26
+ export declare const defaultProps: {
27
+ businessSchema: {
28
+ drawConfig: {
29
+ drawType: "normal";
30
+ };
31
+ };
32
+ previewConfig: {};
33
+ phaseInfo: {
34
+ phaseId: string;
35
+ sourceId: string;
36
+ };
37
+ };
@@ -0,0 +1,20 @@
1
+ import { IActivityInfo } from '../../../types/act';
2
+ import { IApiConfig } from '../../../types/component';
3
+ export interface IBusinessSchema {
4
+ queryConfig?: {
5
+ queryPointRecord?: boolean;
6
+ };
7
+ }
8
+ export interface IProps {
9
+ businessSchema?: IBusinessSchema;
10
+ previewConfig?: Record<string, IApiConfig>;
11
+ activityInfo?: IActivityInfo;
12
+ }
13
+ export declare const defaultProps: {
14
+ businessSchema: {
15
+ queryConfig: {
16
+ queryPointRecord: boolean;
17
+ };
18
+ };
19
+ previewConfig: {};
20
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { IProps } from './type';
2
+ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ comEvent: (...args: any[]) => void;
4
+ }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
5
+ onComEvent?: ((...args: any[]) => any) | undefined;
6
+ }>, {
7
+ styleSchema: import('./type').IStyleSchema;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,11 @@
1
+ export interface IStyleSchema {
2
+ overlay: {
3
+ openEditView: boolean;
4
+ maskColor: string;
5
+ closeOnMaskClick: boolean;
6
+ };
7
+ }
8
+ export interface IProps {
9
+ styleSchema?: IStyleSchema;
10
+ }
11
+ 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;