wargerm 0.7.43 → 0.7.45
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/components/TabelCard/example/demo8.d.ts +3 -0
- package/dist/index.esm.js +44 -40
- package/dist/index.js +44 -40
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
@@ -7524,53 +7524,57 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7524
7524
|
var tableBarDom = useMemo(function () {
|
7525
7525
|
return renderTableBar === null || renderTableBar === void 0 ? void 0 : renderTableBar.map(function (item) {
|
7526
7526
|
if (item.type === 'add') {
|
7527
|
+
var clickHandle = function clickHandle() {
|
7528
|
+
return openFormModel({
|
7529
|
+
type: '新增',
|
7530
|
+
record: {},
|
7531
|
+
modalOnOk: function () {
|
7532
|
+
var _modalOnOk3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(values, loading) {
|
7533
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
7534
|
+
while (1) {
|
7535
|
+
switch (_context7.prev = _context7.next) {
|
7536
|
+
case 0:
|
7537
|
+
if (!item.actionMethod) {
|
7538
|
+
_context7.next = 3;
|
7539
|
+
break;
|
7540
|
+
}
|
7541
|
+
|
7542
|
+
_context7.next = 3;
|
7543
|
+
return item.actionMethod(values, function () {
|
7544
|
+
var _actionRef$current4;
|
7545
|
+
|
7546
|
+
loading();
|
7547
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : _actionRef$current4.reload();
|
7548
|
+
});
|
7549
|
+
|
7550
|
+
case 3:
|
7551
|
+
case "end":
|
7552
|
+
return _context7.stop();
|
7553
|
+
}
|
7554
|
+
}
|
7555
|
+
}, _callee7);
|
7556
|
+
}));
|
7557
|
+
|
7558
|
+
function modalOnOk(_x5, _x6) {
|
7559
|
+
return _modalOnOk3.apply(this, arguments);
|
7560
|
+
}
|
7561
|
+
|
7562
|
+
return modalOnOk;
|
7563
|
+
}()
|
7564
|
+
});
|
7565
|
+
};
|
7566
|
+
|
7527
7567
|
return {
|
7528
7568
|
config: omit(item, ['type', 'actionMethod', 'actionRender']),
|
7529
|
-
children:
|
7569
|
+
children: item.actionRender ? item.actionRender({
|
7570
|
+
clickHandle: clickHandle
|
7571
|
+
}) : /*#__PURE__*/React.createElement(Tooltip, {
|
7530
7572
|
title: "\u65B0\u589E",
|
7531
7573
|
key: "add"
|
7532
7574
|
}, /*#__PURE__*/React.createElement(Button, {
|
7533
7575
|
key: "add",
|
7534
7576
|
type: "primary",
|
7535
|
-
onClick:
|
7536
|
-
return openFormModel({
|
7537
|
-
type: '新增',
|
7538
|
-
record: {},
|
7539
|
-
modalOnOk: function () {
|
7540
|
-
var _modalOnOk3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(values, loading) {
|
7541
|
-
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
7542
|
-
while (1) {
|
7543
|
-
switch (_context7.prev = _context7.next) {
|
7544
|
-
case 0:
|
7545
|
-
if (!item.actionMethod) {
|
7546
|
-
_context7.next = 3;
|
7547
|
-
break;
|
7548
|
-
}
|
7549
|
-
|
7550
|
-
_context7.next = 3;
|
7551
|
-
return item.actionMethod(values, function () {
|
7552
|
-
var _actionRef$current4;
|
7553
|
-
|
7554
|
-
loading();
|
7555
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : _actionRef$current4.reload();
|
7556
|
-
});
|
7557
|
-
|
7558
|
-
case 3:
|
7559
|
-
case "end":
|
7560
|
-
return _context7.stop();
|
7561
|
-
}
|
7562
|
-
}
|
7563
|
-
}, _callee7);
|
7564
|
-
}));
|
7565
|
-
|
7566
|
-
function modalOnOk(_x5, _x6) {
|
7567
|
-
return _modalOnOk3.apply(this, arguments);
|
7568
|
-
}
|
7569
|
-
|
7570
|
-
return modalOnOk;
|
7571
|
-
}()
|
7572
|
-
});
|
7573
|
-
}
|
7577
|
+
onClick: clickHandle
|
7574
7578
|
}, /*#__PURE__*/React.createElement(PlusOutlined, null), " \u65B0\u589E"))
|
7575
7579
|
};
|
7576
7580
|
} else if (item.type === 'extraAction') {
|
package/dist/index.js
CHANGED
@@ -7568,53 +7568,57 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7568
7568
|
var tableBarDom = React.useMemo(function () {
|
7569
7569
|
return renderTableBar === null || renderTableBar === void 0 ? void 0 : renderTableBar.map(function (item) {
|
7570
7570
|
if (item.type === 'add') {
|
7571
|
+
var clickHandle = function clickHandle() {
|
7572
|
+
return openFormModel({
|
7573
|
+
type: '新增',
|
7574
|
+
record: {},
|
7575
|
+
modalOnOk: function () {
|
7576
|
+
var _modalOnOk3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(values, loading) {
|
7577
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
7578
|
+
while (1) {
|
7579
|
+
switch (_context7.prev = _context7.next) {
|
7580
|
+
case 0:
|
7581
|
+
if (!item.actionMethod) {
|
7582
|
+
_context7.next = 3;
|
7583
|
+
break;
|
7584
|
+
}
|
7585
|
+
|
7586
|
+
_context7.next = 3;
|
7587
|
+
return item.actionMethod(values, function () {
|
7588
|
+
var _actionRef$current4;
|
7589
|
+
|
7590
|
+
loading();
|
7591
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : _actionRef$current4.reload();
|
7592
|
+
});
|
7593
|
+
|
7594
|
+
case 3:
|
7595
|
+
case "end":
|
7596
|
+
return _context7.stop();
|
7597
|
+
}
|
7598
|
+
}
|
7599
|
+
}, _callee7);
|
7600
|
+
}));
|
7601
|
+
|
7602
|
+
function modalOnOk(_x5, _x6) {
|
7603
|
+
return _modalOnOk3.apply(this, arguments);
|
7604
|
+
}
|
7605
|
+
|
7606
|
+
return modalOnOk;
|
7607
|
+
}()
|
7608
|
+
});
|
7609
|
+
};
|
7610
|
+
|
7571
7611
|
return {
|
7572
7612
|
config: lodashEs.omit(item, ['type', 'actionMethod', 'actionRender']),
|
7573
|
-
children:
|
7613
|
+
children: item.actionRender ? item.actionRender({
|
7614
|
+
clickHandle: clickHandle
|
7615
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
7574
7616
|
title: "\u65B0\u589E",
|
7575
7617
|
key: "add"
|
7576
7618
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
7577
7619
|
key: "add",
|
7578
7620
|
type: "primary",
|
7579
|
-
onClick:
|
7580
|
-
return openFormModel({
|
7581
|
-
type: '新增',
|
7582
|
-
record: {},
|
7583
|
-
modalOnOk: function () {
|
7584
|
-
var _modalOnOk3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(values, loading) {
|
7585
|
-
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
7586
|
-
while (1) {
|
7587
|
-
switch (_context7.prev = _context7.next) {
|
7588
|
-
case 0:
|
7589
|
-
if (!item.actionMethod) {
|
7590
|
-
_context7.next = 3;
|
7591
|
-
break;
|
7592
|
-
}
|
7593
|
-
|
7594
|
-
_context7.next = 3;
|
7595
|
-
return item.actionMethod(values, function () {
|
7596
|
-
var _actionRef$current4;
|
7597
|
-
|
7598
|
-
loading();
|
7599
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : _actionRef$current4.reload();
|
7600
|
-
});
|
7601
|
-
|
7602
|
-
case 3:
|
7603
|
-
case "end":
|
7604
|
-
return _context7.stop();
|
7605
|
-
}
|
7606
|
-
}
|
7607
|
-
}, _callee7);
|
7608
|
-
}));
|
7609
|
-
|
7610
|
-
function modalOnOk(_x5, _x6) {
|
7611
|
-
return _modalOnOk3.apply(this, arguments);
|
7612
|
-
}
|
7613
|
-
|
7614
|
-
return modalOnOk;
|
7615
|
-
}()
|
7616
|
-
});
|
7617
|
-
}
|
7621
|
+
onClick: clickHandle
|
7618
7622
|
}, /*#__PURE__*/React__default['default'].createElement(icons.PlusOutlined, null), " \u65B0\u589E"))
|
7619
7623
|
};
|
7620
7624
|
} else if (item.type === 'extraAction') {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"private": false,
|
3
3
|
"name": "wargerm",
|
4
|
-
"version": "0.7.
|
4
|
+
"version": "0.7.45",
|
5
5
|
"scripts": {
|
6
6
|
"dev": "dumi dev",
|
7
7
|
"docs:build": "dumi build",
|
@@ -57,11 +57,11 @@
|
|
57
57
|
"react-file-viewer": "^1.2.1",
|
58
58
|
"swiper": "^6.7.0",
|
59
59
|
"use-sync-external-store": "^1.2.0",
|
60
|
-
"xgplayer": "^2.31.
|
60
|
+
"xgplayer": "^2.31.2",
|
61
61
|
"xgplayer-flv": "^2.5.1",
|
62
62
|
"xgplayer-flv.js": "^2.3.0",
|
63
63
|
"xgplayer-hls": "^2.5.2",
|
64
|
-
"xgplayer-hls.js": "^2.
|
64
|
+
"xgplayer-hls.js": "^2.2.2"
|
65
65
|
},
|
66
66
|
"peerDependencies": {
|
67
67
|
"@ant-design/icons": ">=4.2.0",
|