增加文章列表、应用列表、项目列表
This commit is contained in:
51
src/components/form/FormRow.vue
Normal file
51
src/components/form/FormRow.vue
Normal file
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<div class="form-row">
|
||||
<div class="label">
|
||||
<span>{{label}}</span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'FormRow',
|
||||
props: ['label']
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.form-row{
|
||||
display: flex;
|
||||
border-bottom: 1px dashed #e8e8e8;
|
||||
margin-bottom: 16px;
|
||||
.label {
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-size: 14px;
|
||||
margin-right: 24px;
|
||||
flex: 0 0 auto;
|
||||
text-align: right;
|
||||
& > span {
|
||||
display: inline-block;
|
||||
height: 39px;
|
||||
line-height: 39px;
|
||||
&:after {
|
||||
content: ':';
|
||||
}
|
||||
}
|
||||
}
|
||||
.content {
|
||||
flex: 1 1 0;
|
||||
:global {
|
||||
.ant-form-item:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.ant-form-item {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user