1、组件
@Component({ name: 'AddOpen', components: { baseFormItem, baseFormLine, baseForm } })
2、
import {Component, Vue, Watch, Prop} from 'vue-property-decorator';
@State('ENUMS') ENUMS: any;
@Prop({ type: Boolean, default: '', }) isInfo!: Boolean;
@Watch('step', { deep: true, immediate: true, }) watchStep(data: string) { if (data) { this.id = data; this.lineSplitConfig(); } }
@Watch('$route', { deep: true, }) watchRoute(data: string) { if (data) { this.queryList(1); } }
import {Getter, Action, Mutation} from 'vuex-class';
@Getter('getBreadcrumbs') getBreadcrumbs: any; @Action('syncLoginInfo') syncLoginInfo!: Function @Mutation('setEnums') setEnums!: Function
额外声明组合
classList: (ServiceTypeYxrmWeb.ProjectClassVo & { isHeadmaster?: boolean })[] = []