Commit a84b13d94dfd1efb331c8d0f1a40aa5caad184b3
1 parent
a03b76dd
feat(src/packages): 信息下更多自定义轮播图新增默认项
Showing
2 changed files
with
22 additions
and
2 deletions
| ... | ... | @@ -2,10 +2,30 @@ import { PublicConfigClass } from '@/packages/public' |
| 2 | 2 | import { CreateComponentType } from '@/packages/index.d' |
| 3 | 3 | import { OverrideCarouselConfig } from './index' |
| 4 | 4 | import cloneDeep from 'lodash/cloneDeep' |
| 5 | +import logo from '@/assets/logo.png' | |
| 5 | 6 | |
| 6 | 7 | export const option = { |
| 7 | 8 | // 图片资源列表 |
| 8 | - dataset: [], | |
| 9 | + dataset: [ | |
| 10 | + { | |
| 11 | + id: -Math.random() + '', | |
| 12 | + name: '图片1', | |
| 13 | + status: 'finished', | |
| 14 | + url: logo | |
| 15 | + }, | |
| 16 | + { | |
| 17 | + id: -Math.random() + '', | |
| 18 | + name: '图片2', | |
| 19 | + status: 'finished', | |
| 20 | + url: logo | |
| 21 | + }, | |
| 22 | + { | |
| 23 | + id: -Math.random() + '', | |
| 24 | + name: '图片3', | |
| 25 | + status: 'finished', | |
| 26 | + url: logo | |
| 27 | + } | |
| 28 | + ], | |
| 9 | 29 | // 自动播放 |
| 10 | 30 | autoplay: true, |
| 11 | 31 | // 自动播放的间隔(ms) | ... | ... |