@deskhero/dh_ui 1.47.0 → 1.48.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
@@ -27286,6 +27286,10 @@ const _sfc_main$9 = defineComponent({
27286
27286
  bodyClass: {
27287
27287
  type: String,
27288
27288
  default: ""
27289
+ },
27290
+ fitContent: {
27291
+ type: Boolean,
27292
+ default: false
27289
27293
  }
27290
27294
  },
27291
27295
  emits: ["close"],
@@ -27325,7 +27329,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
27325
27329
  createElementVNode("div", {
27326
27330
  "aria-describedby": "modalDescription",
27327
27331
  "aria-labelledby": "modalTitle",
27328
- class: normalizeClass(`modal ${_ctx.hasSideBar ? _ctx.sideBarPosition : ""} ${_ctx.hasBodyScrolling ? "" : "modal-auto-height"}`),
27332
+ class: normalizeClass(`
27333
+ ${_ctx.hasSideBar ? _ctx.sideBarPosition : ""}
27334
+ ${_ctx.hasBodyScrolling ? "" : "modal-auto-height"}
27335
+ ${_ctx.fitContent ? "modal-fit-content" : "modal"}
27336
+ `),
27329
27337
  role: "dialog",
27330
27338
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
27331
27339
  }, ["stop"]))