wargerm 0.7.38 → 0.7.39
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 +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import 'antd/dist/reset.css';
|
2
2
|
import React, { useRef, useEffect, useMemo, useState, useCallback, useImperativeHandle, memo, forwardRef, createRef } from 'react';
|
3
|
-
import { cloneDeep, uniqBy,
|
3
|
+
import { cloneDeep, uniqBy, omit, chunk, isEmpty } from 'lodash-es';
|
4
4
|
import { useSyncExternalStore } from 'use-sync-external-store/shim';
|
5
5
|
import { Menu, Dropdown, Button, Input, Upload as Upload$1, Modal as Modal$2, message, InputNumber, DatePicker, Radio, Space, Checkbox, Select, Switch, Tooltip, TreeSelect as TreeSelect$1, Cascader, Form, Row, Col, Spin, Pagination, Breadcrumb, ConfigProvider, notification } from 'antd';
|
6
6
|
import { createFromIconfontCN, PlusOutlined, CloseCircleOutlined, SearchOutlined, ReloadOutlined, MinusOutlined, FullscreenOutlined, EllipsisOutlined, ExclamationCircleOutlined, EyeOutlined, EditOutlined, DeleteOutlined, LeftOutlined, RightOutlined, CloseOutlined } from '@ant-design/icons';
|
@@ -7525,7 +7525,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7525
7525
|
return renderTableBar === null || renderTableBar === void 0 ? void 0 : renderTableBar.map(function (item) {
|
7526
7526
|
if (item.type === 'add') {
|
7527
7527
|
return {
|
7528
|
-
config: item,
|
7528
|
+
config: omit(item, ['type', 'actionMethod', 'actionRender']),
|
7529
7529
|
children: /*#__PURE__*/React.createElement(Tooltip, {
|
7530
7530
|
title: "\u65B0\u589E",
|
7531
7531
|
key: "add"
|
@@ -7577,7 +7577,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7577
7577
|
var _item$actionRender2;
|
7578
7578
|
|
7579
7579
|
return {
|
7580
|
-
config:
|
7580
|
+
config: omit(item, ['type', 'actionMethod', 'actionRender']),
|
7581
7581
|
children: (_item$actionRender2 = item.actionRender) === null || _item$actionRender2 === void 0 ? void 0 : _item$actionRender2.call(item, actionRef, function () {
|
7582
7582
|
item.actionMethod && item.actionMethod(actionRef, function () {
|
7583
7583
|
var _actionRef$current5;
|
package/dist/index.js
CHANGED
@@ -7569,7 +7569,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7569
7569
|
return renderTableBar === null || renderTableBar === void 0 ? void 0 : renderTableBar.map(function (item) {
|
7570
7570
|
if (item.type === 'add') {
|
7571
7571
|
return {
|
7572
|
-
config: item,
|
7572
|
+
config: lodashEs.omit(item, ['type', 'actionMethod', 'actionRender']),
|
7573
7573
|
children: /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
7574
7574
|
title: "\u65B0\u589E",
|
7575
7575
|
key: "add"
|
@@ -7621,7 +7621,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7621
7621
|
var _item$actionRender2;
|
7622
7622
|
|
7623
7623
|
return {
|
7624
|
-
config: lodashEs.
|
7624
|
+
config: lodashEs.omit(item, ['type', 'actionMethod', 'actionRender']),
|
7625
7625
|
children: (_item$actionRender2 = item.actionRender) === null || _item$actionRender2 === void 0 ? void 0 : _item$actionRender2.call(item, actionRef, function () {
|
7626
7626
|
item.actionMethod && item.actionMethod(actionRef, function () {
|
7627
7627
|
var _actionRef$current5;
|