# SWXDialog
>按钮组件

### 引入

```js
import { SWXDialog } from '@sweetui/sweet-weex-ui'
```
由于`weex`不支持 `Vue.components`，在.vue中注册
```js
  export default {
    components: {
      SWXDialog,
    },
  }
```
### 使用

```vue
  <SWXDialog >登 陆</SWXDialog>
```

### Props
| 参数          | 说明            | 类型            | 可选值                 | 默认值   |
|-------------  |---------------- |---------------- |---------------------- |-------- |
| width         | 宽度		  | Number  | - | 324 |

<strong>注: 行内样式里的颜色值会覆盖`color`、`disableColor`</strong>

### Events
| 事件名称          | 说明            | 参数值 |
|-------------  |---------------- | ---- |
|onClick	  | 点击事件 | event对象  |
