---
title: 动画编辑器
group:
  path: /Editor
  title: 编辑器项
---

## 按钮  


```jsx  
import React from 'react';  
import AnimatEditor from '@dndc/pudge-basic/es/basic-editor/animation';

const data = {
  style: {
    color: '#fff',
    fontSize: 14,
    height: 40,
    borderRadius: [4, 4, 4, 4],
    hover: {
      color: '#fff',
    },
  },
  props: {
    text: '按钮',
    href: '',
    isPostForm: false,
    icon: {
      type: '',
    },
  },
  track: {
    click: '',
  },
  events: {}
}
const propValue =  {};

const config = {
  label:'事件',
  name: {
    click:'click'
  },
  group: {
    label: '事件',
    isOpen: true,
  },
}
export default () => {
  return <div id="pudge-proto-drawer-body" style={{position:'relative', height:500, overflow:'hidden'}}>
          <AnimatEditor config={config} node={data} propValue={propValue} />
    </div>
};  
```  
