@lemon-fe/components 1.1.0-alpha.7 → 1.1.0

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.
@@ -149,6 +149,7 @@ export default function CustomColumnPanel(params) {
149
149
  }, {
150
150
  loadingState: true,
151
151
  onSuccess: function onSuccess() {
152
+ grid.api.closeToolPanel();
152
153
  message.success('操作成功');
153
154
  }
154
155
  }),
@@ -41,7 +41,7 @@ export default class DataGrid<TData extends Record<string, any>> extends Compone
41
41
  static isSummaryRow({ node }: {
42
42
  node?: IRowNode<any>;
43
43
  }): boolean;
44
- constructor(props: DataGridProps<TData>);
44
+ constructor(props: DataGridProps<TData>, context: any);
45
45
  /** TODO目前只应用在部分地方,临时解决一下获取的columnTypes不正确的问题,考虑未来转成函数组件 */
46
46
  private getProps;
47
47
  setField(field: FieldCol): void;
@@ -121,10 +121,10 @@ function EmptyOverlay(props) {
121
121
  var DataGrid = /*#__PURE__*/function (_Component) {
122
122
  _inherits(DataGrid, _Component);
123
123
  var _super = _createSuper(DataGrid);
124
- function DataGrid(props) {
124
+ function DataGrid(props, context) {
125
125
  var _this;
126
126
  _classCallCheck(this, DataGrid);
127
- _this = _super.call(this, props);
127
+ _this = _super.call(this, props, context);
128
128
  _defineProperty(_assertThisInitialized(_this), "api", new GridApi());
129
129
  _defineProperty(_assertThisInitialized(_this), "columnApi", new ColumnApi());
130
130
  _defineProperty(_assertThisInitialized(_this), "selected", void 0);
@@ -443,7 +443,7 @@ var DataGrid = /*#__PURE__*/function (_Component) {
443
443
  value: function getProps(props) {
444
444
  var reactCtx = this.context;
445
445
  var target = props || this.props;
446
- return _objectSpread(_objectSpread({}, reactCtx), target);
446
+ return _objectSpread(_objectSpread({}, reactCtx.DataGrid), target);
447
447
  }
448
448
  }, {
449
449
  key: "setField",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.1.0-alpha.7",
3
+ "version": "1.1.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -22,8 +22,8 @@
22
22
  "@ag-grid-community/react": "29.2.0",
23
23
  "@ag-grid-community/styles": "29.2.0",
24
24
  "@dnd-kit/core": "^6.0.8",
25
- "@lemon-fe/hooks": "^1.1.0-alpha.5",
26
- "@lemon-fe/utils": "^1.1.0-alpha.5",
25
+ "@lemon-fe/hooks": "^1.1.0",
26
+ "@lemon-fe/utils": "^1.1.0",
27
27
  "async-validator": "^4.2.5",
28
28
  "bignumber.js": ">=9.0.0",
29
29
  "classnames": "^2.2.6",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "registry": "https://registry.npmjs.org"
64
64
  },
65
- "gitHead": "bf302718b70e867276efdf0f059c34e310c09545"
65
+ "gitHead": "90a7891c02a793d18f56cd80f928ca2a22485630"
66
66
  }