1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| import type { DiyComponent } from '../../../util';
|
| /** 弹窗广告属性 */
| export interface PopoverProperty {
| list: PopoverItemProperty[]; // 弹窗列表
| }
|
| /** 弹窗广告项目属性 */
| export interface PopoverItemProperty {
| imgUrl: string; // 图片地址
| url: string; // 跳转连接
| showType: 'always' | 'once'; // 显示类型:仅显示一次、每次启动都会显示
| }
|
| /** 定义组件 */
| export const component = {
| id: 'Popover',
| name: '弹窗广告',
| icon: 'carbon:popup',
| position: 'fixed',
| property: {
| list: [{ showType: 'once' }],
| },
| } as DiyComponent<PopoverProperty>;
|
|