| 
1 | 1 | import React from 'react'  | 
2 |  | -import { View } from '@tarojs/components'  | 
3 |  | -import { Animate, Button } from '@nutui/nutui-react-taro'  | 
 | 2 | +import { Animate, Button, Space } from '@nutui/nutui-react-taro'  | 
4 | 3 | 
 
  | 
5 |  | -const Demo2 = () => {  | 
6 |  | -  const style = {  | 
7 |  | -    marginBottom: '10px',  | 
8 |  | -  }  | 
 | 4 | +const Demo = () => {  | 
9 | 5 |   return (  | 
10 |  | -    <>  | 
11 |  | -      <View style={style}>  | 
12 |  | -        <Animate type="shake" loop>  | 
13 |  | -          <Button type="primary">shake-抖动</Button>  | 
14 |  | -        </Animate>  | 
15 |  | -      </View>  | 
16 |  | - | 
17 |  | -      <View style={style}>  | 
18 |  | -        <Animate type="ripple" loop>  | 
19 |  | -          <Button type="primary">ripple-心跳</Button>  | 
20 |  | -        </Animate>  | 
21 |  | -      </View>  | 
22 |  | - | 
23 |  | -      <View style={style}>  | 
24 |  | -        <Animate type="breath" loop>  | 
25 |  | -          <Button type="primary">breath-呼吸灯</Button>  | 
26 |  | -        </Animate>  | 
27 |  | -      </View>  | 
28 |  | - | 
29 |  | -      <View style={style}>  | 
30 |  | -        <Animate type="twinkle" loop>  | 
31 |  | -          <Button type="primary">twinkle-水波</Button>  | 
32 |  | -        </Animate>  | 
33 |  | -      </View>  | 
34 |  | - | 
35 |  | -      <View style={style}>  | 
36 |  | -        <Animate type="flicker" loop>  | 
37 |  | -          <Button type="primary">flicker-擦亮</Button>  | 
38 |  | -        </Animate>  | 
39 |  | -      </View>  | 
40 |  | - | 
41 |  | -      <View style={style}>  | 
42 |  | -        <Animate type="jump" loop>  | 
43 |  | -          <Button type="primary">jump-跳跃</Button>  | 
44 |  | -        </Animate>  | 
45 |  | -      </View>  | 
46 |  | - | 
47 |  | -      <View style={style}>  | 
48 |  | -        <Animate type="float" loop>  | 
49 |  | -          <Button type="primary">float-漂浮</Button>  | 
50 |  | -        </Animate>  | 
51 |  | -      </View>  | 
52 |  | -    </>  | 
 | 6 | +    <Space direction="vertical">  | 
 | 7 | +      <Animate type="shake" loop>  | 
 | 8 | +        <Button type="primary">shake-抖动</Button>  | 
 | 9 | +      </Animate>  | 
 | 10 | +      <Animate type="ripple" loop>  | 
 | 11 | +        <Button type="primary">ripple-心跳</Button>  | 
 | 12 | +      </Animate>  | 
 | 13 | +      <Animate type="breath" loop>  | 
 | 14 | +        <Button type="primary">breath-呼吸灯</Button>  | 
 | 15 | +      </Animate>  | 
 | 16 | +      <Animate type="twinkle" loop>  | 
 | 17 | +        <Button type="primary">twinkle-水波</Button>  | 
 | 18 | +      </Animate>  | 
 | 19 | +      <Animate type="flicker" loop>  | 
 | 20 | +        <Button type="primary">flicker-擦亮</Button>  | 
 | 21 | +      </Animate>  | 
 | 22 | +      <Animate type="jump" loop>  | 
 | 23 | +        <Button type="primary">jump-跳跃</Button>  | 
 | 24 | +      </Animate>  | 
 | 25 | +      <Animate type="float" loop>  | 
 | 26 | +        <Button type="primary">float-漂浮</Button>  | 
 | 27 | +      </Animate>  | 
 | 28 | +    </Space>  | 
53 | 29 |   )  | 
54 | 30 | }  | 
55 | 31 | 
 
  | 
56 |  | -export default Demo2  | 
 | 32 | +export default Demo  | 
0 commit comments