@schemx/vue 1.0.0-next.0 → 1.0.0-next.1

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@schemx/vue",
4
- "version": "1.0.0-next.0",
4
+ "version": "1.0.0-next.1",
5
5
  "description": "基于 JSON Schema 配置的 Vue 3 动态表单引擎(UI 无关核心)",
6
6
  "keywords": [
7
7
  "schemx",
@@ -48,7 +48,7 @@
48
48
  ],
49
49
  "peerDependencies": {
50
50
  "vue": "^3.0.0",
51
- "@schemx/core": "1.0.0-next.0"
51
+ "@schemx/core": "1.0.0-next.1"
52
52
  },
53
53
  "dependencies": {
54
54
  "classnames": "^2.5.1",
@@ -59,8 +59,9 @@
59
59
  "devDependencies": {
60
60
  "@vue/test-utils": "^2.4.6",
61
61
  "vue": "^3.4.0",
62
+ "vue-tsc": "^3.3.9",
62
63
  "zod": "^4.3.6",
63
- "@schemx/core": "1.0.0-next.0"
64
+ "@schemx/core": "1.0.0-next.1"
64
65
  },
65
66
  "scripts": {
66
67
  "build": "pnpm run type-check && vite build",
@@ -70,8 +71,9 @@
70
71
  "lint:fix": "eslint \"src/**/*.{ts,tsx,vue,js,jsx}\" --fix",
71
72
  "format": "prettier --write \"src/**/*.{ts,tsx,vue,js,jsx,json,css,scss}\"",
72
73
  "format:check": "prettier --check \"src/**/*.{ts,tsx,vue,js,jsx,json,css,scss}\"",
73
- "type-test": "tsc -p tsconfig.type-tests.json --noEmit",
74
- "type-check": "tsc -p tsconfig.json --noEmit && pnpm run type-test",
75
- "check": "pnpm run lint && pnpm run format:check && pnpm run type-check"
74
+ "type-test": "vue-tsc -p tsconfig.type-tests.json --noEmit",
75
+ "type-check": "vue-tsc -p tsconfig.json --noEmit && pnpm run type-test",
76
+ "check": "pnpm run lint && pnpm run format:check && pnpm run type-check",
77
+ "pack-local": "bash ../../scripts/workflow/commands/packages/local-pack.sh --target packages/vue"
76
78
  }
77
79
  }
@@ -1,33 +0,0 @@
1
- import { CreateEffectReturn, EffectCallback } from '@schemx/core';
2
- /**
3
- * 创建 Signal effect 并在组件卸载时自动取消。
4
- *
5
- * 在 effect 回调中访问任何 Signal 值时自动追踪依赖,
6
- * 依赖变化时自动重新执行回调。
7
- * 回调可返回一个清理函数,在 effect 重新执行前或被 dispose 时调用。
8
- *
9
- * @param callback - effect 回调函数,可选返回清理函数
10
- *
11
- * @returns 取消 effect 的 dispose 函数(通常无需手动调用,组件卸载时自动取消)
12
- *
13
- * @example
14
- * ```ts
15
- * // 监听字段值变化
16
- * useEffect(() => {
17
- * const name = form.getFieldValue('name')
18
- * console.log('name changed:', name)
19
- * })
20
- *
21
- * // 带清理函数
22
- * useEffect(() => {
23
- * const timer = setInterval(() => {
24
- * console.log('value:', form.getFieldValue('count'))
25
- * }, 1000)
26
- *
27
- * return () => clearInterval(timer)
28
- * })
29
- * ```
30
- */
31
- export declare function useEffect(callback: EffectCallback): CreateEffectReturn;
32
- export default useEffect;
33
- //# sourceMappingURL=useEffect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEffect.d.ts","sourceRoot":"","sources":["../../src/hooks/useEffect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,kBAAkB,CAMtE;AAED,eAAe,SAAS,CAAA"}