wargerm 0.2.6 → 0.2.7

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.
package/dist/index.esm.js CHANGED
@@ -9554,7 +9554,7 @@ var ModalForm = function ModalForm(props, ref) {
9554
9554
 
9555
9555
  var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
9556
9556
 
9557
- var _excluded$e = ["columns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "modalConfig"];
9557
+ var _excluded$e = ["columns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "modalConfig", "optionColumnConfig"];
9558
9558
 
9559
9559
  var TabelCard = function TabelCard(props, ref) {
9560
9560
  var columns = props.columns,
@@ -9565,6 +9565,7 @@ var TabelCard = function TabelCard(props, ref) {
9565
9565
  className = props.className,
9566
9566
  style = props.style,
9567
9567
  modalConfig = props.modalConfig,
9568
+ optionColumnConfig = props.optionColumnConfig,
9568
9569
  extraProps = _objectWithoutProperties(props, _excluded$e);
9569
9570
 
9570
9571
  var actionRef = useRef();
@@ -9859,14 +9860,15 @@ var TabelCard = function TabelCard(props, ref) {
9859
9860
  options: false,
9860
9861
  toolBarRender: false,
9861
9862
  request: request,
9862
- columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [{
9863
+ columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [_objectSpread2({
9863
9864
  title: '操作',
9864
9865
  dataIndex: 'option',
9865
9866
  valueType: 'option',
9867
+ align: 'center',
9866
9868
  render: function render(_, record, index) {
9867
9869
  return tableActionDom(record, index);
9868
9870
  }
9869
- }]) : columns || [],
9871
+ }, optionColumnConfig)]) : columns || [],
9870
9872
  search: {
9871
9873
  labelWidth: 'auto',
9872
9874
  optionRender: function optionRender(searchConfig, formProps, dom) {
package/dist/index.js CHANGED
@@ -9587,7 +9587,7 @@ var ModalForm = function ModalForm(props, ref) {
9587
9587
 
9588
9588
  var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
9589
9589
 
9590
- var _excluded$e = ["columns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "modalConfig"];
9590
+ var _excluded$e = ["columns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "modalConfig", "optionColumnConfig"];
9591
9591
 
9592
9592
  var TabelCard = function TabelCard(props, ref) {
9593
9593
  var columns = props.columns,
@@ -9598,6 +9598,7 @@ var TabelCard = function TabelCard(props, ref) {
9598
9598
  className = props.className,
9599
9599
  style = props.style,
9600
9600
  modalConfig = props.modalConfig,
9601
+ optionColumnConfig = props.optionColumnConfig,
9601
9602
  extraProps = _objectWithoutProperties(props, _excluded$e);
9602
9603
 
9603
9604
  var actionRef = React.useRef();
@@ -9892,14 +9893,15 @@ var TabelCard = function TabelCard(props, ref) {
9892
9893
  options: false,
9893
9894
  toolBarRender: false,
9894
9895
  request: request,
9895
- columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [{
9896
+ columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [_objectSpread2({
9896
9897
  title: '操作',
9897
9898
  dataIndex: 'option',
9898
9899
  valueType: 'option',
9900
+ align: 'center',
9899
9901
  render: function render(_, record, index) {
9900
9902
  return tableActionDom(record, index);
9901
9903
  }
9902
- }]) : columns || [],
9904
+ }, optionColumnConfig)]) : columns || [],
9903
9905
  search: {
9904
9906
  labelWidth: 'auto',
9905
9907
  optionRender: function optionRender(searchConfig, formProps, dom) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",
@@ -76,4 +76,4 @@
76
76
  "react": "^16.12.0",
77
77
  "yorkie": "^2.0.0"
78
78
  }
79
- }
79
+ }