@_tc/template-core 0.2.0-bate.7 → 0.2.0-bate.8
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.
|
@@ -42,19 +42,21 @@ var SchemaSearch = memo(() => {
|
|
|
42
42
|
setSchemas(schemas);
|
|
43
43
|
setSchemaDefaultValue(defaultValue);
|
|
44
44
|
});
|
|
45
|
+
const tsProps = {
|
|
46
|
+
schemas,
|
|
47
|
+
defaultValue,
|
|
48
|
+
onSearch(values) {
|
|
49
|
+
schemaEventBus.getState().emitSearch(filterEmpty(values));
|
|
50
|
+
},
|
|
51
|
+
onReset() {
|
|
52
|
+
schemaEventBus.getState().emitSearch(void 0);
|
|
53
|
+
},
|
|
54
|
+
renderActionBtnArea: () => {}
|
|
55
|
+
};
|
|
45
56
|
return /* @__PURE__ */ jsx("div", {
|
|
46
|
-
className: "schema-search",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
defaultValue,
|
|
50
|
-
onSearch(values) {
|
|
51
|
-
schemaEventBus.getState().emitSearch(filterEmpty(values));
|
|
52
|
-
},
|
|
53
|
-
onReset() {
|
|
54
|
-
schemaEventBus.getState().emitSearch(void 0);
|
|
55
|
-
},
|
|
56
|
-
renderActionBtnArea: () => {}
|
|
57
|
-
})
|
|
57
|
+
className: "schema-search pb-2",
|
|
58
|
+
style: { display: schemas.length ? "block" : "none" },
|
|
59
|
+
children: /* @__PURE__ */ jsx(TableSearch, { ...tsProps })
|
|
58
60
|
});
|
|
59
61
|
});
|
|
60
62
|
SchemaSearch.displayName = "SchemaSearch";
|
|
@@ -4,18 +4,21 @@ import Iframe from "../Iframe/index.js";
|
|
|
4
4
|
import NotFoundPage from "../NotFoundPage/index.js";
|
|
5
5
|
import Schema from "../SchemaPage/index.js";
|
|
6
6
|
import { memo, useMemo } from "react";
|
|
7
|
+
import { useParams } from "react-router-dom";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
9
|
//#region frontend/src/defaultPages/SlotPage/index.tsx
|
|
9
10
|
var SlotPage = memo(() => {
|
|
10
11
|
const { menu } = useCurrentMenuData(true);
|
|
12
|
+
const params = useParams();
|
|
13
|
+
const sidek = params.sidek;
|
|
11
14
|
return useMemo(() => {
|
|
12
|
-
if (menu?.moduleType === "iframe") return /* @__PURE__ */ jsx(Iframe, {});
|
|
13
|
-
else if (menu?.moduleType === "schema") return /* @__PURE__ */ jsx(Schema, {});
|
|
15
|
+
if (menu?.moduleType === "iframe") return /* @__PURE__ */ jsx(Iframe, {}, sidek);
|
|
16
|
+
else if (menu?.moduleType === "schema") return /* @__PURE__ */ jsx(Schema, {}, sidek);
|
|
14
17
|
else {
|
|
15
18
|
logPageNotFound();
|
|
16
19
|
return /* @__PURE__ */ jsx(NotFoundPage, {});
|
|
17
20
|
}
|
|
18
|
-
}, [menu?.moduleType]);
|
|
21
|
+
}, [menu?.moduleType, params.sidek]);
|
|
19
22
|
});
|
|
20
23
|
SlotPage.displayName = "SlotPage";
|
|
21
24
|
//#endregion
|
package/package.json
CHANGED