优化规格管理样式

master
liaoanqi 4 years ago
parent 5d95fb37ee
commit 303cf86a02

@ -27,6 +27,7 @@
:key="item.valueId"> :key="item.valueId">
<el-input placeholder="请输入内容" <el-input placeholder="请输入内容"
v-model="item.propValue" v-model="item.propValue"
class="prop-value-input"
@clear="clearProdPropValues" @clear="clearProdPropValues"
maxlength="20" maxlength="20"
show-word-limit show-word-limit
@ -34,6 +35,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-button type="primary" <el-button type="primary"
class="add-input"
icon="el-icon-circle-plus" icon="el-icon-circle-plus"
@click="addInput()"></el-button> @click="addInput()"></el-button>
</el-col> </el-col>
@ -154,3 +156,13 @@ export default {
} }
} }
</script> </script>
<style scoped>
.prop-value-input {
padding: 3px;
}
.add-input {
margin: 3px;
}
</style>

@ -22,8 +22,11 @@
<template slot-scope="scope" <template slot-scope="scope"
slot="prodPropValues"> slot="prodPropValues">
<el-tag v-for="item in scope.row.prodPropValues" <div v-for="item in scope.row.prodPropValues"
:key="item.valueId">{{item.propValue}}</el-tag> :key="item.valueId" class="prop-value">
<el-tag>{{item.propValue}}</el-tag>
</div>
</template> </template>
<template slot-scope="scope" <template slot-scope="scope"
@ -145,3 +148,10 @@ export default {
} }
} }
</script> </script>
<style scoped>
.prop-value {
display: inline-block;
margin: 0 3px 3px 0;
}
</style>

Loading…
Cancel
Save