phecda-vue 4.0.3 → 4.0.4

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.d.mts CHANGED
@@ -32,7 +32,7 @@ declare function getR<T extends Construct>(model: T, phecda?: VuePhecda): Unwrap
32
32
  declare function useV<T extends Construct>(model: T): ReplaceInstanceValues<InstanceType<T>>;
33
33
  declare function getV<T extends Construct>(model: T, phecda?: VuePhecda): ReplaceInstanceValues<InstanceType<T>>;
34
34
 
35
- declare function Shallow(isShallow?: boolean): (model: any) => void;
35
+ declare function Shallow(model: any): void;
36
36
  declare function WatchEffect(option?: WatchOptions): (proto: any, key: string) => void;
37
37
 
38
38
  declare function markRaw<T extends object>(value: T): Raw<T>;
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ declare function getR<T extends Construct>(model: T, phecda?: VuePhecda): Unwrap
32
32
  declare function useV<T extends Construct>(model: T): ReplaceInstanceValues<InstanceType<T>>;
33
33
  declare function getV<T extends Construct>(model: T, phecda?: VuePhecda): ReplaceInstanceValues<InstanceType<T>>;
34
34
 
35
- declare function Shallow(isShallow?: boolean): (model: any) => void;
35
+ declare function Shallow(model: any): void;
36
36
  declare function WatchEffect(option?: WatchOptions): (proto: any, key: string) => void;
37
37
 
38
38
  declare function markRaw<T extends object>(value: T): Raw<T>;
package/dist/index.js CHANGED
@@ -512,10 +512,8 @@ __name(getV, "getV");
512
512
  // src/decorator.ts
513
513
  var import_phecda_web3 = require("phecda-web");
514
514
  var import_vue4 = require("vue");
515
- function Shallow(isShallow = true) {
516
- return (model) => {
517
- (0, import_phecda_web3.set)(model.prototype, "shallow", isShallow);
518
- };
515
+ function Shallow(model) {
516
+ (0, import_phecda_web3.set)(model.prototype, "shallow", true);
519
517
  }
520
518
  __name(Shallow, "Shallow");
521
519
  function WatchEffect(option) {
package/dist/index.mjs CHANGED
@@ -475,10 +475,8 @@ __name(getV, "getV");
475
475
  // src/decorator.ts
476
476
  import { set, setHandler, setStateKey } from "phecda-web";
477
477
  import { watchEffect } from "vue";
478
- function Shallow(isShallow = true) {
479
- return (model) => {
480
- set(model.prototype, "shallow", isShallow);
481
- };
478
+ function Shallow(model) {
479
+ set(model.prototype, "shallow", true);
482
480
  }
483
481
  __name(Shallow, "Shallow");
484
482
  function WatchEffect(option) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-vue",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "provide phecda function to vue",
5
5
  "author": "fgsreally",
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@vue/devtools-api": "^6.6.3",
20
20
  "vue": "^3.2.45",
21
- "phecda-web": "2.0.3"
21
+ "phecda-web": "2.0.4"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@vue/test-utils": "^2.4.6",