赞
踩
input 自定义内容
<el-input disabled>
<template slot="prefix">
<div v-if="form.entityType == 0">来料检测</div>
<div v-if="form.entityType == 1">
{{qcCategory.name}}
</div>
</template>
</el-input>
el-table
<el-table-column label="项目属性" align="center" prop="type" :show-overflow-tooltip="true" fixed="left" width="150px">
<template slot-scope="scope">
<dict-tag :options="dict.type.test_type_project" :value="scope.row.type"/>
</template>
</el-table-column>
父子传值
props: {
dialogTitle: {
type: String,
default: ""
},
visibleDialogFlag: {
type: Boolean,
default: false
},
remarkInfo: {
// 检查备注
type: Array,
default: () => {
return [];
}
},
xqTreeListData: {
type: Object,
default: () => {
return {};
}
},
}
调用父组件方法及传值
this.$emit("update:visibleDialogFlag", val);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。