@unizhen/ui 0.1.37 → 0.1.39

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.
Files changed (2) hide show
  1. package/lib/ui.js +27 -18
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -5919,23 +5919,32 @@ var kp = /*#__PURE__*/ U(Dp, [["render", Op]]), Ap = d({
5919
5919
  t.onClick = (t) => {
5920
5920
  d.value?.addAndEdit(e.id || a.params.id, () => ye(t, n), I.value, F.value, 1, Te);
5921
5921
  };
5922
- } else if (t.type !== "group" && t.action === "deleteInside") t.onClick = (t) => {
5923
- let n;
5924
- n = e.deleteFetch ? e.deleteFetch({
5925
- ...t,
5926
- tableId: c,
5927
- sub_table_ids: r
5928
- }) : Cd({
5929
- ...t,
5930
- tableId: c,
5931
- sub_table_ids: r
5932
- }), n.then(() => {
5933
- z();
5934
- }).catch((e) => {
5935
- q(e);
5936
- });
5937
- };
5938
- else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
5922
+ } else if (t.type !== "group" && t.action === "deleteInside") {
5923
+ let n = H(t.onClick);
5924
+ t.onClick = (t) => {
5925
+ let i;
5926
+ i = e.deleteFetch ? e.deleteFetch({
5927
+ ...t,
5928
+ tableId: c,
5929
+ sub_table_ids: r
5930
+ }) : Cd({
5931
+ ...t,
5932
+ tableId: c,
5933
+ sub_table_ids: r
5934
+ }), i.then(() => {
5935
+ if (n) try {
5936
+ Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
5937
+ z();
5938
+ }).catch(() => null);
5939
+ } catch (e) {
5940
+ q(e);
5941
+ }
5942
+ else z();
5943
+ }).catch((e) => {
5944
+ q(e);
5945
+ });
5946
+ };
5947
+ } else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
5939
5948
  Sd({
5940
5949
  tableId: e.id || a.params.id,
5941
5950
  ...t,
@@ -7989,7 +7998,7 @@ function Xm(e, t, n) {
7989
7998
  }
7990
7999
  //#endregion
7991
8000
  //#region package.json
7992
- var Zm = "0.1.37", Qm;
8001
+ var Zm = "0.1.39", Qm;
7993
8002
  async function $m() {
7994
8003
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7995
8004
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },