Browse Source

BI-125865 fix: 【6.0.10发散】展开数据预警后,调整浏览器窗口,页面显示异常

代码结构缺陷,core的不能反过来依赖base的. 所以直接把依赖注入
es6
zsmj 2 years ago
parent
commit
52d8f2ea4d
  1. 2
      packages/fineui/src/base/0.base.js
  2. 8
      packages/fineui/src/core/controller/controller.layer.js

2
packages/fineui/src/base/0.base.js

@ -11,7 +11,7 @@ import {
import { StyleLoaderManager } from '../core/loader/loader.style';
const Resizers = new ResizeController();
const Layers = new LayerController();
const Layers = new LayerController(Resizers);
const Maskers = new MaskersController();
const Bubbles = new BubblesController();
const Tooltips = new TooltipsController();

8
packages/fineui/src/core/controller/controller.layer.js

@ -9,17 +9,17 @@ import { Widget } from "../4.widget";
import { createWidget } from "../5.inject";
import { zIndex_layer } from "../constant";
import { DOM } from "../utils";
// import { Resizers } from "../../base/0.base";
export class LayerController extends Controller {
constructor() {
constructor(Resizers) {
super();
this._constructor();
this.Resizers = Resizers;
}
props = {
render: "body",
}
};
init() {
this.layerManager = {};
@ -28,7 +28,7 @@ export class LayerController extends Controller {
}
_initResizer() {
// this.resizer = Resizers.add(`layerController${uniqueId()}`, bind(this._resize, this));
this.resizer = this.Resizers.add(`layerController${uniqueId()}`, bind(this._resize, this));
}
_resize() {

Loading…
Cancel
Save