bkui-vue 1.0.3-beta.23 → 1.0.3-beta.24

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/index.esm.js CHANGED
@@ -1406,7 +1406,7 @@ const OM = (e) => {
1406
1406
  return (t = document.fullscreenElement) != null && t.shadowRoot ? document.fullscreenElement.shadowRoot.contains(e) : (n = document.fullscreenElement) == null ? void 0 : n.contains(e);
1407
1407
  }, kl = (e) => {
1408
1408
  var t, n;
1409
- if (la(e) && OM(e))
1409
+ if (console.log("getFullscreenRoot", document.fullscreenElement ?? document.body), la(e) && OM(e))
1410
1410
  return e;
1411
1411
  if (typeof e == "string") {
1412
1412
  const i = document.body.querySelector(e);
@@ -7951,6 +7951,7 @@ const f2 = /* @__PURE__ */ Le({
7951
7951
  multiInstance: v.bool.def(!0),
7952
7952
  // info-box
7953
7953
  infoType: v.theme(),
7954
+ bodyClass: v.string || v.array,
7954
7955
  left: v.string,
7955
7956
  top: v.string
7956
7957
  }, cE = /* @__PURE__ */ Le({
@@ -8073,7 +8074,7 @@ const f2 = /* @__PURE__ */ Le({
8073
8074
  zIndex: this.compStyle.zIndex
8074
8075
  }
8075
8076
  }, null) : "", f("div", {
8076
- class: [e("modal-wrapper"), this.extCls ?? "", this.size, this.fullscreen ? "fullscreen" : ""],
8077
+ class: [e("modal-wrapper"), this.extCls ?? "", this.bodyClass ?? "", this.size, this.fullscreen ? "fullscreen" : ""],
8077
8078
  style: [this.compStyle, this.fullscreen ? this.fullscreenStyle : ""]
8078
8079
  }, [f(ma, {
8079
8080
  name: this.animateType
@@ -8219,11 +8220,11 @@ const hE = /* @__PURE__ */ Le({
8219
8220
  }, null)
8220
8221
  })[this.infoType], t = {
8221
8222
  header: () => {
8222
- var i, s, r, o;
8223
+ var s, r, o, u;
8223
8224
  return [f("div", {
8224
8225
  class: [this.resolveClassName("dialog-tool"), this.fullscreen || !this.draggable ? "" : "move", this.draggable ? "content-dragging" : ""],
8225
8226
  onMousedown: this.moveHandler
8226
- }, [((s = (i = this.$slots).tools) == null ? void 0 : s.call(i)) ?? ""]), f("div", {
8227
+ }, [((r = (s = this.$slots).tools) == null ? void 0 : r.call(s)) ?? ""]), f("div", {
8227
8228
  class: this.resolveClassName("dialog-header")
8228
8229
  }, [f("div", {
8229
8230
  class: this.resolveClassName("header-icon")
@@ -8232,18 +8233,18 @@ const hE = /* @__PURE__ */ Le({
8232
8233
  }, null)]), f("span", {
8233
8234
  class: this.resolveClassName("dialog-title"),
8234
8235
  style: `text-align: ${this.headerAlign}`
8235
- }, [((o = (r = this.$slots).header) == null ? void 0 : o.call(r)) ?? this.title])])];
8236
+ }, [((u = (o = this.$slots).header) == null ? void 0 : u.call(o)) ?? this.title])])];
8236
8237
  },
8237
8238
  default: () => {
8238
- var i, s;
8239
- return ((s = (i = this.$slots).default) == null ? void 0 : s.call(i)) ?? "default";
8239
+ var s, r;
8240
+ return ((r = (s = this.$slots).default) == null ? void 0 : r.call(s)) ?? "default";
8240
8241
  },
8241
8242
  footer: () => {
8242
- var i, s, r, o, u, d;
8243
+ var s, r, o, u, d, c;
8243
8244
  return f("div", {
8244
8245
  class: this.resolveClassName("dialog-footer"),
8245
8246
  style: `text-align: ${this.footerAlign}`
8246
- }, [this.dialogType === "process" ? ((s = (i = this.$slots).footer) == null ? void 0 : s.call(i)) ?? f(gt, null, [this.current === 1 ? "" : f(cn, {
8247
+ }, [this.dialogType === "process" ? ((r = (s = this.$slots).footer) == null ? void 0 : r.call(s)) ?? f(gt, null, [this.current === 1 ? "" : f(cn, {
8247
8248
  class: this.resolveClassName("dialog-perv"),
8248
8249
  onClick: this.handlePrevStep
8249
8250
  }, {
@@ -8265,7 +8266,7 @@ const hE = /* @__PURE__ */ Le({
8265
8266
  disabled: this.isLoading
8266
8267
  }, {
8267
8268
  default: () => [this.localCancelText]
8268
- })]) : "", this.dialogType === "operation" ? ((o = (r = this.$slots).footer) == null ? void 0 : o.call(r)) ?? f(gt, null, [f(cn, {
8269
+ })]) : "", this.dialogType === "operation" ? ((u = (o = this.$slots).footer) == null ? void 0 : u.call(o)) ?? f(gt, null, [f(cn, {
8269
8270
  onClick: this.handleConfirm,
8270
8271
  theme: this.theme,
8271
8272
  loading: this.isLoading
@@ -8277,7 +8278,7 @@ const hE = /* @__PURE__ */ Le({
8277
8278
  disabled: this.isLoading
8278
8279
  }, {
8279
8280
  default: () => [this.localCancelText]
8280
- })]) : "", this.dialogType === "confirm" ? ((d = (u = this.$slots).footer) == null ? void 0 : d.call(u)) ?? f(gt, null, [f(cn, {
8281
+ })]) : "", this.dialogType === "confirm" ? ((c = (d = this.$slots).footer) == null ? void 0 : c.call(d)) ?? f(gt, null, [f(cn, {
8281
8282
  onClick: this.handleConfirm,
8282
8283
  theme: this.theme,
8283
8284
  loading: this.isLoading
@@ -8289,9 +8290,10 @@ const hE = /* @__PURE__ */ Le({
8289
8290
  close: () => f(On, {
8290
8291
  onClick: this.handleClose
8291
8292
  }, null)
8292
- }, n = `${this.resolveClassName("dialog-wrapper ")} ${this.scrollable ? "scroll-able" : ""} ${this.multiInstance ? "multi-instance" : ""} ${this.hasFooter ? "has-footer" : "no-footer"}`;
8293
+ }, n = this.resolveClassName("dialog-wrapper "), i = `${this.scrollable ? "scroll-able" : ""} ${this.multiInstance ? "multi-instance" : ""} ${this.hasFooter ? "has-footer" : "no-footer"}`;
8293
8294
  return f(td, Ne(this.$props, {
8294
8295
  class: n,
8296
+ bodyClass: i,
8295
8297
  onClose: this.handleClose,
8296
8298
  isShow: this.isModalShow,
8297
8299
  left: this.data.moveStyle.left,
@@ -11890,7 +11892,7 @@ const C_ = /* @__PURE__ */ Le({
11890
11892
  return () => {
11891
11893
  const u = {
11892
11894
  header: () => {
11893
- var h;
11895
+ var g;
11894
11896
  return f(gt, null, [f("div", {
11895
11897
  class: `${o("sideslider-header")}`
11896
11898
  }, [f("div", {
@@ -11900,19 +11902,21 @@ const C_ = /* @__PURE__ */ Le({
11900
11902
  }
11901
11903
  }, null), f("div", {
11902
11904
  class: `${o("sideslider-title")} ${e.direction}`
11903
- }, [((h = t.header) == null ? void 0 : h.call(t)) ?? e.title])])]);
11905
+ }, [((g = t.header) == null ? void 0 : g.call(t)) ?? e.title])])]);
11904
11906
  },
11905
11907
  default: () => {
11906
- var h;
11907
- return ((h = t.default) == null ? void 0 : h.call(t)) ?? "Content";
11908
+ var g;
11909
+ return ((g = t.default) == null ? void 0 : g.call(t)) ?? "Content";
11908
11910
  },
11909
11911
  footer: () => t.footer ? f("div", {
11910
11912
  class: `${o("sideslider-footer")}`
11911
11913
  }, [t.footer()]) : null
11912
- }, d = `${o("sideslider-wrapper")} ${e.scrollable ? "scroll-able" : ""} ${e.extCls}`, c = t.footer ? "calc(100vh - 106px)" : "calc(100vh - 52px)";
11914
+ }, d = o("sideslider-wrapper"), c = e.scrollable ? "scroll-able" : "", h = t.footer ? "calc(100vh - 106px)" : "calc(100vh - 52px)";
11913
11915
  return f(td, Ne(e, {
11914
- maxHeight: c,
11915
11916
  class: d,
11917
+ maxHeight: h,
11918
+ extCls: e.extCls,
11919
+ bodyClass: c,
11916
11920
  onHidden: r,
11917
11921
  onShown: s,
11918
11922
  onClose: i