鍍金池/ 問答/HTML5  HTML/ element 表頭問題

element 表頭問題

題目描述

elment如何使表單 表頭隱藏

用show-header感覺還是不行啊,是我用錯(cuò)地方了么?

 <el-table
                        :data="tableData"
                        tooltip-effect="dark"
                        show-header = false
                        style="width: 100%">
                        <el-table-column type="expand">
                        <template slot-scope="props">
                            <el-form label-position="centent" inline class="demo-table-expand">
                            <!-- 內(nèi)層table -->
                            <el-table
                                    ref="multipleTable"
                                    :data="tableData"
                                    tooltip-effect="dark"
                                    style="width: 100%"
                                   >
                                    <el-table-column
                                    type="selection"
                                    width="55">
                                    </el-table-column>
                                    <el-table-column
                                    prop="name">
                                    </el-table-column>
                                    <el-table-column
                                    width="120">
                                        <template slot-scope="scope">
                                            <el-button @click="handleClick(scope.row)" type="text" size="small">編輯</el-button>
                                            <el-button type="text" size="small" class="removeCss">刪除</el-button>
                                        </template>
                                    </el-table-column>
                                </el-table>
                            </el-form>
                        </template>
                        </el-table-column>
                        <el-table-column
                        type="selection"
                        width="55">
                        </el-table-column>
                        <el-table-column
                        label="分類名稱"
                        prop="name">
                        </el-table-column>
                        <el-table-column
                        label="操作"
                        width="120">
                        <template slot-scope="scope">
                            <el-button @click="handleClick(scope.row)" type="text" size="small">編輯</el-button>
                            <el-button type="text" size="small" class="removeCss">刪除</el-button>
                        </template>
                        </el-table-column>
                    </el-table>
回答
編輯回答
你的瞳
 <el-table
    :data="tableData"
    tooltip-effect="dark"
    :show-header = "isShow"
    style="width: 100%">              
</el-table>
export default {
  data() {
   return {
    isShow: false
   }
  }
}
2018年7月8日 16:26