@newview/ui 1.1.44 → 1.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191550,9 +191550,12 @@ class ModalInstance extends BaseInstance {
191550
191550
  __publicField2(this, "modalWidth", ref(500));
191551
191551
  // 响应式方法 | xxx = () => {}
191552
191552
  __publicField2(this, "visibleChange", (flag) => {
191553
+ var _a;
191553
191554
  if (flag) {
191554
191555
  this.getWidth();
191555
- const layoutContent = document.getElementsByClassName("ivu-layout-content")[0].getBoundingClientRect();
191556
+ const layoutContent = (_a = document.getElementsByClassName("ivu-layout-content")[0]) == null ? void 0 : _a.getBoundingClientRect();
191557
+ if (!layoutContent)
191558
+ return;
191556
191559
  const myModal = document.getElementById(this.myModalId);
191557
191560
  if (myModal) {
191558
191561
  const modalContent = Array.from(myModal.getElementsByClassName("ivu-modal-content"));