mirror of https://github.com/ElemeFE/element
				
				
				
			
		
			
				
	
	
		
			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)
 |