@polyv/iar-lottery-ui 2.0.0-rc-20250116.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/index.d.ts ADDED
@@ -0,0 +1,113 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { DefineComponent } from 'vue';
3
+ import { ExtractPropTypes } from 'vue';
4
+ import { Lottery } from '@polyv/iar-lottery-sdk';
5
+ import { LotteryRecordData } from '@polyv/iar-lottery-sdk';
6
+ import { VueTypeValidableDef } from 'vue-types';
7
+
8
+ /**
9
+ * 抽奖配置
10
+ */
11
+ export declare interface LotteryConfig {
12
+ /**
13
+ * 隐私协议
14
+ */
15
+ privateContent?: string;
16
+ }
17
+
18
+ export declare interface LotteryReceiveInstance {
19
+ setupRecordData(lotteryId: string): Promise<void>;
20
+ }
21
+
22
+ export declare interface LotteryRecordInstance {
23
+ /** 刷新中奖记录 */
24
+ refreshRecord: () => unknown;
25
+ }
26
+
27
+ export declare const MobileLotteryReceive: DefineComponent< {
28
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
29
+ required: true;
30
+ };
31
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
32
+ default: () => LotteryConfig;
33
+ };
34
+ }, {
35
+ setupRecordData(lotteryId: string): Promise<void>;
36
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
37
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
38
+ required: true;
39
+ };
40
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
41
+ default: () => LotteryConfig;
42
+ };
43
+ }>>, {
44
+ lotteryConfig: LotteryConfig;
45
+ }>;
46
+
47
+ export declare const MobileLotteryRecord: DefineComponent< {
48
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
49
+ required: true;
50
+ };
51
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
52
+ default: () => LotteryConfig;
53
+ };
54
+ }, {
55
+ refreshRecord: () => unknown;
56
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
57
+ "record-list": (arg: LotteryRecordData[]) => void;
58
+ "open-receive": (arg: LotteryRecordData) => void;
59
+ }, string, Readonly<ExtractPropTypes< {
60
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
61
+ required: true;
62
+ };
63
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
64
+ default: () => LotteryConfig;
65
+ };
66
+ }>>, {
67
+ lotteryConfig: LotteryConfig;
68
+ }>;
69
+
70
+ export declare const PcLotteryReceive: DefineComponent< {
71
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
72
+ required: true;
73
+ };
74
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
75
+ default: () => LotteryConfig;
76
+ };
77
+ }, {
78
+ setupRecordData(lotteryId: string): Promise<void>;
79
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
80
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
81
+ required: true;
82
+ };
83
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
84
+ default: () => LotteryConfig;
85
+ };
86
+ }>>, {
87
+ lotteryConfig: LotteryConfig;
88
+ }>;
89
+
90
+ export declare const PcLotteryRecord: DefineComponent< {
91
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
92
+ required: true;
93
+ };
94
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
95
+ default: () => LotteryConfig;
96
+ };
97
+ }, {
98
+ refreshRecord: () => unknown;
99
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
100
+ "record-list": (arg: LotteryRecordData[]) => void;
101
+ "open-receive": (arg: LotteryRecordData) => void;
102
+ }, string, Readonly<ExtractPropTypes< {
103
+ lotteryTarget: VueTypeValidableDef<Lottery> & {
104
+ required: true;
105
+ };
106
+ lotteryConfig: VueTypeValidableDef<LotteryConfig> & {
107
+ default: () => LotteryConfig;
108
+ };
109
+ }>>, {
110
+ lotteryConfig: LotteryConfig;
111
+ }>;
112
+
113
+ export { }