提交 c35ccd0b 编写于 作者: zhujiamin's avatar zhujiamin

侧滑菜单ts结构调整

上级 79b612a0
......@@ -41,35 +41,6 @@ import { Environment } from '@/environments/environment';
}
})
export default class AppMobMenuSideslipView extends Vue {
/**
* 向左滑动关闭弹出层
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public onSwipeLeft(e:any){
this.showPopup = false;
}
/**
* 向右滑动打开弹出层
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public onSwipeRight(){
if (this.$store.state.popupStatus) {
this.showPopup = true;
}
}
/**
* 是否能显示侧滑菜单
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public isShowSideSlipMenu:boolean = true;
/**
* 是否显示侧滑菜单
......@@ -79,16 +50,6 @@ export default class AppMobMenuSideslipView extends Vue {
*/
public showPopup:boolean = false;
/**
* 打开弹出层
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public openMenu(){
this.showPopup = true;
}
/**
* 使用默认菜单
*
......@@ -172,6 +133,12 @@ export default class AppMobMenuSideslipView extends Vue {
*/
public activeId = "";
/**
* 默认菜单
*
* @type {Object}
* @memberof AppMobMenuSideslipView
*/
public defaultMenu = {
appfunctag: "settings",
componentname: "app-setting",
......@@ -190,6 +157,22 @@ export default class AppMobMenuSideslipView extends Vue {
tooltip: "设置",
type: "MENUITEM",
};
/**
* 计数器
*
* @memberof AppMobMenuSideslipView
*/
public counterServide:any = null;
/**
* 计数器数据
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public counterdata: any = {};
/**
* 生命周期
*
......@@ -247,14 +230,6 @@ export default class AppMobMenuSideslipView extends Vue {
this.showPopup = false;
}
/**
* 计数器数据
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public counterdata: any = {};
/**
* vue 生命周期
*
......@@ -264,13 +239,6 @@ export default class AppMobMenuSideslipView extends Vue {
this.counterServide.destroyCounter();
}
/**
* 计数器
*
* @memberof AppMobMenuSideslipView
*/
public counterServide:any = null;
/**
* 加载计数器数据
*
......@@ -294,6 +262,27 @@ export default class AppMobMenuSideslipView extends Vue {
return val;
}
/**
* 向左滑动关闭弹出层
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public onSwipeLeft(e:any){
this.showPopup = false;
}
/**
* 向右滑动打开弹出层
*
* @type {*}
* @memberof AppMobMenuSideslipView
*/
public onSwipeRight(){
if (this.$store.state.popupStatus) {
this.showPopup = true;
}
}
}
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册