@faasjs/ant-design 0.0.3-beta.44 → 0.0.3-beta.46

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 CHANGED
@@ -1297,7 +1297,7 @@ function Table(props) {
1297
1297
  break;
1298
1298
  case "boolean":
1299
1299
  if (!item.render)
1300
- item.render = (value) => typeof value === "undefined" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Blank, {}) : value ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons3.CheckOutlined, {
1300
+ item.render = (value) => (0, import_lodash_es6.isNil)(value) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Blank, {}) : value ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons3.CheckOutlined, {
1301
1301
  style: {
1302
1302
  marginTop: "4px",
1303
1303
  color: "#52c41a"
@@ -1326,7 +1326,7 @@ function Table(props) {
1326
1326
  children: common2.all
1327
1327
  }),
1328
1328
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd11.Radio.Button, {
1329
- value: "true",
1329
+ value: true,
1330
1330
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons3.CheckOutlined, {
1331
1331
  style: {
1332
1332
  color: "#52c41a",
@@ -1335,7 +1335,7 @@ function Table(props) {
1335
1335
  })
1336
1336
  }),
1337
1337
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd11.Radio.Button, {
1338
- value: "false",
1338
+ value: false,
1339
1339
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons3.CloseOutlined, {
1340
1340
  style: {
1341
1341
  verticalAlign: "middle",
@@ -1344,7 +1344,7 @@ function Table(props) {
1344
1344
  })
1345
1345
  }),
1346
1346
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd11.Radio.Button, {
1347
- value: "empty",
1347
+ value: null,
1348
1348
  children: common2.blank
1349
1349
  })
1350
1350
  ]
@@ -1352,11 +1352,11 @@ function Table(props) {
1352
1352
  if (!item.onFilter)
1353
1353
  item.onFilter = (value, row) => {
1354
1354
  switch (value) {
1355
- case "true":
1355
+ case true:
1356
1356
  return !(0, import_lodash_es6.isNil)(row[item.id]) && !!row[item.id];
1357
- case "false":
1357
+ case false:
1358
1358
  return !(0, import_lodash_es6.isNil)(row[item.id]) && !row[item.id];
1359
- case "empty":
1359
+ case null:
1360
1360
  return (0, import_lodash_es6.isNil)(row[item.id]);
1361
1361
  default:
1362
1362
  return true;
package/dist/index.mjs CHANGED
@@ -1297,7 +1297,7 @@ function Table(props) {
1297
1297
  break;
1298
1298
  case "boolean":
1299
1299
  if (!item.render)
1300
- item.render = (value) => typeof value === "undefined" ? /* @__PURE__ */ jsx13(Blank, {}) : value ? /* @__PURE__ */ jsx13(CheckOutlined2, {
1300
+ item.render = (value) => isNil2(value) ? /* @__PURE__ */ jsx13(Blank, {}) : value ? /* @__PURE__ */ jsx13(CheckOutlined2, {
1301
1301
  style: {
1302
1302
  marginTop: "4px",
1303
1303
  color: "#52c41a"
@@ -1326,7 +1326,7 @@ function Table(props) {
1326
1326
  children: common2.all
1327
1327
  }),
1328
1328
  /* @__PURE__ */ jsx13(Radio.Button, {
1329
- value: "true",
1329
+ value: true,
1330
1330
  children: /* @__PURE__ */ jsx13(CheckOutlined2, {
1331
1331
  style: {
1332
1332
  color: "#52c41a",
@@ -1335,7 +1335,7 @@ function Table(props) {
1335
1335
  })
1336
1336
  }),
1337
1337
  /* @__PURE__ */ jsx13(Radio.Button, {
1338
- value: "false",
1338
+ value: false,
1339
1339
  children: /* @__PURE__ */ jsx13(CloseOutlined2, {
1340
1340
  style: {
1341
1341
  verticalAlign: "middle",
@@ -1344,7 +1344,7 @@ function Table(props) {
1344
1344
  })
1345
1345
  }),
1346
1346
  /* @__PURE__ */ jsx13(Radio.Button, {
1347
- value: "empty",
1347
+ value: null,
1348
1348
  children: common2.blank
1349
1349
  })
1350
1350
  ]
@@ -1352,11 +1352,11 @@ function Table(props) {
1352
1352
  if (!item.onFilter)
1353
1353
  item.onFilter = (value, row) => {
1354
1354
  switch (value) {
1355
- case "true":
1355
+ case true:
1356
1356
  return !isNil2(row[item.id]) && !!row[item.id];
1357
- case "false":
1357
+ case false:
1358
1358
  return !isNil2(row[item.id]) && !row[item.id];
1359
- case "empty":
1359
+ case null:
1360
1360
  return isNil2(row[item.id]);
1361
1361
  default:
1362
1362
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.44",
3
+ "version": "0.0.3-beta.46",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",