@lemon-fe/components 0.1.83 → 0.1.86

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.
@@ -316,9 +316,11 @@ function BaseTable(props) {
316
316
  var newColumns = traverse(columns);
317
317
 
318
318
  if (isFixedLayout && !hasAutoWidthCol) {
319
- newColumns.push({
319
+ var emptyCol = {
320
320
  title: ''
321
- });
321
+ };
322
+ newColumns.push(emptyCol);
323
+ flattenCols.push(emptyCol);
322
324
  }
323
325
 
324
326
  return [newColumns, flattenCols];
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { EditableCellFocusedType } from './typings';
2
+ import type { EditableCellFocusedType } from './typings';
3
3
  export default function EditableCell(props: {
4
4
  focused: EditableCellFocusedType;
5
5
  children: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { FormItemProps } from 'antd';
2
- import { EditableTableProps } from './typings';
2
+ import type { EditableTableProps } from './typings';
3
3
  declare type Props<T> = Pick<FormItemProps, 'name' | 'label' | 'labelCol' | 'wrapperCol' | 'className' | 'required' | 'style' | 'colon'> & EditableTableProps<T>;
4
4
  export default function EditableTableFormItem<T>(props: Props<T>): JSX.Element;
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { EditableTableProps, EditableTableRef } from './typings';
2
+ import type { EditableTableProps, EditableTableRef } from './typings';
3
3
  declare type RefType = ((instance: EditableTableRef | null) => void) | MutableRefObject<EditableTableRef | null> | null;
4
4
  declare const _default: <T>(props: EditableTableProps<T> & {
5
5
  ref?: RefType | undefined;
@@ -338,7 +338,7 @@ function Filter(props) {
338
338
 
339
339
  var handleFinish = function handleFinish() {
340
340
  if (onChange) {
341
- onChange(form.getFieldsValue(true));
341
+ onChange(_objectSpread({}, form.getFieldsValue(true)));
342
342
  }
343
343
  };
344
344
 
package/es/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export { default as TipMark } from './TipMark';
15
15
  export { default as ColorPicker } from './ColorPicker';
16
16
  export { default as EditableTable } from './EditableTable';
17
17
  export { default as EditableCell } from './EditableTable/EditableCell';
18
+ export { default as EditableTableFormItem } from './EditableTable/EditableTableFormItem';
18
19
  export type { EditableTableProps, EditableTableColumnType, EditableCellFocusedType, EditableTableRef, EditableTableRule, } from './EditableTable/typings';
19
20
  export { default as Popup } from './Popup';
20
21
  export { default as SiderTree } from './SiderTree';
package/es/index.js CHANGED
@@ -12,6 +12,7 @@ export { default as TipMark } from './TipMark';
12
12
  export { default as ColorPicker } from './ColorPicker';
13
13
  export { default as EditableTable } from './EditableTable';
14
14
  export { default as EditableCell } from './EditableTable/EditableCell';
15
+ export { default as EditableTableFormItem } from './EditableTable/EditableTableFormItem';
15
16
  export { default as Popup } from './Popup';
16
17
  export { default as SiderTree } from './SiderTree';
17
18
  export { default as Icons } from './Icons';
package/es/init.js CHANGED
@@ -90,7 +90,11 @@ export default function init() {
90
90
  Modal.defaultProps = _objectSpread(_objectSpread({}, Modal.defaultProps), {}, {
91
91
  closeIcon: /*#__PURE__*/React.createElement(Close, null)
92
92
  });
93
- var node = /*#__PURE__*/React.createElement(Down, null); //@ts-ignore
93
+ var node = /*#__PURE__*/React.createElement(Down, {
94
+ style: {
95
+ marginRight: -1
96
+ }
97
+ }); //@ts-ignore
94
98
 
95
99
  Select.defaultProps = {
96
100
  suffixIcon: version >= '4.18.9' ? node : function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.83",
3
+ "version": "0.1.86",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -16,23 +16,19 @@
16
16
  "registry": "https://registry.npmjs.org"
17
17
  },
18
18
  "dependencies": {
19
- "@lemon-fe/hooks": "^0.1.67",
19
+ "@lemon-fe/hooks": "^0.1.86",
20
20
  "classnames": "^2.2.6",
21
- "lodash": "^4.17.21",
21
+ "color-string": "^1.9.0",
22
+ "lodash": "^4.17.0",
23
+ "rc-resize-observer": "^1.0.0",
22
24
  "react-color": "^2.19.3",
23
25
  "react-gcolor-picker": "^1.2.4",
24
26
  "react-resizable": "^3.0.4"
25
27
  },
26
28
  "peerDependencies": {
27
- "@ant-design/icons": ">=4.0.0",
28
- "antd": ">=4.17.0",
29
- "classnames": ">=2.2.6",
30
- "color-string": ">=1.0.0",
31
- "lodash": ">=4.17.0",
32
- "rc-resize-observer": "^1.0.0",
33
- "rc-tree": ">=4.0.0",
34
- "react": ">=16.9.0",
35
- "react-dom": ">=16.9.0"
29
+ "antd": ">=4.20",
30
+ "react": ">=16.8",
31
+ "react-dom": ">=16.8"
36
32
  },
37
33
  "devDependencies": {
38
34
  "@types/color-string": "^1.5.2",
@@ -40,9 +36,8 @@
40
36
  "@types/react-color": "^3.0.6",
41
37
  "@types/react-resizable": "^1.7.4",
42
38
  "antd": "^4.21.6",
43
- "rc-resize-observer": "^1.2.0",
44
39
  "react": "^17.0.2",
45
40
  "react-dom": "^17.0.2"
46
41
  },
47
- "gitHead": "c46d732e1c08a3217d196359809778796589745d"
42
+ "gitHead": "302c1b2083073d8197b5022a1ed7897dd069f3f7"
48
43
  }