@sunny-base-web/effects 0.8.78 → 0.8.79
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/Design-Q9V1aKk5.mjs +62 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -25
- package/dist/index.mjs +9762 -43798
- package/package.json +10 -9
- package/dist/Design-Bryr-rNU.mjs +0 -4079
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as s, ref as a, onMounted as l, onBeforeUnmount as c, openBlock as g, createBlock as u, unref as i, createCommentVNode as d } from "vue";
|
|
2
|
+
import { WidgetRegistry as p, createBuiltinWidgets as m, MaterialStore as f, createBuiltinMaterials as y, Engine as v, SunnyDesignerLayout as _ } from "@sunny-base-web/designer-studio";
|
|
3
|
+
const j = /* @__PURE__ */ s({
|
|
4
|
+
name: "DesignPage",
|
|
5
|
+
__name: "Design",
|
|
6
|
+
setup(w) {
|
|
7
|
+
const n = new p();
|
|
8
|
+
n.registerAll(m());
|
|
9
|
+
const o = new f();
|
|
10
|
+
o.registerAll(y());
|
|
11
|
+
const e = a(null);
|
|
12
|
+
return l(() => {
|
|
13
|
+
const t = new v({ materialStore: o });
|
|
14
|
+
e.value = t;
|
|
15
|
+
const r = {
|
|
16
|
+
id: "project-1",
|
|
17
|
+
name: "示例项目",
|
|
18
|
+
activePageId: "page-1",
|
|
19
|
+
dependencies: [],
|
|
20
|
+
apis: [],
|
|
21
|
+
pages: [
|
|
22
|
+
{
|
|
23
|
+
id: "page-1",
|
|
24
|
+
name: "首页",
|
|
25
|
+
route: "/home",
|
|
26
|
+
rootNode: {
|
|
27
|
+
id: "root-1",
|
|
28
|
+
name: "div",
|
|
29
|
+
props: {},
|
|
30
|
+
events: {},
|
|
31
|
+
directives: [],
|
|
32
|
+
children: [],
|
|
33
|
+
slots: {}
|
|
34
|
+
},
|
|
35
|
+
state: [],
|
|
36
|
+
computed: [],
|
|
37
|
+
methods: [],
|
|
38
|
+
watch: [],
|
|
39
|
+
css: [],
|
|
40
|
+
props: [],
|
|
41
|
+
emits: [],
|
|
42
|
+
expose: [],
|
|
43
|
+
slots: [],
|
|
44
|
+
lifecycleHooks: [],
|
|
45
|
+
inject: []
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
t.loadProject(r);
|
|
50
|
+
}), c(() => {
|
|
51
|
+
e.value?.destroy(), e.value = null;
|
|
52
|
+
}), (t, r) => e.value ? (g(), u(i(_), {
|
|
53
|
+
key: 0,
|
|
54
|
+
title: "Sunny Designer",
|
|
55
|
+
"widget-registry": i(n),
|
|
56
|
+
engine: e.value
|
|
57
|
+
}, null, 8, ["widget-registry", "engine"])) : d("", !0);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
j as default
|
|
62
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2661,7 +2661,7 @@ declare interface UseFormOptions extends Partial<SunnyFormProps> {
|
|
|
2661
2661
|
handleValuesChange?: (values: Record<string, any>, changedFields: string[]) => void;
|
|
2662
2662
|
}
|
|
2663
2663
|
|
|
2664
|
-
export declare function useFormTable({ formSchema, tableColumns, tableEditRules, tableToolbarButtons, objectToValueFields, aggregateConfig, }?: UseFormTableOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2664
|
+
export declare function useFormTable({ formSchema, tableColumns, tableEditRules, tableToolbarButtons, objectToValueFields, aggregateConfig, gridEvents, }?: UseFormTableOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2665
2665
|
[key: string]: any;
|
|
2666
2666
|
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2];
|
|
2667
2667
|
|
|
@@ -2679,6 +2679,8 @@ declare interface UseFormTableOptions {
|
|
|
2679
2679
|
groupFields?: string[];
|
|
2680
2680
|
[key: string]: any;
|
|
2681
2681
|
};
|
|
2682
|
+
/** 表格事件 */
|
|
2683
|
+
gridEvents?: Record<string, (...args: any[]) => any>;
|
|
2682
2684
|
}
|
|
2683
2685
|
|
|
2684
2686
|
export declare function useFormTabs({ formSchema, tabsConfig, objectToValueFields }?: UseFormTabsOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|