@vc-shell/framework 1.0.201 → 1.0.203

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.201",
3
+ "version": "1.0.203",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -59,9 +59,9 @@
59
59
  "devDependencies": {
60
60
  "@types/dompurify": "^3.0.5",
61
61
  "@types/quill": "^2.0.14",
62
- "@vc-shell/api-client-generator": "^1.0.201",
63
- "@vc-shell/config-generator": "^1.0.201",
64
- "@vc-shell/ts-config": "^1.0.201",
62
+ "@vc-shell/api-client-generator": "^1.0.203",
63
+ "@vc-shell/config-generator": "^1.0.203",
64
+ "@vc-shell/ts-config": "^1.0.203",
65
65
  "@vitejs/plugin-vue": "^5.0.3",
66
66
  "sass": "^1.69.6",
67
67
  "shx": "^0.3.4",
@@ -65,7 +65,7 @@ const utils = (router: Router) => {
65
65
  const workspaceIndex = parts.findIndex((part) => {
66
66
  const route = router
67
67
  .getRoutes()
68
- .find((r) => r.path.endsWith("/" + part) && (r.components?.default as BladeVNode).type.isWorkspace);
68
+ .find((r) => r.path.endsWith("/" + part) && (r.components?.default as BladeVNode)?.type?.isWorkspace);
69
69
 
70
70
  return route !== undefined;
71
71
  });
@@ -54,8 +54,8 @@ export const useToolbarReducer = (args: {
54
54
  }, [] as IBladeToolbar[]);
55
55
  }
56
56
 
57
- if (args.scope && toValue(toValue(args.scope).toolbarOverrides)) {
58
- const toolbarOverrides: BaseBladeScope["toolbarOverrides"] = toValue(toValue(args.scope).toolbarOverrides);
57
+ if (args.scope && toValue(toValue(args.scope)?.toolbarOverrides)) {
58
+ const toolbarOverrides: BaseBladeScope["toolbarOverrides"] = toValue(toValue(args.scope)?.toolbarOverrides);
59
59
 
60
60
  if (Array.isArray(toolbarOverrides)) {
61
61
  return toolbarOverrides;
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import * as _ from "lodash-es";
3
- import { unrefNested } from "./unrefNested";
4
3
 
5
4
  function setModel(args: {
6
5
  property: string;
@@ -11,15 +10,15 @@ function setModel(args: {
11
10
  }) {
12
11
  const { property, value, option, context, scope } = args;
13
12
 
14
- if (_.has(unrefNested(context), property)) {
15
- _.set(context, property, option ? value[option as keyof typeof value] : value);
16
- } else if (scope && _.has(scope, property)) {
13
+ if (scope && _.has(scope, property)) {
17
14
  if (typeof scope[property] === "function") {
18
15
  scope[property](value);
19
16
  } else {
20
17
  _.set(scope, property, value);
21
18
  }
19
+ return;
22
20
  }
21
+ _.set(context, property, option ? value[option as keyof typeof value] : value);
23
22
  }
24
23
 
25
24
  export { setModel };
@@ -217,7 +217,7 @@ const bladeStatus = computed(() => {
217
217
  });
218
218
 
219
219
  const bladeMultilanguage = reactiveComputed(() => {
220
- if (scope && "multilanguage" in toValue(scope) && toValue(scope).multilanguage) {
220
+ if (scope && toValue(scope) && "multilanguage" in toValue(scope) && toValue(scope).multilanguage) {
221
221
  return {
222
222
  component: () => {
223
223
  return h(VcSelect as Component, {