VUE August 20, 2018

ElementUI之Layout布局

Words count 6.5k Reading time 6 mins.

整个宽度分为24份,通过span属性来定义元素的宽度占多少

  <el-row>
    <el-col :span="12"><div class="...
Read article

VUE August 19, 2018

ElementUI之button

Words count 2.9k Reading time 3 mins.

        <el-button type="primary">primary</el-button>
        <el-button type="success">success</el-button>
        <el-button type="warning">warning</el-button>
        <el-button type="danger">danger...
Read article

VUE August 19, 2018

在vue里引入element-ui

Words count 488 Reading time 1 mins.

在项目路径下安装element-ui,运行命令:

npm install element-ui -s

修改main.js文件

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'

Vue.use(ElementUI)
Read article

VUE August 19, 2018

Radio 单选框

Words count 1.4k Reading time 1 mins.

 <el-radio class="radio" v-model="radio" label="1">备选项</el-radio>
  <el-radio class="radio" v-model="radio" label="2">备选项</el-radio>
<el-radio disabled v-model="...
Read article
0%