mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 13:43:51 +08:00
'admin-21.03.07:优化tagsView当前页全屏功能'
This commit is contained in:
parent
611bb33831
commit
764e06a910
@ -90,9 +90,13 @@ export default {
|
|||||||
value: 3,
|
value: 3,
|
||||||
label: "关闭全部",
|
label: "关闭全部",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: 4,
|
||||||
|
label: "当前页全屏",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
// 0 刷新当前,1 关闭当前,2 关闭其它,3 关闭全部
|
// 0 刷新当前,1 关闭当前,2 关闭其它,3 关闭全部 4 当前页全屏
|
||||||
// 1、刷新当前 tagsView
|
// 1、刷新当前 tagsView
|
||||||
const refreshCurrentTagsView = () => {
|
const refreshCurrentTagsView = () => {
|
||||||
proxy.mittBus.emit("onCurrentContextmenuClick", {
|
proxy.mittBus.emit("onCurrentContextmenuClick", {
|
||||||
|
@ -43,7 +43,7 @@ export default defineComponent({
|
|||||||
{ id: 3, txt: "全部关闭", affix: false, icon: "el-icon-folder-delete" },
|
{ id: 3, txt: "全部关闭", affix: false, icon: "el-icon-folder-delete" },
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
txt: "当前全屏",
|
txt: "当前页全屏",
|
||||||
affix: false,
|
affix: false,
|
||||||
icon: "iconfont icon-fullscreen",
|
icon: "iconfont icon-fullscreen",
|
||||||
},
|
},
|
||||||
|
@ -249,7 +249,7 @@ export default {
|
|||||||
});
|
});
|
||||||
// 页面加载前
|
// 页面加载前
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
// 监听非本页面调用 0 刷新当前,1 关闭当前,2 关闭其它,3 关闭全部
|
// 监听非本页面调用 0 刷新当前,1 关闭当前,2 关闭其它,3 关闭全部 4 当前页全屏
|
||||||
proxy.mittBus.on("onCurrentContextmenuClick", (data: object) => {
|
proxy.mittBus.on("onCurrentContextmenuClick", (data: object) => {
|
||||||
onCurrentContextmenuClick(data);
|
onCurrentContextmenuClick(data);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user