@nokecy/qc-ui 0.0.9 → 0.0.10

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.
@@ -33,7 +33,7 @@ var _icons = require("@ant-design/icons");
33
33
 
34
34
  var _utils = require("./utils");
35
35
 
36
- var _excluded = ["style", "params", "request", "dataSource", "headerTitle", "toolBarRender", "search", "onGridReady", "gridKey", "gridColumnState", "children"];
36
+ var _excluded = ["style", "params", "request", "dataSource", "headerTitle", "toolBarRender", "search", "hideRedo", "onGridReady", "gridKey", "gridColumnState", "children"];
37
37
 
38
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39
39
 
@@ -77,6 +77,7 @@ function AgGridPlus(props) {
77
77
  headerTitle = props.headerTitle,
78
78
  toolBarRender = props.toolBarRender,
79
79
  search = props.search,
80
+ hideRedo = props.hideRedo,
80
81
  onReady = props.onGridReady,
81
82
  gridKey = props.gridKey,
82
83
  gridColumnState = props.gridColumnState,
@@ -242,7 +243,7 @@ function AgGridPlus(props) {
242
243
  flexDirection: "column",
243
244
  height: "100%"
244
245
  }, style)
245
- }, /*#__PURE__*/_react.default.createElement(_toolBar.default, {
246
+ }, hideRedo ? null : /*#__PURE__*/_react.default.createElement(_toolBar.default, {
246
247
  title: headerTitle,
247
248
  actions: actionDom,
248
249
  settings: [/*#__PURE__*/_react.default.createElement(_settingItem.default, {
@@ -304,7 +305,8 @@ function AgGridPlus(props) {
304
305
  headerCheckboxSelection: true,
305
306
  checkboxSelection: true,
306
307
  showDisabledCheckboxes: true,
307
- filter: false
308
+ filter: false,
309
+ pinned: "left"
308
310
  }) : null, _react.default.Children.map(children, function (child, index) {
309
311
  return child;
310
312
  }))), /*#__PURE__*/_react.default.createElement("div", {
@@ -332,7 +334,7 @@ function AgGridPlus(props) {
332
334
  size: "small" // showTotal={(total, range) => `${range[0]}-${range[1]} of ${total} items`}
333
335
  ,
334
336
  pageSizeOptions: [10, 100, 200, 500, 1000],
335
- hideOnSinglePage: false,
337
+ hideOnSinglePage: true,
336
338
  showQuickJumper: false
337
339
  })))));
338
340
  }
@@ -1,4 +1,4 @@
1
- var _excluded = ["style", "params", "request", "dataSource", "headerTitle", "toolBarRender", "search", "onGridReady", "gridKey", "gridColumnState", "children"];
1
+ var _excluded = ["style", "params", "request", "dataSource", "headerTitle", "toolBarRender", "search", "hideRedo", "onGridReady", "gridKey", "gridColumnState", "children"];
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
@@ -50,6 +50,7 @@ function AgGridPlus(props) {
50
50
  headerTitle = props.headerTitle,
51
51
  toolBarRender = props.toolBarRender,
52
52
  search = props.search,
53
+ hideRedo = props.hideRedo,
53
54
  onReady = props.onGridReady,
54
55
  gridKey = props.gridKey,
55
56
  gridColumnState = props.gridColumnState,
@@ -215,7 +216,7 @@ function AgGridPlus(props) {
215
216
  flexDirection: "column",
216
217
  height: "100%"
217
218
  }, style)
218
- }, /*#__PURE__*/React.createElement(ToolBar, {
219
+ }, hideRedo ? null : /*#__PURE__*/React.createElement(ToolBar, {
219
220
  title: headerTitle,
220
221
  actions: actionDom,
221
222
  settings: [/*#__PURE__*/React.createElement(SettingItem, {
@@ -277,7 +278,8 @@ function AgGridPlus(props) {
277
278
  headerCheckboxSelection: true,
278
279
  checkboxSelection: true,
279
280
  showDisabledCheckboxes: true,
280
- filter: false
281
+ filter: false,
282
+ pinned: "left"
281
283
  }) : null, React.Children.map(children, function (child, index) {
282
284
  return child;
283
285
  }))), /*#__PURE__*/React.createElement("div", {
@@ -305,7 +307,7 @@ function AgGridPlus(props) {
305
307
  size: "small" // showTotal={(total, range) => `${range[0]}-${range[1]} of ${total} items`}
306
308
  ,
307
309
  pageSizeOptions: [10, 100, 200, 500, 1000],
308
- hideOnSinglePage: false,
310
+ hideOnSinglePage: true,
309
311
  showQuickJumper: false
310
312
  })))));
311
313
  }