54 lines
1.1 KiB
Vue
54 lines
1.1 KiB
Vue
<template>
|
|
<el-row class="page-container" :gutter="20">
|
|
<el-col :span="24">
|
|
<div class="design-component form-title">表单标题区域</div>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<div class="design-component">用户名</div>
|
|
</el-col>
|
|
<el-col :span="18">
|
|
<div class="design-component">输入框占位</div>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<div class="design-component">密码</div>
|
|
</el-col>
|
|
<el-col :span="18">
|
|
<div class="design-component">密码框占位</div>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<div class="design-component submit-btn">提交按钮</div>
|
|
</el-col>
|
|
</el-row>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
// 测试页面2 - 表单布局
|
|
</script>
|
|
|
|
<style scoped>
|
|
.page-container {
|
|
padding: 20px;
|
|
background: #fafafa;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.design-component {
|
|
background: #67c23a;
|
|
color: white;
|
|
padding: 20px;
|
|
text-align: center;
|
|
border-radius: 4px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.form-title {
|
|
background: #409eff;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.submit-btn {
|
|
background: #e6a23c;
|
|
}
|
|
</style>
|