@huanban/rulego-editor-vue 1.3.1 → 1.3.3
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 +2 -2
- package/dist/components/RuleGoEditor.d.ts +1 -1
- package/dist/components/WorkflowList.vue.d.ts +30 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.esm.js +3558 -3434
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -109,11 +109,11 @@ watch(isReady, (ready) => {
|
|
|
109
109
|
| `@ready` | — | 编辑器就绪时触发 |
|
|
110
110
|
| `@change` | — | 画布数据变化 |
|
|
111
111
|
| `@edge-click` | `EdgeData` | 连线点击 |
|
|
112
|
-
| `@deploy` | `chainId, action` |
|
|
112
|
+
| `@deploy` | `chainId, action` | 部署/下线/重载;部署对应 `start`,下线对应 `stop` |
|
|
113
113
|
|
|
114
114
|
### `<WorkflowList />` 管理列表
|
|
115
115
|
|
|
116
|
-
`WorkflowList`
|
|
116
|
+
`WorkflowList` 是独立管理组件,不是编辑器。它负责查询、搜索、创建、部署/下线、复制、删除和选择规则链;进入画布编辑需要通过 `:on-design` 切换到 `<RuleGoEditor />`。
|
|
117
117
|
|
|
118
118
|
```vue
|
|
119
119
|
<template>
|
|
@@ -78,7 +78,7 @@ export declare const RuleGoEditor: import("vue").DefineComponent<import("vue").E
|
|
|
78
78
|
};
|
|
79
79
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
80
80
|
[key: string]: any;
|
|
81
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, "ready" | "save" | "node-click" | "node-dbclick" | "edge-click" | "change" | "info-click" | "export-dsl" | "run-click" | "component-manage" | "locale-change" | "deploy" | "select-rule-chain" | "delete-rule-chain" | "run-history", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, "ready" | "save" | "node-click" | "node-dbclick" | "edge-click" | "change" | "info-click" | "export-dsl" | "import-dsl" | "run-click" | "component-manage" | "locale-change" | "deploy" | "select-rule-chain" | "delete-rule-chain" | "run-history", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
82
82
|
options: {
|
|
83
83
|
type: PropType<Partial<HuanbanRulegoEditorOptions>>;
|
|
84
84
|
default: () => {};
|
|
@@ -56,7 +56,20 @@ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __V
|
|
|
56
56
|
}, __VLS_25: {}, __VLS_27: {}, __VLS_29: {}, __VLS_31: {}, __VLS_33: {}, __VLS_35: {}, __VLS_37: {}, __VLS_39: {
|
|
57
57
|
submit: (data?: Record<string, unknown>) => Promise<void>;
|
|
58
58
|
close: () => void;
|
|
59
|
-
}
|
|
59
|
+
}, __VLS_47: {
|
|
60
|
+
workflow: {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
root: boolean;
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
debugMode: boolean;
|
|
66
|
+
description: string;
|
|
67
|
+
additionalInfo: Record<string, unknown>;
|
|
68
|
+
createTime: string;
|
|
69
|
+
updateTime: string;
|
|
70
|
+
deployed: boolean;
|
|
71
|
+
};
|
|
72
|
+
}, __VLS_49: {}, __VLS_51: {}, __VLS_53: {}, __VLS_55: {}, __VLS_57: {}, __VLS_59: {}, __VLS_61: {};
|
|
60
73
|
type __VLS_Slots = {} & {
|
|
61
74
|
header?: (props: typeof __VLS_1) => any;
|
|
62
75
|
} & {
|
|
@@ -97,6 +110,22 @@ type __VLS_Slots = {} & {
|
|
|
97
110
|
'icon-logs'?: (props: typeof __VLS_37) => any;
|
|
98
111
|
} & {
|
|
99
112
|
'create-form'?: (props: typeof __VLS_39) => any;
|
|
113
|
+
} & {
|
|
114
|
+
actions?: (props: typeof __VLS_47) => any;
|
|
115
|
+
} & {
|
|
116
|
+
'icon-design'?: (props: typeof __VLS_49) => any;
|
|
117
|
+
} & {
|
|
118
|
+
'icon-info'?: (props: typeof __VLS_51) => any;
|
|
119
|
+
} & {
|
|
120
|
+
'icon-stop'?: (props: typeof __VLS_53) => any;
|
|
121
|
+
} & {
|
|
122
|
+
'icon-start'?: (props: typeof __VLS_55) => any;
|
|
123
|
+
} & {
|
|
124
|
+
'icon-copy'?: (props: typeof __VLS_57) => any;
|
|
125
|
+
} & {
|
|
126
|
+
'icon-delete'?: (props: typeof __VLS_59) => any;
|
|
127
|
+
} & {
|
|
128
|
+
'icon-logs'?: (props: typeof __VLS_61) => any;
|
|
100
129
|
};
|
|
101
130
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<WorkflowListProps>, {
|
|
102
131
|
pageSize: number;
|