@jnrs/lingshu-smart
v2.2.18
Published
LingShu Smart 2D Digital Twin System.
Readme
@jnrs/lingshu-smart
✨ 介绍
巨能前端 2D 数字孪生库,灵枢智造。
- 2D 数字孪生编辑器、运行看板
💻 技术栈
TypeScript、Vue3 生态、LeaferJs
🧩 安装教程
pnpm add @jnrs/lingshu-smart🔍 使用示例
import type { *** } from '@jnrs/lingshu-smart'
import { LingshuSmartEditor } from '@jnrs/lingshu-smart/components'📋 API
@jnrs/lingshu-smart/components 模块
Vue 组件
- LingshuSmartEditor 编辑器组件
| 属性名 | 描述 | 类型 | 默认值 |
|--------|------|------|--------|
| actions | 事件处理 | EditorActions | {} |
interface EditorActions {
/**
* 加载案例列表
* @returns Promise<ICase[]>
*/
loadCases?: (id?: string) => Promise<ICase[]>
/**
* 保存方案列表
*/
saveCases?: (cases?: ICase[]) => void
/**
* 跳转到预览页面
*/
handlePreview?: (currentCase?: ICase) => void
/**
* 退出当前页面
*/
handleExit?: () => void
}