bkui-vue 1.0.3-beta.18 → 1.0.3-beta.19

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
@@ -14436,6 +14436,7 @@ const PJ = /* @__PURE__ */ Le({
14436
14436
  size: "small",
14437
14437
  sizeList: r,
14438
14438
  showLineHeight: !0,
14439
+ extCls: "",
14439
14440
  trigger: "manual"
14440
14441
  };
14441
14442
  return typeof e.settings == "boolean" ? E : Object.assign({}, E, e.settings);
@@ -14497,7 +14498,8 @@ const PJ = /* @__PURE__ */ Le({
14497
14498
  trigger: c.value.trigger ?? "manual",
14498
14499
  placement: "bottom-end",
14499
14500
  ref: d,
14500
- arrow: !0
14501
+ arrow: !0,
14502
+ extCls: c.value.extCls
14501
14503
  }, {
14502
14504
  theme: b
14503
14505
  }), {
@@ -21616,83 +21618,85 @@ const vQ = {
21616
21618
  iv(pQ, e);
21617
21619
  }, bQ = (e) => {
21618
21620
  const t = document.createElement("div"), n = ac(e), i = B(n.value.isShow !== !1);
21619
- let a;
21620
- const r = /* @__PURE__ */ Le({
21621
+ let a, r;
21622
+ const o = /* @__PURE__ */ Le({
21621
21623
  name: "DialogConfirm",
21622
- setup(u, {
21623
- expose: d
21624
+ setup(c, {
21625
+ expose: h
21624
21626
  }) {
21625
- let c = !1;
21626
- const h = [], g = async (x) => {
21627
- typeof x == "function" && (x instanceof Promise ? await x() : h.push(x)), i.value = !1;
21628
- }, p = async () => {
21629
- var x;
21630
- g((x = n.value) == null ? void 0 : x.onClosed);
21631
- }, y = async () => {
21632
- var x;
21633
- c = !0, await g((x = n.value) == null ? void 0 : x.onConfirm), c = !1;
21627
+ let g = !1;
21628
+ const p = [], y = async (w) => {
21629
+ typeof w == "function" && (w instanceof Promise ? await w() : p.push(w)), i.value = !1;
21630
+ }, b = async () => {
21631
+ var w;
21632
+ y((w = n.value) == null ? void 0 : w.onClosed);
21633
+ }, M = async () => {
21634
+ var w;
21635
+ g = !0, await y((w = n.value) == null ? void 0 : w.onConfirm), g = !1;
21634
21636
  };
21635
- function b(x) {
21637
+ function I(w) {
21636
21638
  n.value = {
21637
21639
  ...n.value,
21638
- ...x
21640
+ ...w
21639
21641
  };
21640
21642
  }
21641
- d({
21642
- update: b
21643
+ h({
21644
+ update: I
21643
21645
  });
21644
21646
  const {
21645
- resolveClassName: M
21646
- } = xe(), I = () => {
21647
- const x = [], C = [];
21647
+ resolveClassName: N
21648
+ } = xe(), x = () => {
21649
+ const w = [], S = [];
21648
21650
  if (n.value.subTitle)
21649
21651
  switch (typeof n.value.subTitle) {
21650
21652
  case "string":
21651
- x.push(n.value.subTitle);
21653
+ w.push(n.value.subTitle);
21652
21654
  break;
21653
21655
  case "function":
21654
- x.push(n.value.subTitle());
21656
+ w.push(n.value.subTitle());
21655
21657
  break;
21656
21658
  default:
21657
- x.push(n.value.subTitle);
21659
+ w.push(n.value.subTitle);
21658
21660
  break;
21659
21661
  }
21660
- return x.length && C.push(Bt("div", {
21661
- class: M("info-sub-title"),
21662
+ return w.length && S.push(Bt("div", {
21663
+ class: N("info-sub-title"),
21662
21664
  style: `text-Align:${n.value.contentAlign || "center"}`
21663
- }, x)), C;
21664
- }, N = () => {
21665
- h.forEach((x) => x()), h.length = 0, t.remove();
21665
+ }, w)), S;
21666
+ }, C = () => {
21667
+ p.forEach((w) => w()), p.length = 0, d(), t.remove();
21666
21668
  };
21667
21669
  return () => f(f2, {
21668
- class: M("info-wrapper"),
21670
+ class: N("info-wrapper"),
21669
21671
  headerAlign: "center",
21670
21672
  footerAlign: "center",
21671
21673
  fullscreen: !1,
21672
- isLoading: c,
21674
+ isLoading: g,
21673
21675
  ...n.value,
21674
21676
  isShow: i.value,
21675
21677
  transfer: !1,
21676
- onClosed: p,
21677
- onConfirm: y,
21678
- onHidden: N
21679
- }, I);
21678
+ onClosed: b,
21679
+ onConfirm: M,
21680
+ onHidden: C
21681
+ }, x);
21680
21682
  }
21681
- }), o = () => {
21682
- a || (document.body.append(t), a = G0(r).mount(t));
21683
+ }), u = () => {
21684
+ a || (document.body.append(t), a = G0(o), r = a.mount(t));
21685
+ }, d = () => {
21686
+ a == null || a.unmount(), a = null;
21683
21687
  };
21684
- return i.value && o(), {
21688
+ return i.value && u(), {
21685
21689
  show: () => {
21686
- o(), i.value = !0;
21690
+ u(), i.value = !0;
21687
21691
  },
21688
21692
  hide: () => {
21689
- i.value = !1;
21693
+ i.value = !1, d();
21690
21694
  },
21691
- update: (u) => {
21692
- o(), a == null || a.update(u);
21695
+ update: (c) => {
21696
+ u(), r == null || r.update(c);
21693
21697
  },
21694
21698
  destroy: () => {
21695
- t.remove(), a == null || a.unmount(), a = null;
21699
+ t.remove(), d();
21696
21700
  }
21697
21701
  };
21698
21702
  }, CQ = at(bQ);