内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

使用Vue怎么動態(tài)生成表格的行和列-創(chuàng)新互聯(lián)

這篇文章將為大家詳細(xì)講解有關(guān)使用Vue怎么動態(tài)生成表格的行和列,文章內(nèi)容質(zhì)量較高,因此小編分享給大家做個參考,希望大家閱讀完這篇文章后對相關(guān)知識有一定的了解。

創(chuàng)新互聯(lián)建站是一家集網(wǎng)站建設(shè),博望企業(yè)網(wǎng)站建設(shè),博望品牌網(wǎng)站建設(shè),網(wǎng)站定制,博望網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,博望網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競爭力。可充分滿足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。

具體的實現(xiàn)代碼如下:

<template>
 <div class="boxShadow">
 <div >
 
 <el-table
 :data="tables"
 ref="multipleTable"
 tooltip-effect="dark"
 
 @selection-change='selectArInfo'>
 <el-table-column type="selection" width="45px"></el-table-column>
 <el-table-column label="序號" width="62px" type="index">
 </el-table-column>
 <template v-for='(col) in tableData'>
  <el-table-column
  sortable
  :show-overflow-tooltip="true"
  :prop="col.dataItem"
  :label="col.dataName"
  :key="col.dataItem"
  width="124px">
  </el-table-column>
 </template>
 <el-table-column label="操作" width="80" align="center">
  <template slot-scope="scope">
  <el-button size="mini" class="del-com" @click="delTabColOne()" ><i class="iconfont icon-shanchu"></i></el-button>
  </template>
 </el-table-column>
 </el-table>
 
 
 </div>
 </div>
 
</template>
<script>
 import '../../assets/css/commlist.css'
 import '../../assets/css/commscoped.sass'
 export default {
 data () {
 return {
 tables: [{
  xiaoxue: '福蘭',
  chuzhong: '加芳',
  gaozhong: '蒲廟',
  daxue: '西安',
  yanjiusheng: '西安',
  shangban: '北京'
 }, {
  xiaoxue: '南坊',
  chuzhong: '禮泉',
  gaozhong: '禮泉',
  daxue: '西安',
  yanjiusheng: '西安',
  shangban: '南坊'
 }, {
  xiaoxue: '馬山',
  chuzhong: '加芳',
  gaozhong: '蒲廟',
  daxue: '西安',
  yanjiusheng: '重慶',
  shangban: '北京'
 }],
 tableData: [{
  dataItem: 'xiaoxue',
  dataName: '小學(xué)'
 }, {
  dataItem: 'chuzhong',
  dataName: '初中'
 }, {
  dataItem: 'gaozhong',
  dataName: '高中'
 }, {
  dataItem: 'daxue',
  dataName: '大學(xué)'
 }, {
  dataItem: 'yanjiusheng',
  dataName: '研究生'
 }, {
  dataItem: 'shangban',
  dataName: '上班'
 }]
 }
 },
 methods: {
 // 獲取表格選中時的數(shù)據(jù)
 selectArInfo (val) {
 this.selectArr = val
 }
 }
 }
</script>

關(guān)于使用Vue怎么動態(tài)生成表格的行和列就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

名稱欄目:使用Vue怎么動態(tài)生成表格的行和列-創(chuàng)新互聯(lián)
標(biāo)題網(wǎng)址:http://www.rwnh.cn/article30/cejppo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站排名、網(wǎng)站營銷企業(yè)建站、網(wǎng)站策劃關(guān)鍵詞優(yōu)化、小程序開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設(shè)計公司
安阳县| 监利县| 深州市| 冕宁县| 宁城县| 商河县| 乐清市| 白水县| 澄城县| 长岛县| 南康市| 财经| 义马市| 昆明市| 斗六市| 和龙市| 沙田区| 桦南县| 图片| 德保县| 广饶县| 巫山县| 东乡族自治县| 遵义县| 鄂托克旗| 政和县| 潮州市| 孟津县| 保德县| 商都县| 从化市| 响水县| 邯郸市| 阿勒泰市| 博兴县| 白城市| 宁波市| 波密县| 曲阜市| 马公市| 海丰县|