Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
c5e76993
Commit
c5e76993
authored
Dec 05, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了顶部按钮显示
parent
fd669da0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
41 deletions
+48
-41
AppLocalePicker.vue
src/components/Application/src/AppLocalePicker.vue
+13
-13
AppSearch.vue
src/components/Application/src/search/AppSearch.vue
+19
-19
index.vue
src/layouts/default/header/index.vue
+16
-9
No files found.
src/components/Application/src/AppLocalePicker.vue
View file @
c5e76993
...
...
@@ -3,19 +3,19 @@
* @Description: Multi-language switching component
-->
<
template
>
<!--
<Dropdown-->
<!-- placement="bottom"-->
<!-- :trigger="['click']"-->
<!-- :dropMenuList="localeList"-->
<!-- :selectedKeys="selectedKeys"-->
<!-- @menu-event="handleMenuEvent"-->
<!-- overlayClassName="app-locale-picker-overlay"-->
<!-- >--
>
<!--
<span
class=
"cursor-pointer flex items-center"
>
--
>
<!--
<Icon
icon=
"ion:language"
/>
--
>
<!--
<span
v-if=
"showText"
class=
"ml-1"
>
{{
getLocaleText
}}
</span>
--
>
<!--
</span>
--
>
<!--
</Dropdown>
--
>
<Dropdown
placement=
"bottom"
:trigger=
"['click']"
:dropMenuList=
"localeList"
:selectedKeys=
"selectedKeys"
@
menu-event=
"handleMenuEvent"
overlayClassName=
"app-locale-picker-overlay"
>
<span
class=
"cursor-pointer flex items-center"
>
<Icon
icon=
"ion:language"
/
>
<span
v-if=
"showText"
class=
"ml-1"
>
{{
getLocaleText
}}
</span
>
</span
>
</Dropdown
>
</
template
>
<
script
lang=
"ts"
setup
>
import
type
{
LocaleType
}
from
'#/config'
;
...
...
src/components/Application/src/search/AppSearch.vue
View file @
c5e76993
...
...
@@ -8,26 +8,26 @@
export
default
defineComponent
({
name
:
'AppSearch'
,
setup
()
{
// const showModal = ref(false);
// const { t } = useI18n();
//
// function changeModal(show: boolean) {
// showModal.value = show;
// }
const
showModal
=
ref
(
false
);
const
{
t
}
=
useI18n
();
// return () => {
// return (
//
<
div
class
=
"p-1"
onClick
=
{
changeModal
.
bind
(
null
,
true
)}
>
//
<
Tooltip
>
// {{
// title: () => t('common.searchText'),
// default: () =>
<
SearchOutlined
/>
,
// }}
//
<
/Tooltip
>
//
<
AppSearchModal
onClose
=
{
changeModal
.
bind
(
null
,
false
)}
visible
=
{
unref
(
showModal
)}
/
>
//
<
/div
>
// );
// };
function
changeModal
(
show
:
boolean
)
{
showModal
.
value
=
show
;
}
return
()
=>
{
return
(
<
div
class
=
"p-1"
onClick
=
{
changeModal
.
bind
(
null
,
true
)}
>
<
Tooltip
>
{{
title
:
()
=>
t
(
'common.searchText'
),
default
:
()
=>
<
SearchOutlined
/>
,
}}
<
/Tooltip
>
<
AppSearchModal
onClose
=
{
changeModal
.
bind
(
null
,
false
)}
visible
=
{
unref
(
showModal
)}
/
>
<
/div
>
);
};
},
});
</
script
>
src/layouts/default/header/index.vue
View file @
c5e76993
...
...
@@ -34,26 +34,33 @@
<!-- action -->
<div
:class=
"`$
{prefixCls}-action`">
<!-- 切换模块 按钮-->
<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`" />
<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"
:reload=
"true"
:showText=
"false"
:class=
"`$
{prefixCls}-action__item`"
/>
<!-- 英汉翻译 按钮-->
<!--
<AppLocalePicker-->
<!-- v-if="getShowLocalePicker"-->
<!-- :reload="true"-->
<!-- :showText="false"-->
<!-- :class="`$
{prefixCls}-action__item`"-->
<!-- />-->
<!-- 头像 按钮-->
<UserDropDown
:theme=
"getHeaderTheme"
/>
<SettingDrawer
v-if=
"getShowSetting"
:class=
"`$
{prefixCls}-action__item`" />
<!-- 设置 按钮-->
<!--
<SettingDrawer
v-if=
"getShowSetting"
:class=
"`$
{prefixCls}-action__item`" />-->
</div>
</Layout
.Header
>
</
template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment