SOURCE

console 命令行工具 X clear

                    
>
console
var Main = {
    data() {
      return {
        value3: true,
        value4: true
      }
    }
  };
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/element-ui@2.6.0/lib/index.js"></script>
<div id="app">
<el-switch
  v-model="value3"
  active-text="按月付费"
  inactive-text="按年付费">
</el-switch>
<el-switch
  style="display: block"
  v-model="value4"
  active-color="#13ce66"
  inactive-color="#ff4949"
  active-text="按月付费"
  inactive-text="按年付费">
</el-switch>
</div>
@import url("//unpkg.com/element-ui@2.6.0/lib/theme-chalk/index.css");