@sunny-base-web/effects 0.8.7 → 0.8.9

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,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
@@ -2566,6 +2566,14 @@ export declare function useList<T>(options: {
2566
2566
  * 用于将 BusinessSearch 等返回的对象数组转换为值字符串
2567
2567
  */
2568
2568
  objectToValueFields?: string[];
2569
+ /**
2570
+ * 表单字段映射到时间格式
2571
+ */
2572
+ fieldMappingTime?: any[];
2573
+ /**
2574
+ * 表单字段数组映射字符串配置
2575
+ */
2576
+ arrayToStringFields?: any[];
2569
2577
  /**
2570
2578
  * 是否开启懒加载
2571
2579
  */