mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-24 23:47:17 +08:00
chore: 同步完整版代码
This commit is contained in:
parent
31a9a10d1b
commit
3ebf0bda2f
@ -37,6 +37,7 @@ const {
|
|||||||
buttonLeft,
|
buttonLeft,
|
||||||
showModel,
|
showModel,
|
||||||
translateX,
|
translateX,
|
||||||
|
isFixedTag,
|
||||||
pureSetting,
|
pureSetting,
|
||||||
activeIndex,
|
activeIndex,
|
||||||
getTabStyle,
|
getTabStyle,
|
||||||
@ -578,7 +579,7 @@ onBeforeUnmount(() => {
|
|||||||
'scroll-item is-closable',
|
'scroll-item is-closable',
|
||||||
linkIsActive(item),
|
linkIsActive(item),
|
||||||
showModel === 'chrome' && 'chrome-item',
|
showModel === 'chrome' && 'chrome-item',
|
||||||
!isAllEmpty(item?.meta?.fixedTag) && 'fixed-tag'
|
isFixedTag(item) && 'fixed-tag'
|
||||||
]"
|
]"
|
||||||
@contextmenu.prevent="openMenu(item, $event)"
|
@contextmenu.prevent="openMenu(item, $event)"
|
||||||
@mouseenter.prevent="onMouseenter(index)"
|
@mouseenter.prevent="onMouseenter(index)"
|
||||||
@ -593,10 +594,10 @@ onBeforeUnmount(() => {
|
|||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-if="
|
v-if="
|
||||||
isAllEmpty(item?.meta?.fixedTag)
|
isFixedTag(item)
|
||||||
? iconIsActive(item, index) ||
|
? false
|
||||||
|
: iconIsActive(item, index) ||
|
||||||
(index === activeIndex && index !== 0)
|
(index === activeIndex && index !== 0)
|
||||||
: false
|
|
||||||
"
|
"
|
||||||
class="el-icon-close"
|
class="el-icon-close"
|
||||||
@click.stop="deleteMenu(item)"
|
@click.stop="deleteMenu(item)"
|
||||||
@ -617,7 +618,7 @@ onBeforeUnmount(() => {
|
|||||||
{{ transformI18n(item.meta.title) }}
|
{{ transformI18n(item.meta.title) }}
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-if="isAllEmpty(item?.meta?.fixedTag) ? index !== 0 : false"
|
v-if="isFixedTag(item) ? false : index !== 0"
|
||||||
class="chrome-close-btn"
|
class="chrome-close-btn"
|
||||||
@click.stop="deleteMenu(item)"
|
@click.stop="deleteMenu(item)"
|
||||||
>
|
>
|
||||||
|
@ -125,6 +125,12 @@ export function useTags() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isFixedTag = computed(() => {
|
||||||
|
return item => {
|
||||||
|
return isBoolean(item?.meta?.fixedTag) && item?.meta?.fixedTag === true;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
const iconIsActive = computed(() => {
|
const iconIsActive = computed(() => {
|
||||||
return (item, index) => {
|
return (item, index) => {
|
||||||
if (index === 0) return;
|
if (index === 0) return;
|
||||||
@ -221,6 +227,7 @@ export function useTags() {
|
|||||||
buttonTop,
|
buttonTop,
|
||||||
buttonLeft,
|
buttonLeft,
|
||||||
translateX,
|
translateX,
|
||||||
|
isFixedTag,
|
||||||
pureSetting,
|
pureSetting,
|
||||||
activeIndex,
|
activeIndex,
|
||||||
getTabStyle,
|
getTabStyle,
|
||||||
|
@ -107,6 +107,7 @@ import {
|
|||||||
ElWatermark,
|
ElWatermark,
|
||||||
ElTour,
|
ElTour,
|
||||||
ElTourStep,
|
ElTourStep,
|
||||||
|
ElSegmented,
|
||||||
/**
|
/**
|
||||||
* 为了方便演示平台将 element-plus 导出的所有插件引入,实际使用中如果你没用到哪个插件,将其注释掉就行
|
* 为了方便演示平台将 element-plus 导出的所有插件引入,实际使用中如果你没用到哪个插件,将其注释掉就行
|
||||||
* 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/plugin.ts#L11-L16
|
* 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/plugin.ts#L11-L16
|
||||||
@ -221,7 +222,8 @@ const components = [
|
|||||||
ElUpload,
|
ElUpload,
|
||||||
ElWatermark,
|
ElWatermark,
|
||||||
ElTour,
|
ElTour,
|
||||||
ElTourStep
|
ElTourStep,
|
||||||
|
ElSegmented
|
||||||
];
|
];
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
|
1
types/global-components.d.ts
vendored
1
types/global-components.d.ts
vendored
@ -115,6 +115,7 @@ declare module "vue" {
|
|||||||
ElWatermark: (typeof import("element-plus"))["ElWatermark"];
|
ElWatermark: (typeof import("element-plus"))["ElWatermark"];
|
||||||
ElTour: (typeof import("element-plus"))["ElTour"];
|
ElTour: (typeof import("element-plus"))["ElTour"];
|
||||||
ElTourStep: (typeof import("element-plus"))["ElTourStep"];
|
ElTourStep: (typeof import("element-plus"))["ElTourStep"];
|
||||||
|
ElSegmented: (typeof import("element-plus"))["ElSegmented"];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ComponentCustomProperties {
|
interface ComponentCustomProperties {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user