Commit d5ba0e3c authored by 仇晓婷's avatar 仇晓婷

详情样式修改

parent c9951cef
<template> <template>
<Col :span="span" class="filed-col"> <Col :span="span" class="filed-col">
<label v-text="name" class="label"></label> <div v-text="name" class="label"></div>
<span> <p>
<slot></slot> <slot></slot>
</span> </p>
</Col> </Col>
</template> </template>
<script> <script>
export default { export default {
name: 'filed', name: "filed",
props: { props: {
name: { name: {
type: String type: String
...@@ -18,29 +18,51 @@ export default { ...@@ -18,29 +18,51 @@ export default {
default: 12 default: 12
} }
} }
} };
</script> </script>
<style lang="less"> <style lang="less">
.detail { .detail {
display: table; display: table;
height: 100%;
border-collapse: collapse; border-collapse: collapse;
.ivu-row { .ivu-row {
display: table-row; border: 1px solid #ddd;
border-top: 1px solid #ddd; border-top: none;
border-left: 1px solid #ddd; height: 100%;
.filed-col { .filed-col {
display: table-cell; max-width: 970px;
border-bottom: 1px solid #ddd; border: 1px solid #ddd;
border-right: 1px solid #ddd; border-right: none;
// margin: 0 0 -1px -1px; margin: 0 -1px -1px -1px;
line-height: 30px;
box-sizing: border-box; box-sizing: border-box;
line-height: 70px;
.label { .label {
background: #e8eaf1; background: #e8eaf1;
display: inline-block; display: inline-block;
width: 100px; width: 100px;
text-align: right; text-align: right;
padding: 0 5px; padding: 0 5px;
line-height: 40px;
float: left;
height: 100%;
}
p {
max-width: 870px;
height: 100%;
word-break: break-all;
word-wrap: break-word;
margin: 0 10px 0 110px;
line-height: 20px;
padding-top: 10px;
}
}
.ivu-col-span-24 {
.label {
height: 100%;
padding: 0.5% 5px;
}
p {
padding-top: 1%;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment