@@ -98,6 +98,7 @@ const setVisible = () => {
98
98
</script >
99
99
100
100
<template >
101
+ <!-- update by 芋艿:class="-mb-15px" 用于降低和 ContentWrap 组件的底部距离,避免空隙过大 -->
101
102
<Form
102
103
:is-custom =" false"
103
104
:label-width =" labelWidth"
@@ -106,21 +107,26 @@ const setVisible = () => {
106
107
:is-col =" isCol"
107
108
:schema =" newSchema"
108
109
@register =" register"
110
+ class =" -mb-15px"
109
111
>
110
112
<template #action >
111
113
<div v-if =" layout === 'inline'" >
112
- <ElButton v-if =" showSearch" type =" primary" @click =" search" >
114
+ <!-- update by 芋艿:去除搜索的 type="primary",颜色变淡一点 -->
115
+ <ElButton v-if =" showSearch" @click =" search" >
113
116
<Icon icon =" ep:search" class =" mr-5px" />
114
117
{{ t('common.query') }}
115
118
</ElButton >
119
+ <!-- update by 芋艿:将 icon="ep:refresh-right" 修改成 icon="ep:refresh",和 ruoyi-vue 搜索保持一致 -->
116
120
<ElButton v-if =" showReset" @click =" reset" >
117
- <Icon icon =" ep:refresh-right " class =" mr-5px" />
121
+ <Icon icon =" ep:refresh" class =" mr-5px" />
118
122
{{ t('common.reset') }}
119
123
</ElButton >
120
124
<ElButton v-if =" expand" text @click =" setVisible" >
121
125
{{ t(visible ? 'common.shrink' : 'common.expand') }}
122
126
<Icon :icon =" visible ? 'ep:arrow-up' : 'ep:arrow-down'" />
123
127
</ElButton >
128
+ <!-- add by 芋艿:补充在搜索后的按钮 -->
129
+ <slot name =" actionMore" ></slot >
124
130
</div >
125
131
</template >
126
132
<template #[name ] v-for =" name in Object .keys ($slots )" :key =" name "
@@ -142,6 +148,8 @@ const setVisible = () => {
142
148
{{ t(visible ? 'common.shrink' : 'common.expand') }}
143
149
<Icon :icon =" visible ? 'ep:arrow-up' : 'ep:arrow-down'" />
144
150
</ElButton >
151
+ <!-- add by 芋艿:补充在搜索后的按钮 -->
152
+ <slot name =" actionMore" ></slot >
145
153
</div >
146
154
</template >
147
155
</template >
0 commit comments