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

chitanda 发布系统代码

上级 70cde8da
// js基础扩展
import './utils/js-basic-extension';
// 导出装饰器 // 导出装饰器
export { VueLifeCycleProcessing } from './decorators/VueLifeCycleProcessing'; export { VueLifeCycleProcessing } from './decorators/VueLifeCycleProcessing';
export { SingletonMode } from './decorators/SingletonMode'; export { SingletonMode } from './decorators/SingletonMode';
......
...@@ -8,4 +8,16 @@ declare module "vue/types/vue" { ...@@ -8,4 +8,16 @@ declare module "vue/types/vue" {
$footerMenuService: FooterItemsService, $footerMenuService: FooterItemsService,
$uiState: UIStateService $uiState: UIStateService
} }
}
declare global {
interface Object {
/**
* 清除所有属性,不改变内存地址
*
* @memberof Object
*/
clearAll(): void;
}
} }
\ No newline at end of file
// 扩展Object方法,删除所有元素不改变内存地址
Object.defineProperty(Object.prototype, 'clearAll', {
writable: false,
enumerable: false,
configurable: true,
value: function() {
if (this) {
for (const key in this) {
if (this.hasOwnProperty(key)) {
delete this[key];
}
}
}
}
});
\ No newline at end of file
...@@ -116,7 +116,8 @@ export class MDViewBase extends ViewBase { ...@@ -116,7 +116,8 @@ export class MDViewBase extends ViewBase {
*/ */
protected quickGroupValueChange = ($event: any) => { protected quickGroupValueChange = ($event: any) => {
if ($event && $event.data) { if ($event && $event.data) {
this.quickGroupData = $event.data; this.quickGroupData.clearAll();
Object.assign(this.quickGroupData, $event.data);
if (this.isEmitQuickGroupValue) { if (this.isEmitQuickGroupValue) {
this.onSearch(); this.onSearch();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册