@sooloer/pages 0.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 (176) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +40 -0
  3. package/dist/button-group/demo/authcode.d.ts +3 -0
  4. package/dist/button-group/demo/authcode.js +78 -0
  5. package/dist/button-group/demo/basic.d.ts +3 -0
  6. package/dist/button-group/demo/basic.js +67 -0
  7. package/dist/button-group/demo/custom.d.ts +3 -0
  8. package/dist/button-group/demo/custom.js +50 -0
  9. package/dist/button-group/demo/link.d.ts +3 -0
  10. package/dist/button-group/demo/link.js +65 -0
  11. package/dist/button-group/index.d.ts +4 -0
  12. package/dist/button-group/index.js +59 -0
  13. package/dist/button-group/style.d.ts +5 -0
  14. package/dist/button-group/style.js +11 -0
  15. package/dist/button-group/typing.d.ts +35 -0
  16. package/dist/button-group/typing.js +1 -0
  17. package/dist/filter/components/checkbox/index.d.ts +3 -0
  18. package/dist/filter/components/checkbox/index.js +32 -0
  19. package/dist/filter/components/ellipsis-text/index.d.ts +6 -0
  20. package/dist/filter/components/ellipsis-text/index.js +78 -0
  21. package/dist/filter/components/field/index.d.ts +7 -0
  22. package/dist/filter/components/field/index.js +143 -0
  23. package/dist/filter/components/input-range/index.d.ts +4 -0
  24. package/dist/filter/components/input-range/index.js +44 -0
  25. package/dist/filter/components/input-range/type.d.ts +22 -0
  26. package/dist/filter/components/input-range/type.js +1 -0
  27. package/dist/filter/components/text-area/index.d.ts +3 -0
  28. package/dist/filter/components/text-area/index.js +72 -0
  29. package/dist/filter/components/text-area/index.less +0 -0
  30. package/dist/filter/demo/basic.d.ts +3 -0
  31. package/dist/filter/demo/basic.js +35 -0
  32. package/dist/filter/demo/change-label-width.d.ts +3 -0
  33. package/dist/filter/demo/change-label-width.js +59 -0
  34. package/dist/filter/demo/checkbox.d.ts +3 -0
  35. package/dist/filter/demo/checkbox.js +69 -0
  36. package/dist/filter/demo/col-span.d.ts +3 -0
  37. package/dist/filter/demo/col-span.js +52 -0
  38. package/dist/filter/demo/custom.d.ts +3 -0
  39. package/dist/filter/demo/custom.js +53 -0
  40. package/dist/filter/demo/datePicker.d.ts +3 -0
  41. package/dist/filter/demo/datePicker.js +72 -0
  42. package/dist/filter/demo/ellipsis.d.ts +3 -0
  43. package/dist/filter/demo/ellipsis.js +58 -0
  44. package/dist/filter/demo/expand.d.ts +3 -0
  45. package/dist/filter/demo/expand.js +79 -0
  46. package/dist/filter/demo/form-controlled.d.ts +3 -0
  47. package/dist/filter/demo/form-controlled.js +63 -0
  48. package/dist/filter/demo/grid-columns.d.ts +3 -0
  49. package/dist/filter/demo/grid-columns.js +59 -0
  50. package/dist/filter/demo/hide-action.d.ts +3 -0
  51. package/dist/filter/demo/hide-action.js +41 -0
  52. package/dist/filter/demo/initial-value.d.ts +3 -0
  53. package/dist/filter/demo/initial-value.js +56 -0
  54. package/dist/filter/demo/input-range.d.ts +3 -0
  55. package/dist/filter/demo/input-range.js +24 -0
  56. package/dist/filter/demo/mask.d.ts +3 -0
  57. package/dist/filter/demo/mask.js +77 -0
  58. package/dist/filter/demo/radio.d.ts +3 -0
  59. package/dist/filter/demo/radio.js +69 -0
  60. package/dist/filter/demo/rangePicker.d.ts +3 -0
  61. package/dist/filter/demo/rangePicker.js +80 -0
  62. package/dist/filter/demo/required.d.ts +3 -0
  63. package/dist/filter/demo/required.js +36 -0
  64. package/dist/filter/demo/search-advanced.d.ts +3 -0
  65. package/dist/filter/demo/search-advanced.js +45 -0
  66. package/dist/filter/demo/search.d.ts +3 -0
  67. package/dist/filter/demo/search.js +45 -0
  68. package/dist/filter/demo/set-field.d.ts +3 -0
  69. package/dist/filter/demo/set-field.js +64 -0
  70. package/dist/filter/demo/textarea.d.ts +3 -0
  71. package/dist/filter/demo/textarea.js +42 -0
  72. package/dist/filter/demo/tooltip.d.ts +3 -0
  73. package/dist/filter/demo/tooltip.js +36 -0
  74. package/dist/filter/index.d.ts +5 -0
  75. package/dist/filter/index.js +406 -0
  76. package/dist/filter/index.less +84 -0
  77. package/dist/filter/typing.d.ts +148 -0
  78. package/dist/filter/typing.js +1 -0
  79. package/dist/footer/demo/basic.d.ts +3 -0
  80. package/dist/footer/demo/basic.js +44 -0
  81. package/dist/footer/demo/right-render.d.ts +3 -0
  82. package/dist/footer/demo/right-render.js +8 -0
  83. package/dist/footer/index.d.ts +6 -0
  84. package/dist/footer/index.js +26 -0
  85. package/dist/footer/index.less +11 -0
  86. package/dist/footer/typing.d.ts +17 -0
  87. package/dist/footer/typing.js +1 -0
  88. package/dist/index.d.ts +17 -0
  89. package/dist/index.js +9 -0
  90. package/dist/page/demo/basic.d.ts +3 -0
  91. package/dist/page/demo/basic.js +215 -0
  92. package/dist/page/demo/data.d.ts +16 -0
  93. package/dist/page/demo/data.js +121 -0
  94. package/dist/page/demo/renderTable.d.ts +3 -0
  95. package/dist/page/demo/renderTable.js +209 -0
  96. package/dist/page/demo/selection.d.ts +3 -0
  97. package/dist/page/demo/selection.js +229 -0
  98. package/dist/page/index.d.ts +5 -0
  99. package/dist/page/index.js +120 -0
  100. package/dist/page/index.less +35 -0
  101. package/dist/page/typing.d.ts +68 -0
  102. package/dist/page/typing.js +1 -0
  103. package/dist/search-condition/demo/basic.d.ts +3 -0
  104. package/dist/search-condition/demo/basic.js +35 -0
  105. package/dist/search-condition/demo/custom.d.ts +3 -0
  106. package/dist/search-condition/demo/custom.js +35 -0
  107. package/dist/search-condition/demo/ellipsis.d.ts +3 -0
  108. package/dist/search-condition/demo/ellipsis.js +30 -0
  109. package/dist/search-condition/demo/expand.d.ts +3 -0
  110. package/dist/search-condition/demo/expand.js +46 -0
  111. package/dist/search-condition/demo/removeable.d.ts +3 -0
  112. package/dist/search-condition/demo/removeable.js +39 -0
  113. package/dist/search-condition/index.d.ts +5 -0
  114. package/dist/search-condition/index.js +226 -0
  115. package/dist/search-condition/index.less +65 -0
  116. package/dist/search-condition/typing.d.ts +39 -0
  117. package/dist/search-condition/typing.js +1 -0
  118. package/dist/tab/demo/basic.d.ts +3 -0
  119. package/dist/tab/demo/basic.js +36 -0
  120. package/dist/tab/demo/count.d.ts +3 -0
  121. package/dist/tab/demo/count.js +63 -0
  122. package/dist/tab/demo/extra.d.ts +3 -0
  123. package/dist/tab/demo/extra.js +70 -0
  124. package/dist/tab/demo/icon.d.ts +3 -0
  125. package/dist/tab/demo/icon.js +36 -0
  126. package/dist/tab/demo/overflowCount.d.ts +3 -0
  127. package/dist/tab/demo/overflowCount.js +50 -0
  128. package/dist/tab/demo/settingRef.d.ts +3 -0
  129. package/dist/tab/demo/settingRef.js +77 -0
  130. package/dist/tab/demo/slide.d.ts +3 -0
  131. package/dist/tab/demo/slide.js +98 -0
  132. package/dist/tab/index.d.ts +5 -0
  133. package/dist/tab/index.js +51 -0
  134. package/dist/tab/index.less +11 -0
  135. package/dist/tab/typing.d.ts +51 -0
  136. package/dist/tab/typing.js +1 -0
  137. package/dist/table/demo/basic.d.ts +3 -0
  138. package/dist/table/demo/basic.js +65 -0
  139. package/dist/table/demo/checkbox.d.ts +3 -0
  140. package/dist/table/demo/checkbox.js +75 -0
  141. package/dist/table/demo/data.d.ts +16 -0
  142. package/dist/table/demo/data.js +120 -0
  143. package/dist/table/demo/global-checkbox.d.ts +3 -0
  144. package/dist/table/demo/global-checkbox.js +83 -0
  145. package/dist/table/demo/setting.d.ts +3 -0
  146. package/dist/table/demo/setting.js +78 -0
  147. package/dist/table/index.d.ts +4 -0
  148. package/dist/table/index.js +173 -0
  149. package/dist/table/setting/components/height.d.ts +8 -0
  150. package/dist/table/setting/components/height.js +45 -0
  151. package/dist/table/setting/components/reload.d.ts +7 -0
  152. package/dist/table/setting/components/reload.js +19 -0
  153. package/dist/table/setting/components/sort-group.d.ts +10 -0
  154. package/dist/table/setting/components/sort-group.js +103 -0
  155. package/dist/table/setting/components/sort-item.d.ts +3 -0
  156. package/dist/table/setting/components/sort-item.js +20 -0
  157. package/dist/table/setting/components/sort.d.ts +9 -0
  158. package/dist/table/setting/components/sort.js +105 -0
  159. package/dist/table/setting/index.d.ts +18 -0
  160. package/dist/table/setting/index.js +41 -0
  161. package/dist/table/setting/index.less +33 -0
  162. package/dist/table/table/index.d.ts +5 -0
  163. package/dist/table/table/index.js +170 -0
  164. package/dist/table/table/index.less +35 -0
  165. package/dist/table/typing.d.ts +92 -0
  166. package/dist/table/typing.js +1 -0
  167. package/dist/title/demo/basic.d.ts +3 -0
  168. package/dist/title/demo/basic.js +35 -0
  169. package/dist/title/demo/custom.d.ts +3 -0
  170. package/dist/title/demo/custom.js +15 -0
  171. package/dist/title/index.d.ts +5 -0
  172. package/dist/title/index.js +32 -0
  173. package/dist/title/index.less +39 -0
  174. package/dist/title/typing.d.ts +22 -0
  175. package/dist/title/typing.js +10 -0
  176. package/package.json +86 -0
@@ -0,0 +1,80 @@
1
+ import { ProFilter } from "../..";
2
+ import React from 'react';
3
+ export default (function () {
4
+ var fields = [{
5
+ label: '审核时间',
6
+ name: 'verifyRange',
7
+ type: 'dateRange',
8
+ widgetProps: {
9
+ showTime: true
10
+ }
11
+ }, {
12
+ label: '开票日期',
13
+ name: 'dateRange',
14
+ type: 'dateRange'
15
+ }, {
16
+ label: '开票月份',
17
+ name: 'monthRange',
18
+ type: 'dateRange',
19
+ widgetProps: {
20
+ picker: 'month'
21
+ }
22
+ }, {
23
+ label: '开票季度',
24
+ name: 'quarterRange',
25
+ type: 'dateRange',
26
+ widgetProps: {
27
+ picker: 'quarter'
28
+ }
29
+ }, {
30
+ label: '年份',
31
+ name: 'yearRange',
32
+ type: 'dateRange',
33
+ widgetProps: {
34
+ picker: 'year'
35
+ }
36
+ }];
37
+ var handleSearch = function handleSearch(fieldsValue) {
38
+ var params = {};
39
+ console.log(fieldsValue);
40
+ Object.keys(fieldsValue).map(function (key) {
41
+ var _ref = fields.find(function (field) {
42
+ return field.name === key;
43
+ }) || {},
44
+ _ref$type = _ref.type,
45
+ type = _ref$type === void 0 ? 'input' : _ref$type,
46
+ widgetProps = _ref.widgetProps;
47
+ var value = fieldsValue[key];
48
+ if (type === 'dateRange' && value) {
49
+ var _ref2 = widgetProps || {},
50
+ _ref2$picker = _ref2.picker,
51
+ picker = _ref2$picker === void 0 ? '' : _ref2$picker;
52
+ if (picker === 'year') {
53
+ // @ts-ignore
54
+ params[key] = [value[0].format('YYYY'), value[1].format('YYYY')];
55
+ } else if (picker === 'month') {
56
+ // @ts-ignore
57
+ params[key] = [value[0].format('YYYY-MM'), value[1].format('YYYY-MM')];
58
+ } else if (picker === 'quarter') {
59
+ // @ts-ignore
60
+ params[key] = [value[0].format('YYYY-Q'), value[1].format('YYYY-Q')];
61
+ } else {
62
+ // @ts-ignore
63
+ params[key] = [value[0].format('YYYY-MM-DD'), value[1].format('YYYY-MM-DD')];
64
+ }
65
+ } else {
66
+ params[key] = fieldsValue[key];
67
+ }
68
+ return key;
69
+ });
70
+ console.log('handleSearch', params);
71
+ };
72
+ var handleReset = function handleReset(fieldsValue) {
73
+ console.log('handleReset', fieldsValue);
74
+ };
75
+ return /*#__PURE__*/React.createElement(ProFilter, {
76
+ fields: fields,
77
+ onReset: handleReset,
78
+ onSearch: handleSearch
79
+ });
80
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { ProFilter } from "../..";
2
+ import React from 'react';
3
+ export default (function () {
4
+ var fields = [{
5
+ required: true,
6
+ label: '发票号码',
7
+ name: 'invoiceNo'
8
+ }, {
9
+ label: '发票代码',
10
+ name: 'invoiceCode'
11
+ }, {
12
+ label: '发票类型',
13
+ name: 'invoiceType',
14
+ type: 'select',
15
+ widgetProps: {
16
+ options: [{
17
+ label: '电子专票',
18
+ value: 1
19
+ }, {
20
+ label: '电子普票',
21
+ value: 2
22
+ }]
23
+ }
24
+ }];
25
+ var handleSearch = function handleSearch(fieldsValue) {
26
+ console.log('handleSearch', fieldsValue);
27
+ };
28
+ var handleReset = function handleReset(fieldsValue) {
29
+ console.log('handleReset', fieldsValue);
30
+ };
31
+ return /*#__PURE__*/React.createElement(ProFilter, {
32
+ fields: fields,
33
+ onReset: handleReset,
34
+ onSearch: handleSearch
35
+ });
36
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,45 @@
1
+ import { ProFilter } from "../..";
2
+ import { Select } from 'antd';
3
+ import React from 'react';
4
+ export default (function () {
5
+ var fields = [{
6
+ label: '发票类型',
7
+ name: 'invoiceType-1',
8
+ type: 'select',
9
+ widgetProps: {
10
+ mode: 'multiple',
11
+ options: [{
12
+ label: '纸普',
13
+ value: 'c'
14
+ }, {
15
+ label: '纸专',
16
+ value: 's'
17
+ }],
18
+ maxTagCount: 1,
19
+ optionLabelProp: 'label',
20
+ optionRender: function optionRender(option) {
21
+ return /*#__PURE__*/React.createElement(Select.Option, {
22
+ key: option.value,
23
+ value: option.value,
24
+ label: option.label
25
+ }, /*#__PURE__*/React.createElement("div", null, "\u7B80\u79F0\uFF1A", option.label), /*#__PURE__*/React.createElement("div", {
26
+ style: {
27
+ fontSize: '12px',
28
+ color: '#999'
29
+ }
30
+ }, "\u7C7B\u578B\uFF1A", option.value));
31
+ }
32
+ }
33
+ }];
34
+ var handleSearch = function handleSearch(fieldsValue) {
35
+ console.log('handleSearch', fieldsValue);
36
+ };
37
+ var handleReset = function handleReset(fieldsValue) {
38
+ console.log('handleReset', fieldsValue);
39
+ };
40
+ return /*#__PURE__*/React.createElement(ProFilter, {
41
+ fields: fields,
42
+ onReset: handleReset,
43
+ onSearch: handleSearch
44
+ });
45
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,45 @@
1
+ import { ProFilter } from "../..";
2
+ import React from 'react';
3
+ export default (function () {
4
+ var fields = [{
5
+ label: '发票类型',
6
+ name: 'invoiceType',
7
+ type: 'select',
8
+ widgetProps: {
9
+ allowClear: true,
10
+ options: [{
11
+ label: '纸普',
12
+ value: 'c'
13
+ }, {
14
+ label: '纸专',
15
+ value: 's'
16
+ }]
17
+ }
18
+ }, {
19
+ label: '发票类型',
20
+ name: 'invoiceType-1',
21
+ type: 'select',
22
+ required: true,
23
+ widgetProps: {
24
+ allowClear: true,
25
+ options: [{
26
+ label: '纸普',
27
+ value: 'c'
28
+ }, {
29
+ label: '纸专',
30
+ value: 's'
31
+ }]
32
+ }
33
+ }];
34
+ var handleSearch = function handleSearch(fieldsValue) {
35
+ console.log('handleSearch', fieldsValue);
36
+ };
37
+ var handleReset = function handleReset(fieldsValue) {
38
+ console.log('handleReset', fieldsValue);
39
+ };
40
+ return /*#__PURE__*/React.createElement(ProFilter, {
41
+ fields: fields,
42
+ onReset: handleReset,
43
+ onSearch: handleSearch
44
+ });
45
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,64 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { ProFilter } from "../..";
8
+ import { Select } from 'antd';
9
+ import React, { useRef, useState } from 'react';
10
+ export default (function () {
11
+ var _useState = useState({}),
12
+ _useState2 = _slicedToArray(_useState, 2),
13
+ fieldsValue = _useState2[0],
14
+ setFieldsValue = _useState2[1];
15
+ var nodeRef = useRef();
16
+ var options = [];
17
+ for (var i = 10; i < 36; i++) {
18
+ options.push({
19
+ label: i.toString(36) + i,
20
+ value: i.toString(36) + i
21
+ });
22
+ }
23
+ var fields = [{
24
+ required: true,
25
+ label: '发票号码',
26
+ name: 'invoiceNo'
27
+ }, {
28
+ label: '发票类型',
29
+ name: 'invoiceType',
30
+ fieldRender: /*#__PURE__*/React.createElement(Select, {
31
+ placeholder: "\u8BF7\u9009\u62E9",
32
+ mode: "multiple",
33
+ allowClear: true
34
+ }, options.map(function (item) {
35
+ return /*#__PURE__*/React.createElement(Select.Option, {
36
+ key: item.value,
37
+ value: item.value
38
+ }, item.label);
39
+ }))
40
+ }];
41
+ var handleSearch = function handleSearch(fieldsValue) {
42
+ console.log('handleSearch', fieldsValue);
43
+ };
44
+ var handleReset = function handleReset(fieldsValue) {
45
+ console.log('handleReset', fieldsValue);
46
+ };
47
+ var handleSetField = function handleSetField() {
48
+ var _nodeRef$current;
49
+ console.log('ref', nodeRef);
50
+ // @ts-ignore
51
+ nodeRef === null || nodeRef === void 0 || (_nodeRef$current = nodeRef.current) === null || _nodeRef$current === void 0 || _nodeRef$current.form.setFieldsValue({
52
+ invoiceNo: '222222ee32e',
53
+ invoiceType: 'a10'
54
+ });
55
+ };
56
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProFilter, {
57
+ values: fieldsValue,
58
+ ref: nodeRef,
59
+ fields: fields,
60
+ onSearch: handleSearch
61
+ }), /*#__PURE__*/React.createElement("div", {
62
+ onClick: handleSetField
63
+ }, "\u66F4\u65B0\u5B57\u6BB5"));
64
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { ProFilter } from "../..";
2
+ import React from 'react';
3
+ export default (function () {
4
+ var fields = [{
5
+ label: '发票号码',
6
+ name: 'invoiceNo'
7
+ }, {
8
+ label: '业务单号',
9
+ name: 'billNos',
10
+ type: 'textarea'
11
+ }];
12
+ var handleSearch = function handleSearch(fieldsValue) {
13
+ var params = {};
14
+ Object.keys(fieldsValue).map(function (key) {
15
+ var _ref = fields.find(function (field) {
16
+ return field.name === key;
17
+ }) || {},
18
+ _ref$type = _ref.type,
19
+ type = _ref$type === void 0 ? 'input' : _ref$type;
20
+ if (type === 'textarea') {
21
+ // @ts-ignore
22
+ params[key] = fieldsValue[key].split(/[\n,,]/g).map(function (value) {
23
+ return value.trim();
24
+ }).filter(function (value) {
25
+ return value;
26
+ }).join();
27
+ } else {
28
+ params[key] = fieldsValue[key];
29
+ }
30
+ return key;
31
+ });
32
+ console.log('handleSearch', params);
33
+ };
34
+ var handleReset = function handleReset(fieldsValue) {
35
+ console.log('handleReset', fieldsValue);
36
+ };
37
+ return /*#__PURE__*/React.createElement(ProFilter, {
38
+ fields: fields,
39
+ onReset: handleReset,
40
+ onSearch: handleSearch
41
+ });
42
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { ProFilter } from "../..";
2
+ import React from 'react';
3
+ export default (function () {
4
+ var fields = [{
5
+ label: '发票号码',
6
+ name: 'invoiceNo',
7
+ tooltip: 'What do you want others to call you?'
8
+ }, {
9
+ label: '发票代码',
10
+ name: 'invoiceCode'
11
+ }, {
12
+ label: '发票类型',
13
+ name: 'invoiceType',
14
+ type: 'select',
15
+ widgetProps: {
16
+ options: [{
17
+ label: '电子专票',
18
+ value: 1
19
+ }, {
20
+ label: '电子普票',
21
+ value: 2
22
+ }]
23
+ }
24
+ }];
25
+ var handleSearch = function handleSearch(fieldsValue) {
26
+ console.log('handleSearch', fieldsValue);
27
+ };
28
+ var handleReset = function handleReset(fieldsValue) {
29
+ console.log('handleReset', fieldsValue);
30
+ };
31
+ return /*#__PURE__*/React.createElement(ProFilter, {
32
+ fields: fields,
33
+ onReset: handleReset,
34
+ onSearch: handleSearch
35
+ });
36
+ });
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import type { ProFilterProps } from './typing';
4
+ declare const _default: React.ForwardRefExoticComponent<Omit<ProFilterProps<any>, "ref"> & React.RefAttributes<unknown>>;
5
+ export default _default;