This commit is contained in:
guochunsi
2026-01-21 17:21:14 +08:00
parent 798e45dc04
commit d283a10257
6 changed files with 523 additions and 472 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="search-form-container">
<el-form :model="formModel" ref="formRef" :inline="true" @keyup.enter="handleKeyupEnter">
<el-form :model="formModel" ref="formRef" :inline="true" @keyup.enter="handleKeyupEnter" :label-width="labelWidth">
<!-- 直接展示的表单项 -->
<slot :visible="true" :expanded="isExpanded"></slot>
@@ -65,6 +65,13 @@ const props = defineProps({
type: Boolean,
default: undefined,
},
/**
* 表单项标签宽度
*/
labelWidth: {
type: String,
default: '',
},
});
const emit = defineEmits(['expand-change', 'keyup-enter']);