mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-04 21:27:52 +08:00
47 lines
670 B
Markdown
47 lines
670 B
Markdown
|
# el-switch
|
||
|
> A el-switch component for Vue.js.
|
||
|
|
||
|
## Installation
|
||
|
```shell
|
||
|
npm i el-switch -D
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
```javascript
|
||
|
import Vue from 'vue'
|
||
|
import ElSwitch from 'el-switch'
|
||
|
import 'element-theme-default'
|
||
|
|
||
|
Vue.use(ElSwitch)
|
||
|
```
|
||
|
|
||
|
or
|
||
|
|
||
|
```javascript
|
||
|
import Vue from 'vue'
|
||
|
import { ElSwitch } from 'el-switch'
|
||
|
|
||
|
Vue.component('el-switch', ElSwitch)
|
||
|
```
|
||
|
|
||
|
|
||
|
## Options
|
||
|
|
||
|
| name | description | type | default |
|
||
|
|-------------|-------------|-------------|-------------|
|
||
|
| | | | |
|
||
|
|
||
|
## Development
|
||
|
```shell
|
||
|
make dev
|
||
|
|
||
|
## test
|
||
|
make test
|
||
|
|
||
|
## build
|
||
|
make build
|
||
|
```
|
||
|
|
||
|
# License
|
||
|
[MIT](https://opensource.org/licenses/MIT)
|