forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnippets.ts
More file actions
63 lines (63 loc) · 1.6 KB
/
snippets.ts
File metadata and controls
63 lines (63 loc) · 1.6 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export default [
{
title: '图片轮播',
screenshot:
'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
schema: {
componentName: 'Slider',
props: {
prefix: 'next-',
animation: 'slide',
arrows: true,
arrowSize: 'medium',
arrowPosition: 'inner',
arrowDirection: 'hoz',
autoplaySpeed: 3000,
dots: true,
dotsDirection: 'hoz',
draggable: true,
infinite: true,
slide: 'div',
slideDirection: 'hoz',
slidesToShow: 1,
slidesToScroll: 1,
speed: 600,
triggerType: 'click',
centerPadding: '50px',
cssEase: 'ease',
edgeFriction: 0.35,
swipe: true,
touchMove: true,
touchThreshold: 5,
useCSS: true,
waitForAnimate: true,
},
children: [
{
componentName: 'Image',
props: {
src: 'https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
},
},
{
componentName: 'Image',
props: {
src: 'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
},
},
{
componentName: 'Image',
props: {
src: 'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
},
},
{
componentName: 'Image',
props: {
src: 'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg',
},
},
],
},
},
];