提交 03010f83 编写于 作者: KK's avatar KK

上下文菜单组件-fix

上级 9a666b25
...@@ -12,37 +12,30 @@ import { MapService } from '@/ibiz-core/service/map-service'; ...@@ -12,37 +12,30 @@ import { MapService } from '@/ibiz-core/service/map-service';
export default class appMobContextMenu extends Vue { export default class appMobContextMenu extends Vue {
/** /**
* 显示值 * 上下文菜单显示状态
* *
* @type {*} * @type {*}
* @memberof appMobContextMenu * @memberof appMobContextMenu
*/ */
@Prop({default:false}) value?: boolean; public isShow :boolean = false;
/** /**
* 绑定值 * 指定挂载节点 默认为#app
* *
* @type {*} * @type {*}
* @memberof appMobContextMenu * @memberof appMobContextMenu
*/ */
get isShow(){ @Prop({default:'#app'}) public eleContainer?:any;
return this.value
}
set isShow(newVal:any){
this.$emit("change",newVal)
}
/** /**
* 指定挂载节点 默认为#app * 打开上下文菜单
* *
* @type {*} * @type {*}
* @memberof appMobContextMenu * @memberof appMobContextMenu
*/ */
@Prop({default:'#app'}) public eleContainer?:any; public showContextMenu(){
this.isShow = true;
}
} }
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册