2
This commit is contained in:
@@ -1,64 +1,53 @@
|
||||
<template>
|
||||
<div class="test-page">
|
||||
<h2>测试页面 2 - 表单布局</h2>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">表单标题区域</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20" style="margin-top: 20px;">
|
||||
<el-col :span="6">
|
||||
<div class="grid-content">标签</div>
|
||||
</el-col>
|
||||
<el-col :span="18">
|
||||
<div class="grid-content">输入框</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20" style="margin-top: 20px;">
|
||||
<el-col :span="6">
|
||||
<div class="grid-content">标签</div>
|
||||
</el-col>
|
||||
<el-col :span="18">
|
||||
<div class="grid-content">输入框</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20" style="margin-top: 20px;">
|
||||
<el-col :span="24">
|
||||
<div class="grid-content">提交按钮</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<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">
|
||||
import { ref } from 'vue'
|
||||
|
||||
const formData = ref({
|
||||
name: '',
|
||||
email: ''
|
||||
})
|
||||
// 测试页面2 - 表单布局
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.test-page {
|
||||
.page-container {
|
||||
padding: 20px;
|
||||
background: #fafafa;
|
||||
min-height: 100vh;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.grid-content {
|
||||
.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>
|
||||
|
||||
Reference in New Issue
Block a user