@jnrs/lingshu-smart 2.2.27 → 2.2.28

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/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  巨能前端 2D 数字孪生库,灵枢智造。
6
6
 
7
7
  - 2D 数字孪生编辑器、运行看板
8
+ - ...
8
9
 
9
10
  ## 💻 技术栈
10
11
 
@@ -19,45 +20,8 @@ pnpm add @jnrs/lingshu-smart
19
20
  ## 🔍 使用示例
20
21
 
21
22
  ```typescript
22
- import type { *** } from '@jnrs/lingshu-smart'
23
- import { LingshuSmartEditor } from '@jnrs/lingshu-smart/components'
24
- ```
25
-
26
- ## 📋 API
27
-
28
- #### @jnrs/lingshu-smart/components 模块
29
-
30
- Vue 组件
31
-
32
- - LingshuSmartEditor 编辑器组件
33
-
34
- | 属性名 | 描述 | 类型 | 默认值 |
35
- | ------- | -------- | --------------- | ------ |
36
- | actions | 事件处理 | `EditorActions` | {} |
37
-
38
- ```
39
- interface EditorActions {
40
- /**
41
- * 加载案例列表
42
- * @returns Promise<ICase[]>
43
- */
44
- loadCases?: (id?: string) => Promise<ICase[]>
45
-
46
- /**
47
- * 保存方案列表
48
- */
49
- saveCases?: (cases?: ICase[]) => void
50
-
51
- /**
52
- * 跳转到预览页面
53
- */
54
- handlePreview?: (currentCase?: ICase) => void
55
-
56
- /**
57
- * 退出当前页面
58
- */
59
- handleExit?: () => void
60
- }
23
+ import type { ILayerOperating } from '@jnrs/lingshu-smart'
24
+ import { LingshuSmartPreview, LingshuSmartEditor } from '@jnrs/lingshu-smart/components'
61
25
  ```
62
26
 
63
27
  详细文档请查看 `AGENTS.md`