From 6938616d7e67a8822569420f6bddd8754a63d574 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期一, 28 四月 2025 16:36:23 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase --- src/components/form/form.vue | 45 +++++++++++++++------------------------------ 1 files changed, 15 insertions(+), 30 deletions(-) diff --git a/src/components/form/form.vue b/src/components/form/form.vue index 06c86af..b6bd958 100644 --- a/src/components/form/form.vue +++ b/src/components/form/form.vue @@ -1,38 +1,16 @@ -<template > +<template> <div> - <el-form - size="mini" - :inline="true" - style="padding: 0px 10px; - " - :model="from" - class="row demo-form-inline col-xs-12" - > + <el-form size="mini" :inline="true" style="padding: 0px 10px; + " :model="from" class="row demo-form-inline col-xs-12"> <el-row :gutter="10"> - <el-form-item - style="width: 33%" - v-for="(item, i) in from.from" - :key="i" - :label="item.label" - > - <el-input - v-if="item.type === 'input'" - v-model="item.value" - :placeholder="item.label" - ></el-input> + <el-form-item style="width: 33%" v-for="(item, i) in from.from" :key="i" :label="item.label"> + <el-input v-if="item.type === 'input'" v-model="item.value" :placeholder="item.label"></el-input> </el-form-item> <!-- 鍏朵粬琛ㄥ崟椤圭渷鐣� --> <!-- <el-form-item style="display:block; "> --> <div class="flex flex-center Formbtn"> - <el-button - - size="mini" - @click="handleSubmit" - >鎼滅储</el-button - > - <el-button size="mini" @click="handleReset" - >閲嶇疆</el-button - > + <el-button size="mini" @click="handleSubmit">鎼滅储</el-button> + <el-button size="mini" @click="handleReset">閲嶇疆</el-button> </div> <!-- </el-form-item> --> </el-row> @@ -42,7 +20,7 @@ <script> export default { props: ["from"], - mounted(){ + mounted() { }, methods: { handleSubmit() { @@ -80,4 +58,11 @@ ::v-deep .el-form-item__content div { width: 100%; } + +::v-deep.el-form--inline .el-form-item__label { + font-family: Source Han Sans; + font-size: 14px; + font-weight: bold; + color: #2C2C2C; +} </style> -- Gitblit v1.9.1