@sunny-base-web/effects 0.2.2 → 0.3.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/index.mjs CHANGED
@@ -35110,9 +35110,15 @@ function pV(e, A, t, n, r, o) {
35110
35110
  }
35111
35111
  const QV = /* @__PURE__ */ yo(EV, [["render", pV]]), mV = { class: "h-full overflow-auto" }, wV = /* @__PURE__ */ It({
35112
35112
  __name: "ResourceTree",
35113
+ props: {
35114
+ appSystem: {
35115
+ type: Array,
35116
+ default: () => []
35117
+ }
35118
+ },
35113
35119
  emits: ["currentChange"],
35114
35120
  setup(e, { emit: A }) {
35115
- const t = Ce([]), n = Ce([]), r = Ce(), o = Ce(), a = Ce(), s = A, i = [], c = Ce(i), g = (O) => ma(i, ["id", O.id]), f = [
35121
+ const t = Ce([]), n = Ce([]), r = Ce(), o = Ce(), a = Ce(), s = A, i = e, c = Ce(i.appSystem), g = (O) => ma(i.appSystem, ["id", O.id]), f = [
35116
35122
  {
35117
35123
  key: "create",
35118
35124
  label: "新增下级资源",
@@ -37254,14 +37260,20 @@ const Cw = {
37254
37260
  }
37255
37261
  }), VV = /* @__PURE__ */ yo(NV, [["__scopeId", "data-v-3ae0cd70"]]), LV = { class: "flex h-full w-full overflow-hidden bg-[#f0f2f5] p-[5px]" }, RV = /* @__PURE__ */ It({
37256
37262
  __name: "index",
37263
+ props: {
37264
+ appSystem: {
37265
+ type: Array,
37266
+ default: () => []
37267
+ }
37268
+ },
37257
37269
  setup(e) {
37258
- const A = Ce("300px"), t = Ce(), n = (r, { node: o }) => {
37259
- t.value.editableBaseData.moduleInfo = o;
37270
+ const A = e, t = Ce("300px"), n = Ce(), r = (o, { node: a }) => {
37271
+ n.value.editableBaseData.moduleInfo = a;
37260
37272
  };
37261
- return (r, o) => {
37262
- const a = RA("a-split");
37273
+ return (o, a) => {
37274
+ const s = RA("a-split");
37263
37275
  return pA(), HA("div", LV, [
37264
- Pe(a, {
37276
+ Pe(s, {
37265
37277
  class: "bg-white rounded-[8px] p-[5px]",
37266
37278
  style: {
37267
37279
  height: "600px",
@@ -37269,18 +37281,21 @@ const Cw = {
37269
37281
  minWidth: "500px",
37270
37282
  border: "1px solid var(--color-border)"
37271
37283
  },
37272
- size: A.value,
37273
- "onUpdate:size": o[0] || (o[0] = (s) => A.value = String(s)),
37284
+ size: t.value,
37285
+ "onUpdate:size": a[0] || (a[0] = (i) => t.value = String(i)),
37274
37286
  min: "80px",
37275
37287
  max: 1
37276
37288
  }, {
37277
37289
  first: tA(() => [
37278
- Pe(wV, { onCurrentChange: n })
37290
+ Pe(wV, {
37291
+ onCurrentChange: r,
37292
+ "app-system": A.appSystem
37293
+ }, null, 8, ["app-system"])
37279
37294
  ]),
37280
37295
  second: tA(() => [
37281
37296
  Pe(VV, {
37282
37297
  ref_key: "constructionSeletor",
37283
- ref: t
37298
+ ref: n
37284
37299
  }, null, 512)
37285
37300
  ]),
37286
37301
  _: 1
@@ -37288,7 +37303,7 @@ const Cw = {
37288
37303
  ]);
37289
37304
  };
37290
37305
  }
37291
- }), FH = /* @__PURE__ */ yo(RV, [["__scopeId", "data-v-d1d6d0d2"]]);
37306
+ }), FH = /* @__PURE__ */ yo(RV, [["__scopeId", "data-v-6db63e12"]]);
37292
37307
  function TV(e) {
37293
37308
  return gt.post("/core/assQuickentry/query", e);
37294
37309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunny-base-web/effects",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"
@@ -33,11 +33,11 @@
33
33
  "vxe-table": "^4.17.49",
34
34
  "xe-utils": "3.9.1",
35
35
  "zod": "^4.3.6",
36
- "@sunny-base-web/stores": "0.2.0",
37
- "@sunny-base-web/utils": "0.2.0",
38
- "@sunny-base-web/locales": "0.2.0",
39
- "@sunny-base-web/icons": "0.2.0",
40
- "@sunny-base-web/ui": "0.2.1"
36
+ "@sunny-base-web/stores": "0.3.0",
37
+ "@sunny-base-web/icons": "0.3.0",
38
+ "@sunny-base-web/locales": "0.3.0",
39
+ "@sunny-base-web/ui": "0.3.0",
40
+ "@sunny-base-web/utils": "0.3.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/lodash-es": "^4.17.12",
@@ -47,9 +47,9 @@
47
47
  "typescript": "^5.7.2",
48
48
  "vite": "^7.3.1",
49
49
  "vite-plugin-dts": "^4.5.4",
50
- "@sunny-base-web/tsconfig": "0.2.0",
51
- "@sunny-base-web/tailwind-config": "0.2.0",
52
- "@sunny-base-web/constants": "0.2.0"
50
+ "@sunny-base-web/tsconfig": "0.3.0",
51
+ "@sunny-base-web/tailwind-config": "0.3.0",
52
+ "@sunny-base-web/constants": "0.3.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "style": "./dist/effects.css",