gomtm 0.0.372 → 0.0.374
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.
|
@@ -52,11 +52,14 @@ const CurdViewContentField = (props) => {
|
|
|
52
52
|
const form = useFormContext();
|
|
53
53
|
const defaultValues = form.getValues()[name];
|
|
54
54
|
const contentForm = useForm({
|
|
55
|
-
defaultValues
|
|
55
|
+
defaultValues: __spreadProps(__spreadValues({}, defaultValues), {
|
|
56
|
+
pageSize: defaultValues.pageSize || 12
|
|
57
|
+
})
|
|
56
58
|
});
|
|
57
59
|
useEffect(() => {
|
|
58
60
|
const subscription = contentForm.watch((value) => {
|
|
59
|
-
|
|
61
|
+
console.log("value", value);
|
|
62
|
+
form.setValue(name, value);
|
|
60
63
|
});
|
|
61
64
|
return () => subscription.unsubscribe();
|
|
62
65
|
}, [contentForm, contentForm.watch, form, name]);
|
|
@@ -92,6 +95,11 @@ const CurdViewContentField = (props) => {
|
|
|
92
95
|
/* @__PURE__ */ jsx(FormLabel, { children: "methodDelete" }),
|
|
93
96
|
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: "methodDelete" }, field)) }),
|
|
94
97
|
/* @__PURE__ */ jsx(FormMessage, {})
|
|
98
|
+
] }) }),
|
|
99
|
+
/* @__PURE__ */ jsx(FormField, { control: contentForm.control, name: "pageSize", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
100
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "pageSize" }),
|
|
101
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, __spreadProps(__spreadValues({}, field), { placeholder: "pageSize", type: "number" })) }),
|
|
102
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
95
103
|
] }) })
|
|
96
104
|
] });
|
|
97
105
|
};
|
|
@@ -24,6 +24,9 @@ const CurdViewView = (props) => {
|
|
|
24
24
|
if (!query.data.item.value.content) {
|
|
25
25
|
return /* @__PURE__ */ jsx("div", { children: "missing curdview content" });
|
|
26
26
|
}
|
|
27
|
+
if (!query.data.item.value.content.svcName) {
|
|
28
|
+
return /* @__PURE__ */ jsx("div", { children: "missing curdview svcName" });
|
|
29
|
+
}
|
|
27
30
|
return /* @__PURE__ */ jsx(ListViewStoreProvider, { curdView: query.data.item.value, children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "loading CommonListView" }), children: /* @__PURE__ */ jsx(CommonListView, { curdViewContent: query.data.item.value.content }) }) });
|
|
28
31
|
}
|
|
29
32
|
};
|
|
@@ -40,6 +40,9 @@ const CurdViewSS = (props) => __async(void 0, null, function* () {
|
|
|
40
40
|
] });
|
|
41
41
|
}
|
|
42
42
|
const svc = ((_b = (_a = curdViewRes.item.value) == null ? void 0 : _a.content) == null ? void 0 : _b.svcName) || "";
|
|
43
|
+
if (!svc) {
|
|
44
|
+
return /* @__PURE__ */ jsx("div", { children: "missing svc name" });
|
|
45
|
+
}
|
|
43
46
|
const methodList = ((_d = (_c = curdViewRes.item.value) == null ? void 0 : _c.content) == null ? void 0 : _d.methodList) || "";
|
|
44
47
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
45
48
|
PrefetchConnectQuery,
|