提交 c3437283 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码,修复气泡卡片关闭异常

上级 dbc01ac6
......@@ -374,7 +374,7 @@ export default class AccountUIServiceBase extends UIService {
}
const view: any = {
viewname: 'account-edit-data-panel',
height: 260,
height: 252,
width: 300,
title: actionContext.$t('entities.account.views.edit_datapanel.title'),
placement: 'POPOVER',
......
......@@ -102,9 +102,14 @@ export class AppPopover {
store: store,
i18n: i18n,
data: { content: null, width: 300, height: 300 },
methods: {
click(e: MouseEvent) {
e.stopPropagation();
}
},
render(h: CreateElement) {
const content: any = this.content;
return <div v-show={self.showPopper} style={{ width: this.width + 'px', height: this.height + 'px', 'z-index': self.zIndex }} class="app-popover app-popper">{(self.showPopper && content) ? content(h) : null}</div>;
return <div v-show={self.showPopper} style={{ width: this.width + 'px', height: this.height + 'px', 'z-index': self.zIndex }} class="app-popover app-popper" on-click={this.click}>{(self.showPopper && content) ? content(h) : null}</div>;
}
});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册