@a2simcode/dui 0.0.10 → 0.0.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.
@@ -0,0 +1,3 @@
1
+ export declare const useFlow: ({ data, actions, utils, inputParams, notRunActions }: Record<string, any>) => {
2
+ run: (nodeId?: string) => Promise<void>;
3
+ };
@@ -29,6 +29,7 @@ export interface Props {
29
29
  * @zh 编排组件设置方法
30
30
  */
31
31
  flowComponentConfigs?: Record<string, FormSchemaConfig[]>;
32
+ actions?: Record<string, any>;
32
33
  }
33
34
  declare const _default: import('vue').DefineComponent<Props, {
34
35
  setTables: (list: DbTable[]) => void;
package/dist/dui.es.js CHANGED
@@ -18029,7 +18029,8 @@ const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-desig
18029
18029
  flowInit: { type: Function, default: void 0 },
18030
18030
  flowComponentConfigInit: { type: Function, default: void 0 },
18031
18031
  flowComponentConfigChange: { type: Function, default: void 0 },
18032
- flowComponentConfigs: { default: () => ({}) }
18032
+ flowComponentConfigs: { default: () => ({}) },
18033
+ actions: {}
18033
18034
  },
18034
18035
  setup(t, { expose: e }) {
18035
18036
  const n = t, { t: o, warning: i, error: r } = Qu(), s = gi({
@@ -18614,8 +18615,8 @@ const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-desig
18614
18615
  default: Se(() => [
18615
18616
  me(_e, {
18616
18617
  "component-list": s.children,
18617
- "global-config": {}
18618
- }, null, 8, ["component-list"])
18618
+ "global-config": s.config
18619
+ }, null, 8, ["component-list", "global-config"])
18619
18620
  ]),
18620
18621
  _: 1
18621
18622
  }))
@@ -18654,11 +18655,12 @@ const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-desig
18654
18655
  }, {
18655
18656
  default: Se(() => [
18656
18657
  me(pt, {
18657
- "form-config": z.formConfig,
18658
+ config: z.formConfig,
18658
18659
  "is-preview": !0,
18659
18660
  ref_key: "previewFormRef",
18660
- ref: M
18661
- }, null, 8, ["form-config"])
18661
+ ref: M,
18662
+ actions: t.actions
18663
+ }, null, 8, ["config", "actions"])
18662
18664
  ]),
18663
18665
  _: 1
18664
18666
  }, 8, ["width", "height"]),