This commit is contained in:
qsh
2024-05-31 17:38:17 +08:00
parent de522af86f
commit a557255b4a
29 changed files with 675 additions and 260 deletions

View File

@@ -33,8 +33,8 @@ const props = defineProps({
.validate((v: string) => ['left', 'center', 'right'].includes(v))
.def('center'),
showLabel: propTypes.bool.def(false),
showSearch: propTypes.bool.def(true),
showReset: propTypes.bool.def(true),
showSearch: propTypes.bool.def(false),
showReset: propTypes.bool.def(false),
// 是否显示伸缩
expand: propTypes.bool.def(false),
// 伸缩的界限字段
@@ -199,10 +199,10 @@ initSearch()
</ElButton>
<!-- add by 芋艿补充在搜索后的按钮 -->
<slot name="actionMore"></slot>
<ElButton v-if="expand" text @click="setVisible">
<!-- <ElButton v-if="expand" text @click="setVisible">
{{ t(visible ? 'common.shrink' : 'common.expand') }}
<!-- <Icon :icon="visible ? 'ep:arrow-up' : 'ep:arrow-down'" /> -->
</ElButton>
<Icon :icon="visible ? 'ep:arrow-up' : 'ep:arrow-down'" />
</ElButton> -->
</div>
</template>
<template v-for="name in Object.keys($slots)" :key="name" #[name]>