style: 优化Search简单模式样式

This commit is contained in:
xieyonghong 2023-02-23 17:29:01 +08:00
parent 2291f02fcf
commit f49cffe1d6
2 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class='JSearch-warp' ref='searchRef'>
<div :class="['JSearch-warp', props.class]" ref='searchRef'>
<!-- 高级模式 -->
<div v-if='props.type === "advanced"' :class='["JSearch-content senior", expand ? "senior-expand" : "", screenSize ? "big" : "small"]'>
<div :class='["JSearch-items", expand ? "items-expand" : "", layout]'>
@ -94,6 +94,10 @@ const props = defineProps({
type: String,
default: '',
required: true
},
class: {
type: String,
default: ''
}
})
@ -375,10 +379,10 @@ handleItems()
&.simple {
.JSearch-items {
flex-grow: 4;
flex-grow: 1;
}
.JSearch-footer {
flex-grow: 3;
flex-grow: 0;
}
}
}

View File

@ -3,6 +3,7 @@
:columns="columns"
type='simple'
@search="handleSearch"
class='search'
/>
<j-table
:columns='columns'
@ -226,6 +227,8 @@ const handleClick = (detail: any) => {
</script>
<style scoped>
<style scoped lang='less'>
.search {
margin-bottom: 0;
}
</style>