kts-component-invoice-operate 2.0.0 → 2.0.1

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.
Files changed (75) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
  2. package/dist/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +2 -0
  3. package/dist/Invoice/InvoiceController/index.d.ts +3 -0
  4. package/dist/Invoice/_test/buyerNameSearch/index.d.ts +0 -1
  5. package/dist/Invoice/_test/deduction/index.d.ts +0 -1
  6. package/dist/Invoice/_test/draft/index.d.ts +0 -1
  7. package/dist/Invoice/_test/easiest/index.d.ts +0 -1
  8. package/dist/Invoice/_test/endowCode/index.d.ts +0 -1
  9. package/dist/Invoice/_test/goodsMenuExpand/index.d.ts +0 -1
  10. package/dist/Invoice/_test/importBuyer/index.d.ts +0 -1
  11. package/dist/Invoice/_test/importGoods/index.d.ts +0 -1
  12. package/dist/Invoice/_test/invoiceType/index.d.ts +0 -1
  13. package/dist/Invoice/_test/isInvoiceNo/index.d.ts +0 -1
  14. package/dist/Invoice/_test/replaceHead/index.d.ts +0 -1
  15. package/dist/Invoice/_test/retrieveData/index.d.ts +0 -1
  16. package/dist/Invoice/_test/seller/index.d.ts +0 -1
  17. package/dist/Invoice/_test/setDataSource/index.d.ts +0 -1
  18. package/dist/Invoice/_test/unit/index.d.ts +0 -1
  19. package/dist/Invoice/ui/AddComparisonDrawer/index.d.ts +1 -1
  20. package/dist/Invoice/ui/Buyer/ui/BuyerNameInput/index.d.ts +0 -1
  21. package/dist/Invoice/ui/Buyer/ui/ImportBuyerButton/index.d.ts +0 -1
  22. package/dist/Invoice/ui/EndowCodeDrawer/index.d.ts +0 -1
  23. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +0 -1
  24. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddComparison/index.d.ts +0 -1
  25. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +0 -1
  26. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +0 -1
  27. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +0 -1
  28. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +0 -1
  29. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +0 -1
  30. package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +0 -1
  31. package/dist/Invoice/ui/GoodsList/ui/AddRowButton/index.d.ts +0 -1
  32. package/dist/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.d.ts +4 -2
  33. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +4 -0
  34. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +4 -0
  35. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +4 -0
  36. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/index.d.ts +1 -0
  37. package/dist/Invoice/ui/GoodsList/ui/DescribeSwitch/index.d.ts +0 -1
  38. package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +2 -0
  39. package/dist/Invoice/ui/GoodsList/ui/Statistics/index.d.ts +0 -1
  40. package/dist/Invoice/ui/GoodsList/ui/TableRow/index.d.ts +0 -1
  41. package/dist/Invoice/ui/GoodsList/ui/TableVirtual/index.d.ts +0 -1
  42. package/dist/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.d.ts +0 -1
  43. package/dist/Invoice/ui/ImportBuyerDrawer/index.d.ts +0 -1
  44. package/dist/Invoice/ui/ImportGoodsDrawer/index.d.ts +0 -1
  45. package/dist/index.esm.js +715 -457
  46. package/dist/index.js +714 -456
  47. package/package.json +3 -1
  48. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
  49. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
  50. package/src/Invoice/InvoiceController/index.ts +4 -0
  51. package/src/Invoice/ui/AddComparisonDrawer/index.tsx +154 -158
  52. package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +34 -8
  53. package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
  54. package/src/Invoice/ui/GoodsList/index.less +10 -2
  55. package/src/Invoice/ui/GoodsList/index.tsx +17 -21
  56. package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
  57. package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.less +0 -0
  58. package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.tsx +20 -17
  59. package/src/Invoice/ui/GoodsList/ui/{CommodityComparisonButton → BulkMenu/hooks/useCommodityComparisonButton}/index.tsx +17 -11
  60. package/src/Invoice/ui/GoodsList/ui/{DelRowButton → BulkMenu/hooks/useDelRowButton}/index.tsx +15 -7
  61. package/src/Invoice/ui/GoodsList/ui/{EndowCodeButton → BulkMenu/hooks/useEndowCodeButton}/index.tsx +13 -9
  62. package/src/Invoice/ui/GoodsList/ui/BulkMenu/index.tsx +43 -0
  63. package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
  64. package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
  65. package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
  66. package/yarn.e.lock +14331 -0
  67. package/dist/Invoice/ui/GoodsList/ui/CommodityComparisonButton/index.d.ts +0 -3
  68. package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +0 -3
  69. package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +0 -3
  70. package/docs-dist/404.html +0 -33
  71. package/docs-dist/index.html +0 -33
  72. package/docs-dist/static/auto.a6cd905c.svg +0 -1
  73. package/docs-dist/static/spot.42e620e1.svg +0 -1
  74. package/docs-dist/umi.css +0 -20
  75. package/docs-dist/umi.js +0 -1
@@ -11,11 +11,9 @@ import Statistics from './ui/Statistics';
11
11
  import AddRowButton from './ui/AddRowButton';
12
12
  import TaxIncludedSwitch from './ui/TaxIncludedSwitch';
13
13
  import DescribeSwitch from './ui/DescribeSwitch';
14
+ import Search from './ui/Search';
14
15
  import TableRow from './ui/TableRow';
15
- import AddDiscountRowButton from './ui/AddDiscountRowButton';
16
- import EndowCodeButton from './ui/EndowCodeButton';
17
- import DelRowButton from './ui/DelRowButton';
18
- import CommodityComparisonButton from './ui/CommodityComparisonButton';
16
+ import BulkMenu from './ui/BulkMenu';
19
17
 
20
18
  import useColumns from './hook/useColumns';
21
19
  import useOnRow from './hook/useOnRow';
@@ -58,6 +56,12 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
58
56
 
59
57
  const isprefab = controller.useMemo(s => s.model === 'prefab', []);
60
58
 
59
+ const dataSource = controller.useMemo(s => s.goodsListState.goodsList, [])
60
+
61
+ const searchValue = controller.useMemo(s => s.goodsListState.searchValue, [])
62
+
63
+ const dataSourceSearch = React.useMemo(() => controller.getGoodsSearch(dataSource, searchValue), [dataSource, searchValue, controller])
64
+
61
65
  /** 表格行事件 */
62
66
  const onRow = useOnRow();
63
67
 
@@ -71,17 +75,15 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
71
75
 
72
76
  /** 注册 from 对象 */
73
77
  React.useEffect(() => {
74
- controller.pipeline<WrappedFormUtils>(async (s, form) => {
75
- s.goodsListState = { ...s.goodsListState, form };
76
- })(props.form);
78
+ controller.pipeline<WrappedFormUtils>(async (s, form) => { s.goodsListState = { ...s.goodsListState, form } })(props.form);
77
79
  }, [controller, props.form]);
78
80
 
79
81
  // 跟新 货物
80
82
  React.useEffect(() => {
81
- controller.pipeline(async (s) => {
83
+ controller.run(async (s) => {
82
84
  s.goodsListState.goodsMap = new Map();
83
85
  goodsList.forEach((e) => { s.goodsListState.goodsMap.set(e.$index, e); });
84
- })();
86
+ });
85
87
  }, [controller, goodsList]);
86
88
 
87
89
  /** props 产品最大数 更新 */
@@ -106,17 +108,11 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
106
108
  {/* 添加行 */}
107
109
  <AddRowButton />
108
110
 
109
- {/* 删除行 */}
110
- <DelRowButton />
111
-
112
- {/* 添加折扣行 */}
113
- <AddDiscountRowButton />
114
-
115
- {/* 批量赋码 */}
116
- <EndowCodeButton />
111
+ {/* 批量菜单 */}
112
+ <BulkMenu />
117
113
 
118
- {/* 执行商品对照 */}
119
- <CommodityComparisonButton/>
114
+ {/* 搜索 */}
115
+ <Search />
120
116
  </div>
121
117
  <div className="kts-invoice-operate-goods-list-able-extend">
122
118
 
@@ -138,10 +134,10 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
138
134
  pagination={false}
139
135
  scroll={{ y: 540 }}
140
136
  components={{ body: { row: TableRow } }}
141
- dataSource={controller.useMemo((s) => s.goodsListState.goodsList, [controller])}
137
+ dataSource={dataSourceSearch}
142
138
  columns={useColumns(props.form)}
143
139
  rowSelection={useRowSelection()}
144
- onRow={(record) => ({
140
+ onRow={record => ({
145
141
  onClick: () => {
146
142
  onRow.onClick(record);
147
143
  },
@@ -11,13 +11,16 @@ export default () => {
11
11
  /** 产品数据量 */
12
12
  const goodsNum = controller.useMemo(s => s.goodsListState.goodsList.length, []);
13
13
 
14
+ /** 搜索条件 */
15
+ const searchValue = controller.useMemo(s => s.goodsListState.searchValue, []);
16
+
14
17
  /** 产品最大数 */
15
18
  const goodMax = controller.useMemo(s => s.goodsListState.goodMax, []);
16
19
 
17
20
  /** 按钮是否禁用 */
18
21
  const disabled = React.useMemo(() => {
19
- return typeof goodMax === 'number' ? goodsNum >= goodMax : false;
20
- }, [goodMax, goodsNum])
22
+ return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
23
+ }, [goodMax, goodsNum, searchValue])
21
24
 
22
25
  const onClick = React.useCallback(async () => {
23
26
  await controller.saveEditGood();
@@ -7,20 +7,20 @@
7
7
  */
8
8
 
9
9
  import React from 'react';
10
- import { Button, Drawer, Form, message, Input, Typography } from 'kts-components-antd-x3';
10
+ import { Button, Drawer, Form, message, Input, Typography, Menu } from 'kts-components-antd-x3';
11
11
  import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
12
12
  import { all, create } from 'mathjs';
13
13
  import { decorator } from 'grey-react-box';
14
- import Invoice from '../../../../';
15
- import lazyFn from '../../../../tools/lazyFn';
16
- import LineAttributeType from '../../../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
17
- import evaluate from '../../../../../Invoice/tools/evaluate';
14
+ import Invoice from '../../../../../../';
15
+ import lazyFn from '../../../../../../tools/lazyFn';
16
+ import LineAttributeType from '../../../../../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
17
+ import evaluate from '../../../../../../../Invoice/tools/evaluate';
18
18
  import './index.less';
19
19
 
20
20
  const { Text } = Typography;
21
21
  const { chain } = create(all, { number: 'BigNumber', precision: 20 }) as any;
22
22
 
23
- export default decorator<{}, FormComponentProps>(Form.create())((props) => {
23
+ export default () => {
24
24
  /** 控制器 */
25
25
  const controller = Invoice.useInvoiceController();
26
26
 
@@ -86,15 +86,16 @@ export default decorator<{}, FormComponentProps>(Form.create())((props) => {
86
86
  })();
87
87
  }, [controller]);
88
88
 
89
- if (model === 'prefab') return <></>;
89
+ const menuItem = React.useMemo(() => {
90
+ return model === 'prefab' ? <></> : isAddDiscount !== false ? (
91
+ <Menu.Item key="0" onClick={onClick} disabled={disabled}>
92
+ 添加折扣行
93
+ </Menu.Item>
94
+ ) : undefined
95
+ }, [isAddDiscount, disabled, onClick])
90
96
 
91
- return (
92
- <>
93
- {
94
- isAddDiscount !== false &&
95
- <Button icon="plus-circle" disabled={disabled} onClick={onClick}>
96
- 添加折扣行
97
- </Button>}
97
+ const drawer = React.useMemo(() => {
98
+ return (
98
99
  <Drawer
99
100
  className="kts-invoice-operate-goods-list-add-discount-row"
100
101
  width={540}
@@ -106,9 +107,11 @@ export default decorator<{}, FormComponentProps>(Form.create())((props) => {
106
107
  >
107
108
  <DrawerBody />
108
109
  </Drawer>
109
- </>
110
- );
111
- });
110
+ )
111
+ }, [visible, onClose])
112
+
113
+ return { menuItem, drawer }
114
+ };
112
115
 
113
116
  const DrawerBody = decorator<{}, FormComponentProps>(Form.create())((props) => {
114
117
  const { form } = props;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { Button, message } from 'kts-components-antd-x3';
3
- import coolingFn from '../../../../tools/coolingFn'
4
- import { getSN, setShorthand } from '../../../../tools/itemName'
5
- import { Invoice, IGood } from '../../../../../';
2
+ import { Menu, message } from 'kts-components-antd-x3';
3
+ import coolingFn from '../../../../../../tools/coolingFn'
4
+ import { getSN, setShorthand } from '../../../../../../tools/itemName'
5
+ import { Invoice, IGood } from '../../../../../../../';
6
6
 
7
7
  export default () => {
8
8
 
@@ -63,12 +63,18 @@ export default () => {
63
63
  })
64
64
  }, [])
65
65
 
66
- // 没用 执行商品对照 的方法 不显示按钮
67
- if (!onComply) return <></>;
68
66
 
69
- return (
70
- <Button icon='swap' disabled={disabled} onClick={onClick} >
71
- 执行商品对照
72
- </Button>
73
- );
67
+ const menuItem = React.useMemo(() => {
68
+
69
+ // 没用 执行商品对照 的方法 不显示按钮
70
+ if (!onComply) return <></>;
71
+
72
+ return (
73
+ <Menu.Item key="3" disabled={disabled} onClick={onClick} >
74
+ 执行商品对照
75
+ </Menu.Item>
76
+ );
77
+ }, [])
78
+
79
+ return { menuItem }
74
80
  };
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import Invoice from '../../../../';
3
- import LineAttributeType from '../../../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
4
- import { Button } from 'kts-components-antd-x3';
2
+ import Invoice from '../../../../../../';
3
+ import LineAttributeType from '../../../../../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
4
+ import { Menu } from 'kts-components-antd-x3';
5
5
 
6
6
  export default () => {
7
+
7
8
  const controller = Invoice.useInvoiceController();
8
9
 
9
10
  const model = controller.useMemo(s => s.model, []);
@@ -41,9 +42,16 @@ export default () => {
41
42
  })();
42
43
  }, [controller]);
43
44
 
44
- if (model === 'prefab') return <></>;
45
+ const menuItem = React.useMemo(() => {
46
+
47
+ if (model === 'prefab') return <></>;
48
+
49
+ return (
50
+ <Menu.Item key="1" onClick={onClick} disabled={disabled}>
51
+ 删除行
52
+ </Menu.Item>
53
+ )
54
+ }, [model, onClick, disabled])
45
55
 
46
- return (
47
- <Button icon="delete" onClick={onClick} disabled={disabled}>删除行</Button>
48
- );
56
+ return { menuItem };
49
57
  };
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import Invoice from '../../../../';
3
- import { Button, message } from 'kts-components-antd-x3';
4
- import coolingFn from '../../../../tools/coolingFn'
5
- // import { LineAttributeType } from '../../../../InvoiceController';
2
+ import Invoice from '../../../../../../';
3
+ import { message ,Menu} from 'kts-components-antd-x3';
4
+ import coolingFn from '../../../../../../tools/coolingFn';
6
5
 
7
6
  export default () => {
8
7
  const controller = Invoice.useInvoiceController();
@@ -34,9 +33,14 @@ export default () => {
34
33
  })();
35
34
  }, [controller]);
36
35
 
37
- return (
38
- <Button icon="file-add" disabled={disabled} onClick={onClick}>
39
- 批量赋码
40
- </Button>
41
- );
36
+ const menuItem = React.useMemo(() => {
37
+
38
+ return (
39
+ <Menu.Item key="2" onClick={onClick} disabled={disabled}>
40
+ 批量赋码
41
+ </Menu.Item>
42
+ )
43
+ }, [onClick, disabled])
44
+
45
+ return { menuItem };
42
46
  };
@@ -0,0 +1,43 @@
1
+
2
+ import React from "react";
3
+ import { Button, Dropdown, Menu } from "kts-components-antd-x3";
4
+
5
+ import useDelRowButton from "./hooks/useDelRowButton";
6
+ import useAddDiscountRowButton from "./hooks/useAddDiscountRowButton";
7
+ import useEndowCodeButton from "./hooks/useEndowCodeButton";
8
+ import useCommodityComparisonButton from "./hooks/useCommodityComparisonButton";
9
+
10
+ export default function BulkMenu() {
11
+
12
+ /** 删除行 */
13
+ const delRowButton = useDelRowButton();
14
+
15
+ /** 添加折扣行 */
16
+ const addDiscountRowButton = useAddDiscountRowButton();
17
+
18
+ /** 批量赋码 */
19
+ const endowCodeButton = useEndowCodeButton();
20
+
21
+ /** 执行商品对照 */
22
+ const commodityComparisonButton = useCommodityComparisonButton();
23
+
24
+ const menu = (
25
+ <Menu>
26
+ {delRowButton.menuItem}
27
+ {addDiscountRowButton.menuItem}
28
+ {endowCodeButton.menuItem}
29
+ {commodityComparisonButton.menuItem}
30
+ </Menu>
31
+ );
32
+
33
+ return (
34
+ <>
35
+ <Dropdown overlay={menu}>
36
+ <Button>
37
+ 批量操作行
38
+ </Button>
39
+ </Dropdown>
40
+ {addDiscountRowButton.drawer}
41
+ </>
42
+ )
43
+ }
@@ -0,0 +1 @@
1
+ <svg t="1656901778998" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9253" width="200" height="200"><path d="M985.781333 918.594133 820.773333 765.5264c27.3728-32.973867 49.6544-69.5776 66.436267-109.258667 22.933333-54.218667 34.561067-111.7952 34.561067-171.1296 0-59.333333-11.627733-116.910933-34.561067-171.1296-22.142933-52.354133-53.837867-99.365333-94.200533-139.729067S705.633067 102.222933 653.28 80.08c-54.218667-22.933333-111.7952-34.561067-171.1296-34.561067S365.240533 57.147733 311.021867 80.08c-52.354133 22.142933-99.365333 53.8368-139.729067 94.200533s-72.0576 87.374933-94.200533 139.729067c-22.932267 54.218667-34.56 111.7952-34.56 171.1296 0 59.3344 11.627733 116.910933 34.56 171.1296 22.144 52.354133 53.837867 99.365333 94.200533 139.729067s87.374933 72.0576 139.729067 94.200533c54.218667 22.932267 111.7952 34.56 171.1296 34.56s116.910933-11.627733 171.1296-34.56c45.352533-19.181867 86.686933-45.543467 123.172267-78.487467L942.256 965.514667c6.16 5.714133 13.966933 8.539733 21.755733 8.539733 8.593067 0 17.163733-3.441067 23.467733-10.237867C999.4976 950.8608 998.738133 930.612267 985.781333 918.594133zM482.151467 860.7584c-207.117867 0-375.620267-168.5024-375.620267-375.620267 0-207.1168 168.5024-375.6192 375.620267-375.6192S857.770667 278.021333 857.770667 485.138133C857.770667 692.256 689.268267 860.7584 482.151467 860.7584z" p-id="9254"></path></svg>
@@ -0,0 +1,10 @@
1
+ .kts-invoice-operate-goods-list-able-list {
2
+ .kts-invoice-operate-goods-list-search {
3
+ width: 330px;
4
+
5
+ input {
6
+ border-radius: 999px;
7
+ border-color : #b8b8b8;
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,47 @@
1
+
2
+ import React from "react";
3
+ import { Icon, Input, message } from "kts-components-antd-x3";
4
+ import { ReactComponent as MagnifierSvg } from './icon/magnifier.svg';
5
+ import Invoice from '../../../../';
6
+ import './index.less';
7
+
8
+ export default function Search() {
9
+
10
+ const controller = Invoice.useInvoiceController();
11
+
12
+ const [value, setValue] = React.useState('');
13
+
14
+ const readOnly = controller.useMemo(s => !!s.goodsListState.editGood, [])
15
+
16
+ const onClick = React.useCallback(async () => {
17
+ await controller.saveEditGood();
18
+ await controller.wait();
19
+ if (controller.state.goodsListState.editGood) {
20
+ message.error({
21
+ content: '你正在编辑一个货物',
22
+ key: '你正在编辑一个货物',
23
+ });
24
+ return;
25
+ }
26
+ }, [])
27
+
28
+ React.useEffect(() => {
29
+ controller.run(async s => {
30
+ s.goodsListState.searchValue = value;
31
+ })
32
+ }, [value, controller])
33
+
34
+ return (
35
+ <Input
36
+ size="small"
37
+ readOnly={readOnly}
38
+ value={value}
39
+ className="kts-invoice-operate-goods-list-search"
40
+ placeholder="请您输入货物名称、规格型号、金额(含税)搜索"
41
+ prefix={<Icon component={MagnifierSvg} style={{ color: "#b8b8b8" }} />}
42
+ onChange={e => { setValue(e.target.value); }}
43
+ onClick={onClick}
44
+ />
45
+ )
46
+ }
47
+