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