Commit c5e76993 authored by liwei's avatar liwei

修改了顶部按钮显示

parent fd669da0
...@@ -3,19 +3,19 @@ ...@@ -3,19 +3,19 @@
* @Description: Multi-language switching component * @Description: Multi-language switching component
--> -->
<template> <template>
<!-- <Dropdown--> <Dropdown
<!-- placement="bottom"--> placement="bottom"
<!-- :trigger="['click']"--> :trigger="['click']"
<!-- :dropMenuList="localeList"--> :dropMenuList="localeList"
<!-- :selectedKeys="selectedKeys"--> :selectedKeys="selectedKeys"
<!-- @menu-event="handleMenuEvent"--> @menu-event="handleMenuEvent"
<!-- overlayClassName="app-locale-picker-overlay"--> overlayClassName="app-locale-picker-overlay"
<!-- >--> >
<!-- <span class="cursor-pointer flex items-center">--> <span class="cursor-pointer flex items-center">
<!-- <Icon icon="ion:language" />--> <Icon icon="ion:language" />
<!-- <span v-if="showText" class="ml-1">{{ getLocaleText }}</span>--> <span v-if="showText" class="ml-1">{{ getLocaleText }}</span>
<!-- </span>--> </span>
<!-- </Dropdown>--> </Dropdown>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { LocaleType } from '#/config'; import type { LocaleType } from '#/config';
......
...@@ -8,26 +8,26 @@ ...@@ -8,26 +8,26 @@
export default defineComponent({ export default defineComponent({
name: 'AppSearch', name: 'AppSearch',
setup() { setup() {
// const showModal = ref(false); const showModal = ref(false);
// const { t } = useI18n(); const { t } = useI18n();
//
// function changeModal(show: boolean) {
// showModal.value = show;
// }
// return () => { function changeModal(show: boolean) {
// return ( showModal.value = show;
// <div class="p-1" onClick={changeModal.bind(null, true)}> }
// <Tooltip>
// {{ return () => {
// title: () => t('common.searchText'), return (
// default: () => <SearchOutlined />, <div class="p-1" onClick={changeModal.bind(null, true)}>
// }} <Tooltip>
// </Tooltip> {{
// <AppSearchModal onClose={changeModal.bind(null, false)} visible={unref(showModal)} /> title: () => t('common.searchText'),
// </div> default: () => <SearchOutlined />,
// ); }}
// }; </Tooltip>
<AppSearchModal onClose={changeModal.bind(null, false)} visible={unref(showModal)} />
</div>
);
};
}, },
}); });
</script> </script>
...@@ -34,26 +34,33 @@ ...@@ -34,26 +34,33 @@
<!-- action --> <!-- action -->
<div :class="`${prefixCls}-action`"> <div :class="`${prefixCls}-action`">
<!-- 切换模块 按钮-->
<UpgradePrompt class="mr-2" /> <UpgradePrompt class="mr-2" />
<AppSearch v-if="getShowSearch" :class="`${prefixCls}-action__item `" /> <!-- 搜索 按钮-->
<!-- <AppSearch v-if="getShowSearch" :class="`${prefixCls}-action__item `" />-->
<ErrorAction v-if="getUseErrorHandle" :class="`${prefixCls}-action__item error-action`" /> <ErrorAction v-if="getUseErrorHandle" :class="`${prefixCls}-action__item error-action`" />
<Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" /> <Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" />
<FullScreen v-if="getShowFullScreen" :class="`${prefixCls}-action__item fullscreen-item`" /> <!-- 全屏 按钮-->
<!-- <FullScreen v-if="getShowFullScreen" :class="`${prefixCls}-action__item fullscreen-item`" />-->
<AppLocalePicker <!-- 英汉翻译 按钮-->
v-if="getShowLocalePicker" <!-- <AppLocalePicker-->
:reload="true" <!-- v-if="getShowLocalePicker"-->
:showText="false" <!-- :reload="true"-->
:class="`${prefixCls}-action__item`" <!-- :showText="false"-->
/> <!-- :class="`${prefixCls}-action__item`"-->
<!-- />-->
<!-- 头像 按钮-->
<UserDropDown :theme="getHeaderTheme" /> <UserDropDown :theme="getHeaderTheme" />
<SettingDrawer v-if="getShowSetting" :class="`${prefixCls}-action__item`" /> <!-- 设置 按钮-->
<!-- <SettingDrawer v-if="getShowSetting" :class="`${prefixCls}-action__item`" />-->
</div> </div>
</Layout.Header> </Layout.Header>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment