Commit 19022c5f by 潘际乾

tab默认显示第一个

parent 074979b3
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small">
<c-tabs ref="elment" type="card" @tab-click="tabClick">
<c-tabs v-model="activeName" ref="elment" type="card" @tab-click="tabClick" >
<!--PD000001 -->
<el-tab-pane label="PD000001" name="ovwp">
......@@ -130,6 +130,7 @@ export default {
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
activeName: "ovwp",
model:new Ditopn().data,
// defaultRule:Default,
// rules:this.mergeRules(Pattern,Check),
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small">
<c-tabs ref="elment" type="card" @tab-click="tabClick">
<c-tabs v-model="activeName" ref="elment" type="card" @tab-click="tabClick">
<!--PD000001 -->
<el-tab-pane label="PD000001" name="menu">
......@@ -32,6 +32,7 @@ export default {
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
activeName: "menu",
model:new Office().data,
// defaultRule:Default,
// rules:this.mergeRules(Pattern,Check),
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small">
<c-tabs ref="elment" type="card" @tab-click="tabClick">
<c-tabs v-model="activeName" ref="elment" type="card" @tab-click="tabClick">
<!--PD000042 -->
<el-tab-pane label="PD000042" name="menu">
......@@ -32,6 +32,7 @@ export default {
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
activeName: "menu",
model:new Sptsel().data,
// defaultRule:Default,
// rules:this.mergeRules(Pattern,Check),
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small">
<c-tabs ref="elment" type="card" @tab-click="tabClick">
<c-tabs v-model="activeName" ref="elment" type="card" @tab-click="tabClick">
<!--PD000071 -->
<el-tab-pane label="PD000071" name="inftrnps">
......@@ -109,6 +109,7 @@ export default {
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
activeName: "inftrnps",
model:new Trnrel().data,
// defaultRule:Default,
// rules:this.mergeRules(Pattern,Check),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment