wargerm 0.2.5 → 0.2.9
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 +12 -7
- package/dist/index.js +11 -6
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -38,7 +38,7 @@ import _TreeSelect from 'antd/es/tree-select';
|
|
38
38
|
import uniqBy from 'lodash/uniqBy';
|
39
39
|
import CountUp from 'react-countup';
|
40
40
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
41
|
-
import SwiperCore, { Pagination, Navigation } from 'swiper';
|
41
|
+
import SwiperCore, { Pagination, Navigation, Autoplay } from 'swiper';
|
42
42
|
import 'antd/es/breadcrumb/style';
|
43
43
|
import _Breadcrumb from 'antd/es/breadcrumb';
|
44
44
|
import ReactDOM from 'react-dom';
|
@@ -8483,7 +8483,7 @@ var Index$8 = function Index(_ref) {
|
|
8483
8483
|
|
8484
8484
|
var _excluded$9 = ["data", "onClick", "renderItem"];
|
8485
8485
|
|
8486
|
-
SwiperCore.use([Pagination, Navigation]);
|
8486
|
+
SwiperCore.use([Pagination, Navigation, Autoplay]);
|
8487
8487
|
|
8488
8488
|
var Index$9 = function Index(props) {
|
8489
8489
|
var data = props.data,
|
@@ -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();
|
@@ -9581,7 +9582,10 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9581
9582
|
setModalFormConfig = _useState4[1];
|
9582
9583
|
|
9583
9584
|
useImperativeHandle(ref, function () {
|
9584
|
-
return {
|
9585
|
+
return {
|
9586
|
+
actionRef: actionRef.current,
|
9587
|
+
formRef: formRef.current
|
9588
|
+
};
|
9585
9589
|
});
|
9586
9590
|
|
9587
9591
|
var openFormModel = function openFormModel(options) {
|
@@ -9618,7 +9622,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9618
9622
|
|
9619
9623
|
loading();
|
9620
9624
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : _actionRef$current.reload();
|
9621
|
-
});
|
9625
|
+
}, record);
|
9622
9626
|
|
9623
9627
|
case 3:
|
9624
9628
|
case "end":
|
@@ -9859,14 +9863,15 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9859
9863
|
options: false,
|
9860
9864
|
toolBarRender: false,
|
9861
9865
|
request: request,
|
9862
|
-
columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [{
|
9866
|
+
columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [_objectSpread2({
|
9863
9867
|
title: '操作',
|
9864
9868
|
dataIndex: 'option',
|
9865
9869
|
valueType: 'option',
|
9870
|
+
align: 'center',
|
9866
9871
|
render: function render(_, record, index) {
|
9867
9872
|
return tableActionDom(record, index);
|
9868
9873
|
}
|
9869
|
-
}]) : columns || [],
|
9874
|
+
}, optionColumnConfig)]) : columns || [],
|
9870
9875
|
search: {
|
9871
9876
|
labelWidth: 'auto',
|
9872
9877
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|
package/dist/index.js
CHANGED
@@ -8516,7 +8516,7 @@ var Index$8 = function Index(_ref) {
|
|
8516
8516
|
|
8517
8517
|
var _excluded$9 = ["data", "onClick", "renderItem"];
|
8518
8518
|
|
8519
|
-
SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation]);
|
8519
|
+
SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation, SwiperCore.Autoplay]);
|
8520
8520
|
|
8521
8521
|
var Index$9 = function Index(props) {
|
8522
8522
|
var data = props.data,
|
@@ -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();
|
@@ -9614,7 +9615,10 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9614
9615
|
setModalFormConfig = _useState4[1];
|
9615
9616
|
|
9616
9617
|
React.useImperativeHandle(ref, function () {
|
9617
|
-
return {
|
9618
|
+
return {
|
9619
|
+
actionRef: actionRef.current,
|
9620
|
+
formRef: formRef.current
|
9621
|
+
};
|
9618
9622
|
});
|
9619
9623
|
|
9620
9624
|
var openFormModel = function openFormModel(options) {
|
@@ -9651,7 +9655,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9651
9655
|
|
9652
9656
|
loading();
|
9653
9657
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : _actionRef$current.reload();
|
9654
|
-
});
|
9658
|
+
}, record);
|
9655
9659
|
|
9656
9660
|
case 3:
|
9657
9661
|
case "end":
|
@@ -9892,14 +9896,15 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9892
9896
|
options: false,
|
9893
9897
|
toolBarRender: false,
|
9894
9898
|
request: request,
|
9895
|
-
columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [{
|
9899
|
+
columns: tableAction && (tableAction === null || tableAction === void 0 ? void 0 : tableAction.length) > 0 ? [].concat(_toConsumableArray(columns || []), [_objectSpread2({
|
9896
9900
|
title: '操作',
|
9897
9901
|
dataIndex: 'option',
|
9898
9902
|
valueType: 'option',
|
9903
|
+
align: 'center',
|
9899
9904
|
render: function render(_, record, index) {
|
9900
9905
|
return tableActionDom(record, index);
|
9901
9906
|
}
|
9902
|
-
}]) : columns || [],
|
9907
|
+
}, optionColumnConfig)]) : columns || [],
|
9903
9908
|
search: {
|
9904
9909
|
labelWidth: 'auto',
|
9905
9910
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|