Kaynağa Gözat

!832 update Web/src/components/table/search.vue.
Merge pull request !832 from inypeacock/N/A

zuohuaijun 2 yıl önce
ebeveyn
işleme
85eda8fc55
1 değiştirilmiş dosya ile 6 ekleme ve 5 silme
  1. 6 5
      Web/src/components/table/search.vue

+ 6 - 5
Web/src/components/table/search.vue

@@ -69,10 +69,11 @@
 							</div>
 							</div>
 						</template>
 						</template>
 						<div>
 						<div>
-							<el-button-group>
-								<el-button type="primary" icon="ele-Search" @click="onSearch(tableSearchRef)"> 查询 </el-button>
-								<el-button icon="ele-Refresh" @click="onReset(tableSearchRef)"> 重置 </el-button>
-							</el-button-group>
+							<!-- 使用el-button-group会导致具有type属性的按钮的右边框无法显示 -->
+							<!-- <el-button-group> -->
+							<el-button plain type="primary" icon="ele-Search" @click="onSearch(tableSearchRef)"> 查询 </el-button>
+							<el-button icon="ele-Refresh" @click="onReset(tableSearchRef)" style="margin-left: 12px;"> 重置 </el-button>
+							<!-- </el-button-group> -->
 						</div>
 						</div>
 					</el-form-item>
 					</el-form-item>
 				</el-col>
 				</el-col>
@@ -109,7 +110,7 @@ const emit = defineEmits(['search', 'reset']);
 // 定义变量内容
 // 定义变量内容
 const tableSearchRef = ref<FormInstance>();
 const tableSearchRef = ref<FormInstance>();
 const state = reactive({
 const state = reactive({
-	form: {},
+	form: {} as any,
 	isToggle: false,
 	isToggle: false,
 	cascaderProps: { checkStrictly: true, emitPath: false, value: 'id', label: 'name', expandTrigger: 'hover' },
 	cascaderProps: { checkStrictly: true, emitPath: false, value: 'id', label: 'name', expandTrigger: 'hover' },
 });
 });