@teamix/pro 1.2.10 → 1.2.14

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 (239) hide show
  1. package/dist/212.js +798 -766
  2. package/dist/pro.css +1 -1
  3. package/dist/pro.js +2892 -2305
  4. package/dist/pro.min.css +1 -1
  5. package/dist/pro.min.js +1 -1
  6. package/es/actions/base.d.ts +16 -6
  7. package/es/actions/base.js +66 -12
  8. package/es/actions/confirm.d.ts +1 -1
  9. package/es/actions/danger-confirm.d.ts +1 -1
  10. package/es/actions/dialog-component.d.ts +1 -1
  11. package/es/actions/dialog-component.js +2 -2
  12. package/es/actions/dialog-form.d.ts +1 -1
  13. package/es/actions/dialog-form.js +4 -4
  14. package/es/actions/dialog-info.d.ts +1 -1
  15. package/es/actions/dialog-table.d.ts +1 -1
  16. package/es/actions/dialog.d.ts +6 -2
  17. package/es/actions/dialog.js +5 -5
  18. package/es/actions/drawer-form.d.ts +1 -1
  19. package/es/actions/drawer-info.d.ts +1 -1
  20. package/es/actions/drawer-table.d.ts +1 -1
  21. package/es/actions/drawer.d.ts +1 -1
  22. package/es/actions/error.d.ts +1 -1
  23. package/es/actions/index.js +11 -7
  24. package/es/actions/index.scss +14 -0
  25. package/es/actions/link.d.ts +2 -2
  26. package/es/actions/link.js +4 -4
  27. package/es/actions/notice.d.ts +1 -1
  28. package/es/actions/request.d.ts +1 -1
  29. package/es/actions/request.js +4 -4
  30. package/es/actions/utils.js +2 -2
  31. package/es/card/card-container.js +2 -2
  32. package/es/card/divider.js +2 -2
  33. package/es/card/index.d.ts +9 -0
  34. package/es/card/index.js +21 -7
  35. package/es/card/index.scss +19 -0
  36. package/es/card/selectable.js +2 -2
  37. package/es/card/tab.d.ts +6 -0
  38. package/es/card/tab.js +27 -0
  39. package/es/form/Components/Editable/index.js +2 -2
  40. package/es/form/Components/FormGroup/index.js +2 -2
  41. package/es/form/Components/LightFilter/componentMap.d.ts +2 -0
  42. package/es/form/Components/LightFilter/componentMap.js +5 -0
  43. package/es/form/Components/LightFilter/index.d.ts +15 -0
  44. package/es/form/Components/{QueryFilter → LightFilter}/index.js +46 -44
  45. package/es/form/Components/LightFilter/index.scss +74 -0
  46. package/es/form/Components/ProField/index.js +2 -2
  47. package/es/form/Components/Text/index.js +2 -2
  48. package/es/form/Filter/index.d.ts +2 -5
  49. package/es/form/Filter/index.js +5 -46
  50. package/es/form/Filter/index.scss +25 -0
  51. package/es/form/Filter/index2.d.ts +8 -0
  52. package/es/form/Filter/index2.js +370 -0
  53. package/es/form/Filter/index2.scss +73 -0
  54. package/es/form/ProForm/index.js +5 -25
  55. package/es/form/ProForm/index.scss +10 -28
  56. package/es/form/ProForm/useAutoSubmit.js +2 -2
  57. package/es/form/ProForm/useFieldRequest.js +2 -2
  58. package/es/form/ProForm/useFormDisplayValues.d.ts +3 -5
  59. package/es/form/ProForm/useFormDisplayValues.js +79 -42
  60. package/es/form/ProForm/useInitialRequest.js +2 -2
  61. package/es/form/SchemaForm/adapterType.js +1 -0
  62. package/es/form/SchemaForm/index.js +11 -10
  63. package/es/form/SchemaForm/initializeArrayCards.js +2 -2
  64. package/es/form/SchemaForm/initializeArrayCollapse.js +2 -2
  65. package/es/form/SchemaForm/initializeArrayItems.js +2 -2
  66. package/es/form/SchemaForm/initializeArrayTable.js +2 -2
  67. package/es/form/SchemaForm/initializeFormButton.js +2 -2
  68. package/es/form/SchemaForm/initializeFormCollapse.js +2 -2
  69. package/es/form/SchemaForm/initializeFormGroup.js +2 -2
  70. package/es/form/SchemaForm/initializeFormStep.js +2 -2
  71. package/es/form/SchemaForm/initializeFormTab.js +2 -2
  72. package/es/form/SchemaForm/initializeReactions.js +2 -2
  73. package/es/form/SchemaForm/initializeRules.js +2 -2
  74. package/es/form/SchemaForm/reactions.js +2 -2
  75. package/es/form/fieldTypeMap.js +1 -0
  76. package/es/form/global.scss +1 -0
  77. package/es/form/index.d.ts +2 -1
  78. package/es/form/index.js +5 -4
  79. package/es/form/typing.d.ts +3 -0
  80. package/es/form/utils.js +2 -2
  81. package/es/form/warning.js +2 -2
  82. package/es/index.d.ts +1 -1
  83. package/es/index.js +1 -1
  84. package/es/info/components/InfoGroup/index.js +2 -2
  85. package/es/info/components/InfoValueItem/index.js +2 -2
  86. package/es/info/components/ProInfoItem/index.js +3 -1
  87. package/es/info/components/tableInfo/index.js +2 -2
  88. package/es/info/index.js +2 -2
  89. package/es/info/utils/index.js +2 -2
  90. package/es/nocode/pages/playground.js +2 -2
  91. package/es/nocode/pages/renderer.d.ts +2 -2
  92. package/es/nocode/pages/renderer.js +5 -5
  93. package/es/nocode/playground.js +2 -2
  94. package/es/page-header/index.d.ts +19 -11
  95. package/es/page-header/index.js +24 -49
  96. package/es/page-header/index.scss +0 -11
  97. package/es/sidebar/components/sidebar-container/index.js +2 -2
  98. package/es/sidebar/components/tree/index.js +2 -2
  99. package/es/sidebar/index.js +2 -2
  100. package/es/table/components/Filter/index.js +13 -11
  101. package/es/table/components/Filter/index.scss +7 -3
  102. package/es/table/components/Layout/index.js +13 -4
  103. package/es/table/components/QuickAction/index.js +3 -3
  104. package/es/table/components/ToolBar/FilterColumnIcon.js +2 -2
  105. package/es/table/components/ToolBar/index.js +2 -2
  106. package/es/table/index.js +24 -14
  107. package/es/table/typing.d.ts +6 -0
  108. package/es/table/utils/columnRender.js +40 -3
  109. package/es/table/utils/genProColumnToColumn.js +2 -2
  110. package/es/table/utils/index.js +17 -3
  111. package/es/table/utils/useTableSelection.js +2 -2
  112. package/es/templates/List/index.js +2 -2
  113. package/es/utils/message.js +2 -2
  114. package/lib/actions/base.d.ts +16 -6
  115. package/lib/actions/base.js +67 -12
  116. package/lib/actions/confirm.d.ts +1 -1
  117. package/lib/actions/danger-confirm.d.ts +1 -1
  118. package/lib/actions/dialog-component.d.ts +1 -1
  119. package/lib/actions/dialog-component.js +2 -2
  120. package/lib/actions/dialog-form.d.ts +1 -1
  121. package/lib/actions/dialog-form.js +5 -5
  122. package/lib/actions/dialog-info.d.ts +1 -1
  123. package/lib/actions/dialog-table.d.ts +1 -1
  124. package/lib/actions/dialog.d.ts +6 -2
  125. package/lib/actions/dialog.js +6 -6
  126. package/lib/actions/drawer-form.d.ts +1 -1
  127. package/lib/actions/drawer-info.d.ts +1 -1
  128. package/lib/actions/drawer-table.d.ts +1 -1
  129. package/lib/actions/drawer.d.ts +1 -1
  130. package/lib/actions/error.d.ts +1 -1
  131. package/lib/actions/index.js +11 -7
  132. package/lib/actions/index.scss +14 -0
  133. package/lib/actions/link.d.ts +2 -2
  134. package/lib/actions/link.js +4 -4
  135. package/lib/actions/notice.d.ts +1 -1
  136. package/lib/actions/request.d.ts +1 -1
  137. package/lib/actions/request.js +4 -4
  138. package/lib/actions/utils.js +2 -2
  139. package/lib/card/card-container.js +2 -2
  140. package/lib/card/divider.js +2 -2
  141. package/lib/card/index.d.ts +9 -0
  142. package/lib/card/index.js +22 -6
  143. package/lib/card/index.scss +19 -0
  144. package/lib/card/selectable.js +2 -2
  145. package/lib/card/tab.d.ts +6 -0
  146. package/lib/card/tab.js +39 -0
  147. package/lib/field/index.js +1 -1
  148. package/lib/form/Components/Editable/index.js +3 -3
  149. package/lib/form/Components/FormGroup/index.js +2 -2
  150. package/lib/form/Components/LightFilter/componentMap.d.ts +2 -0
  151. package/lib/form/Components/LightFilter/componentMap.js +12 -0
  152. package/lib/form/Components/LightFilter/index.d.ts +15 -0
  153. package/lib/form/Components/{QueryFilter → LightFilter}/index.js +51 -44
  154. package/lib/form/Components/LightFilter/index.scss +74 -0
  155. package/lib/form/Components/ProField/index.js +2 -2
  156. package/lib/form/Components/Text/index.js +2 -2
  157. package/lib/form/Filter/index.d.ts +2 -5
  158. package/lib/form/Filter/index.js +7 -48
  159. package/lib/form/Filter/index.scss +25 -0
  160. package/lib/form/Filter/index2.d.ts +8 -0
  161. package/lib/form/Filter/index2.js +396 -0
  162. package/lib/form/Filter/index2.scss +73 -0
  163. package/lib/form/ProForm/index.js +6 -26
  164. package/lib/form/ProForm/index.scss +10 -28
  165. package/lib/form/ProForm/useAutoSubmit.js +2 -2
  166. package/lib/form/ProForm/useFieldRequest.js +2 -2
  167. package/lib/form/ProForm/useFormDisplayValues.d.ts +3 -5
  168. package/lib/form/ProForm/useFormDisplayValues.js +83 -44
  169. package/lib/form/ProForm/useInitialRequest.js +2 -2
  170. package/lib/form/SchemaForm/adapterType.js +1 -0
  171. package/lib/form/SchemaForm/index.js +12 -11
  172. package/lib/form/SchemaForm/initializeArrayCards.js +2 -2
  173. package/lib/form/SchemaForm/initializeArrayCollapse.js +2 -2
  174. package/lib/form/SchemaForm/initializeArrayItems.js +2 -2
  175. package/lib/form/SchemaForm/initializeArrayTable.js +2 -2
  176. package/lib/form/SchemaForm/initializeFormButton.js +2 -2
  177. package/lib/form/SchemaForm/initializeFormCollapse.js +2 -2
  178. package/lib/form/SchemaForm/initializeFormGroup.js +2 -2
  179. package/lib/form/SchemaForm/initializeFormStep.js +2 -2
  180. package/lib/form/SchemaForm/initializeFormTab.js +2 -2
  181. package/lib/form/SchemaForm/initializeReactions.js +2 -2
  182. package/lib/form/SchemaForm/initializeRules.js +2 -2
  183. package/lib/form/SchemaForm/reactions.js +2 -2
  184. package/lib/form/fieldTypeMap.js +1 -0
  185. package/lib/form/global.scss +1 -0
  186. package/lib/form/index.d.ts +2 -1
  187. package/lib/form/index.js +8 -6
  188. package/lib/form/typing.d.ts +3 -0
  189. package/lib/form/utils.js +2 -2
  190. package/lib/form/warning.js +2 -2
  191. package/lib/hooks/index.js +1 -1
  192. package/lib/index.d.ts +1 -1
  193. package/lib/index.js +2 -2
  194. package/lib/info/components/InfoGroup/index.js +3 -3
  195. package/lib/info/components/InfoValueItem/index.js +3 -3
  196. package/lib/info/components/ProInfoItem/index.js +3 -1
  197. package/lib/info/components/tableInfo/index.js +3 -3
  198. package/lib/info/index.js +3 -3
  199. package/lib/info/utils/index.js +2 -2
  200. package/lib/nocode/configurators/index.js +1 -1
  201. package/lib/nocode/pages/playground.js +3 -3
  202. package/lib/nocode/pages/renderer.d.ts +2 -2
  203. package/lib/nocode/pages/renderer.js +5 -5
  204. package/lib/nocode/playground.js +3 -3
  205. package/lib/page-container/index.js +1 -1
  206. package/lib/page-header/index.d.ts +19 -11
  207. package/lib/page-header/index.js +22 -47
  208. package/lib/page-header/index.scss +0 -11
  209. package/lib/sidebar/components/sidebar-container/index.js +2 -2
  210. package/lib/sidebar/components/tree/index.js +3 -3
  211. package/lib/sidebar/index.js +3 -3
  212. package/lib/skeleton/index.js +1 -1
  213. package/lib/table/components/Filter/index.js +13 -11
  214. package/lib/table/components/Filter/index.scss +7 -3
  215. package/lib/table/components/Layout/index.js +13 -4
  216. package/lib/table/components/QuickAction/index.js +3 -3
  217. package/lib/table/components/ToolBar/DensityIcon.js +1 -1
  218. package/lib/table/components/ToolBar/FilterColumnIcon.js +3 -3
  219. package/lib/table/components/ToolBar/FullScreenIcon.js +1 -1
  220. package/lib/table/components/ToolBar/Fullscreen.js +1 -1
  221. package/lib/table/components/ToolBar/index.js +2 -2
  222. package/lib/table/index.js +23 -13
  223. package/lib/table/typing.d.ts +6 -0
  224. package/lib/table/utils/columnRender.js +40 -3
  225. package/lib/table/utils/genProColumnToColumn.js +2 -2
  226. package/lib/table/utils/index.js +17 -3
  227. package/lib/table/utils/useTableSelection.js +2 -2
  228. package/lib/templates/List/index.js +3 -3
  229. package/lib/utils/index.js +1 -1
  230. package/lib/utils/message.js +2 -2
  231. package/package.json +4 -4
  232. package/es/form/Components/Query/index.d.ts +0 -4
  233. package/es/form/Components/Query/index.js +0 -70
  234. package/es/form/Components/Query/index.scss +0 -85
  235. package/es/form/Components/QueryFilter/index.d.ts +0 -3
  236. package/lib/form/Components/Query/index.d.ts +0 -4
  237. package/lib/form/Components/Query/index.js +0 -91
  238. package/lib/form/Components/Query/index.scss +0 -85
  239. package/lib/form/Components/QueryFilter/index.d.ts +0 -3
@@ -1,70 +0,0 @@
1
- import React, { memo } from 'react';
2
- import { Tag, Select } from '@alicloudfe/components';
3
- import cls from 'classnames';
4
- import { usePrefixCls, isArr, isObj } from '@teamix/utils';
5
- import './index.scss';
6
- var TagGroup = Tag.Group,
7
- CloseableTag = Tag.Closeable;
8
- var TagText = /*#__PURE__*/memo(function (_ref) {
9
- var tagPrefixCls = _ref.tagPrefixCls,
10
- title = _ref.title,
11
- content = _ref.content;
12
- var prefixCls = "".concat(tagPrefixCls, "-tag");
13
- return /*#__PURE__*/React.createElement("span", {
14
- className: prefixCls
15
- }, /*#__PURE__*/React.createElement("span", {
16
- className: "".concat(prefixCls, "-title")
17
- }, title), /*#__PURE__*/React.createElement("span", {
18
- className: "".concat(prefixCls, "-content")
19
- }, function () {
20
- if (isArr(content)) {
21
- return content.join(', ');
22
- }
23
-
24
- if (isObj(content)) {
25
- return /*#__PURE__*/React.createElement(TagText, {
26
- tagPrefixCls: tagPrefixCls,
27
- title: content.title,
28
- content: content.content
29
- });
30
- }
31
-
32
- return content;
33
- }()));
34
- });
35
- var Query = /*#__PURE__*/memo(function (_ref2) {
36
- var size = _ref2.size,
37
- tags = _ref2.tags,
38
- filterItems = _ref2.filterItems,
39
- onFilterItemsChange = _ref2.onFilterItemsChange,
40
- children = _ref2.children;
41
- var defaultCls = usePrefixCls();
42
- var prefixCls = usePrefixCls('filter');
43
- return /*#__PURE__*/React.createElement("span", {
44
- className: cls(prefixCls, "".concat(defaultCls).concat(size))
45
- }, /*#__PURE__*/React.createElement(TagGroup, null, tags === null || tags === void 0 ? void 0 : tags.map(function (_ref3) {
46
- var key = _ref3.key,
47
- title = _ref3.title,
48
- content = _ref3.content;
49
- return /*#__PURE__*/React.createElement(CloseableTag, {
50
- key: key,
51
- onClose: function onClose() {
52
- console.log('onClose', key);
53
- return false;
54
- }
55
- }, /*#__PURE__*/React.createElement(TagText, {
56
- tagPrefixCls: prefixCls,
57
- title: title,
58
- content: content
59
- }));
60
- })), /*#__PURE__*/React.createElement(Select, {
61
- className: "".concat(prefixCls, "-select"),
62
- placeholder: "\u8BF7\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6",
63
- dataSource: filterItems,
64
- onChange: onFilterItemsChange
65
- }), children);
66
- });
67
- Query.defaultProps = {
68
- size: 'medium'
69
- };
70
- export default Query;
@@ -1,85 +0,0 @@
1
- @import '../../global.scss';
2
-
3
- // Query样式
4
- .#{$css-prefix}filter {
5
- display: flex;
6
- width: 100%;
7
- box-sizing: border-box;
8
-
9
- border-color: var(--input-focus-border-color, #ababab);
10
- border-style: solid;
11
- transition: box-shadow var(--active-transition);
12
- &:hover {
13
- box-shadow: var(--active-shadow);
14
- }
15
- .#{$css-prefix}filter-tag {
16
- .#{$css-prefix}filter-tag-title {
17
- margin-right: 8px;
18
- color: var(--color-text1-8, #848484);
19
- }
20
- .#{$css-prefix}filter-tag-content {
21
- color: var(--color-text1-3, #333333);
22
- .#{$css-prefix}filter-tag-title {
23
- margin-right: 0;
24
- color: var(--color-text1-3, #333333);
25
- font-weight: bold;
26
- &::after {
27
- position: relative;
28
- top: -0.5px;
29
- content: ':';
30
- margin: 0 4px 0 4px;
31
- }
32
- }
33
- }
34
- }
35
-
36
- // 表单项选择模块
37
- .#{$css-prefix}filter-select {
38
- min-width: auto;
39
- .#{$css-prefix}input {
40
- min-width: auto;
41
- border: 0;
42
- .#{$css-prefix}input-text-field {
43
- padding-right: 0;
44
- }
45
- }
46
- .#{$css-prefix}input.#{$css-prefix}medium {
47
- height: $noborder-font-weight-medium;
48
- }
49
- .#{$css-prefix}input-control {
50
- display: none;
51
- }
52
- }
53
- }
54
-
55
- // Query尺寸
56
- .#{$css-prefix}filter.#{$css-prefix}medium {
57
- padding: 0 8px;
58
- height: var(--search-normal-normal-m-height, 32px);
59
- border-width: var(--search-normal-normal-border-width, 1px);
60
- border-radius: var(--search-normal-corner, 2px);
61
- .#{$css-prefix}tag-group {
62
- .#{$css-prefix}tag-medium {
63
- margin: 3px 4px 3px 0;
64
- }
65
- }
66
- }
67
-
68
- // Query无边框模式
69
- .#{$form-item-cls}-bordered-none {
70
- .#{$form-item-cls}-control {
71
- .#{$form-item-cls}-control-content {
72
- .#{$form-item-cls}-control-content-component {
73
- min-height: $noborder-font-weight-medium;
74
- .#{$css-prefix}date-picker2-input {
75
- border: 0;
76
- box-shadow: none !important;
77
- }
78
- .#{$css-prefix}date-picker2-input.#{$css-prefix}date-picker2-input-medium,
79
- .#{$css-prefix}input.#{$css-prefix}medium {
80
- height: $noborder-font-weight-medium;
81
- }
82
- }
83
- }
84
- }
85
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const QueryFilter: React.FC<any>;
3
- export default QueryFilter;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const Query: React.FC<any>;
4
- export default Query;
@@ -1,91 +0,0 @@
1
- "use strict";
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); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _components = require("@alicloudfe/components");
13
-
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
-
16
- var _utils = require("@teamix/utils");
17
-
18
- require("./index.scss");
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
- 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; }
25
-
26
- var TagGroup = _components.Tag.Group,
27
- CloseableTag = _components.Tag.Closeable;
28
- var TagText = /*#__PURE__*/(0, _react.memo)(function (_ref) {
29
- var tagPrefixCls = _ref.tagPrefixCls,
30
- title = _ref.title,
31
- content = _ref.content;
32
- var prefixCls = "".concat(tagPrefixCls, "-tag");
33
- return /*#__PURE__*/_react.default.createElement("span", {
34
- className: prefixCls
35
- }, /*#__PURE__*/_react.default.createElement("span", {
36
- className: "".concat(prefixCls, "-title")
37
- }, title), /*#__PURE__*/_react.default.createElement("span", {
38
- className: "".concat(prefixCls, "-content")
39
- }, function () {
40
- if ((0, _utils.isArr)(content)) {
41
- return content.join(', ');
42
- }
43
-
44
- if ((0, _utils.isObj)(content)) {
45
- return /*#__PURE__*/_react.default.createElement(TagText, {
46
- tagPrefixCls: tagPrefixCls,
47
- title: content.title,
48
- content: content.content
49
- });
50
- }
51
-
52
- return content;
53
- }()));
54
- });
55
- var Query = /*#__PURE__*/(0, _react.memo)(function (_ref2) {
56
- var size = _ref2.size,
57
- tags = _ref2.tags,
58
- filterItems = _ref2.filterItems,
59
- onFilterItemsChange = _ref2.onFilterItemsChange,
60
- children = _ref2.children;
61
- var defaultCls = (0, _utils.usePrefixCls)();
62
- var prefixCls = (0, _utils.usePrefixCls)('filter');
63
- return /*#__PURE__*/_react.default.createElement("span", {
64
- className: (0, _classnames.default)(prefixCls, "".concat(defaultCls).concat(size))
65
- }, /*#__PURE__*/_react.default.createElement(TagGroup, null, tags === null || tags === void 0 ? void 0 : tags.map(function (_ref3) {
66
- var key = _ref3.key,
67
- title = _ref3.title,
68
- content = _ref3.content;
69
- return /*#__PURE__*/_react.default.createElement(CloseableTag, {
70
- key: key,
71
- onClose: function onClose() {
72
- console.log('onClose', key);
73
- return false;
74
- }
75
- }, /*#__PURE__*/_react.default.createElement(TagText, {
76
- tagPrefixCls: prefixCls,
77
- title: title,
78
- content: content
79
- }));
80
- })), /*#__PURE__*/_react.default.createElement(_components.Select, {
81
- className: "".concat(prefixCls, "-select"),
82
- placeholder: "\u8BF7\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6",
83
- dataSource: filterItems,
84
- onChange: onFilterItemsChange
85
- }), children);
86
- });
87
- Query.defaultProps = {
88
- size: 'medium'
89
- };
90
- var _default = Query;
91
- exports.default = _default;
@@ -1,85 +0,0 @@
1
- @import '../../global.scss';
2
-
3
- // Query样式
4
- .#{$css-prefix}filter {
5
- display: flex;
6
- width: 100%;
7
- box-sizing: border-box;
8
-
9
- border-color: var(--input-focus-border-color, #ababab);
10
- border-style: solid;
11
- transition: box-shadow var(--active-transition);
12
- &:hover {
13
- box-shadow: var(--active-shadow);
14
- }
15
- .#{$css-prefix}filter-tag {
16
- .#{$css-prefix}filter-tag-title {
17
- margin-right: 8px;
18
- color: var(--color-text1-8, #848484);
19
- }
20
- .#{$css-prefix}filter-tag-content {
21
- color: var(--color-text1-3, #333333);
22
- .#{$css-prefix}filter-tag-title {
23
- margin-right: 0;
24
- color: var(--color-text1-3, #333333);
25
- font-weight: bold;
26
- &::after {
27
- position: relative;
28
- top: -0.5px;
29
- content: ':';
30
- margin: 0 4px 0 4px;
31
- }
32
- }
33
- }
34
- }
35
-
36
- // 表单项选择模块
37
- .#{$css-prefix}filter-select {
38
- min-width: auto;
39
- .#{$css-prefix}input {
40
- min-width: auto;
41
- border: 0;
42
- .#{$css-prefix}input-text-field {
43
- padding-right: 0;
44
- }
45
- }
46
- .#{$css-prefix}input.#{$css-prefix}medium {
47
- height: $noborder-font-weight-medium;
48
- }
49
- .#{$css-prefix}input-control {
50
- display: none;
51
- }
52
- }
53
- }
54
-
55
- // Query尺寸
56
- .#{$css-prefix}filter.#{$css-prefix}medium {
57
- padding: 0 8px;
58
- height: var(--search-normal-normal-m-height, 32px);
59
- border-width: var(--search-normal-normal-border-width, 1px);
60
- border-radius: var(--search-normal-corner, 2px);
61
- .#{$css-prefix}tag-group {
62
- .#{$css-prefix}tag-medium {
63
- margin: 3px 4px 3px 0;
64
- }
65
- }
66
- }
67
-
68
- // Query无边框模式
69
- .#{$form-item-cls}-bordered-none {
70
- .#{$form-item-cls}-control {
71
- .#{$form-item-cls}-control-content {
72
- .#{$form-item-cls}-control-content-component {
73
- min-height: $noborder-font-weight-medium;
74
- .#{$css-prefix}date-picker2-input {
75
- border: 0;
76
- box-shadow: none !important;
77
- }
78
- .#{$css-prefix}date-picker2-input.#{$css-prefix}date-picker2-input-medium,
79
- .#{$css-prefix}input.#{$css-prefix}medium {
80
- height: $noborder-font-weight-medium;
81
- }
82
- }
83
- }
84
- }
85
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const QueryFilter: React.FC<any>;
3
- export default QueryFilter;