@lemon-fe/kits 1.0.0-97 → 1.0.0-99

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.
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { ICellEditorReactComp } from '@ag-grid-community/react';
3
3
  import type { ICellEditorParams } from '@ag-grid-community/core';
4
+ import { type Moment } from 'moment';
4
5
  export interface DateEditorParams {
5
6
  format: string;
6
7
  disabled?: boolean;
8
+ disabledDate?: (current: Moment) => boolean;
7
9
  }
8
10
  declare const _default: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & DateEditorParams & React.RefAttributes<ICellEditorReactComp>>;
9
11
  export default _default;
@@ -26,7 +26,8 @@ export default /*#__PURE__*/forwardRef(function DateEditor(props, ref) {
26
26
  var _props$format = props.format,
27
27
  format = _props$format === void 0 ? 'YYYY-MM-DD' : _props$format,
28
28
  disabled = props.disabled,
29
- api = props.api;
29
+ api = props.api,
30
+ disabledDate = props.disabledDate;
30
31
 
31
32
  var _useState = useState(props.value ? moment(props.value, format) : null),
32
33
  _useState2 = _slicedToArray(_useState, 2),
@@ -84,6 +85,7 @@ export default /*#__PURE__*/forwardRef(function DateEditor(props, ref) {
84
85
  });
85
86
  },
86
87
  ref: elm,
87
- bordered: false
88
+ bordered: false,
89
+ disabledDate: disabledDate
88
90
  }));
89
91
  });
@@ -76,7 +76,3 @@
76
76
  overflow: hidden;
77
77
  }
78
78
  }
79
-
80
- .@{prefixCls}-section-body > .@{prefixCls}-filter:not(.@{prefixCls}-filter-simple):first-child {
81
- margin-top: -@space-v;
82
- }
@@ -6,7 +6,11 @@
6
6
  background: #fff;
7
7
 
8
8
  &-header {
9
- padding: @space-h;
9
+ display: flex;
10
+ flex-direction: column;
11
+ justify-content: center;
12
+ min-height: (46px - @space-v);
13
+ padding: @space-v @space-h 0;
10
14
  }
11
15
 
12
16
  &-body {
@@ -19,11 +23,7 @@
19
23
  }
20
24
 
21
25
  &-tabs-wrapper &-header {
22
- padding-bottom: 0;
23
- }
24
-
25
- &-body:first-child > .@{ant-prefix}-tabs {
26
- padding-top: 8px;
26
+ padding-bottom: 12px;
27
27
  }
28
28
 
29
29
  &-content {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.0.0-97",
3
+ "version": "1.0.0-99",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -40,7 +40,7 @@
40
40
  "@ant-design/icons": "^4.7.0",
41
41
  "@lemon-fe/hooks": "^0.1.142",
42
42
  "@lemon-fe/utils": "^0.1.117",
43
- "antd": "4.23.6",
43
+ "antd": "4.24.8",
44
44
  "async-validator": "^4.2.5",
45
45
  "classnames": "^2.2.6",
46
46
  "color-string": "^1.9.1",