@blueking/bkflow-canvas-editor 0.0.6 → 0.0.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/README.md +10 -11
- package/dist/index.cjs.js +15 -15
- package/dist/index.esm.js +5083 -4815
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -105,16 +105,15 @@ npm install bkflow-canvas-editor
|
|
|
105
105
|
|
|
106
106
|
#### Props
|
|
107
107
|
|
|
108
|
-
| 参数
|
|
109
|
-
|
|
|
110
|
-
| `flowId`
|
|
111
|
-
| `apiConfig`
|
|
112
|
-
| `permissions`
|
|
113
|
-
| `
|
|
114
|
-
| `
|
|
115
|
-
| `
|
|
116
|
-
| `
|
|
117
|
-
| `onBeforeLeave` | `(isEdited: boolean) => Promise<boolean>` | - | 离开前回调,返回 `false` 可阻止离开 |
|
|
108
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
109
|
+
| --------------- | ----------------------------------------- | ------ | -------------------------------------------------------- |
|
|
110
|
+
| `flowId` | `string` | - | **必需**,流程 ID |
|
|
111
|
+
| `apiConfig` | `FlowApiConfig` | - | **必需**,API 配置对象,详见 [API 配置](#api-配置) |
|
|
112
|
+
| `permissions` | `{ canEdit?: boolean }` | `{}` | 权限配置对象 |
|
|
113
|
+
| `onSave` | `(flowData: FlowTemplate) => void` | - | 保存回调(可选,也可以通过 `@save` 事件监听) |
|
|
114
|
+
| `onSaveSuccess` | `() => void` | - | 保存成功回调(可选,也可以通过 `@saveSuccess` 事件监听) |
|
|
115
|
+
| `onBack` | `() => void` | - | 返回按钮点击回调(可选,也可以通过 `@back` 事件监听) |
|
|
116
|
+
| `onBeforeLeave` | `(isEdited: boolean) => Promise<boolean>` | - | 离开前回调,返回 `false` 可阻止离开 |
|
|
118
117
|
|
|
119
118
|
#### Slots
|
|
120
119
|
|
|
@@ -393,7 +392,7 @@ import type {
|
|
|
393
392
|
FlowTemplate,
|
|
394
393
|
SpaceFlowConfig,
|
|
395
394
|
PluginGroupConfig,
|
|
396
|
-
|
|
395
|
+
PluginMetaItem,
|
|
397
396
|
UpdateFlowParams,
|
|
398
397
|
FlowApiConfig,
|
|
399
398
|
Variable,
|