phecda-vue 2.0.0-alpha.6 → 2.0.0-alpha.8

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.js CHANGED
@@ -383,6 +383,7 @@ function createFilter(initState = {}, option = {}) {
383
383
  new Function("_data", "_v", `_data.${body}=_v`)(data.value, value);
384
384
  return true;
385
385
  } catch (e) {
386
+ resolveOption.errorHandler?.(e);
386
387
  return false;
387
388
  }
388
389
  }
@@ -401,7 +402,6 @@ function createFilter(initState = {}, option = {}) {
401
402
  }
402
403
  __name(traverse, "traverse");
403
404
  function filter(obj) {
404
- obj = (0, import_vue4.reactive)(obj);
405
405
  traverse(obj);
406
406
  return obj;
407
407
  }
package/dist/index.mjs CHANGED
@@ -292,7 +292,7 @@ function initialize(Model) {
292
292
  __name(initialize, "initialize");
293
293
 
294
294
  // src/filter.ts
295
- import { effectScope as effectScope2, reactive as reactive2, ref } from "vue";
295
+ import { effectScope as effectScope2, ref } from "vue";
296
296
  var EXPRESS_RE = /^{{(.*)}}$/;
297
297
  var FN_RE = /^\[\[(.*)\]\]$/;
298
298
  function createFilter(initState = {}, option = {}) {
@@ -323,6 +323,7 @@ function createFilter(initState = {}, option = {}) {
323
323
  new Function("_data", "_v", `_data.${body}=_v`)(data.value, value);
324
324
  return true;
325
325
  } catch (e) {
326
+ resolveOption.errorHandler?.(e);
326
327
  return false;
327
328
  }
328
329
  }
@@ -341,7 +342,6 @@ function createFilter(initState = {}, option = {}) {
341
342
  }
342
343
  __name(traverse, "traverse");
343
344
  function filter(obj) {
344
- obj = reactive2(obj);
345
345
  traverse(obj);
346
346
  return obj;
347
347
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-vue",
3
- "version": "2.0.0-alpha.6",
3
+ "version": "2.0.0-alpha.8",
4
4
  "description": "provide store/form/table with phecda function to vue",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "mitt": "^3.0.0",
16
16
  "vue": "^3.2.45",
17
- "phecda-core": "2.0.0-alpha.5"
17
+ "phecda-core": "2.0.0-alpha.6"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsup": "^6.5.0"