@deskhero/dh_ui 1.42.13 → 1.43.0

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/dist/dh_ui.es.js CHANGED
@@ -27130,6 +27130,10 @@ const _sfc_main$8 = defineComponent({
27130
27130
  type: Boolean,
27131
27131
  default: true
27132
27132
  },
27133
+ hasBodyScrolling: {
27134
+ type: Boolean,
27135
+ default: true
27136
+ },
27133
27137
  sideBarPosition: {
27134
27138
  type: String,
27135
27139
  default: "left"
@@ -27179,7 +27183,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
27179
27183
  createElementVNode("div", {
27180
27184
  "aria-describedby": "modalDescription",
27181
27185
  "aria-labelledby": "modalTitle",
27182
- class: normalizeClass(`modal ${_ctx.hasSideBar ? _ctx.sideBarPosition : ""}`),
27186
+ class: normalizeClass(`modal ${_ctx.hasSideBar ? _ctx.sideBarPosition : ""} ${_ctx.hasBodyScrolling ? "" : "modal-auto-height"}`),
27183
27187
  role: "dialog",
27184
27188
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
27185
27189
  }, ["stop"]))
@@ -27209,7 +27213,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
27209
27213
  ])) : createCommentVNode("", true),
27210
27214
  createElementVNode("section", {
27211
27215
  id: "modalDescription",
27212
- class: normalizeClass(["modal-body", _ctx.bodyClass])
27216
+ class: normalizeClass(["modal-body", [_ctx.bodyClass, _ctx.hasBodyScrolling ? "" : "modal-body-no-scroll"]])
27213
27217
  }, [
27214
27218
  renderSlot(_ctx.$slots, "body")
27215
27219
  ], 2),