@faasjs/ant-design 0.0.3-beta.61 → 0.0.3-beta.63

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
@@ -1403,7 +1403,7 @@ function Table(props) {
1403
1403
  }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_antd12.Radio.Group, {
1404
1404
  style: { padding: 8 },
1405
1405
  buttonStyle: "solid",
1406
- value: selectedKeys[0],
1406
+ value: JSON.stringify(selectedKeys[0]),
1407
1407
  onChange: (e) => {
1408
1408
  const Values = {
1409
1409
  true: true,
@@ -1556,7 +1556,13 @@ function Table(props) {
1556
1556
  setSelectedKeys((v == null ? void 0 : v.length) ? v : []);
1557
1557
  confirm();
1558
1558
  },
1559
- mode: "multiple"
1559
+ mode: "multiple",
1560
+ filterOption: (input, option) => {
1561
+ if (!input || !option || !option.label)
1562
+ return true;
1563
+ input = input.trim();
1564
+ return option.value === input || option.label.toString().toLowerCase().includes(input.toLowerCase());
1565
+ }
1560
1566
  })
1561
1567
  });
1562
1568
  return newColumns;
package/dist/index.mjs CHANGED
@@ -1410,7 +1410,7 @@ function Table(props) {
1410
1410
  }) => /* @__PURE__ */ jsxs5(Radio.Group, {
1411
1411
  style: { padding: 8 },
1412
1412
  buttonStyle: "solid",
1413
- value: selectedKeys[0],
1413
+ value: JSON.stringify(selectedKeys[0]),
1414
1414
  onChange: (e) => {
1415
1415
  const Values = {
1416
1416
  true: true,
@@ -1563,7 +1563,13 @@ function Table(props) {
1563
1563
  setSelectedKeys((v == null ? void 0 : v.length) ? v : []);
1564
1564
  confirm();
1565
1565
  },
1566
- mode: "multiple"
1566
+ mode: "multiple",
1567
+ filterOption: (input, option) => {
1568
+ if (!input || !option || !option.label)
1569
+ return true;
1570
+ input = input.trim();
1571
+ return option.value === input || option.label.toString().toLowerCase().includes(input.toLowerCase());
1572
+ }
1567
1573
  })
1568
1574
  });
1569
1575
  return newColumns;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.61",
3
+ "version": "0.0.3-beta.63",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",