@faasjs/ant-design 0.0.2-beta.358 → 0.0.2-beta.359
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 +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -431,10 +431,11 @@ function Routes(props) {
|
|
|
431
431
|
key: r.path
|
|
432
432
|
}, r), {
|
|
433
433
|
element: r.element || /* @__PURE__ */ import_react.default.createElement(import_react8.Suspense, {
|
|
434
|
-
fallback: props.fallback || /* @__PURE__ */ import_react.default.createElement(
|
|
435
|
-
active: true,
|
|
434
|
+
fallback: props.fallback || /* @__PURE__ */ import_react.default.createElement("div", {
|
|
436
435
|
style: { padding: "24px" }
|
|
437
|
-
}
|
|
436
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_antd6.Skeleton, {
|
|
437
|
+
active: true
|
|
438
|
+
}))
|
|
438
439
|
}, /* @__PURE__ */ import_react.default.createElement(r.page, null))
|
|
439
440
|
}))), /* @__PURE__ */ import_react.default.createElement(import_react_router_dom.Route, {
|
|
440
441
|
key: "*",
|
|
@@ -613,7 +614,9 @@ function Table(props) {
|
|
|
613
614
|
columns,
|
|
614
615
|
dataSource: data.rows,
|
|
615
616
|
pagination: __spreadValues(__spreadValues({}, props.pagination), data.pagination),
|
|
616
|
-
onChange: (pagination, filters, sorter) => {
|
|
617
|
+
onChange: (pagination, filters, sorter, extra) => {
|
|
618
|
+
if (props.onChange)
|
|
619
|
+
props.onChange(pagination, filters, sorter, extra);
|
|
617
620
|
reload(__spreadProps(__spreadValues({}, params), {
|
|
618
621
|
pagination,
|
|
619
622
|
filters,
|
package/dist/index.mjs
CHANGED
|
@@ -410,10 +410,11 @@ function Routes(props) {
|
|
|
410
410
|
key: r.path
|
|
411
411
|
}, r), {
|
|
412
412
|
element: r.element || /* @__PURE__ */ React.createElement(Suspense, {
|
|
413
|
-
fallback: props.fallback || /* @__PURE__ */ React.createElement(
|
|
414
|
-
active: true,
|
|
413
|
+
fallback: props.fallback || /* @__PURE__ */ React.createElement("div", {
|
|
415
414
|
style: { padding: "24px" }
|
|
416
|
-
}
|
|
415
|
+
}, /* @__PURE__ */ React.createElement(Skeleton, {
|
|
416
|
+
active: true
|
|
417
|
+
}))
|
|
417
418
|
}, /* @__PURE__ */ React.createElement(r.page, null))
|
|
418
419
|
}))), /* @__PURE__ */ React.createElement(Route, {
|
|
419
420
|
key: "*",
|
|
@@ -599,7 +600,9 @@ function Table(props) {
|
|
|
599
600
|
columns,
|
|
600
601
|
dataSource: data.rows,
|
|
601
602
|
pagination: __spreadValues(__spreadValues({}, props.pagination), data.pagination),
|
|
602
|
-
onChange: (pagination, filters, sorter) => {
|
|
603
|
+
onChange: (pagination, filters, sorter, extra) => {
|
|
604
|
+
if (props.onChange)
|
|
605
|
+
props.onChange(pagination, filters, sorter, extra);
|
|
603
606
|
reload(__spreadProps(__spreadValues({}, params), {
|
|
604
607
|
pagination,
|
|
605
608
|
filters,
|
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.359",
|
|
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.359",
|
|
32
32
|
"react-use": "*",
|
|
33
33
|
"react-router-dom": "*"
|
|
34
34
|
},
|