最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
当前位置: 首页 - 科技 - 知识百科 - 正文

iview tabs 顶部导航栏和模块切换栏的示例代码

来源:懂视网 责编:小采 时间:2020-11-27 22:00:26
文档

iview tabs 顶部导航栏和模块切换栏的示例代码

iview tabs 顶部导航栏和模块切换栏的示例代码:1.顶部导航栏: html: <div class=tab-pane> <tabs> <tab-pane label=上崗時間明細 name=detail-report class=tab1> <div class=tab-pane-1> 0000000000 </div
推荐度:
导读iview tabs 顶部导航栏和模块切换栏的示例代码:1.顶部导航栏: html: <div class=tab-pane> <tabs> <tab-pane label=上崗時間明細 name=detail-report class=tab1> <div class=tab-pane-1> 0000000000 </div

1.顶部导航栏:

html:

 <div class="tab-pane">
 <tabs>
 <tab-pane label="上崗時間明細" name="detail-report" class="tab1">
 <div class="tab-pane-1">
 0000000000
 </div>
 <upload multiple :action="uploadUrl"
 :show-upload-list="false" :on-success="uploadSuccess" accept=".xlsx">
 <i-button class="upload" type="primary"><icon class="icon3"></icon>上傳清單</i-button>
 </upload>
 <i-input class="search" v-model="input_data3" id="yk" placeholder="請輸入要查找的關鍵詞" icon="ios-search-strong"
 @on-enter="search" @on-click="search" @on-change="inputChanged"></i-input>
 <i-table id="table1" border :columns="columns1" :data="data1"></i-table>
 <div style="float: right;margin: 7px;font-size: 14px">
 <page show-elevator :total="datacount" :current="current_num" placement="top" @on-change="numChange" show-sizer 
 pageSize="pageSize" @on-page-size-change="pageSizeChange"></page>
 </div>
 <div class="down">
 <span class="daochu" @click="export1" style="cursor: pointer">
 <span class="export-icon"></span>{{ExportToExcel}}</span>
 </div>
 </div>
 </tab-pane>
 <tab-pane label="上崗時間總計" name="total-report" class="tab2">
 <div class="tab-pane-2">
 45646468465
 </div>
 </tab-pane>
 </tabs>

css:

.ivu-tabs-nav{
 float: right;
}
.ivu-tabs .ivu-tabs-bar {
 border-width: 0;
}

运行结果:

2.模块浏览:

HTML:

<modal v-model="modal1" draggable scrollable :mask-closable="false" title="人力明細" @on-ok="ok" @on-cancel="cancel" 
 class="modal2" width="1200px" styles="background:#f00">
 <p>{{duanluo}}</p>
 <br>
 <div id="asd">
 <tabs type="card" class="tabs" v-model="tab_model" @on-click="message">
 <tab-pane :label="lab1" name="name0">
 <div class="t1">
 <i-table :columns="columns3":data="data3"> </i-table>
 <page class="page2" show-elevator :total="count1" :current="current_num1" 
 placement="top" @on-change="numChange1" 
 show-sizer :page-size="pageSize1" @on-page-size-change="pageSizeChange1"></page>
 </div>
 <div class="c1" id="c0">
 </div>
 </tab-pane>
 <tab-pane :label="lab2" name="name1">
 <div class="t1">
 <i-table :columns="columns3" highlight-row :data="data3"> </i-table>
 <page class="page2" show-elevator :total="count1" :current="current_num1" 
 placement="top" @on-change="numChange1" 
 show-sizer :page-size="pageSize1" @on-page-size-change="pageSizeChange1"></page>
 </div>
 <div class="c1" id="c1">
 </div>
 </tab-pane>
 <tab-pane :label="lab3" name="name2">
 <div class="t1">
 <i-table :columns="columns3" :data="data3"> </i-table>
 <page class="page2" show-elevator :total="count1" :current="current_num1" 
 placement="top" @on-change="numChange1" 
 show-sizer :page-size="pageSize1" @on-page-size-change="pageSizeChange1"></page>
 </div>
 <div class="c1" id="c2">
 </div>
 </tab-pane>

js:

各个模块的数量显示:

 Main: {
 data() {
 return {
 lab1: h => {
 return h("div", [
 h("span", "全部人力"),
 h("Badge", {
 props: {
 count: this.length1,
 }
 })
 ]);
 },
 lab2: h => {
 return h("div", [
 h("span", "當班應到"),
 h("Badge", {
 props: {
 count: this.length2,
 }
 })
 ]);
 },
 lab3: h => {
 return h("div", [
 h("span", "DL1"),
 h("Badge", {
 props: {
 count: this.length3,
 }
 })
 ]);
 },
 length1:"",
 length2:"",
 length3:"",

运行结果:

声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文档

iview tabs 顶部导航栏和模块切换栏的示例代码

iview tabs 顶部导航栏和模块切换栏的示例代码:1.顶部导航栏: html: <div class=tab-pane> <tabs> <tab-pane label=上崗時間明細 name=detail-report class=tab1> <div class=tab-pane-1> 0000000000 </div
推荐度:
标签: tab tabs iview
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top