mirror of https://github.com/ElemeFE/element
50 lines
724 B
Markdown
50 lines
724 B
Markdown
# el-dialog
|
|
> A el-dialog component for Vue.js.
|
|
|
|
## Demo
|
|
http://element-component.github.io/el-dialog
|
|
|
|
## Installation
|
|
```shell
|
|
npm i el-dialog -D
|
|
```
|
|
|
|
## Usage
|
|
```javascript
|
|
import Vue from 'vue'
|
|
import ElDialog from 'el-dialog'
|
|
import 'element-theme-default'
|
|
|
|
Vue.use(ElDialog)
|
|
```
|
|
|
|
or
|
|
|
|
```javascript
|
|
import Vue from 'vue'
|
|
import { ElDialog } from 'el-dialog'
|
|
|
|
Vue.component('el-dialog', ElDialog)
|
|
```
|
|
|
|
|
|
## Options
|
|
|
|
| name | description | type | default |
|
|
|-------------|-------------|-------------|-------------|
|
|
| | | | |
|
|
|
|
## Development
|
|
```shell
|
|
make dev
|
|
|
|
## test
|
|
make test
|
|
|
|
## build
|
|
make build
|
|
```
|
|
|
|
# License
|
|
[MIT](https://opensource.org/licenses/MIT)
|