fix: 模板关联用例默认值列宽太小

This commit is contained in:
chenjianxing 2021-04-27 18:44:39 +08:00 committed by 刘瑞斌
parent 4b1d62c3ee
commit 14468c6dd1
2 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,8 @@
<template>
<el-table-column
v-if="fields.has(prop) || fields.size < 1"
:min-width="width"
:min-width="minWidth"
:width="width"
:fixed="fixed"
:filters="filters"
:prop="prop"
@ -24,6 +25,7 @@ export default {
prop: String,
label: String,
width: String,
minWidth: String,
fixed: String,
// mapperfilters
filters: Array,

View File

@ -23,9 +23,12 @@
<ms-table-column
:label="'默认值'"
min-width="200"
prop="type">
<template v-slot="scope">
<custom-filed-component class="default-value-item" :data="scope.row" prop="defaultValue"/>
<el-scrollbar>
<custom-filed-component class="default-value-item" :data="scope.row" prop="defaultValue"/>
</el-scrollbar>
</template>
</ms-table-column>
@ -33,6 +36,7 @@
<ms-table-column
:label="'是否必填'"
width="80"
prop="type">
<template v-slot="scope">
<el-checkbox v-model="scope.row.required"/>
@ -41,6 +45,7 @@
<ms-table-column
:label="'系统字段'"
width="80"
prop="system">
<template v-slot="scope">
<span v-if="scope.row.system">
@ -136,5 +141,7 @@ export default {
</script>
<style scoped>
/*.default-value-item >>> .custom-with {*/
/* width: 207px;*/
/*}*/
</style>