@newview/ui 1.1.23 → 1.1.25

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.
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.25
2
+
3
+ 1、NvModal 组件增加自定义 footer 类
4
+
1
5
  ### 1.1.21
2
6
 
3
7
  1. Grid 增加空空数据提示语自定义
@@ -191450,9 +191450,9 @@ class ModalInstance extends BaseInstance {
191450
191450
  if (flag) {
191451
191451
  this.getWidth();
191452
191452
  const layoutContent = document.getElementsByClassName("ivu-layout-content")[0].getBoundingClientRect();
191453
- const modalContent = document.getElementsByClassName("ivu-modal-content");
191454
- const modalBody = document.getElementsByClassName("ivu-modal-body");
191455
- const wrap = document.getElementsByClassName("ivu-modal-wrap");
191453
+ const modalContent = Array.from(document.getElementsByClassName("ivu-modal-content"));
191454
+ const modalBody = Array.from(document.getElementsByClassName("ivu-modal-body"));
191455
+ const wrap = Array.from(document.getElementsByClassName("ivu-modal-wrap"));
191456
191456
  let maxWidth = layoutContent.width;
191457
191457
  let maxHeight = layoutContent.height;
191458
191458
  modalContent.forEach((element) => {
@@ -191502,6 +191502,16 @@ class ModalInstance extends BaseInstance {
191502
191502
  for (const key2 in refModal) {
191503
191503
  this[key2] = refModal[key2];
191504
191504
  }
191505
+ const modals = Array.from(document.getElementsByClassName("ivu-modal"));
191506
+ modals.forEach((modal) => {
191507
+ const nvFooter = Array.from(modal.getElementsByClassName("nv-modal-footer"));
191508
+ if (nvFooter.length > 0) {
191509
+ const footer = Array.from(modal.getElementsByClassName("ivu-modal-footer"));
191510
+ footer.forEach((item2) => {
191511
+ item2.style.opacity = 0;
191512
+ });
191513
+ }
191514
+ });
191505
191515
  });
191506
191516
  watchEffect(() => {
191507
191517
  this.visibleChange(this.ctx.attrs.modelValue);
@@ -191519,6 +191529,7 @@ class ModalInstance extends BaseInstance {
191519
191529
  }
191520
191530
  //#endregion BinEditor 编辑器 END
191521
191531
  }
191532
+ const NvModal_vue_vue_type_style_index_0_lang = "";
191522
191533
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
191523
191534
  const _component_Modal = resolveComponent("Modal");
191524
191535
  return openBlock(), createBlock(_component_Modal, mergeProps({ ref: "NvModal" }, _ctx.$attrs, {