mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-04 21:27:52 +08:00
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)
|