wargerm 0.6.4 → 0.6.6
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/Calendar/example/demo2.d.ts +2 -0
- package/dist/components/TabelCard/example/demo2.d.ts +3 -0
- package/dist/components/WForm/index.d.ts +1 -0
- package/dist/index.css +3 -0
- package/dist/index.esm.css +3 -0
- package/dist/index.esm.js +75 -47
- package/dist/index.js +74 -46
- package/package.json +92 -92
@@ -44,6 +44,7 @@ export interface Isearch {
|
|
44
44
|
submitText?: string;
|
45
45
|
hideSubmit?: boolean;
|
46
46
|
searchButtonConfig?: Record<string, any>;
|
47
|
+
tableBarDom?: ReactNode[];
|
47
48
|
transform?: (value: any) => any;
|
48
49
|
optionDomReverse?: boolean;
|
49
50
|
optionRender?: ((searchConfig: any, formProps: any, dom: any) => ReactNode[]) | false;
|
package/dist/index.css
CHANGED
@@ -14226,6 +14226,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
14226
14226
|
}
|
14227
14227
|
[data-prefers-color='dark'] .ant-modal-confirm-btns {
|
14228
14228
|
display: flex;
|
14229
|
+
justify-content: flex-end;
|
14229
14230
|
}
|
14230
14231
|
[data-prefers-color='dark'] [class*='animation-'] {
|
14231
14232
|
-webkit-animation-duration: 0.5s;
|
@@ -27973,6 +27974,7 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
27973
27974
|
}
|
27974
27975
|
[data-prefers-color='light'] .ant-modal-confirm-btns {
|
27975
27976
|
display: flex;
|
27977
|
+
justify-content: flex-end;
|
27976
27978
|
}
|
27977
27979
|
[data-prefers-color='light'] [class*='animation-'] {
|
27978
27980
|
-webkit-animation-duration: 0.5s;
|
@@ -41053,6 +41055,7 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
41053
41055
|
}
|
41054
41056
|
[data-prefers-color='nt'] .ant-modal-confirm-btns {
|
41055
41057
|
display: flex;
|
41058
|
+
justify-content: flex-end;
|
41056
41059
|
}
|
41057
41060
|
|
41058
41061
|
.frame {
|
package/dist/index.esm.css
CHANGED
@@ -14226,6 +14226,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
14226
14226
|
}
|
14227
14227
|
[data-prefers-color='dark'] .ant-modal-confirm-btns {
|
14228
14228
|
display: flex;
|
14229
|
+
justify-content: flex-end;
|
14229
14230
|
}
|
14230
14231
|
[data-prefers-color='dark'] [class*='animation-'] {
|
14231
14232
|
-webkit-animation-duration: 0.5s;
|
@@ -27973,6 +27974,7 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
27973
27974
|
}
|
27974
27975
|
[data-prefers-color='light'] .ant-modal-confirm-btns {
|
27975
27976
|
display: flex;
|
27977
|
+
justify-content: flex-end;
|
27976
27978
|
}
|
27977
27979
|
[data-prefers-color='light'] [class*='animation-'] {
|
27978
27980
|
-webkit-animation-duration: 0.5s;
|
@@ -41053,6 +41055,7 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
41053
41055
|
}
|
41054
41056
|
[data-prefers-color='nt'] .ant-modal-confirm-btns {
|
41055
41057
|
display: flex;
|
41058
|
+
justify-content: flex-end;
|
41056
41059
|
}
|
41057
41060
|
|
41058
41061
|
.frame {
|
package/dist/index.esm.js
CHANGED
@@ -7,7 +7,7 @@ import 'antd/es/dropdown/style';
|
|
7
7
|
import _Dropdown from 'antd/es/dropdown';
|
8
8
|
import 'antd/es/menu/style';
|
9
9
|
import _Menu from 'antd/es/menu';
|
10
|
-
import { createFromIconfontCN, PlusOutlined, SearchOutlined, ReloadOutlined, CloseCircleOutlined, EllipsisOutlined,
|
10
|
+
import { createFromIconfontCN, PlusOutlined, SearchOutlined, ReloadOutlined, CloseCircleOutlined, EllipsisOutlined, ExclamationCircleOutlined, EyeOutlined, EditOutlined, DeleteOutlined, LeftOutlined, RightOutlined } from '@ant-design/icons';
|
11
11
|
import 'antd/es/input/style';
|
12
12
|
import _Input from 'antd/es/input';
|
13
13
|
import 'antd/es/modal/style';
|
@@ -2631,7 +2631,8 @@ var WForm = function WForm(props, ref) {
|
|
2631
2631
|
key: 'submit',
|
2632
2632
|
type: "primary",
|
2633
2633
|
className: "mr20",
|
2634
|
-
htmlType
|
2634
|
+
// htmlType="submit"
|
2635
|
+
onClick: form.submit,
|
2635
2636
|
icon: /*#__PURE__*/React.createElement(SearchOutlined, null)
|
2636
2637
|
}, search && search.searchText ? search.searchText : '提交')].concat(_toConsumableArray(search.hideResetBtn ? [] : [/*#__PURE__*/React.createElement(WButton, {
|
2637
2638
|
key: 'reset',
|
@@ -2643,7 +2644,8 @@ var WForm = function WForm(props, ref) {
|
|
2643
2644
|
key: 'submit',
|
2644
2645
|
type: "primary",
|
2645
2646
|
className: "mr20",
|
2646
|
-
htmlType
|
2647
|
+
// htmlType="submit"
|
2648
|
+
onClick: form.submit,
|
2647
2649
|
icon: /*#__PURE__*/React.createElement(SearchOutlined, null)
|
2648
2650
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React.createElement(WButton, {
|
2649
2651
|
key: 'reset',
|
@@ -2655,7 +2657,8 @@ var WForm = function WForm(props, ref) {
|
|
2655
2657
|
key: 'submit',
|
2656
2658
|
type: "primary",
|
2657
2659
|
className: "mr20",
|
2658
|
-
htmlType
|
2660
|
+
// htmlType="submit"
|
2661
|
+
onClick: form.submit,
|
2659
2662
|
icon: /*#__PURE__*/React.createElement(SearchOutlined, null)
|
2660
2663
|
}, search && search.searchText ? search.searchText : '提交'), search.hideResetBtn ? null : /*#__PURE__*/React.createElement(WButton, {
|
2661
2664
|
key: 'reset',
|
@@ -2663,7 +2666,7 @@ var WForm = function WForm(props, ref) {
|
|
2663
2666
|
className: "mr20",
|
2664
2667
|
icon: /*#__PURE__*/React.createElement(ReloadOutlined, null),
|
2665
2668
|
onClick: handleRest
|
2666
|
-
}, search && search.resetText ? search.resetText : '重置')) : null)))));
|
2669
|
+
}, search && search.resetText ? search.resetText : '重置')) : null, search && (search === null || search === void 0 ? void 0 : search.tableBarDom))))));
|
2667
2670
|
};
|
2668
2671
|
|
2669
2672
|
var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
|
@@ -5391,7 +5394,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5391
5394
|
return {
|
5392
5395
|
actionRef: actionRef.current,
|
5393
5396
|
modalFormRef: modalFormRef.current,
|
5394
|
-
searchFormRef: searchFormRef.current
|
5397
|
+
searchFormRef: searchFormRef.current,
|
5398
|
+
modalFormConfig: modalFormConfig
|
5395
5399
|
};
|
5396
5400
|
});
|
5397
5401
|
|
@@ -5877,50 +5881,72 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5877
5881
|
}
|
5878
5882
|
|
5879
5883
|
return true;
|
5884
|
+
}).map(function (item) {
|
5885
|
+
var _item$renderColumn;
|
5886
|
+
|
5887
|
+
return (item === null || item === void 0 ? void 0 : (_item$renderColumn = item.renderColumn) === null || _item$renderColumn === void 0 ? void 0 : _item$renderColumn.call(item, item, modalFormConfig)) || item;
|
5880
5888
|
})
|
5881
5889
|
})), /*#__PURE__*/React.createElement(WForm$1, _objectSpread2({
|
5882
5890
|
ref: searchFormRef,
|
5883
5891
|
disabledRuler: true,
|
5884
|
-
|
5885
|
-
|
5886
|
-
|
5892
|
+
// search={
|
5893
|
+
// search == false
|
5894
|
+
// ? {
|
5895
|
+
// hideSubmit: true,
|
5896
|
+
// }
|
5897
|
+
// : {
|
5898
|
+
// labelWidth: 'auto',
|
5899
|
+
// searchText: '查询',
|
5900
|
+
// span: 6,
|
5901
|
+
// ...search,
|
5902
|
+
// optionRender: (searchConfig, formProps, dom) => {
|
5903
|
+
// // return [...dom.reverse(), tableBarDom];
|
5904
|
+
// // return [...(search?.optionDomReverse ? dom.reverse() : dom), tableBarDom];
|
5905
|
+
// const newDom = [
|
5906
|
+
// <Button
|
5907
|
+
// key="submit"
|
5908
|
+
// type="primary"
|
5909
|
+
// className="mr20"
|
5910
|
+
// icon={<SearchOutlined />}
|
5911
|
+
// onClick={() => {
|
5912
|
+
// searchFormRef?.current?.handleSubmit();
|
5913
|
+
// }}
|
5914
|
+
// >
|
5915
|
+
// {search?.searchText || '查询'}
|
5916
|
+
// </Button>,
|
5917
|
+
// ...(search?.hideResetBtn ? [] : [<Button
|
5918
|
+
// key="reset"
|
5919
|
+
// type="primary"
|
5920
|
+
// className="mr20"
|
5921
|
+
// icon={<RedoOutlined />}
|
5922
|
+
// onClick={() => {
|
5923
|
+
// searchFormRef?.current?.handleRest();
|
5924
|
+
// }}
|
5925
|
+
// >
|
5926
|
+
// {search?.submitText || '重置'}
|
5927
|
+
//
|
5928
|
+
// </Button>]),
|
5929
|
+
// ];
|
5930
|
+
// return [
|
5931
|
+
// ...(search?.optionDomReverse ? newDom.reverse() : newDom),
|
5932
|
+
// tableBarDom,
|
5933
|
+
// ];
|
5934
|
+
// },
|
5935
|
+
// // optionRender: (searchConfig, formProps, dom) => {
|
5936
|
+
// // // return [...dom.reverse(), tableBarDom];
|
5937
|
+
// // return [
|
5938
|
+
// // ...(search?.optionDomReverse ? dom.reverse() : dom),
|
5939
|
+
// // tableBarDom,
|
5940
|
+
// // ];
|
5941
|
+
// // },
|
5942
|
+
// }
|
5943
|
+
// }
|
5944
|
+
search: _objectSpread2(_objectSpread2({
|
5887
5945
|
labelWidth: 'auto',
|
5888
5946
|
searchText: '查询',
|
5889
5947
|
span: 6
|
5890
5948
|
}, search), {}, {
|
5891
|
-
|
5892
|
-
// return [...dom.reverse(), tableBarDom];
|
5893
|
-
// return [...(search?.optionDomReverse ? dom.reverse() : dom), tableBarDom];
|
5894
|
-
var newDom = [/*#__PURE__*/React.createElement(_Button, {
|
5895
|
-
key: "submit",
|
5896
|
-
type: "primary",
|
5897
|
-
className: "mr20",
|
5898
|
-
icon: /*#__PURE__*/React.createElement(SearchOutlined, null),
|
5899
|
-
onClick: function onClick() {
|
5900
|
-
var _searchFormRef$curren5;
|
5901
|
-
|
5902
|
-
searchFormRef === null || searchFormRef === void 0 ? void 0 : (_searchFormRef$curren5 = searchFormRef.current) === null || _searchFormRef$curren5 === void 0 ? void 0 : _searchFormRef$curren5.handleSubmit();
|
5903
|
-
}
|
5904
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
|
5905
|
-
key: "reset",
|
5906
|
-
type: "primary",
|
5907
|
-
className: "mr20",
|
5908
|
-
icon: /*#__PURE__*/React.createElement(RedoOutlined, null),
|
5909
|
-
onClick: function onClick() {
|
5910
|
-
var _searchFormRef$curren6;
|
5911
|
-
|
5912
|
-
searchFormRef === null || searchFormRef === void 0 ? void 0 : (_searchFormRef$curren6 = searchFormRef.current) === null || _searchFormRef$curren6 === void 0 ? void 0 : _searchFormRef$curren6.handleRest();
|
5913
|
-
}
|
5914
|
-
}, "\u91CD\u7F6E")];
|
5915
|
-
return [].concat(_toConsumableArray((search === null || search === void 0 ? void 0 : search.optionDomReverse) ? newDom.reverse() : newDom), [tableBarDom]);
|
5916
|
-
} // optionRender: (searchConfig, formProps, dom) => {
|
5917
|
-
// // return [...dom.reverse(), tableBarDom];
|
5918
|
-
// return [
|
5919
|
-
// ...(search?.optionDomReverse ? dom.reverse() : dom),
|
5920
|
-
// tableBarDom,
|
5921
|
-
// ];
|
5922
|
-
// },
|
5923
|
-
|
5949
|
+
tableBarDom: tableBarDom
|
5924
5950
|
}),
|
5925
5951
|
onSubmit: onSubmit,
|
5926
5952
|
onReset: onReset,
|
@@ -6169,7 +6195,9 @@ function Calendar(_ref, ref) {
|
|
6169
6195
|
toolBarSolt = _ref.toolBarSolt,
|
6170
6196
|
dateCellRender = _ref.dateCellRender,
|
6171
6197
|
onCell = _ref.onCell,
|
6172
|
-
calendarBodyClassName = _ref.calendarBodyClassName
|
6198
|
+
calendarBodyClassName = _ref.calendarBodyClassName,
|
6199
|
+
hiddenWeekLabel = _ref.hiddenWeekLabel,
|
6200
|
+
dateString = _ref.dateString;
|
6173
6201
|
|
6174
6202
|
var _useState = useState(initCalendar()),
|
6175
6203
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -6208,9 +6236,9 @@ function Calendar(_ref, ref) {
|
|
6208
6236
|
|
6209
6237
|
setDays(initWeekCalendar(type, datevalue));
|
6210
6238
|
} else {
|
6211
|
-
setDays(initCalendar(datevalue));
|
6239
|
+
setDays(initCalendar(dateString || datevalue));
|
6212
6240
|
}
|
6213
|
-
}, [type, datevalue]);
|
6241
|
+
}, [type, datevalue, dateString]);
|
6214
6242
|
useEffect(function () {
|
6215
6243
|
setDatevalue(value || moment());
|
6216
6244
|
}, [value]);
|
@@ -6274,7 +6302,7 @@ function Calendar(_ref, ref) {
|
|
6274
6302
|
className: "content_container"
|
6275
6303
|
}, /*#__PURE__*/React.createElement(_ConfigProvider, {
|
6276
6304
|
locale: zhCN$1
|
6277
|
-
}, /*#__PURE__*/React.createElement("div", {
|
6305
|
+
}, !dateString && /*#__PURE__*/React.createElement("div", {
|
6278
6306
|
className: "toolbar_container"
|
6279
6307
|
}, /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
|
6280
6308
|
icon: /*#__PURE__*/React.createElement(LeftOutlined, null),
|
@@ -6354,7 +6382,7 @@ function Calendar(_ref, ref) {
|
|
6354
6382
|
className: "day_container ".concat(day.isCurrentDay ? 'isCurrentDay' : '', " ").concat(day.isCurrentMonth ? 'isCurrentMonth' : ''),
|
6355
6383
|
key: index
|
6356
6384
|
}, dateCellRender ? dateCellRender(day) : day.text) : null;
|
6357
|
-
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
6385
|
+
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, !hiddenWeekLabel && /*#__PURE__*/React.createElement("div", {
|
6358
6386
|
className: "calendar_header_wrapper"
|
6359
6387
|
}, weekLabelArray.map(function (weekLabel) {
|
6360
6388
|
return /*#__PURE__*/React.createElement("div", {
|
package/dist/index.js
CHANGED
@@ -2696,7 +2696,8 @@ var WForm = function WForm(props, ref) {
|
|
2696
2696
|
key: 'submit',
|
2697
2697
|
type: "primary",
|
2698
2698
|
className: "mr20",
|
2699
|
-
htmlType
|
2699
|
+
// htmlType="submit"
|
2700
|
+
onClick: form.submit,
|
2700
2701
|
icon: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null)
|
2701
2702
|
}, search && search.searchText ? search.searchText : '提交')].concat(_toConsumableArray(search.hideResetBtn ? [] : [/*#__PURE__*/React__default['default'].createElement(WButton, {
|
2702
2703
|
key: 'reset',
|
@@ -2708,7 +2709,8 @@ var WForm = function WForm(props, ref) {
|
|
2708
2709
|
key: 'submit',
|
2709
2710
|
type: "primary",
|
2710
2711
|
className: "mr20",
|
2711
|
-
htmlType
|
2712
|
+
// htmlType="submit"
|
2713
|
+
onClick: form.submit,
|
2712
2714
|
icon: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null)
|
2713
2715
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(WButton, {
|
2714
2716
|
key: 'reset',
|
@@ -2720,7 +2722,8 @@ var WForm = function WForm(props, ref) {
|
|
2720
2722
|
key: 'submit',
|
2721
2723
|
type: "primary",
|
2722
2724
|
className: "mr20",
|
2723
|
-
htmlType
|
2725
|
+
// htmlType="submit"
|
2726
|
+
onClick: form.submit,
|
2724
2727
|
icon: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null)
|
2725
2728
|
}, search && search.searchText ? search.searchText : '提交'), search.hideResetBtn ? null : /*#__PURE__*/React__default['default'].createElement(WButton, {
|
2726
2729
|
key: 'reset',
|
@@ -2728,7 +2731,7 @@ var WForm = function WForm(props, ref) {
|
|
2728
2731
|
className: "mr20",
|
2729
2732
|
icon: /*#__PURE__*/React__default['default'].createElement(icons.ReloadOutlined, null),
|
2730
2733
|
onClick: handleRest
|
2731
|
-
}, search && search.resetText ? search.resetText : '重置')) : null)))));
|
2734
|
+
}, search && search.resetText ? search.resetText : '重置')) : null, search && (search === null || search === void 0 ? void 0 : search.tableBarDom))))));
|
2732
2735
|
};
|
2733
2736
|
|
2734
2737
|
var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
|
@@ -5456,7 +5459,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5456
5459
|
return {
|
5457
5460
|
actionRef: actionRef.current,
|
5458
5461
|
modalFormRef: modalFormRef.current,
|
5459
|
-
searchFormRef: searchFormRef.current
|
5462
|
+
searchFormRef: searchFormRef.current,
|
5463
|
+
modalFormConfig: modalFormConfig
|
5460
5464
|
};
|
5461
5465
|
});
|
5462
5466
|
|
@@ -5942,50 +5946,72 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5942
5946
|
}
|
5943
5947
|
|
5944
5948
|
return true;
|
5949
|
+
}).map(function (item) {
|
5950
|
+
var _item$renderColumn;
|
5951
|
+
|
5952
|
+
return (item === null || item === void 0 ? void 0 : (_item$renderColumn = item.renderColumn) === null || _item$renderColumn === void 0 ? void 0 : _item$renderColumn.call(item, item, modalFormConfig)) || item;
|
5945
5953
|
})
|
5946
5954
|
})), /*#__PURE__*/React__default['default'].createElement(WForm$1, _objectSpread2({
|
5947
5955
|
ref: searchFormRef,
|
5948
5956
|
disabledRuler: true,
|
5949
|
-
|
5950
|
-
|
5951
|
-
|
5957
|
+
// search={
|
5958
|
+
// search == false
|
5959
|
+
// ? {
|
5960
|
+
// hideSubmit: true,
|
5961
|
+
// }
|
5962
|
+
// : {
|
5963
|
+
// labelWidth: 'auto',
|
5964
|
+
// searchText: '查询',
|
5965
|
+
// span: 6,
|
5966
|
+
// ...search,
|
5967
|
+
// optionRender: (searchConfig, formProps, dom) => {
|
5968
|
+
// // return [...dom.reverse(), tableBarDom];
|
5969
|
+
// // return [...(search?.optionDomReverse ? dom.reverse() : dom), tableBarDom];
|
5970
|
+
// const newDom = [
|
5971
|
+
// <Button
|
5972
|
+
// key="submit"
|
5973
|
+
// type="primary"
|
5974
|
+
// className="mr20"
|
5975
|
+
// icon={<SearchOutlined />}
|
5976
|
+
// onClick={() => {
|
5977
|
+
// searchFormRef?.current?.handleSubmit();
|
5978
|
+
// }}
|
5979
|
+
// >
|
5980
|
+
// {search?.searchText || '查询'}
|
5981
|
+
// </Button>,
|
5982
|
+
// ...(search?.hideResetBtn ? [] : [<Button
|
5983
|
+
// key="reset"
|
5984
|
+
// type="primary"
|
5985
|
+
// className="mr20"
|
5986
|
+
// icon={<RedoOutlined />}
|
5987
|
+
// onClick={() => {
|
5988
|
+
// searchFormRef?.current?.handleRest();
|
5989
|
+
// }}
|
5990
|
+
// >
|
5991
|
+
// {search?.submitText || '重置'}
|
5992
|
+
//
|
5993
|
+
// </Button>]),
|
5994
|
+
// ];
|
5995
|
+
// return [
|
5996
|
+
// ...(search?.optionDomReverse ? newDom.reverse() : newDom),
|
5997
|
+
// tableBarDom,
|
5998
|
+
// ];
|
5999
|
+
// },
|
6000
|
+
// // optionRender: (searchConfig, formProps, dom) => {
|
6001
|
+
// // // return [...dom.reverse(), tableBarDom];
|
6002
|
+
// // return [
|
6003
|
+
// // ...(search?.optionDomReverse ? dom.reverse() : dom),
|
6004
|
+
// // tableBarDom,
|
6005
|
+
// // ];
|
6006
|
+
// // },
|
6007
|
+
// }
|
6008
|
+
// }
|
6009
|
+
search: _objectSpread2(_objectSpread2({
|
5952
6010
|
labelWidth: 'auto',
|
5953
6011
|
searchText: '查询',
|
5954
6012
|
span: 6
|
5955
6013
|
}, search), {}, {
|
5956
|
-
|
5957
|
-
// return [...dom.reverse(), tableBarDom];
|
5958
|
-
// return [...(search?.optionDomReverse ? dom.reverse() : dom), tableBarDom];
|
5959
|
-
var newDom = [/*#__PURE__*/React__default['default'].createElement(_Button__default['default'], {
|
5960
|
-
key: "submit",
|
5961
|
-
type: "primary",
|
5962
|
-
className: "mr20",
|
5963
|
-
icon: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null),
|
5964
|
-
onClick: function onClick() {
|
5965
|
-
var _searchFormRef$curren5;
|
5966
|
-
|
5967
|
-
searchFormRef === null || searchFormRef === void 0 ? void 0 : (_searchFormRef$curren5 = searchFormRef.current) === null || _searchFormRef$curren5 === void 0 ? void 0 : _searchFormRef$curren5.handleSubmit();
|
5968
|
-
}
|
5969
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(_Button__default['default'], {
|
5970
|
-
key: "reset",
|
5971
|
-
type: "primary",
|
5972
|
-
className: "mr20",
|
5973
|
-
icon: /*#__PURE__*/React__default['default'].createElement(icons.RedoOutlined, null),
|
5974
|
-
onClick: function onClick() {
|
5975
|
-
var _searchFormRef$curren6;
|
5976
|
-
|
5977
|
-
searchFormRef === null || searchFormRef === void 0 ? void 0 : (_searchFormRef$curren6 = searchFormRef.current) === null || _searchFormRef$curren6 === void 0 ? void 0 : _searchFormRef$curren6.handleRest();
|
5978
|
-
}
|
5979
|
-
}, "\u91CD\u7F6E")];
|
5980
|
-
return [].concat(_toConsumableArray((search === null || search === void 0 ? void 0 : search.optionDomReverse) ? newDom.reverse() : newDom), [tableBarDom]);
|
5981
|
-
} // optionRender: (searchConfig, formProps, dom) => {
|
5982
|
-
// // return [...dom.reverse(), tableBarDom];
|
5983
|
-
// return [
|
5984
|
-
// ...(search?.optionDomReverse ? dom.reverse() : dom),
|
5985
|
-
// tableBarDom,
|
5986
|
-
// ];
|
5987
|
-
// },
|
5988
|
-
|
6014
|
+
tableBarDom: tableBarDom
|
5989
6015
|
}),
|
5990
6016
|
onSubmit: onSubmit,
|
5991
6017
|
onReset: onReset,
|
@@ -6234,7 +6260,9 @@ function Calendar(_ref, ref) {
|
|
6234
6260
|
toolBarSolt = _ref.toolBarSolt,
|
6235
6261
|
dateCellRender = _ref.dateCellRender,
|
6236
6262
|
onCell = _ref.onCell,
|
6237
|
-
calendarBodyClassName = _ref.calendarBodyClassName
|
6263
|
+
calendarBodyClassName = _ref.calendarBodyClassName,
|
6264
|
+
hiddenWeekLabel = _ref.hiddenWeekLabel,
|
6265
|
+
dateString = _ref.dateString;
|
6238
6266
|
|
6239
6267
|
var _useState = React.useState(initCalendar()),
|
6240
6268
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -6273,9 +6301,9 @@ function Calendar(_ref, ref) {
|
|
6273
6301
|
|
6274
6302
|
setDays(initWeekCalendar(type, datevalue));
|
6275
6303
|
} else {
|
6276
|
-
setDays(initCalendar(datevalue));
|
6304
|
+
setDays(initCalendar(dateString || datevalue));
|
6277
6305
|
}
|
6278
|
-
}, [type, datevalue]);
|
6306
|
+
}, [type, datevalue, dateString]);
|
6279
6307
|
React.useEffect(function () {
|
6280
6308
|
setDatevalue(value || moment__default['default']());
|
6281
6309
|
}, [value]);
|
@@ -6339,7 +6367,7 @@ function Calendar(_ref, ref) {
|
|
6339
6367
|
className: "content_container"
|
6340
6368
|
}, /*#__PURE__*/React__default['default'].createElement(_ConfigProvider__default['default'], {
|
6341
6369
|
locale: zhCN__default$1['default']
|
6342
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
6370
|
+
}, !dateString && /*#__PURE__*/React__default['default'].createElement("div", {
|
6343
6371
|
className: "toolbar_container"
|
6344
6372
|
}, /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], null, /*#__PURE__*/React__default['default'].createElement(_Button__default['default'], {
|
6345
6373
|
icon: /*#__PURE__*/React__default['default'].createElement(icons.LeftOutlined, null),
|
@@ -6419,7 +6447,7 @@ function Calendar(_ref, ref) {
|
|
6419
6447
|
className: "day_container ".concat(day.isCurrentDay ? 'isCurrentDay' : '', " ").concat(day.isCurrentMonth ? 'isCurrentMonth' : ''),
|
6420
6448
|
key: index
|
6421
6449
|
}, dateCellRender ? dateCellRender(day) : day.text) : null;
|
6422
|
-
}))) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
6450
|
+
}))) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !hiddenWeekLabel && /*#__PURE__*/React__default['default'].createElement("div", {
|
6423
6451
|
className: "calendar_header_wrapper"
|
6424
6452
|
}, weekLabelArray.map(function (weekLabel) {
|
6425
6453
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
package/package.json
CHANGED
@@ -1,92 +1,92 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.6.
|
5
|
-
"scripts": {
|
6
|
-
"dev": "dumi dev",
|
7
|
-
"docs:build": "dumi build",
|
8
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
-
"build": "father-build",
|
10
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
-
"release": "npm run build && npm publish",
|
12
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
-
"test": "umi-test",
|
14
|
-
"test:coverage": "umi-test --coverage"
|
15
|
-
},
|
16
|
-
"main": "dist/index.js",
|
17
|
-
"module": "dist/index.esm.js",
|
18
|
-
"unpkg": "dist/index.umd.min.js",
|
19
|
-
"typings": "dist/index.d.ts",
|
20
|
-
"author": "jinly2",
|
21
|
-
"license": "MIT",
|
22
|
-
"keywords": [
|
23
|
-
"React",
|
24
|
-
"Component"
|
25
|
-
],
|
26
|
-
"gitHooks": {
|
27
|
-
"pre-commit": "lint-staged"
|
28
|
-
},
|
29
|
-
"repository": {
|
30
|
-
"type": "git",
|
31
|
-
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
-
"branch": "main"
|
33
|
-
},
|
34
|
-
"files": [
|
35
|
-
"dist",
|
36
|
-
"es",
|
37
|
-
"lib",
|
38
|
-
"index.css"
|
39
|
-
],
|
40
|
-
"lint-staged": {
|
41
|
-
"*.{js,jsx,less,md,json}": [
|
42
|
-
"prettier --write"
|
43
|
-
],
|
44
|
-
"*.ts?(x)": [
|
45
|
-
"prettier --parser=typescript --write"
|
46
|
-
]
|
47
|
-
},
|
48
|
-
"dependencies": {
|
49
|
-
"@ant-design/pro-table": "^2.79.0",
|
50
|
-
"animate.css": "^4.1.1",
|
51
|
-
"echarts": "^5.2.2",
|
52
|
-
"echarts-for-react": "^3.0.2",
|
53
|
-
"lodash-es": "^4.17.21",
|
54
|
-
"moment": "^2.29.4",
|
55
|
-
"react-countup": "^6.0.0",
|
56
|
-
"react-dom": "^17.0.2",
|
57
|
-
"react-file-viewer": "^1.2.1",
|
58
|
-
"swiper": "^6.7.0",
|
59
|
-
"use-sync-external-store": "^1.2.0",
|
60
|
-
"xgplayer": "^2.31.6",
|
61
|
-
"xgplayer-flv": "^2.5.1",
|
62
|
-
"xgplayer-flv.js": "^2.3.0",
|
63
|
-
"xgplayer-hls": "^2.5.2",
|
64
|
-
"xgplayer-hls.js": "^2.6.1"
|
65
|
-
},
|
66
|
-
"peerDependencies": {
|
67
|
-
"@ant-design/icons": ">=4.2.0",
|
68
|
-
"antd": ">=4.7.0",
|
69
|
-
"classnames": ">=2.2.0",
|
70
|
-
"echarts": "^5.2.2",
|
71
|
-
"echarts-for-react": "^3.0.2",
|
72
|
-
"lodash-es": ">=4.17.21",
|
73
|
-
"react": ">=17.0.0"
|
74
|
-
},
|
75
|
-
"devDependencies": {
|
76
|
-
"@ant-design/icons": "^4.6.4",
|
77
|
-
"@types/lodash-es": "^4.17.6",
|
78
|
-
"@types/react-dom": "^17.0.11",
|
79
|
-
"@types/use-sync-external-store": "^0.0.3",
|
80
|
-
"@umijs/test": "^3.0.5",
|
81
|
-
"antd": "^4.16.13",
|
82
|
-
"babel-plugin-import": "^1.13.3",
|
83
|
-
"classnames": "^2.3.1",
|
84
|
-
"dumi": "^1.1.31",
|
85
|
-
"father-build": "^1.19.1",
|
86
|
-
"gh-pages": "^3.0.0",
|
87
|
-
"lint-staged": "^10.0.7",
|
88
|
-
"prettier": "^1.19.1",
|
89
|
-
"react": "^16.12.0",
|
90
|
-
"yorkie": "^2.0.0"
|
91
|
-
}
|
92
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.6.6",
|
5
|
+
"scripts": {
|
6
|
+
"dev": "dumi dev",
|
7
|
+
"docs:build": "dumi build",
|
8
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
+
"build": "father-build",
|
10
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
+
"release": "npm run build && npm publish",
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
+
"test": "umi-test",
|
14
|
+
"test:coverage": "umi-test --coverage"
|
15
|
+
},
|
16
|
+
"main": "dist/index.js",
|
17
|
+
"module": "dist/index.esm.js",
|
18
|
+
"unpkg": "dist/index.umd.min.js",
|
19
|
+
"typings": "dist/index.d.ts",
|
20
|
+
"author": "jinly2",
|
21
|
+
"license": "MIT",
|
22
|
+
"keywords": [
|
23
|
+
"React",
|
24
|
+
"Component"
|
25
|
+
],
|
26
|
+
"gitHooks": {
|
27
|
+
"pre-commit": "lint-staged"
|
28
|
+
},
|
29
|
+
"repository": {
|
30
|
+
"type": "git",
|
31
|
+
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
+
"branch": "main"
|
33
|
+
},
|
34
|
+
"files": [
|
35
|
+
"dist",
|
36
|
+
"es",
|
37
|
+
"lib",
|
38
|
+
"index.css"
|
39
|
+
],
|
40
|
+
"lint-staged": {
|
41
|
+
"*.{js,jsx,less,md,json}": [
|
42
|
+
"prettier --write"
|
43
|
+
],
|
44
|
+
"*.ts?(x)": [
|
45
|
+
"prettier --parser=typescript --write"
|
46
|
+
]
|
47
|
+
},
|
48
|
+
"dependencies": {
|
49
|
+
"@ant-design/pro-table": "^2.79.0",
|
50
|
+
"animate.css": "^4.1.1",
|
51
|
+
"echarts": "^5.2.2",
|
52
|
+
"echarts-for-react": "^3.0.2",
|
53
|
+
"lodash-es": "^4.17.21",
|
54
|
+
"moment": "^2.29.4",
|
55
|
+
"react-countup": "^6.0.0",
|
56
|
+
"react-dom": "^17.0.2",
|
57
|
+
"react-file-viewer": "^1.2.1",
|
58
|
+
"swiper": "^6.7.0",
|
59
|
+
"use-sync-external-store": "^1.2.0",
|
60
|
+
"xgplayer": "^2.31.6",
|
61
|
+
"xgplayer-flv": "^2.5.1",
|
62
|
+
"xgplayer-flv.js": "^2.3.0",
|
63
|
+
"xgplayer-hls": "^2.5.2",
|
64
|
+
"xgplayer-hls.js": "^2.6.1"
|
65
|
+
},
|
66
|
+
"peerDependencies": {
|
67
|
+
"@ant-design/icons": ">=4.2.0",
|
68
|
+
"antd": ">=4.7.0",
|
69
|
+
"classnames": ">=2.2.0",
|
70
|
+
"echarts": "^5.2.2",
|
71
|
+
"echarts-for-react": "^3.0.2",
|
72
|
+
"lodash-es": ">=4.17.21",
|
73
|
+
"react": ">=17.0.0"
|
74
|
+
},
|
75
|
+
"devDependencies": {
|
76
|
+
"@ant-design/icons": "^4.6.4",
|
77
|
+
"@types/lodash-es": "^4.17.6",
|
78
|
+
"@types/react-dom": "^17.0.11",
|
79
|
+
"@types/use-sync-external-store": "^0.0.3",
|
80
|
+
"@umijs/test": "^3.0.5",
|
81
|
+
"antd": "^4.16.13",
|
82
|
+
"babel-plugin-import": "^1.13.3",
|
83
|
+
"classnames": "^2.3.1",
|
84
|
+
"dumi": "^1.1.31",
|
85
|
+
"father-build": "^1.19.1",
|
86
|
+
"gh-pages": "^3.0.0",
|
87
|
+
"lint-staged": "^10.0.7",
|
88
|
+
"prettier": "^1.19.1",
|
89
|
+
"react": "^16.12.0",
|
90
|
+
"yorkie": "^2.0.0"
|
91
|
+
}
|
92
|
+
}
|