@@ -77,6 +77,9 @@
<script lang="ts">
/**
config:{
+ attr:{
+ activeName:'' //tabs标签值
+ },
source:[ //引单
{
title:'', //标题
@@ -153,6 +156,12 @@ export default class ByBill extends VueViews {
}
+ setConfigAfter(){
+ if(this.attrs.activeName){
+ this.showTab = this.attrs.activeName
+ }
+
//左侧tab切换
tabChange(t:string){
this.showTab = t;
@@ -17,6 +17,9 @@ import { Component, Prop, Vue, Watch } from "vue-property-decorator";
@Component
export default class BillDemo extends Vue {
config:any={
+ activeName:'smt'
source:[{
title:'引单1',
search:{
@@ -326,6 +329,10 @@ export default class BillDemo extends Vue {
}]
+ mounted(){
search(parames:any){
console.log('搜索回传参数',parames);