linkmore-design 1.1.15 → 1.1.16

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 (66) hide show
  1. package/dist/Form/FormWrapper.d.ts +3 -0
  2. package/dist/Form/WrapperItem.d.ts +4 -0
  3. package/dist/Form/index.d.ts +2 -0
  4. package/dist/Form/interface.d.ts +10 -0
  5. package/dist/LmTable/demos/summuy.d.ts +2 -0
  6. package/dist/TreeSelect/demos/treedata.d.ts +3 -0
  7. package/dist/index.umd.js +927 -852
  8. package/dist/index.umd.min.js +5 -5
  9. package/dist/variables.css +59 -48
  10. package/es/Cascader/style/index.css +1 -0
  11. package/es/Cascader/style/variables.css +1 -0
  12. package/es/Form/Form.js +13 -4
  13. package/es/Form/FormItem/ItemHolder.js +1 -10
  14. package/es/Form/FormWrapper.d.ts +3 -0
  15. package/es/Form/FormWrapper.js +23 -0
  16. package/es/Form/WrapperItem.d.ts +4 -0
  17. package/es/Form/WrapperItem.js +149 -0
  18. package/es/Form/container.js +1 -13
  19. package/es/Form/images/icon_collapse.svg +1 -0
  20. package/es/Form/index.d.ts +2 -0
  21. package/es/Form/index.js +2 -0
  22. package/es/Form/interface.d.ts +10 -0
  23. package/es/Form/style/index.css +13 -48
  24. package/es/Form/style/variables.css +13 -48
  25. package/es/InputNumber/style/index.css +4 -0
  26. package/es/InputNumber/style/variables.css +4 -0
  27. package/es/LmEditTable/EditTable.js +3 -2
  28. package/es/LmFilter/components/CheckboxFilter.js +9 -4
  29. package/es/LmFilter/components/DropdownFIlter.js +10 -4
  30. package/es/LmFilter/components/SelectFilter.js +4 -3
  31. package/es/LmSelect/style/index.css +1 -0
  32. package/es/LmSelect/style/variables.css +1 -0
  33. package/es/LmTable/style/index.css +39 -0
  34. package/es/LmTable/style/variables.css +39 -0
  35. package/es/Select/style/index.css +1 -0
  36. package/es/Select/style/variables.css +1 -0
  37. package/es/styles/variables.css +59 -48
  38. package/lib/Cascader/style/index.css +1 -0
  39. package/lib/Cascader/style/variables.css +1 -0
  40. package/lib/Form/Form.js +13 -4
  41. package/lib/Form/FormItem/ItemHolder.js +1 -10
  42. package/lib/Form/FormWrapper.d.ts +3 -0
  43. package/lib/Form/FormWrapper.js +35 -0
  44. package/lib/Form/WrapperItem.d.ts +4 -0
  45. package/lib/Form/WrapperItem.js +168 -0
  46. package/lib/Form/container.js +1 -13
  47. package/lib/Form/images/icon_collapse.svg +1 -0
  48. package/lib/Form/index.d.ts +2 -0
  49. package/lib/Form/index.js +3 -0
  50. package/lib/Form/interface.d.ts +10 -0
  51. package/lib/Form/style/index.css +13 -48
  52. package/lib/Form/style/variables.css +13 -48
  53. package/lib/InputNumber/style/index.css +4 -0
  54. package/lib/InputNumber/style/variables.css +4 -0
  55. package/lib/LmEditTable/EditTable.js +3 -2
  56. package/lib/LmFilter/components/CheckboxFilter.js +9 -4
  57. package/lib/LmFilter/components/DropdownFIlter.js +10 -4
  58. package/lib/LmFilter/components/SelectFilter.js +4 -3
  59. package/lib/LmSelect/style/index.css +1 -0
  60. package/lib/LmSelect/style/variables.css +1 -0
  61. package/lib/LmTable/style/index.css +39 -0
  62. package/lib/LmTable/style/variables.css +39 -0
  63. package/lib/Select/style/index.css +1 -0
  64. package/lib/Select/style/variables.css +1 -0
  65. package/lib/styles/variables.css +59 -48
  66. package/package.json +4 -2
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
13
+
14
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
+
16
+ var _react = _interopRequireWildcard(require("react"));
17
+
18
+ var _lodash = require("lodash");
19
+
20
+ var _Row = _interopRequireDefault(require("../Row"));
21
+
22
+ var _Col = _interopRequireDefault(require("../Col"));
23
+
24
+ // 行个数 => 在24份中占用的分数
25
+ var rowMap = new Map([[5, [4, 1]], [4, [5, 1]], [3, [7, 1]]]);
26
+
27
+ function getResult(children, countPerRow) {
28
+ var _a;
29
+
30
+ var _rowMap$get = rowMap.get(countPerRow),
31
+ _rowMap$get2 = (0, _slicedToArray2.default)(_rowMap$get, 2),
32
+ colSpan = _rowMap$get2[0],
33
+ colSpace = _rowMap$get2[1]; // 收集(满了就重置)
34
+
35
+
36
+ var collection = []; // 最终的结果
37
+
38
+ var result = [];
39
+ children = Array.prototype.slice.call(children).flat();
40
+
41
+ function handle() {
42
+ var node = /*#__PURE__*/_react.default.createElement(_Row.default, null, collection.map(function (child, index) {
43
+ if (index !== collection.length - 1) {
44
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
45
+ key: index
46
+ }, /*#__PURE__*/_react.default.createElement(_Col.default, {
47
+ span: colSpan
48
+ }, child), /*#__PURE__*/_react.default.createElement(_Col.default, {
49
+ span: colSpace
50
+ }));
51
+ }
52
+
53
+ return /*#__PURE__*/_react.default.createElement(_Col.default, {
54
+ span: colSpan,
55
+ key: index
56
+ }, child);
57
+ }));
58
+
59
+ result.push(node);
60
+ collection.length = 0;
61
+ }
62
+
63
+ for (var i = 0; i < children.length; i += 1) {
64
+ var child = children[i]; // 过滤掉React.Fragment
65
+
66
+ while (child.type === Symbol.for('react.fragment')) {
67
+ if (Array.isArray(child.props.children)) {
68
+ var _children;
69
+
70
+ (_children = children).splice.apply(_children, [i, 1].concat((0, _toConsumableArray2.default)(child.props.children)));
71
+
72
+ child = children[i];
73
+ } else {
74
+ child = child.props.children;
75
+ }
76
+ }
77
+
78
+ if ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.responsive) {
79
+ collection.push(child);
80
+
81
+ if (collection.length && collection.length === countPerRow) {
82
+ handle();
83
+ }
84
+ } else if (collection.length) {
85
+ handle();
86
+ result.push(child);
87
+ } else {
88
+ result.push(child);
89
+ }
90
+ }
91
+
92
+ if (collection.length) {
93
+ handle();
94
+ }
95
+
96
+ return result;
97
+ }
98
+
99
+ var WrapperItem = function WrapperItem(props) {
100
+ var children = props.children;
101
+ var targetRef = (0, _react.useRef)(null);
102
+
103
+ var _useState = (0, _react.useState)({
104
+ width: '100%',
105
+ height: '100%'
106
+ }),
107
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
108
+ containerSize = _useState2[0],
109
+ setContainerSize = _useState2[1]; // 每行的个数
110
+
111
+
112
+ var _useState3 = (0, _react.useState)(5),
113
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
114
+ countPerRow = _useState4[0],
115
+ setCountPerRow = _useState4[1];
116
+
117
+ var result = getResult(children, countPerRow);
118
+
119
+ var changeSize = function changeSize() {
120
+ var _a;
121
+
122
+ var maxWidth = 1824;
123
+
124
+ var _ref = ((_a = targetRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || {},
125
+ _ref$width = _ref.width,
126
+ width = _ref$width === void 0 ? '100%' : _ref$width;
127
+
128
+ if (width < 990) {
129
+ setCountPerRow(3);
130
+ } else if (width < 1390) {
131
+ setCountPerRow(4);
132
+ } else {
133
+ setCountPerRow(5);
134
+ }
135
+
136
+ if (width !== '100%' && width > maxWidth) {
137
+ width = maxWidth;
138
+ }
139
+
140
+ setContainerSize({
141
+ width: width - 32
142
+ });
143
+ };
144
+
145
+ var handResize = (0, _lodash.throttle)(changeSize, 600);
146
+ (0, _react.useEffect)(function () {
147
+ changeSize();
148
+ window.addEventListener('resize', handResize);
149
+ return function () {
150
+ window.removeEventListener('resize', handResize);
151
+ };
152
+ }, []);
153
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
154
+ className: "lm_container_wrapper",
155
+ ref: targetRef
156
+ }, /*#__PURE__*/_react.default.createElement("div", {
157
+ style: Object.assign(Object.assign({}, containerSize), {
158
+ margin: '0 auto'
159
+ })
160
+ }, result.map(function (child, index) {
161
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
162
+ key: index
163
+ }, child);
164
+ }))));
165
+ };
166
+
167
+ var _default = WrapperItem;
168
+ exports.default = _default;
@@ -53,19 +53,7 @@ var LMContainer = function LMContainer(props) {
53
53
  var width = containerSize.width,
54
54
  height = containerSize.height;
55
55
  var responsiveCls = responsive && width !== '100%' ? 'responsive' : '';
56
- var lm_col = '';
57
-
58
- if (responsiveCls) {
59
- if (parseInt(width) < 990) {
60
- lm_col = 'lm_col_3';
61
- } else if (parseInt(width) < 1390) {
62
- lm_col = 'lm_col_4';
63
- } else {
64
- lm_col = 'lm_col_5';
65
- }
66
- }
67
-
68
- var classes = (0, _classnames.default)(className, prefixCls, responsiveCls, lm_col);
56
+ var classes = (0, _classnames.default)(className, prefixCls, responsiveCls);
69
57
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
70
58
  className: classes
71
59
  }, others, {
@@ -0,0 +1 @@
1
+ <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill='none' version='1.1' width='16' height='16' viewBox='0 0 16 16'><defs><clipPath id='master_svg0_sa1497_9860'><rect x='0' y='0' width='16' height='16' rx='0'/></clipPath></defs><g clipPath='url(#master_svg0_sa1497_9860)'><g style='mix-blend-mode:passthrough'><path d='M13.4609,5.384111L9.22915,10.462240000000001Q8.7494,11.03795,8,11.03795Q7.2506,11.03795,6.770849999999999,10.462240000000001L2.539067,5.384111L3.460933,4.615889L7.69271,9.69402Q7.81265,9.83795,8,9.83795Q8.18735,9.83795,8.30729,9.69402L12.53907,4.615889L13.4609,5.384111ZM13.6,5Q13.6,5.0590948000000004,13.5885,5.117054Q13.5769,5.175014,13.5543,5.22961Q13.5317,5.284207,13.4989,5.333342Q13.4661,5.382478,13.4243,5.424264Q13.3825,5.46605,13.3333,5.498882Q13.2842,5.531713,13.2296,5.554328Q13.175,5.576942,13.1171,5.588471Q13.0591,5.6,13,5.6Q12.94091,5.6,12.88295,5.588471Q12.82499,5.576942,12.77039,5.554328Q12.71579,5.531713,12.66666,5.498882Q12.61752,5.46605,12.57573,5.424264Q12.53395,5.382478,12.50112,5.333342Q12.46828,5.284207,12.44567,5.22961Q12.42306,5.175014,12.41153,5.117054Q12.4,5.0590948000000004,12.4,5Q12.4,4.9409051999999996,12.41153,4.882946Q12.42306,4.824986,12.44567,4.77039Q12.46828,4.715793,12.50112,4.666658Q12.53395,4.617522,12.57574,4.575736Q12.61752,4.53395,12.66666,4.501118Q12.71579,4.468287,12.77039,4.445672Q12.82499,4.423058,12.88295,4.411529Q12.94091,4.4,13,4.4Q13.0591,4.4,13.1171,4.411529Q13.175,4.423058,13.2296,4.445672Q13.2842,4.468287,13.3333,4.501118Q13.3825,4.53395,13.4243,4.575736Q13.4661,4.617522,13.4989,4.666658Q13.5317,4.715793,13.5543,4.77039Q13.5769,4.824986,13.5885,4.882946Q13.6,4.9409051999999996,13.6,5ZM3.6,5Q3.6,5.0590948000000004,3.588471,5.117054Q3.576942,5.175014,3.554328,5.22961Q3.531713,5.284207,3.498882,5.333342Q3.46605,5.382478,3.424264,5.424264Q3.382478,5.46605,3.333342,5.498882Q3.284207,5.531713,3.22961,5.554328Q3.175014,5.576942,3.117054,5.588471Q3.0590948,5.6,3,5.6Q2.9409052,5.6,2.882946,5.588471Q2.824986,5.576942,2.77039,5.554328Q2.715793,5.531713,2.666658,5.498882Q2.617522,5.46605,2.575736,5.424264Q2.53395,5.382478,2.501118,5.333342Q2.468287,5.284207,2.445672,5.22961Q2.423058,5.175014,2.411529,5.117054Q2.4,5.0590948000000004,2.4,5Q2.4,4.9409051999999996,2.411529,4.882946Q2.423058,4.824986,2.445672,4.77039Q2.468287,4.715793,2.501118,4.666658Q2.53395,4.617522,2.575736,4.575736Q2.617522,4.53395,2.666658,4.501118Q2.715793,4.468287,2.77039,4.445672Q2.824986,4.423058,2.882946,4.411529Q2.9409052,4.4,3,4.4Q3.0590948,4.4,3.117054,4.411529Q3.175014,4.423058,3.22961,4.445672Q3.284207,4.468287,3.333342,4.501118Q3.382478,4.53395,3.424264,4.575736Q3.46605,4.617522,3.498882,4.666658Q3.531713,4.715793,3.554328,4.77039Q3.576942,4.824986,3.588471,4.882946Q3.6,4.9409051999999996,3.6,5Z' fill='#262626' fillOpacity='1'/></g></g></svg>
@@ -9,6 +9,7 @@ import type { FormItemProps } from './FormItem';
9
9
  import List from './FormList';
10
10
  import type { FormListFieldData, FormListOperation, FormListProps } from './FormList';
11
11
  import useFormInstance from './hooks/useFormInstance';
12
+ import Wrapper from './FormWrapper';
12
13
  declare type InternalFormType = typeof InternalForm;
13
14
  interface FormInterface extends InternalFormType {
14
15
  useForm: typeof useForm;
@@ -18,6 +19,7 @@ interface FormInterface extends InternalFormType {
18
19
  List: typeof List;
19
20
  ErrorList: typeof ErrorList;
20
21
  Provider: typeof FormProvider;
22
+ Wrapper: typeof Wrapper;
21
23
  /** @deprecated Only for warning usage. Do not use. */
22
24
  create: () => void;
23
25
  }
package/lib/Form/index.js CHANGED
@@ -23,6 +23,8 @@ var _FormList = _interopRequireDefault(require("./FormList"));
23
23
 
24
24
  var _useFormInstance = _interopRequireDefault(require("./hooks/useFormInstance"));
25
25
 
26
+ var _FormWrapper = _interopRequireDefault(require("./FormWrapper"));
27
+
26
28
  var Form = _Form.default;
27
29
  Form.Item = _FormItem.default;
28
30
  Form.List = _FormList.default;
@@ -36,5 +38,6 @@ Form.create = function () {
36
38
  (0, _warning.default)(false, 'Form', 'antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.');
37
39
  };
38
40
 
41
+ Form.Wrapper = _FormWrapper.default;
39
42
  var _default = Form;
40
43
  exports.default = _default;
@@ -1,3 +1,13 @@
1
+ import { FormInstance, Store } from 'rc-field-form/lib/interface';
2
+ import React from 'react';
1
3
  export { InternalNamePath, NamePath, Store, StoreValue } from 'rc-field-form/lib/interface';
2
4
  export { Options as ScrollOptions } from 'scroll-into-view-if-needed';
3
5
  export declare type FormLabelAlign = 'left' | 'right';
6
+ export declare type RenderProps = (values: Store, form: FormInstance) => JSX.Element | React.ReactNode;
7
+ export interface ISize {
8
+ width?: number;
9
+ height?: number;
10
+ }
11
+ export interface IWrapper {
12
+ children: React.ReactNode | RenderProps;
13
+ }
@@ -6613,57 +6613,22 @@ p {
6613
6613
  .lm_form.ant-form.ant-form-inline .ant-form-item-label {
6614
6614
  text-align: left;
6615
6615
  }
6616
- .lm_container_wrapper {
6617
- overflow: auto;
6618
- }
6619
- .lm_container_wrapper .lm_container.responsive {
6620
- min-width: 990px;
6621
- }
6622
- .lm_container_wrapper .lm_container.responsive .lm_form.ant-form {
6623
- display: flex;
6624
- flex-direction: row;
6625
- flex-wrap: wrap;
6626
- }
6627
- .lm_container_wrapper .lm_container.responsive .lm_form.ant-form .ant-form-item-responsive {
6628
- margin-right: 24px;
6629
- }
6630
- .lm_container_wrapper .lm_container.responsive .lm_form.ant-form .ant-form-item-responsive .ant-form-item-control {
6631
- width: 100%;
6632
- }
6633
- .lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item {
6634
- width: 100%;
6635
- margin-right: 0;
6636
- }
6637
- .lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item-responsive {
6638
- width: calc(33.3333% - 16px);
6639
- margin-right: 24px;
6640
- }
6641
- .lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item-responsive.nth-three {
6642
- margin-right: 0;
6643
- }
6644
- .lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item {
6645
- width: 100%;
6646
- margin-right: 0;
6647
- }
6648
- .lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item-responsive {
6649
- width: calc(25% - 18px);
6650
- margin-right: 24px;
6651
- }
6652
- .lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item-responsive.nth-four {
6653
- margin-right: 0;
6654
- }
6655
- .lm_container_wrapper .lm_container.responsive.lm_col_5 .ant-form-item {
6656
- width: 100%;
6657
- margin-right: 0;
6616
+ .lm_form_responsive_box .lm_form {
6617
+ background: #f0f0f0;
6658
6618
  }
6659
- .lm_container_wrapper .lm_container.responsive.lm_col_5 .ant-form-item-responsive {
6660
- width: calc(20% - 96px / 5);
6661
- margin-right: 24px;
6619
+ .lm_form_responsive_box .lm_form > .lm_container_wrapper {
6620
+ padding: 16px;
6621
+ background: #f0f0f0;
6622
+ margin-bottom: 0;
6623
+ border-radius: 0;
6662
6624
  }
6663
- .lm_container_wrapper .lm_container.responsive.lm_col_5 .ant-form-item-responsive.nth-five {
6664
- margin-right: 0;
6625
+ .lm_container_wrapper {
6626
+ overflow: auto;
6627
+ background: #fff;
6628
+ margin-bottom: 16px;
6629
+ border-radius: 2px;
6665
6630
  }
6666
- .lm_container_wrapper .lm_container.responsive .ant-cascader {
6631
+ .lm_container_wrapper .ant-cascader {
6667
6632
  width: 100%;
6668
6633
  }
6669
6634
  .lm_form-item-tip-error .ant-form-item-explain {
@@ -6101,57 +6101,22 @@
6101
6101
  .lm_form.ant-form.ant-form-inline .ant-form-item-label {
6102
6102
  text-align: left;
6103
6103
  }
6104
- .lm_container_wrapper {
6105
- overflow: auto;
6106
- }
6107
- .lm_container_wrapper .lm_container.responsive {
6108
- min-width: 990px;
6109
- }
6110
- .lm_container_wrapper .lm_container.responsive .lm_form.ant-form {
6111
- display: flex;
6112
- flex-direction: row;
6113
- flex-wrap: wrap;
6114
- }
6115
- .lm_container_wrapper .lm_container.responsive .lm_form.ant-form .ant-form-item-responsive {
6116
- margin-right: 24px;
6117
- }
6118
- .lm_container_wrapper .lm_container.responsive .lm_form.ant-form .ant-form-item-responsive .ant-form-item-control {
6119
- width: 100%;
6120
- }
6121
- .lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item {
6122
- width: 100%;
6123
- margin-right: 0;
6124
- }
6125
- .lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item-responsive {
6126
- width: calc(33.3333% - 16px);
6127
- margin-right: 24px;
6128
- }
6129
- .lm_container_wrapper .lm_container.responsive.lm_col_3 .ant-form-item-responsive.nth-three {
6130
- margin-right: 0;
6104
+ .lm_form_responsive_box .lm_form {
6105
+ background: #f0f0f0;
6131
6106
  }
6132
- .lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item {
6133
- width: 100%;
6134
- margin-right: 0;
6135
- }
6136
- .lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item-responsive {
6137
- width: calc(25% - 18px);
6138
- margin-right: 24px;
6139
- }
6140
- .lm_container_wrapper .lm_container.responsive.lm_col_4 .ant-form-item-responsive.nth-four {
6141
- margin-right: 0;
6142
- }
6143
- .lm_container_wrapper .lm_container.responsive.lm_col_5 .ant-form-item {
6144
- width: 100%;
6145
- margin-right: 0;
6146
- }
6147
- .lm_container_wrapper .lm_container.responsive.lm_col_5 .ant-form-item-responsive {
6148
- width: calc(20% - 96px / 5);
6149
- margin-right: 24px;
6107
+ .lm_form_responsive_box .lm_form > .lm_container_wrapper {
6108
+ padding: 16px;
6109
+ background: #f0f0f0;
6110
+ margin-bottom: 0;
6111
+ border-radius: 0;
6150
6112
  }
6151
- .lm_container_wrapper .lm_container.responsive.lm_col_5 .ant-form-item-responsive.nth-five {
6152
- margin-right: 0;
6113
+ .lm_container_wrapper {
6114
+ overflow: auto;
6115
+ background: #fff;
6116
+ margin-bottom: 16px;
6117
+ border-radius: 2px;
6153
6118
  }
6154
- .lm_container_wrapper .lm_container.responsive .ant-cascader {
6119
+ .lm_container_wrapper .ant-cascader {
6155
6120
  width: 100%;
6156
6121
  }
6157
6122
  .lm_form-item-tip-error .ant-form-item-explain {
@@ -510,8 +510,12 @@ html {
510
510
  p {
511
511
  margin-bottom: 0;
512
512
  }
513
+ .lm_input-number {
514
+ width: 100%;
515
+ }
513
516
  .lm_input-number.ant-input-number {
514
517
  border: 1px solid var(--color-15);
518
+ width: 100%;
515
519
  }
516
520
  .lm_input-number .ant-input-number-handler-wrap {
517
521
  width: 28px;
@@ -1,5 +1,9 @@
1
+ .lm_input-number {
2
+ width: 100%;
3
+ }
1
4
  .lm_input-number.ant-input-number {
2
5
  border: 1px solid var(--color-15);
6
+ width: 100%;
3
7
  }
4
8
  .lm_input-number .ant-input-number-handler-wrap {
5
9
  width: 28px;
@@ -1182,9 +1182,10 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1182
1182
 
1183
1183
  var dataIndex = col.dataIndex,
1184
1184
  editable = col.editable,
1185
- relevanceCols = col.relevanceCols;
1185
+ relevanceCols = col.relevanceCols,
1186
+ componentProps = col.componentProps;
1186
1187
 
1187
- if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_a = col.componentProps) === null || _a === void 0 ? void 0 : _a.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children) {
1188
+ if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_a = col.componentProps) === null || _a === void 0 ? void 0 : _a.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children || componentProps && (0, _lodash.isFunction)(componentProps)) {
1188
1189
  return true;
1189
1190
  }
1190
1191
 
@@ -43,7 +43,9 @@ var CheckboxFilter = function CheckboxFilter(_ref) {
43
43
  visible = instance.visible,
44
44
  setVisible = instance.setVisible;
45
45
  var _itemProps$data = itemProps.data,
46
- filters = _itemProps$data === void 0 ? [] : _itemProps$data;
46
+ filters = _itemProps$data === void 0 ? [] : _itemProps$data,
47
+ showSearch = itemProps.showSearch,
48
+ showAllChecked = itemProps.showAllChecked;
47
49
  var inputRef = (0, _react.useRef)(); // 选中的数据项: [key, key, ...];
48
50
 
49
51
  var _useState = (0, _react.useState)(filterValue),
@@ -62,8 +64,11 @@ var CheckboxFilter = function CheckboxFilter(_ref) {
62
64
  var delayedFn = (0, _hooks.useDelayedFn)(); // 是否存在搜索, 当数据大于8时存在搜索
63
65
 
64
66
  var isSearch = (0, _react.useMemo)(function () {
65
- return filters.length > 8;
66
- }, [filters.length]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
67
+ return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
68
+ }, [filters.length, showSearch]);
69
+ var isAllCheck = (0, _react.useMemo)(function () {
70
+ return !!(showAllChecked !== null && showAllChecked !== void 0 ? showAllChecked : true);
71
+ }, [showAllChecked]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
67
72
 
68
73
  var checkAll = (0, _react.useMemo)(function () {
69
74
  var isAll = checkedValues.length >= options.length;
@@ -145,7 +150,7 @@ var CheckboxFilter = function CheckboxFilter(_ref) {
145
150
  ref: inputRef,
146
151
  onSearch: handleFilter,
147
152
  onChange: handleFilter
148
- }), /*#__PURE__*/_react.default.createElement("div", {
153
+ }), isAllCheck && /*#__PURE__*/_react.default.createElement("div", {
149
154
  className: "filter_header_operate"
150
155
  }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
151
156
  indeterminate: indeterminate,
@@ -208,14 +208,20 @@ var DropdownFilter = /*#__PURE__*/_react.default.memo(function (_ref2) {
208
208
 
209
209
  var filterValue = instance.filterValue,
210
210
  size = instance.size;
211
- var popupClassName = item.popupClassName; // 触发查询时关闭下拉框
211
+ var popupClassName = item.popupClassName,
212
+ colon = item.colon,
213
+ className = item.className; // 触发查询时关闭下拉框
212
214
 
213
215
  var setFilterValue = function setFilterValue(obj) {
214
216
  instance.setFilterValue(obj);
215
217
  setVisible(false);
216
- }; // 重组Instance 加入下拉关闭控制
218
+ }; // 冒号
217
219
 
218
220
 
221
+ var showColon = (0, _react.useMemo)(function () {
222
+ return (colon !== null && colon !== void 0 ? colon : ':') ? ':' : null;
223
+ }, [colon]); // 重组Instance 加入下拉关闭控制
224
+
219
225
  var resetInstance = (0, _objectSpread2.default)((0, _objectSpread2.default)({
220
226
  visible: visible,
221
227
  setVisible: setVisible
@@ -249,13 +255,13 @@ var DropdownFilter = /*#__PURE__*/_react.default.memo(function (_ref2) {
249
255
  ,
250
256
  destroyPopupOnHide: true
251
257
  }, /*#__PURE__*/_react.default.createElement("div", {
252
- className: (0, _classnames.default)('lm_filter_basic_item', size, {
258
+ className: (0, _classnames.default)('lm_filter_basic_item', className, size, {
253
259
  expand: visible,
254
260
  active: active
255
261
  })
256
262
  }, /*#__PURE__*/_react.default.createElement("div", {
257
263
  className: "filter_item_label"
258
- }, item === null || item === void 0 ? void 0 : item.title, ":"), /*#__PURE__*/_react.default.createElement("div", {
264
+ }, item === null || item === void 0 ? void 0 : item.title, showColon), /*#__PURE__*/_react.default.createElement("div", {
259
265
  className: "filter_item_value"
260
266
  }, getLabel(resetInstance, item)), /*#__PURE__*/_react.default.createElement("div", {
261
267
  className: "filter_item_icon addon_after"
@@ -39,7 +39,8 @@ var SelectFilter = function SelectFilter(_ref) {
39
39
  setFilterValue = instance.setFilterValue,
40
40
  visible = instance.visible;
41
41
  var _itemProps$data = itemProps.data,
42
- filters = _itemProps$data === void 0 ? [] : _itemProps$data;
42
+ filters = _itemProps$data === void 0 ? [] : _itemProps$data,
43
+ showSearch = itemProps.showSearch;
43
44
  var delayedFn = (0, _hooks.useDelayedFn)();
44
45
  var inputRef = (0, _react.useRef)(null); // 搜索后的筛选项
45
46
 
@@ -50,8 +51,8 @@ var SelectFilter = function SelectFilter(_ref) {
50
51
 
51
52
 
52
53
  var isSearch = (0, _react.useMemo)(function () {
53
- return filters.length > 8;
54
- }, [filters.length]); // 自定义节点字段
54
+ return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
55
+ }, [filters.length, showSearch]); // 自定义节点字段
55
56
 
56
57
  var fieldNames = (0, _react.useMemo)(function () {
57
58
  return (0, _objectSpread2.default)({
@@ -512,6 +512,7 @@ p {
512
512
  }
513
513
  .lm_select.ant-select {
514
514
  font-size: 12px;
515
+ width: 100%;
515
516
  }
516
517
  .lm_select .ant-select-selection-overflow-item-rest .ant-select-selection-item {
517
518
  color: var(--primary-color);
@@ -1,5 +1,6 @@
1
1
  .lm_select.ant-select {
2
2
  font-size: 12px;
3
+ width: 100%;
3
4
  }
4
5
  .lm_select .ant-select-selection-overflow-item-rest .ant-select-selection-item {
5
6
  color: var(--primary-color);
@@ -1226,6 +1226,45 @@ p {
1226
1226
  #lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
1227
1227
  border-bottom: 0;
1228
1228
  }
1229
+ #lm_protable_warp .lm_protable .ant-table-summary {
1230
+ height: 48px;
1231
+ }
1232
+ #lm_protable_warp .lm_protable .ant-table-summary > table {
1233
+ height: 100%;
1234
+ }
1235
+ #lm_protable_warp .lm_protable .ant-table-summary td {
1236
+ padding: 0 8px;
1237
+ text-align: right;
1238
+ background-color: var(--table-background-color);
1239
+ }
1240
+ #lm_protable_warp .lm_protable .ant-table-summary td:first-of-type {
1241
+ padding: 0 0 0 8px;
1242
+ text-align: left;
1243
+ }
1244
+ #lm_protable_warp .lm_protable .ant-table-summary td.number {
1245
+ border-right: 1px solid #eee;
1246
+ border-left: 1px solid #eee;
1247
+ }
1248
+ #lm_protable_warp .lm_protable .ant-table-summary td.money {
1249
+ color: var(--error-color);
1250
+ border-right: 1px solid #eee;
1251
+ border-left: 1px solid #eee;
1252
+ }
1253
+ #lm_protable_warp .lm_protable .ant-table-summary td.money-color {
1254
+ color: var(--error-color);
1255
+ }
1256
+ #lm_protable_warp .lm_protable .ant-table-summary td > div {
1257
+ overflow: hidden;
1258
+ white-space: nowrap;
1259
+ text-overflow: ellipsis;
1260
+ }
1261
+ #lm_protable_warp .lm_protable .ant-table-summary td > div:last-of-type {
1262
+ font-weight: bold;
1263
+ }
1264
+ #lm_protable_warp .lm_protable .ant-table-summary .total_title {
1265
+ position: relative;
1266
+ white-space: nowrap;
1267
+ }
1229
1268
  #lm_protable_warp .ant-table-expand-icon-col {
1230
1269
  width: 32px;
1231
1270
  }
@@ -714,6 +714,45 @@
714
714
  #lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
715
715
  border-bottom: 0;
716
716
  }
717
+ #lm_protable_warp .lm_protable .ant-table-summary {
718
+ height: 48px;
719
+ }
720
+ #lm_protable_warp .lm_protable .ant-table-summary > table {
721
+ height: 100%;
722
+ }
723
+ #lm_protable_warp .lm_protable .ant-table-summary td {
724
+ padding: 0 8px;
725
+ text-align: right;
726
+ background-color: var(--table-background-color);
727
+ }
728
+ #lm_protable_warp .lm_protable .ant-table-summary td:first-of-type {
729
+ padding: 0 0 0 8px;
730
+ text-align: left;
731
+ }
732
+ #lm_protable_warp .lm_protable .ant-table-summary td.number {
733
+ border-right: 1px solid #eee;
734
+ border-left: 1px solid #eee;
735
+ }
736
+ #lm_protable_warp .lm_protable .ant-table-summary td.money {
737
+ color: var(--error-color);
738
+ border-right: 1px solid #eee;
739
+ border-left: 1px solid #eee;
740
+ }
741
+ #lm_protable_warp .lm_protable .ant-table-summary td.money-color {
742
+ color: var(--error-color);
743
+ }
744
+ #lm_protable_warp .lm_protable .ant-table-summary td > div {
745
+ overflow: hidden;
746
+ white-space: nowrap;
747
+ text-overflow: ellipsis;
748
+ }
749
+ #lm_protable_warp .lm_protable .ant-table-summary td > div:last-of-type {
750
+ font-weight: bold;
751
+ }
752
+ #lm_protable_warp .lm_protable .ant-table-summary .total_title {
753
+ position: relative;
754
+ white-space: nowrap;
755
+ }
717
756
  #lm_protable_warp .ant-table-expand-icon-col {
718
757
  width: 32px;
719
758
  }
@@ -512,6 +512,7 @@ p {
512
512
  }
513
513
  .lm_select.ant-select {
514
514
  font-size: 12px;
515
+ width: 100%;
515
516
  }
516
517
  .lm_select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
517
518
  box-shadow: none;
@@ -1,5 +1,6 @@
1
1
  .lm_select.ant-select {
2
2
  font-size: 12px;
3
+ width: 100%;
3
4
  }
4
5
  .lm_select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
5
6
  box-shadow: none;