@faasjs/ant-design 0.0.2-beta.420 → 0.0.2-beta.421
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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1264,11 +1264,11 @@ var import_react14 = require("react");
|
|
|
1264
1264
|
var import_antd11 = require("antd");
|
|
1265
1265
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1266
1266
|
function Title(props) {
|
|
1267
|
-
const
|
|
1267
|
+
const { Title: Title2 } = useConfigContext();
|
|
1268
1268
|
(0, import_react14.useEffect)(() => {
|
|
1269
1269
|
const title = Array.isArray(props.title) ? props.title : [props.title];
|
|
1270
|
-
document.title = title.concat(props.suffix ||
|
|
1271
|
-
}, []);
|
|
1270
|
+
document.title = title.concat(props.suffix || Title2.suffix).filter((t) => !!t).join(props.separator || Title2.separator);
|
|
1271
|
+
}, [props.title]);
|
|
1272
1272
|
if (props.h1) {
|
|
1273
1273
|
if (typeof props.h1 === "boolean")
|
|
1274
1274
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h1", {
|
package/dist/index.mjs
CHANGED
|
@@ -1258,11 +1258,11 @@ import { useEffect as useEffect6, cloneElement as cloneElement3 } from "react";
|
|
|
1258
1258
|
import { PageHeader } from "antd";
|
|
1259
1259
|
import { Fragment as Fragment3, jsx as jsx12 } from "react/jsx-runtime";
|
|
1260
1260
|
function Title(props) {
|
|
1261
|
-
const
|
|
1261
|
+
const { Title: Title2 } = useConfigContext();
|
|
1262
1262
|
useEffect6(() => {
|
|
1263
1263
|
const title = Array.isArray(props.title) ? props.title : [props.title];
|
|
1264
|
-
document.title = title.concat(props.suffix ||
|
|
1265
|
-
}, []);
|
|
1264
|
+
document.title = title.concat(props.suffix || Title2.suffix).filter((t) => !!t).join(props.separator || Title2.separator);
|
|
1265
|
+
}, [props.title]);
|
|
1266
1266
|
if (props.h1) {
|
|
1267
1267
|
if (typeof props.h1 === "boolean")
|
|
1268
1268
|
return /* @__PURE__ */ jsx12("h1", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.421",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lodash": "*",
|
|
29
29
|
"react": "*",
|
|
30
30
|
"react-dom": "*",
|
|
31
|
-
"@faasjs/react": "^0.0.2-beta.
|
|
31
|
+
"@faasjs/react": "^0.0.2-beta.421",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|