@vtx/components 3.1.2 → 3.1.4

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 (197) hide show
  1. package/CHANGELOG.md +998 -0
  2. package/README.md +19 -19
  3. package/lib/_util/filterSpecialCharacters.js +6 -6
  4. package/lib/_util/filterSpecialCharacters.js.map +1 -1
  5. package/lib/_util/getComponentProps.js +1 -1
  6. package/lib/_util/getComponentProps.js.map +1 -1
  7. package/lib/_util/getUrlParam.js.map +1 -1
  8. package/lib/_util/isFunction.js.map +1 -1
  9. package/lib/_util/isObject.js.map +1 -1
  10. package/lib/_util/useColSize.js.map +1 -1
  11. package/lib/_util/useInterval.js.map +1 -1
  12. package/lib/_util/useSet.js +2 -2
  13. package/lib/_util/useSet.js.map +1 -1
  14. package/lib/config.js.map +1 -1
  15. package/lib/index.js +44 -44
  16. package/lib/index.js.map +1 -1
  17. package/lib/vtx-color-picker/index.js +2 -2
  18. package/lib/vtx-color-picker/index.js.map +1 -1
  19. package/lib/vtx-color-picker/style/css.js.map +1 -1
  20. package/lib/vtx-color-picker/style/index.js.map +1 -1
  21. package/lib/vtx-color-picker/style/index.less +12 -12
  22. package/lib/vtx-combogrid/Combogrid.js +4 -4
  23. package/lib/vtx-combogrid/Combogrid.js.map +1 -1
  24. package/lib/vtx-combogrid/index.js +2 -2
  25. package/lib/vtx-combogrid/index.js.map +1 -1
  26. package/lib/vtx-combogrid/style/css.js.map +1 -1
  27. package/lib/vtx-combogrid/style/index.js.map +1 -1
  28. package/lib/vtx-combogrid/style/index.less +29 -29
  29. package/lib/vtx-datagrid/Alert.js.map +1 -1
  30. package/lib/vtx-datagrid/ColumnSetting.js +1 -1
  31. package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
  32. package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
  33. package/lib/vtx-datagrid/index.js +4 -4
  34. package/lib/vtx-datagrid/index.js.map +1 -1
  35. package/lib/vtx-datagrid/renderColumnButtons.js +1 -1
  36. package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
  37. package/lib/vtx-datagrid/style/css.js.map +1 -1
  38. package/lib/vtx-datagrid/style/index.js.map +1 -1
  39. package/lib/vtx-datagrid/style/index.less +166 -166
  40. package/lib/vtx-date-picker/QdatePicker.js +2 -2
  41. package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
  42. package/lib/vtx-date-picker/generatePicker.js +11 -11
  43. package/lib/vtx-date-picker/generatePicker.js.map +1 -1
  44. package/lib/vtx-date-picker/index.js.map +1 -1
  45. package/lib/vtx-date-picker/style/css.js.map +1 -1
  46. package/lib/vtx-date-picker/style/index.js.map +1 -1
  47. package/lib/vtx-date-picker/style/index.less +38 -38
  48. package/lib/vtx-editor/index.js +2 -2
  49. package/lib/vtx-editor/index.js.map +1 -1
  50. package/lib/vtx-editor/style/css.js.map +1 -1
  51. package/lib/vtx-editor/style/index.js.map +1 -1
  52. package/lib/vtx-editor/style/index.less +8 -8
  53. package/lib/vtx-ellipsis-text/index.js +3 -3
  54. package/lib/vtx-ellipsis-text/index.js.map +1 -1
  55. package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
  56. package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
  57. package/lib/vtx-ellipsis-text/style/index.less +13 -13
  58. package/lib/vtx-export/index.js +8 -8
  59. package/lib/vtx-export/index.js.map +1 -1
  60. package/lib/vtx-export/style/css.js.map +1 -1
  61. package/lib/vtx-export/style/index.js.map +1 -1
  62. package/lib/vtx-export/style/index.less +6 -6
  63. package/lib/vtx-form-layout/Card.js +1 -1
  64. package/lib/vtx-form-layout/Card.js.map +1 -1
  65. package/lib/vtx-form-layout/Divider.js.map +1 -1
  66. package/lib/vtx-form-layout/FormItem.js +2 -2
  67. package/lib/vtx-form-layout/FormItem.js.map +1 -1
  68. package/lib/vtx-form-layout/Pane.js.map +1 -1
  69. package/lib/vtx-form-layout/Row.js.map +1 -1
  70. package/lib/vtx-form-layout/context.js.map +1 -1
  71. package/lib/vtx-form-layout/demo/Modal.less +43 -43
  72. package/lib/vtx-form-layout/index.js.map +1 -1
  73. package/lib/vtx-form-layout/style/css.js.map +1 -1
  74. package/lib/vtx-form-layout/style/index.js.map +1 -1
  75. package/lib/vtx-form-layout/style/index.less +211 -211
  76. package/lib/vtx-image/Image.js +1 -1
  77. package/lib/vtx-image/Image.js.map +1 -1
  78. package/lib/vtx-image/Preview.js +3 -3
  79. package/lib/vtx-image/Preview.js.map +1 -1
  80. package/lib/vtx-image/PreviewGroup.js +2 -2
  81. package/lib/vtx-image/PreviewGroup.js.map +1 -1
  82. package/lib/vtx-image/index.js +1 -1
  83. package/lib/vtx-image/index.js.map +1 -1
  84. package/lib/vtx-image/style/css.js.map +1 -1
  85. package/lib/vtx-image/style/index.js.map +1 -1
  86. package/lib/vtx-image/style/index.less +63 -63
  87. package/lib/vtx-import/index.js +2 -2
  88. package/lib/vtx-import/index.js.map +1 -1
  89. package/lib/vtx-import/result.js +1 -1
  90. package/lib/vtx-import/result.js.map +1 -1
  91. package/lib/vtx-import/style/css.js.map +1 -1
  92. package/lib/vtx-import/style/index.js.map +1 -1
  93. package/lib/vtx-import/style/index.less +8 -8
  94. package/lib/vtx-input/TextArea.js +2 -2
  95. package/lib/vtx-input/TextArea.js.map +1 -1
  96. package/lib/vtx-input/index.js +4 -4
  97. package/lib/vtx-input/index.js.map +1 -1
  98. package/lib/vtx-input/style/css.js.map +1 -1
  99. package/lib/vtx-input/style/index.js.map +1 -1
  100. package/lib/vtx-input/style/index.less +24 -24
  101. package/lib/vtx-input/useLength.js.map +1 -1
  102. package/lib/vtx-modal/Title.js.map +1 -1
  103. package/lib/vtx-modal/index.js +5 -5
  104. package/lib/vtx-modal/index.js.map +1 -1
  105. package/lib/vtx-modal/style/css.js.map +1 -1
  106. package/lib/vtx-modal/style/index.js.map +1 -1
  107. package/lib/vtx-modal/style/index.less +95 -95
  108. package/lib/vtx-page-layout/Basic.js +2 -2
  109. package/lib/vtx-page-layout/Basic.js.map +1 -1
  110. package/lib/vtx-page-layout/Content.js +2 -2
  111. package/lib/vtx-page-layout/Content.js.map +1 -1
  112. package/lib/vtx-page-layout/Pane.js.map +1 -1
  113. package/lib/vtx-page-layout/TableLayout.js +13 -13
  114. package/lib/vtx-page-layout/TableLayout.js.map +1 -1
  115. package/lib/vtx-page-layout/TableWrap.js +2 -2
  116. package/lib/vtx-page-layout/TableWrap.js.map +1 -1
  117. package/lib/vtx-page-layout/container.js +12 -12
  118. package/lib/vtx-page-layout/container.js.map +1 -1
  119. package/lib/vtx-page-layout/index.js.map +1 -1
  120. package/lib/vtx-page-layout/style/css.js.map +1 -1
  121. package/lib/vtx-page-layout/style/index.js.map +1 -1
  122. package/lib/vtx-page-layout/style/index.less +138 -138
  123. package/lib/vtx-rps-frame/index.js +3 -3
  124. package/lib/vtx-rps-frame/index.js.map +1 -1
  125. package/lib/vtx-rps-frame/style/css.js.map +1 -1
  126. package/lib/vtx-rps-frame/style/index.js.map +1 -1
  127. package/lib/vtx-rps-frame/style/index.less +8 -8
  128. package/lib/vtx-scrollable-row/index.js +4 -4
  129. package/lib/vtx-scrollable-row/index.js.map +1 -1
  130. package/lib/vtx-scrollable-row/style/css.js.map +1 -1
  131. package/lib/vtx-scrollable-row/style/index.js.map +1 -1
  132. package/lib/vtx-scrollable-row/style/index.less +113 -113
  133. package/lib/vtx-search/VtxCol.js +2 -2
  134. package/lib/vtx-search/VtxCol.js.map +1 -1
  135. package/lib/vtx-search/VtxRow.js.map +1 -1
  136. package/lib/vtx-search/index.js +3 -3
  137. package/lib/vtx-search/index.js.map +1 -1
  138. package/lib/vtx-search/style/css.js.map +1 -1
  139. package/lib/vtx-search/style/index.js.map +1 -1
  140. package/lib/vtx-search/style/index.less +83 -83
  141. package/lib/vtx-search-map-input/index.js +2 -2
  142. package/lib/vtx-search-map-input/index.js.map +1 -1
  143. package/lib/vtx-search-map-input/style/css.js.map +1 -1
  144. package/lib/vtx-search-map-input/style/index.js.map +1 -1
  145. package/lib/vtx-select/index.js +4 -4
  146. package/lib/vtx-select/index.js.map +1 -1
  147. package/lib/vtx-select/style/css.js.map +1 -1
  148. package/lib/vtx-select/style/index.js.map +1 -1
  149. package/lib/vtx-select/style/index.less +68 -68
  150. package/lib/vtx-signature/index.js +1 -1
  151. package/lib/vtx-signature/index.js.map +1 -1
  152. package/lib/vtx-signature/style/css.js.map +1 -1
  153. package/lib/vtx-signature/style/index.js.map +1 -1
  154. package/lib/vtx-signature/style/index.less +33 -33
  155. package/lib/vtx-split-pane/Pane.js +3 -3
  156. package/lib/vtx-split-pane/Pane.js.map +1 -1
  157. package/lib/vtx-split-pane/Resizer.js +4 -4
  158. package/lib/vtx-split-pane/Resizer.js.map +1 -1
  159. package/lib/vtx-split-pane/SplitPane.js +5 -5
  160. package/lib/vtx-split-pane/SplitPane.js.map +1 -1
  161. package/lib/vtx-split-pane/index.js.map +1 -1
  162. package/lib/vtx-split-pane/style/css.js.map +1 -1
  163. package/lib/vtx-split-pane/style/index.js.map +1 -1
  164. package/lib/vtx-split-pane/style/index.less +60 -60
  165. package/lib/vtx-statistics-column/Back.js +1 -1
  166. package/lib/vtx-statistics-column/Back.js.map +1 -1
  167. package/lib/vtx-statistics-column/Item.js +3 -3
  168. package/lib/vtx-statistics-column/Item.js.map +1 -1
  169. package/lib/vtx-statistics-column/Total.js +3 -3
  170. package/lib/vtx-statistics-column/Total.js.map +1 -1
  171. package/lib/vtx-statistics-column/context.js.map +1 -1
  172. package/lib/vtx-statistics-column/index.js.map +1 -1
  173. package/lib/vtx-statistics-column/style/css.js.map +1 -1
  174. package/lib/vtx-statistics-column/style/index.js.map +1 -1
  175. package/lib/vtx-statistics-column/style/index.less +59 -59
  176. package/lib/vtx-time-picker/index.js +1 -1
  177. package/lib/vtx-time-picker/index.js.map +1 -1
  178. package/lib/vtx-time-picker/style/css.js.map +1 -1
  179. package/lib/vtx-time-picker/style/index.js.map +1 -1
  180. package/lib/vtx-upload/FilePreview.js +2 -2
  181. package/lib/vtx-upload/FilePreview.js.map +1 -1
  182. package/lib/vtx-upload/index.js +5 -5
  183. package/lib/vtx-upload/index.js.map +1 -1
  184. package/lib/vtx-upload/style/css.js.map +1 -1
  185. package/lib/vtx-upload/style/index.js.map +1 -1
  186. package/lib/vtx-upload/style/index.less +61 -61
  187. package/lib/vtx-ztree/index.js +10 -10
  188. package/lib/vtx-ztree/index.js.map +1 -1
  189. package/lib/vtx-ztree/style/css.js.map +1 -1
  190. package/lib/vtx-ztree/style/index.js.map +1 -1
  191. package/lib/vtx-ztree/style/index.less +30 -30
  192. package/lib/vtx-ztree-select/index.js +8 -8
  193. package/lib/vtx-ztree-select/index.js.map +1 -1
  194. package/lib/vtx-ztree-select/style/css.js.map +1 -1
  195. package/lib/vtx-ztree-select/style/index.js.map +1 -1
  196. package/lib/vtx-ztree-select/style/index.less +74 -74
  197. package/package.json +123 -123
@@ -1,113 +1,113 @@
1
- @import (reference) '~antd/lib/style/themes/index.less';
2
-
3
- @prefix-cls: vtx-scrollable-row;
4
- @easing-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
5
- @effect-duration: 0.3s;
6
-
7
- .@{prefix-cls} {
8
- &-container {
9
- position: relative;
10
- box-sizing: border-box;
11
- margin-bottom: -1px;
12
- overflow: hidden;
13
- font-size: @font-size-base;
14
- line-height: @line-height-base;
15
- white-space: nowrap;
16
- transition: padding @effect-duration @easing-in-out;
17
- zoom: 1;
18
- &::after {
19
- clear: both;
20
- }
21
- &::before,
22
- &::after {
23
- display: table;
24
- content: ' ';
25
- }
26
- &:hover {
27
- .@{prefix-cls}-arrow-show {
28
- display: inline-block;
29
- }
30
- }
31
- }
32
- &-prev,
33
- &-next {
34
- position: absolute;
35
- z-index: 1;
36
- display: none;
37
- line-height: 36px;
38
- text-align: center;
39
- background: @component-background;
40
- border: none;
41
- cursor: pointer;
42
- transition: width @effect-duration @easing-in-out, opacity @effect-duration @easing-in-out,
43
- color @effect-duration @easing-in-out;
44
- user-select: none;
45
- &-icon {
46
- position: absolute;
47
- top: 50%;
48
- left: 50%;
49
- font-weight: 700;
50
- font-style: normal;
51
- font-variant: normal;
52
- line-height: inherit;
53
- text-align: center;
54
- text-transform: none;
55
- vertical-align: baseline;
56
- -webkit-transform: translate(-50%, -50%);
57
- -ms-transform: translate(-50%, -50%);
58
- transform: translate(-50%, -50%);
59
- }
60
- &::before {
61
- display: block;
62
- }
63
- }
64
-
65
- &-prev {
66
- left: 0;
67
- border-radius: @border-radius-base 0 0 @border-radius-base;
68
- box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.16);
69
- }
70
- &-next {
71
- right: 0;
72
- border-radius: 0 @border-radius-base @border-radius-base 0;
73
- box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.16);
74
- }
75
- &-btn-disabled {
76
- color: #ccc;
77
- cursor: not-allowed;
78
- }
79
- &-arrow-show {
80
- display: none;
81
- width: 32px;
82
- height: 100%;
83
- opacity: 1;
84
- pointer-events: auto;
85
- }
86
- &-nav-wrap {
87
- margin-bottom: -1px;
88
- overflow: hidden;
89
- }
90
- &-nav-scroll {
91
- overflow: hidden;
92
- line-height: 1;
93
- white-space: nowrap;
94
- }
95
- &-nav {
96
- position: relative;
97
- display: inline-block;
98
- box-sizing: border-box;
99
- margin: 0;
100
- padding-left: 0;
101
- list-style: none;
102
- transition: transform @effect-duration @easing-in-out,
103
- -webkit-transform @effect-duration @easing-in-out;
104
- &::after {
105
- clear: both;
106
- }
107
- &::before,
108
- &::after {
109
- display: table;
110
- content: ' ';
111
- }
112
- }
113
- }
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+
3
+ @prefix-cls: vtx-scrollable-row;
4
+ @easing-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
5
+ @effect-duration: 0.3s;
6
+
7
+ .@{prefix-cls} {
8
+ &-container {
9
+ position: relative;
10
+ box-sizing: border-box;
11
+ margin-bottom: -1px;
12
+ overflow: hidden;
13
+ font-size: @font-size-base;
14
+ line-height: @line-height-base;
15
+ white-space: nowrap;
16
+ transition: padding @effect-duration @easing-in-out;
17
+ zoom: 1;
18
+ &::after {
19
+ clear: both;
20
+ }
21
+ &::before,
22
+ &::after {
23
+ display: table;
24
+ content: ' ';
25
+ }
26
+ &:hover {
27
+ .@{prefix-cls}-arrow-show {
28
+ display: inline-block;
29
+ }
30
+ }
31
+ }
32
+ &-prev,
33
+ &-next {
34
+ position: absolute;
35
+ z-index: 1;
36
+ display: none;
37
+ line-height: 36px;
38
+ text-align: center;
39
+ background: @component-background;
40
+ border: none;
41
+ cursor: pointer;
42
+ transition: width @effect-duration @easing-in-out, opacity @effect-duration @easing-in-out,
43
+ color @effect-duration @easing-in-out;
44
+ user-select: none;
45
+ &-icon {
46
+ position: absolute;
47
+ top: 50%;
48
+ left: 50%;
49
+ font-weight: 700;
50
+ font-style: normal;
51
+ font-variant: normal;
52
+ line-height: inherit;
53
+ text-align: center;
54
+ text-transform: none;
55
+ vertical-align: baseline;
56
+ -webkit-transform: translate(-50%, -50%);
57
+ -ms-transform: translate(-50%, -50%);
58
+ transform: translate(-50%, -50%);
59
+ }
60
+ &::before {
61
+ display: block;
62
+ }
63
+ }
64
+
65
+ &-prev {
66
+ left: 0;
67
+ border-radius: @border-radius-base 0 0 @border-radius-base;
68
+ box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.16);
69
+ }
70
+ &-next {
71
+ right: 0;
72
+ border-radius: 0 @border-radius-base @border-radius-base 0;
73
+ box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.16);
74
+ }
75
+ &-btn-disabled {
76
+ color: #ccc;
77
+ cursor: not-allowed;
78
+ }
79
+ &-arrow-show {
80
+ display: none;
81
+ width: 32px;
82
+ height: 100%;
83
+ opacity: 1;
84
+ pointer-events: auto;
85
+ }
86
+ &-nav-wrap {
87
+ margin-bottom: -1px;
88
+ overflow: hidden;
89
+ }
90
+ &-nav-scroll {
91
+ overflow: hidden;
92
+ line-height: 1;
93
+ white-space: nowrap;
94
+ }
95
+ &-nav {
96
+ position: relative;
97
+ display: inline-block;
98
+ box-sizing: border-box;
99
+ margin: 0;
100
+ padding-left: 0;
101
+ list-style: none;
102
+ transition: transform @effect-duration @easing-in-out,
103
+ -webkit-transform @effect-duration @easing-in-out;
104
+ &::after {
105
+ clear: both;
106
+ }
107
+ &::before,
108
+ &::after {
109
+ display: table;
110
+ content: ' ';
111
+ }
112
+ }
113
+ }
@@ -17,9 +17,9 @@ require("./style/index.less");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
 
20
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
20
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
21
 
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
22
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
23
 
24
24
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
25
 
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-search/VtxCol.jsx"],"names":["VtxCol","props","addStyle","d","type","attr","children","sty","padding","overflow","textOverflow","whiteSpace","textAlign","cursor","render","length","map","item","propTypes","PropTypes","node"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;AACnB,MAAMC,QAAQ,GAAG,SAAXA,QAAW,CAAAC,CAAC,EAAI;AAAA;;AAClB,QAAI,OAAOA,CAAC,CAACC,IAAT,KAAkB,UAAlB,IAAgC,aAAAD,CAAC,CAACF,KAAF,sDAASI,IAAT,KAAiB,KAArD,EAA4D;AACxD,aAAOF,CAAP;AACH,KAFD,MAEO;AAAA;;AACH,UAAI,cAAAA,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,OAA/B,EAAwC;AACpC,4BACI;AAAK,UAAA,SAAS,EAAC;AAAf,wBACI;AAAK,UAAA,SAAS,EAAC;AAAf,WAAmCE,CAAC,CAACF,KAAF,CAAQK,QAAR,CAAiB,CAAjB,CAAnC,CADJ,eAEI;AAAK,UAAA,SAAS,EAAC;AAAf,WAAkCH,CAAC,CAACF,KAAF,CAAQK,QAAR,CAAiB,CAAjB,CAAlC,CAFJ,CADJ;AAMH;;AACD,UAAIC,GAAG,GAAG,EAAV;;AACA,UAAI,cAAAJ,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,WAA/B,EAA4C;AACxCM,QAAAA,GAAG,mCACIA,GADJ;AAECC,UAAAA,OAAO,EAAE,SAFV;AAGCC,UAAAA,QAAQ,EAAE,QAHX;AAICC,UAAAA,YAAY,EAAE,UAJf;AAKCC,UAAAA,UAAU,EAAE,QALb;AAMCC,UAAAA,SAAS,EAAE,OANZ;AAOCC,UAAAA,MAAM,EAAE;AAPT,UAAH;AASH;;AACD,UAAI,cAAAV,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,IAA/B,EAAqC;AACjCM,QAAAA,GAAG,mCACIA,GADJ;AAECC,UAAAA,OAAO,EAAE;AAFV,UAAH;AAIH;;AACD,0BACI;AAAK,QAAA,GAAG,EAAEL,CAAV;AAAa,QAAA,KAAK,oBAAOI,GAAP;AAAlB,SACK,cAAAJ,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,WAA3B,gBACG,gCAAC,mBAAD;AAAS,QAAA,SAAS,EAAC,UAAnB;AAA8B,QAAA,KAAK,EAAEE,CAAC,CAACF,KAAF,CAAQK;AAA7C,SACKH,CADL,CADH,GAKGA,CANR,CADJ;AAWH;AACJ,GA1CD;;AA2CA,MAAMW,MAAM,GAAG,SAATA,MAAS,CAAAX,CAAC,EAAI;AAChB,QAAIA,CAAC,IAAI,EAAT,EAAa,OAAO,EAAP;;AACb,QAAI,CAACA,CAAC,CAACY,MAAP,EAAe;AACX,aAAOb,QAAQ,CAACC,CAAD,CAAf;AACH;;AACD,WAAOA,CAAC,CAACa,GAAF,CAAM,UAAAC,IAAI,EAAI;AACjB,aAAOf,QAAQ,CAACe,IAAD,CAAf;AACH,KAFM,CAAP;AAGH,GARD;;AASA,sBAAO,gCAAC,eAAD,EAAShB,KAAT,EAAiBa,MAAM,CAACb,KAAK,CAACK,QAAP,CAAvB,CAAP;AACH;;AAEDN,MAAM,CAACkB,SAAP,GAAmB;AACfZ,EAAAA,QAAQ,EAAEa,sBAAUC;AADL,CAAnB;eAGepB,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Col from 'antd/lib/col';\nimport Tooltip from 'antd/lib/tooltip';\nimport './style/index.less';\n\nfunction VtxCol(props) {\n const addStyle = d => {\n if (typeof d.type === 'function' && d.props?.attr == 'row') {\n return d;\n } else {\n if (d.props?.['data-type'] === 'colon') {\n return (\n <div className=\"vtx-search-lists\">\n <div className=\"vtx-search-colon\">{d.props.children[0]}</div>\n <div className=\"vtx-search-list\">{d.props.children[1]}</div>\n </div>\n );\n }\n let sty = {};\n if (d.props?.['data-type'] === 'fieldName') {\n sty = {\n ...sty,\n padding: '8px 0px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n textAlign: 'right',\n cursor: 'default',\n };\n }\n if (d.props?.['data-type'] === 'bt') {\n sty = {\n ...sty,\n padding: '8px 0px',\n };\n }\n return (\n <div key={d} style={{ ...sty }}>\n {d.props?.['data-type'] === 'fieldName' ? (\n <Tooltip placement=\"rightTop\" title={d.props.children}>\n {d}\n </Tooltip>\n ) : (\n d\n )}\n </div>\n );\n }\n };\n const render = d => {\n if (d == '') return '';\n if (!d.length) {\n return addStyle(d);\n }\n return d.map(item => {\n return addStyle(item);\n });\n };\n return <Col {...props}>{render(props.children)}</Col>;\n}\n\nVtxCol.propTypes = {\n children: PropTypes.node,\n};\nexport default VtxCol;\n"],"file":"VtxCol.js"}
1
+ {"version":3,"file":"VtxCol.js","names":["VtxCol","props","addStyle","d","type","attr","children","sty","padding","overflow","textOverflow","whiteSpace","textAlign","cursor","render","length","map","item","propTypes","PropTypes","node"],"sources":["vtx-search/VtxCol.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Col from 'antd/lib/col';\r\nimport Tooltip from 'antd/lib/tooltip';\r\nimport './style/index.less';\r\n\r\nfunction VtxCol(props) {\r\n const addStyle = d => {\r\n if (typeof d.type === 'function' && d.props?.attr == 'row') {\r\n return d;\r\n } else {\r\n if (d.props?.['data-type'] === 'colon') {\r\n return (\r\n <div className=\"vtx-search-lists\">\r\n <div className=\"vtx-search-colon\">{d.props.children[0]}</div>\r\n <div className=\"vtx-search-list\">{d.props.children[1]}</div>\r\n </div>\r\n );\r\n }\r\n let sty = {};\r\n if (d.props?.['data-type'] === 'fieldName') {\r\n sty = {\r\n ...sty,\r\n padding: '8px 0px',\r\n overflow: 'hidden',\r\n textOverflow: 'ellipsis',\r\n whiteSpace: 'nowrap',\r\n textAlign: 'right',\r\n cursor: 'default',\r\n };\r\n }\r\n if (d.props?.['data-type'] === 'bt') {\r\n sty = {\r\n ...sty,\r\n padding: '8px 0px',\r\n };\r\n }\r\n return (\r\n <div key={d} style={{ ...sty }}>\r\n {d.props?.['data-type'] === 'fieldName' ? (\r\n <Tooltip placement=\"rightTop\" title={d.props.children}>\r\n {d}\r\n </Tooltip>\r\n ) : (\r\n d\r\n )}\r\n </div>\r\n );\r\n }\r\n };\r\n const render = d => {\r\n if (d == '') return '';\r\n if (!d.length) {\r\n return addStyle(d);\r\n }\r\n return d.map(item => {\r\n return addStyle(item);\r\n });\r\n };\r\n return <Col {...props}>{render(props.children)}</Col>;\r\n}\r\n\r\nVtxCol.propTypes = {\r\n children: PropTypes.node,\r\n};\r\nexport default VtxCol;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;EACnB,IAAMC,QAAQ,GAAG,SAAXA,QAAW,CAAAC,CAAC,EAAI;IAAA;;IAClB,IAAI,OAAOA,CAAC,CAACC,IAAT,KAAkB,UAAlB,IAAgC,aAAAD,CAAC,CAACF,KAAF,sDAASI,IAAT,KAAiB,KAArD,EAA4D;MACxD,OAAOF,CAAP;IACH,CAFD,MAEO;MAAA;;MACH,IAAI,cAAAA,CAAC,CAACF,KAAF,wDAAU,WAAV,OAA2B,OAA/B,EAAwC;QACpC,oBACI;UAAK,SAAS,EAAC;QAAf,gBACI;UAAK,SAAS,EAAC;QAAf,GAAmCE,CAAC,CAACF,KAAF,CAAQK,QAAR,CAAiB,CAAjB,CAAnC,CADJ,eAEI;UAAK,SAAS,EAAC;QAAf,GAAkCH,CAAC,CAACF,KAAF,CAAQK,QAAR,CAAiB,CAAjB,CAAlC,CAFJ,CADJ;MAMH;;MACD,IAAIC,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vtx-search/VtxRow.jsx"],"names":["VtxRow","props","children","gutter","type","align","justify","className","RowProps","propTypes","PropTypes","node","number","string"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;AACnB,MAAQC,QAAR,GAAkED,KAAlE,CAAQC,QAAR;AAAA,sBAAkED,KAAlE,CAAkBE,MAAlB;AAAA,MAAkBA,MAAlB,8BAA2B,CAA3B;AAAA,MAA8BC,IAA9B,GAAkEH,KAAlE,CAA8BG,IAA9B;AAAA,MAAoCC,KAApC,GAAkEJ,KAAlE,CAAoCI,KAApC;AAAA,MAA2CC,OAA3C,GAAkEL,KAAlE,CAA2CK,OAA3C;AAAA,MAAoDC,SAApD,GAAkEN,KAAlE,CAAoDM,SAApD;AACA,MAAMC,QAAQ,GAAG;AAAEL,IAAAA,MAAM,EAANA,MAAF;AAAUC,IAAAA,IAAI,EAAJA,IAAV;AAAgBC,IAAAA,KAAK,EAALA,KAAhB;AAAuBC,IAAAA,OAAO,EAAPA,OAAvB;AAAgCC,IAAAA,SAAS,EAATA;AAAhC,GAAjB;AACA,sBAAO,gCAAC,eAAD,EAASC,QAAT,EAAoBN,QAApB,CAAP;AACH;;AAEDF,MAAM,CAACS,SAAP,GAAmB;AACfP,EAAAA,QAAQ,EAAEQ,sBAAUC,IADL;AAEfR,EAAAA,MAAM,EAAEO,sBAAUE,MAFH;AAGfR,EAAAA,IAAI,EAAEM,sBAAUG,MAHD;AAIfR,EAAAA,KAAK,EAAEK,sBAAUE,MAJF;AAKfN,EAAAA,OAAO,EAAEI,sBAAUE,MALJ;AAMfL,EAAAA,SAAS,EAAEG,sBAAUG;AANN,CAAnB;eAQeb,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Row from 'antd/lib/row';\n\nfunction VtxRow(props) {\n const { children, gutter = 0, type, align, justify, className } = props;\n const RowProps = { gutter, type, align, justify, className };\n return <Row {...RowProps}>{children}</Row>;\n}\n\nVtxRow.propTypes = {\n children: PropTypes.node,\n gutter: PropTypes.number,\n type: PropTypes.string,\n align: PropTypes.number,\n justify: PropTypes.number,\n className: PropTypes.string,\n};\nexport default VtxRow;\n"],"file":"VtxRow.js"}
1
+ {"version":3,"file":"VtxRow.js","names":["VtxRow","props","children","gutter","type","align","justify","className","RowProps","propTypes","PropTypes","node","number","string"],"sources":["vtx-search/VtxRow.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Row from 'antd/lib/row';\r\n\r\nfunction VtxRow(props) {\r\n const { children, gutter = 0, type, align, justify, className } = props;\r\n const RowProps = { gutter, type, align, justify, className };\r\n return <Row {...RowProps}>{children}</Row>;\r\n}\r\n\r\nVtxRow.propTypes = {\r\n children: PropTypes.node,\r\n gutter: PropTypes.number,\r\n type: PropTypes.string,\r\n align: PropTypes.number,\r\n justify: PropTypes.number,\r\n className: PropTypes.string,\r\n};\r\nexport default VtxRow;\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;EACnB,IAAQC,QAAR,GAAkED,KAAlE,CAAQC,QAAR;EAAA,oBAAkED,KAAlE,CAAkBE,MAAlB;EAAA,IAAkBA,MAAlB,8BAA2B,CAA3B;EAAA,IAA8BC,IAA9B,GAAkEH,KAAlE,CAA8BG,IAA9B;EAAA,IAAoCC,KAApC,GAAkEJ,KAAlE,CAAoCI,KAApC;EAAA,IAA2CC,OAA3C,GAAkEL,KAAlE,CAA2CK,OAA3C;EAAA,IAAoDC,SAApD,GAAkEN,KAAlE,CAAoDM,SAApD;EACA,IAAMC,QAAQ,GAAG;IAAEL,MAAM,EAANA,MAAF;IAAUC,IAAI,EAAJA,IAAV;IAAgBC,KAAK,EAALA,KAAhB;IAAuBC,OAAO,EAAPA,OAAvB;IAAgCC,SAAS,EAATA;EAAhC,CAAjB;EACA,oBAAO,gCAAC,eAAD,EAASC,QAAT,EAAoBN,QAApB,CAAP;AACH;;AAEDF,MAAM,CAACS,SAAP,GAAmB;EACfP,QAAQ,EAAEQ,qBAAA,CAAUC,IADL;EAEfR,MAAM,EAAEO,qBAAA,CAAUE,MAFH;EAGfR,IAAI,EAAEM,qBAAA,CAAUG,MAHD;EAIfR,KAAK,EAAEK,qBAAA,CAAUE,MAJF;EAKfN,OAAO,EAAEI,qBAAA,CAAUE,MALJ;EAMfL,SAAS,EAAEG,qBAAA,CAAUG;AANN,CAAnB;eAQeb,M"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -37,9 +37,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
37
37
 
38
38
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
39
 
40
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
40
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
41
41
 
42
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
42
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
43
43
 
44
44
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45
45
 
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-search/index.jsx"],"names":["VtxSearch","props","layout","column","lg","md","sm","gridWeight","titles","labelWidth","wrapClassName","isConfirmButton","isClearButton","isMoreButton","confirmText","clearText","onConfirm","onClear","renderButtons","showAll","onToggleShow","vtxSearchRef","size","realColumn","StoreCtx","onCollapse","initStyle","height","weightiness","setWeightiness","style","setStyle","boxStyle","ref","newGridWeight","filter","item","newTitles","newChildren","Array","isArray","children","rowHeight","map","current","clientHeight","isShowMore","padding","analyzeChildren","data","cData","length","render","chData","forEach","ite","push","index","layout_h","d","i","textAlign","width","layout_v","gwt","paddingTop","propTypes","PropTypes","oneOf","objectOf","number","array","string","node","bool","func"],"mappings":";;;;;;;;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAASA,SAAT,CAAmBC,KAAnB,EAA0B;AACtB;AACA,sBAiBIA,KAjBJ,CACIC,MADJ;AAAA,MACIA,MADJ,8BACa,YADb;AAAA,sBAiBID,KAjBJ,CAEIE,MAFJ;AAAA,MAEIA,MAFJ,8BAEa;AAAEC,IAAAA,EAAE,EAAE,CAAN;AAASC,IAAAA,EAAE,EAAE,CAAb;AAAgBC,IAAAA,EAAE,EAAE;AAApB,GAFb;AAAA,0BAiBIL,KAjBJ,CAGIM,UAHJ;AAAA,MAGIA,UAHJ,kCAGiB,EAHjB;AAAA,sBAiBIN,KAjBJ,CAIIO,MAJJ;AAAA,MAIIA,MAJJ,8BAIa,EAJb;AAAA,0BAiBIP,KAjBJ,CAKIQ,UALJ;AAAA,MAKIA,UALJ,kCAKiB,EALjB;AAAA,MAMIC,aANJ,GAiBIT,KAjBJ,CAMIS,aANJ;AAAA,8BAiBIT,KAjBJ,CAOIU,eAPJ;AAAA,MAOIA,eAPJ,sCAOsB,IAPtB;AAAA,6BAiBIV,KAjBJ,CAQIW,aARJ;AAAA,MAQIA,aARJ,qCAQoB,IARpB;AAAA,4BAiBIX,KAjBJ,CASIY,YATJ;AAAA,MASIA,YATJ,oCASmB,IATnB;AAAA,2BAiBIZ,KAjBJ,CAUIa,WAVJ;AAAA,MAUIA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AAQ,EAAE0B,sBAAUM,IAPF;AAQlB9D,EAAAA,eAAe,EAAEwD,sBAAUO,IART;AASlB9D,EAAAA,aAAa,EAAEuD,sBAAUO,IATP;AAUlB7D,EAAAA,YAAY,EAAEsD,sBAAUO,IAVN;AAWlB1D,EAAAA,SAAS,EAAEmD,sBAAUQ,IAXH;AAYlB7D,EAAAA,WAAW,EAAEqD,sBAAUK,MAZL;AAalBvD,EAAAA,OAAO,EAAEkD,sBAAUQ,IAbD;AAclB5D,EAAAA,SAAS,EAAEoD,sBAAUK,MAdH;AAelBtD,EAAAA,aAAa,EAAEiD,sBAAUM,IAfP;AAgBlBtD,EAAAA,OAAO,EAAEgD,sBAAUO,IAhBD;AAiBlBtD,EAAAA,YAAY,EAAE+C,sBAAUQ;AAjBN,CAAtB;eAmBe3E,S","sourcesContent":["/*\n * @Author: chenxinyu\n * @Date: 2021-03-24 21:47:52\n * @LastEditors: your name\n * @LastEditTime: 2022-03-22 16:19:00\n * @Description: 查询布局组件\n * @FilePath: \\react-components\\components\\vtx-search\\index.jsx\n */\nimport React, { useState, useLayoutEffect, useRef, useContext } from 'react';\nimport useSetState from 'ahooks/es/useSetState';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Button from 'antd/lib/button';\nimport Tooltip from 'antd/lib/tooltip';\nimport UpOutlined from '@ant-design/icons/UpOutlined';\nimport DownOutlined from '@ant-design/icons/DownOutlined';\nimport VtxRow from './VtxRow';\nimport VtxCol from './VtxCol';\nimport { StoreCtx } from '../vtx-page-layout/TableLayout';\nimport useColSize from '../_util/useColSize';\n\nfunction VtxSearch(props) {\n //参数列表\n const {\n layout = 'horizontal',\n column = { lg: 4, md: 3, sm: 2 },\n gridWeight = [],\n titles = [],\n labelWidth = 84, //搜索条件名宽度\n wrapClassName,\n isConfirmButton = true, //是否显示确认按钮\n isClearButton = true, //是否显示清空按钮\n isMoreButton = true, //是否显示更多按钮\n confirmText = '查询', //确认按钮文本\n clearText = '重置', //情况按钮文本\n onConfirm, //确认按钮回调\n onClear, //清空按钮回调\n renderButtons, //自定义按钮块\n showAll = false, //是否展示所有查询条件\n onToggleShow,\n } = props;\n\n const vtxSearchRef = useRef();\n const size = useColSize(vtxSearchRef);\n const realColumn = column[size];\n\n const { onCollapse } = useContext(StoreCtx);\n\n const initStyle = {\n height: layout === 'horizontal' ? 48 : 68,\n };\n //初始化\n const [weightiness, setWeightiness] = useState(0);\n const [style, setStyle] = useSetState(initStyle);\n const { height, boxStyle } = style;\n const ref = useRef();\n\n const newGridWeight = gridWeight.filter(item => !!item);\n const newTitles = titles.filter(item => !!item);\n const newChildren = Array.isArray(props?.children)\n ? props?.children.filter(item => !!item)\n : props?.children;\n\n const rowHeight = layout === 'horizontal' ? 48 : 68;\n\n useLayoutEffect(() => {\n let weightiness = 0;\n newGridWeight.map(item => {\n weightiness += item;\n });\n\n setWeightiness(weightiness);\n if (showAll) {\n setStyle(\n weightiness > realColumn\n ? {\n height: ref.current.clientHeight,\n }\n : initStyle,\n );\n }\n }, [gridWeight]);\n\n const isShowMore = () => {\n const padding = 16;\n if (height > rowHeight) {\n setStyle(initStyle);\n if (onToggleShow && typeof onToggleShow === 'function') {\n onToggleShow(rowHeight + padding);\n }\n onCollapse && onCollapse(rowHeight + padding);\n } else {\n setStyle({\n height: ref.current.clientHeight,\n });\n if (onToggleShow && typeof onToggleShow === 'function') {\n onToggleShow(ref.current.clientHeight + padding);\n }\n onCollapse && onCollapse(ref.current.clientHeight + padding);\n }\n };\n\n const analyzeChildren = data => {\n let cData = data;\n if (!cData) return null;\n if (typeof data == 'function') {\n cData = data();\n }\n if (!cData.length) {\n return render(cData, 0);\n } else {\n let chData = [];\n cData.forEach(item => {\n if (typeof item == 'function') {\n let ite = item();\n if (Array.isArray(ite)) {\n chData.push(...ite);\n }\n chData.push(ite);\n return;\n }\n if (Array.isArray(item)) {\n chData.push(...item);\n return;\n }\n chData.push(item);\n });\n return chData.map((item, index) => {\n return render(item, index);\n });\n }\n };\n\n const layout_h = (d, i) => (\n <VtxRow gutter={2} attr=\"row\">\n <div className=\"vtx-search-label_h\" style={{ textAlign: 'right', width: labelWidth }}>\n <Tooltip title={newTitles[i]} placement=\"topRight\">\n {newTitles[i]}\n </Tooltip>\n </div>\n <div className=\"vtx-search-lists_h\" style={{ width: `calc(100% - ${labelWidth}px)` }}>\n <span className=\"vtx-search-list\">{d}</span>\n </div>\n </VtxRow>\n );\n\n const layout_v = (d, i) => (\n <VtxRow gutter={2} attr=\"row\" className=\"vtx-search-item__v\">\n <div className=\"vtx-search-label_v\">\n <Tooltip title={newTitles[i]} placement=\"topLeft\">\n {newTitles[i]}\n </Tooltip>\n </div>\n <div className=\"vtx-search-lists_v\">\n <span className=\"vtx-search-list\">{d}</span>\n </div>\n </VtxRow>\n );\n\n let render = (d, i) => {\n let gwt = newGridWeight[i];\n return (\n <VtxCol key={i} span={(24 / realColumn) * gwt} className=\"a\">\n {layout === 'horizontal' && layout_h(d, i)}\n {layout === 'vertical' && layout_v(d, i)}\n </VtxCol>\n );\n };\n\n return (\n <div\n className={classnames('vtx-search', wrapClassName)}\n style={{ height: `${height + 16}px`, ...boxStyle }}\n ref={vtxSearchRef}\n >\n <div className=\"vtx-search-element\" ref={ref}>\n <VtxRow gutter={24} attr=\"row\">\n {analyzeChildren(newChildren)}\n </VtxRow>\n </div>\n\n <div\n className=\"vtx-search-buttons\"\n style={{ paddingTop: layout === 'vertical' ? 28 : 0 }}\n >\n {renderButtons ? (\n <VtxRow gutter={8} attr=\"row\">\n {renderButtons}\n </VtxRow>\n ) : (\n <VtxRow gutter={8} attr=\"row\">\n {isConfirmButton && (\n <VtxCol span={9}>\n <span data-type={'bt'}>\n <Button\n style={{ width: '100%' }}\n type=\"primary\"\n onClick={onConfirm}\n >\n {confirmText}\n </Button>\n </span>\n </VtxCol>\n )}\n {isClearButton && (\n <VtxCol span={9}>\n <span data-type={'bt'}>\n <Button style={{ width: '100%' }} onClick={onClear}>\n {clearText}\n </Button>\n </span>\n </VtxCol>\n )}\n {weightiness > realColumn && isMoreButton && (\n <VtxCol span={6}>\n <div\n data-type={'bt'}\n onClick={() => isShowMore()}\n className=\"vtx-search-more\"\n >\n {height > rowHeight ? (\n <>\n 收起\n <UpOutlined />\n </>\n ) : (\n <>\n 展开\n <DownOutlined />\n </>\n )}\n </div>\n </VtxCol>\n )}\n </VtxRow>\n )}\n </div>\n </div>\n );\n}\n\nVtxSearch.propTypes = {\n layout: PropTypes.oneOf(['vertical', 'horizontal']),\n column: PropTypes.objectOf(PropTypes.number),\n gridWeight: PropTypes.array,\n titles: PropTypes.array,\n labelWidth: PropTypes.number,\n wrapClassName: PropTypes.string,\n children: PropTypes.node,\n isConfirmButton: PropTypes.bool,\n isClearButton: PropTypes.bool,\n isMoreButton: PropTypes.bool,\n onConfirm: PropTypes.func,\n confirmText: PropTypes.string,\n onClear: PropTypes.func,\n clearText: PropTypes.string,\n renderButtons: PropTypes.node,\n showAll: PropTypes.bool,\n onToggleShow: PropTypes.func,\n};\nexport default VtxSearch;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["VtxSearch","props","layout","column","lg","md","sm","gridWeight","titles","labelWidth","wrapClassName","isConfirmButton","isClearButton","isMoreButton","confirmText","clearText","onConfirm","onClear","renderButtons","showAll","onToggleShow","vtxSearchRef","useRef","size","useColSize","realColumn","useContext","StoreCtx","onCollapse","initStyle","height","useState","weightiness","setWeightiness","useSetState","style","setStyle","boxStyle","ref","newGridWeight","filter","item","newTitles","newChildren","Array","isArray","children","rowHeight","useLayoutEffect","map","current","clientHeight","isShowMore","padding","analyzeChildren","data","cData","length","render","chData","forEach","ite","push","index","layout_h","d","i","textAlign","width","layout_v","gwt","classnames","paddingTop","propTypes","PropTypes","oneOf","objectOf","number","array","string","node","bool","func"],"sources":["vtx-search/index.jsx"],"sourcesContent":["/*\r\n * @Author: chenxinyu\r\n * @Date: 2021-03-24 21:47:52\r\n * @LastEditors: your name\r\n * @LastEditTime: 2022-03-22 16:19:00\r\n * @Description: 查询布局组件\r\n * @FilePath: \\react-components\\components\\vtx-search\\index.jsx\r\n */\r\nimport React, { useState, useLayoutEffect, useRef, useContext } from 'react';\r\nimport useSetState from 'ahooks/es/useSetState';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport Button from 'antd/lib/button';\r\nimport Tooltip from 'antd/lib/tooltip';\r\nimport UpOutlined from '@ant-design/icons/UpOutlined';\r\nimport DownOutlined from '@ant-design/icons/DownOutlined';\r\nimport VtxRow from './VtxRow';\r\nimport VtxCol from './VtxCol';\r\nimport { StoreCtx } from '../vtx-page-layout/TableLayout';\r\nimport useColSize from '../_util/useColSize';\r\n\r\nfunction VtxSearch(props) {\r\n //参数列表\r\n const {\r\n layout = 'horizontal',\r\n column = { lg: 4, md: 3, sm: 2 },\r\n gridWeight = [],\r\n titles = [],\r\n labelWidth = 84, //搜索条件名宽度\r\n wrapClassName,\r\n isConfirmButton = true, //是否显示确认按钮\r\n isClearButton = true, //是否显示清空按钮\r\n isMoreButton = true, //是否显示更多按钮\r\n confirmText = '查询', //确认按钮文本\r\n clearText = '重置', //情况按钮文本\r\n onConfirm, //确认按钮回调\r\n onClear, //清空按钮回调\r\n renderButtons, //自定义按钮块\r\n showAll = false, //是否展示所有查询条件\r\n onToggleShow,\r\n } = props;\r\n\r\n const vtxSearchRef = useRef();\r\n const size = useColSize(vtxSearchRef);\r\n const realColumn = column[size];\r\n\r\n const { onCollapse } = useContext(StoreCtx);\r\n\r\n const initStyle = {\r\n height: layout === 'horizontal' ? 48 : 68,\r\n };\r\n //初始化\r\n const [weightiness, setWeightiness] = useState(0);\r\n const [style, setStyle] = useSetState(initStyle);\r\n const { height, boxStyle } = style;\r\n const ref = useRef();\r\n\r\n const newGridWeight = gridWeight.filter(item => !!item);\r\n const newTitles = titles.filter(item => !!item);\r\n const newChildren = Array.isArray(props?.children)\r\n ? props?.children.filter(item => !!item)\r\n : props?.children;\r\n\r\n const rowHeight = layout === 'horizontal' ? 48 : 68;\r\n\r\n useLayoutEffect(() => {\r\n let weightiness = 0;\r\n newGridWeight.map(item => {\r\n weightiness += item;\r\n });\r\n\r\n setWeightiness(weightiness);\r\n if (showAll) {\r\n setStyle(\r\n weightiness > realColumn\r\n ? {\r\n height: ref.current.clientHeight,\r\n }\r\n : initStyle,\r\n );\r\n }\r\n }, [gridWeight]);\r\n\r\n const isShowMore = () => {\r\n const padding = 16;\r\n if (height > rowHeight) {\r\n setStyle(initStyle);\r\n if (onToggleShow && typeof onToggleShow === 'function') {\r\n onToggleShow(rowHeight + padding);\r\n }\r\n onCollapse && onCollapse(rowHeight + padding);\r\n } else {\r\n setStyle({\r\n height: ref.current.clientHeight,\r\n });\r\n if (onToggleShow && typeof onToggleShow === 'function') {\r\n onToggleShow(ref.current.clientHeight + padding);\r\n }\r\n onCollapse && onCollapse(ref.current.clientHeight + padding);\r\n }\r\n };\r\n\r\n const analyzeChildren = data => {\r\n let cData = data;\r\n if (!cData) return null;\r\n if (typeof data == 'function') {\r\n cData = data();\r\n }\r\n if (!cData.length) {\r\n return render(cData, 0);\r\n } else {\r\n let chData = [];\r\n cData.forEach(item => {\r\n if (typeof item == 'function') {\r\n let ite = item();\r\n if (Array.isArray(ite)) {\r\n chData.push(...ite);\r\n }\r\n chData.push(ite);\r\n return;\r\n }\r\n if (Array.isArray(item)) {\r\n chData.push(...item);\r\n return;\r\n }\r\n chData.push(item);\r\n });\r\n return chData.map((item, index) => {\r\n return render(item, index);\r\n });\r\n }\r\n };\r\n\r\n const layout_h = (d, i) => (\r\n <VtxRow gutter={2} attr=\"row\">\r\n <div className=\"vtx-search-label_h\" style={{ textAlign: 'right', width: labelWidth }}>\r\n <Tooltip title={newTitles[i]} placement=\"topRight\">\r\n {newTitles[i]}\r\n </Tooltip>\r\n </div>\r\n <div className=\"vtx-search-lists_h\" style={{ width: `calc(100% - ${labelWidth}px)` }}>\r\n <span className=\"vtx-search-list\">{d}</span>\r\n </div>\r\n </VtxRow>\r\n );\r\n\r\n const layout_v = (d, i) => (\r\n <VtxRow gutter={2} attr=\"row\" className=\"vtx-search-item__v\">\r\n <div className=\"vtx-search-label_v\">\r\n <Tooltip title={newTitles[i]} placement=\"topLeft\">\r\n {newTitles[i]}\r\n </Tooltip>\r\n </div>\r\n <div className=\"vtx-search-lists_v\">\r\n <span className=\"vtx-search-list\">{d}</span>\r\n </div>\r\n </VtxRow>\r\n );\r\n\r\n let render = (d, i) => {\r\n let gwt = newGridWeight[i];\r\n return (\r\n <VtxCol key={i} span={(24 / realColumn) * gwt} className=\"a\">\r\n {layout === 'horizontal' && layout_h(d, i)}\r\n {layout === 'vertical' && layout_v(d, i)}\r\n </VtxCol>\r\n );\r\n };\r\n\r\n return (\r\n <div\r\n className={classnames('vtx-search', wrapClassName)}\r\n style={{ height: `${height + 16}px`, ...boxStyle }}\r\n ref={vtxSearchRef}\r\n >\r\n <div className=\"vtx-search-element\" ref={ref}>\r\n <VtxRow gutter={24} attr=\"row\">\r\n {analyzeChildren(newChildren)}\r\n </VtxRow>\r\n </div>\r\n\r\n <div\r\n className=\"vtx-search-buttons\"\r\n style={{ paddingTop: layout === 'vertical' ? 28 : 0 }}\r\n >\r\n {renderButtons ? (\r\n <VtxRow gutter={8} attr=\"row\">\r\n {renderButtons}\r\n </VtxRow>\r\n ) : (\r\n <VtxRow gutter={8} attr=\"row\">\r\n {isConfirmButton && (\r\n <VtxCol span={9}>\r\n <span data-type={'bt'}>\r\n <Button\r\n style={{ width: '100%' }}\r\n type=\"primary\"\r\n onClick={onConfirm}\r\n >\r\n {confirmText}\r\n </Button>\r\n </span>\r\n </VtxCol>\r\n )}\r\n {isClearButton && (\r\n <VtxCol span={9}>\r\n <span data-type={'bt'}>\r\n <Button style={{ width: '100%' }} onClick={onClear}>\r\n {clearText}\r\n </Button>\r\n </span>\r\n </VtxCol>\r\n )}\r\n {weightiness > realColumn && isMoreButton && (\r\n <VtxCol span={6}>\r\n <div\r\n data-type={'bt'}\r\n onClick={() => isShowMore()}\r\n className=\"vtx-search-more\"\r\n >\r\n {height > rowHeight ? (\r\n <>\r\n 收起\r\n <UpOutlined />\r\n </>\r\n ) : (\r\n <>\r\n 展开\r\n <DownOutlined />\r\n </>\r\n )}\r\n </div>\r\n </VtxCol>\r\n )}\r\n </VtxRow>\r\n )}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nVtxSearch.propTypes = {\r\n layout: PropTypes.oneOf(['vertical', 'horizontal']),\r\n column: PropTypes.objectOf(PropTypes.number),\r\n gridWeight: PropTypes.array,\r\n titles: PropTypes.array,\r\n labelWidth: PropTypes.number,\r\n wrapClassName: PropTypes.string,\r\n children: PropTypes.node,\r\n isConfirmButton: PropTypes.bool,\r\n isClearButton: PropTypes.bool,\r\n isMoreButton: PropTypes.bool,\r\n onConfirm: PropTypes.func,\r\n confirmText: PropTypes.string,\r\n onClear: PropTypes.func,\r\n clearText: PropTypes.string,\r\n renderButtons: PropTypes.node,\r\n showAll: PropTypes.bool,\r\n onToggleShow: PropTypes.func,\r\n};\r\nexport default VtxSearch;\r\n"],"mappings":";;;;;;;;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAASA,SAAT,CAAmBC,KAAnB,EAA0B;EACtB;EACA,oBAiBIA,KAjBJ,CACIC,MADJ;EAAA,IACIA,MADJ,8BACa,YADb;EAAA,oBAiBID,KAjBJ,CAEIE,MAFJ;EAAA,IAEIA,MAFJ,8BAEa;IAAEC,EAAE,EAAE,CAAN;IAASC,EAAE,EAAE,CAAb;IAAgBC,EAAE,EAAE;EAApB,CAFb;EAAA,wBAiBIL,KAjBJ,CAGIM,UAHJ;EAAA,IAGIA,UAHJ,kCAGiB,EAHjB;EAAA,oBAiBIN,KAjBJ,CAIIO,MAJJ;EAAA,IAIIA,MAJJ,8BAIa,EAJb;EAAA,wBAiBIP,KAjBJ,CAKIQ,UALJ;EAAA,IAKIA,UALJ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AAE4B,qBAAA,CAAUM,IAPF;EAQlBrE,eAAe,EAAE+D,qBAAA,CAAUO,IART;EASlBrE,aAAa,EAAE8D,qBAAA,CAAUO,IATP;EAUlBpE,YAAY,EAAE6D,qBAAA,CAAUO,IAVN;EAWlBjE,SAAS,EAAE0D,qBAAA,CAAUQ,IAXH;EAYlBpE,WAAW,EAAE4D,qBAAA,CAAUK,MAZL;EAalB9D,OAAO,EAAEyD,qBAAA,CAAUQ,IAbD;EAclBnE,SAAS,EAAE2D,qBAAA,CAAUK,MAdH;EAelB7D,aAAa,EAAEwD,qBAAA,CAAUM,IAfP;EAgBlB7D,OAAO,EAAEuD,qBAAA,CAAUO,IAhBD;EAiBlB7D,YAAY,EAAEsD,qBAAA,CAAUQ;AAjBN,CAAtB;eAmBelF,S"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-search/style/index.js"],"names":[],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["import 'antd/lib/row/style';\nimport 'antd/lib/col/style';\nimport 'antd/lib/tooltip/style';\nimport 'antd/lib/button/style';\nimport './index.less';\n"],"file":"css.js"}
1
+ {"version":3,"file":"css.js","names":[],"sources":["vtx-search/style/index.js"],"sourcesContent":["import 'antd/lib/row/style';\r\nimport 'antd/lib/col/style';\r\nimport 'antd/lib/tooltip/style';\r\nimport 'antd/lib/button/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["vtx-search/style/index.js"],"names":[],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["import 'antd/lib/row/style';\nimport 'antd/lib/col/style';\nimport 'antd/lib/tooltip/style';\nimport 'antd/lib/button/style';\nimport './index.less';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["vtx-search/style/index.js"],"sourcesContent":["import 'antd/lib/row/style';\r\nimport 'antd/lib/col/style';\r\nimport 'antd/lib/tooltip/style';\r\nimport 'antd/lib/button/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA"}
@@ -1,83 +1,83 @@
1
- @import (reference) '~antd/lib/style/themes/index.less';
2
-
3
- @prefix-cls: vtx-search;
4
- @toggleSpeed: 0.3s; // 展开速度
5
- @buttons-width: 200px;
6
-
7
- .@{prefix-cls} {
8
- position: relative;
9
- z-index: 9;
10
- padding-top: 8px;
11
- padding-right: 24px;
12
- padding-bottom: 8px;
13
- padding-left: 24px;
14
- overflow: hidden;
15
- background: @component-background;
16
- transition-duration: @toggleSpeed;
17
- transition-property: height;
18
- &-label_h {
19
- display: inline-block;
20
- overflow: hidden;
21
- line-height: 48px;
22
- white-space: nowrap;
23
- text-overflow: ellipsis;
24
- vertical-align: top;
25
- }
26
- &-lists_h {
27
- position: relative;
28
- display: inline-block;
29
- box-sizing: border-box;
30
- height: 48px;
31
- padding-top: 8px;
32
- padding-bottom: 8px;
33
- padding-left: 12px;
34
- line-height: @line-height-base;
35
- vertical-align: top;
36
- }
37
- .vtx-search-item__v {
38
- flex-direction: column;
39
- padding: 8px 0;
40
- }
41
- &-label_v {
42
- overflow: hidden;
43
- line-height: 21px;
44
- white-space: nowrap;
45
- text-overflow: ellipsis;
46
- vertical-align: top;
47
- }
48
- &-lists_v {
49
- position: relative;
50
- box-sizing: border-box;
51
- height: 42px;
52
- padding-top: 8px;
53
- padding-bottom: 8px;
54
- line-height: 32px;
55
- vertical-align: top;
56
- }
57
- &-list {
58
- width: 100%;
59
- }
60
- &-element {
61
- display: inline-block;
62
- /* stylelint-disable */
63
- width: calc(100% - @buttons-width - 24px);
64
- margin-right: 24px;
65
- }
66
- &-buttons {
67
- display: inline-block;
68
- box-sizing: border-box;
69
- width: @buttons-width;
70
- height: 100%;
71
- vertical-align: top;
72
- }
73
- .vtx-search-more {
74
- height: 32px;
75
- color: @primary-color;
76
- line-height: 32px;
77
- cursor: pointer;
78
- }
79
- }
80
-
81
- .vtx-row {
82
- overflow: hidden;
83
- }
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+
3
+ @prefix-cls: vtx-search;
4
+ @toggleSpeed: 0.3s; // 展开速度
5
+ @buttons-width: 200px;
6
+
7
+ .@{prefix-cls} {
8
+ position: relative;
9
+ z-index: 9;
10
+ padding-top: 8px;
11
+ padding-right: 24px;
12
+ padding-bottom: 8px;
13
+ padding-left: 24px;
14
+ overflow: hidden;
15
+ background: @component-background;
16
+ transition-duration: @toggleSpeed;
17
+ transition-property: height;
18
+ &-label_h {
19
+ display: inline-block;
20
+ overflow: hidden;
21
+ line-height: 48px;
22
+ white-space: nowrap;
23
+ text-overflow: ellipsis;
24
+ vertical-align: top;
25
+ }
26
+ &-lists_h {
27
+ position: relative;
28
+ display: inline-block;
29
+ box-sizing: border-box;
30
+ height: 48px;
31
+ padding-top: 8px;
32
+ padding-bottom: 8px;
33
+ padding-left: 12px;
34
+ line-height: @line-height-base;
35
+ vertical-align: top;
36
+ }
37
+ .vtx-search-item__v {
38
+ flex-direction: column;
39
+ padding: 8px 0;
40
+ }
41
+ &-label_v {
42
+ overflow: hidden;
43
+ line-height: 21px;
44
+ white-space: nowrap;
45
+ text-overflow: ellipsis;
46
+ vertical-align: top;
47
+ }
48
+ &-lists_v {
49
+ position: relative;
50
+ box-sizing: border-box;
51
+ height: 42px;
52
+ padding-top: 8px;
53
+ padding-bottom: 8px;
54
+ line-height: 32px;
55
+ vertical-align: top;
56
+ }
57
+ &-list {
58
+ width: 100%;
59
+ }
60
+ &-element {
61
+ display: inline-block;
62
+ /* stylelint-disable */
63
+ width: calc(100% - @buttons-width - 24px);
64
+ margin-right: 24px;
65
+ }
66
+ &-buttons {
67
+ display: inline-block;
68
+ box-sizing: border-box;
69
+ width: @buttons-width;
70
+ height: 100%;
71
+ vertical-align: top;
72
+ }
73
+ .vtx-search-more {
74
+ height: 32px;
75
+ color: @primary-color;
76
+ line-height: 32px;
77
+ cursor: pointer;
78
+ }
79
+ }
80
+
81
+ .vtx-row {
82
+ overflow: hidden;
83
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -27,7 +27,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
28
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
29
 
30
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
30
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
31
 
32
32
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
33