@huanban/rulego-editor-core 1.3.10 → 1.3.12
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/dist/api/RuleChainAPI.d.ts +2 -0
- package/dist/api/types.d.ts +2 -2
- package/dist/index.cjs.js +650 -595
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +17475 -17310
- package/dist/index.umd.js +565 -510
- package/dist/standalone/HuanbanRulegoEditor.d.ts +8 -4
- package/dist/version.d.ts +3 -0
- package/package.json +1 -1
package/dist/api/types.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export interface RulePatchPreviewResponse {
|
|
|
125
125
|
* return res.data
|
|
126
126
|
* },
|
|
127
127
|
* create: async (data) => {
|
|
128
|
-
* await axios.post(
|
|
128
|
+
* await axios.post(`/api/v1/rules/${data.ruleChain.id}`, data)
|
|
129
129
|
* return { success: true }
|
|
130
130
|
* },
|
|
131
131
|
* // ...
|
|
@@ -256,7 +256,7 @@ export type WorkflowTheme = 'light' | 'dark' | string;
|
|
|
256
256
|
export interface RuleChainRoutes {
|
|
257
257
|
/** 列表路径,默认 '/rules' */
|
|
258
258
|
list: string;
|
|
259
|
-
/**
|
|
259
|
+
/** 创建/保存路径模板,默认 '/rules/:id' */
|
|
260
260
|
create: string;
|
|
261
261
|
/** 删除路径,接收 (id) => string,默认 '/rules/:id' */
|
|
262
262
|
remove: (id: string) => string;
|