wargerm 0.3.7 → 0.3.10
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/ModalTips/index.d.ts +1 -0
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/index.css +12 -2
- package/dist/index.esm.css +12 -2
- package/dist/index.esm.js +23 -12
- package/dist/index.js +23 -12
- package/package.json +1 -1
@@ -10,5 +10,5 @@ export interface ISelect extends SelectProps<any> {
|
|
10
10
|
export declare type IWSelectComponent = React.FC<ISelect> & {
|
11
11
|
Option?: React.FC<IOptionProps>;
|
12
12
|
};
|
13
|
-
declare
|
14
|
-
export default
|
13
|
+
declare const _default: React.NamedExoticComponent<ISelect>;
|
14
|
+
export default _default;
|
package/dist/index.css
CHANGED
@@ -269,6 +269,7 @@
|
|
269
269
|
display: flex;
|
270
270
|
align-items: center;
|
271
271
|
justify-content: center;
|
272
|
+
text-align: center;
|
272
273
|
position: relative;
|
273
274
|
z-index: 2;
|
274
275
|
}
|
@@ -318,9 +319,10 @@
|
|
318
319
|
display: flex;
|
319
320
|
align-items: center;
|
320
321
|
justify-content: center;
|
322
|
+
text-align: center;
|
321
323
|
position: relative;
|
322
324
|
z-index: 2;
|
323
|
-
height: 32px;
|
325
|
+
min-height: 32px;
|
324
326
|
}
|
325
327
|
[data-prefers-color='dark'] .container .tbody {
|
326
328
|
overflow: auto;
|
@@ -330,7 +332,7 @@
|
|
330
332
|
[data-prefers-color='dark'] .container .tbody .tr {
|
331
333
|
padding-left: 6px;
|
332
334
|
width: 100%;
|
333
|
-
height: 32px;
|
335
|
+
min-height: 32px;
|
334
336
|
display: flex;
|
335
337
|
margin-bottom: 17px;
|
336
338
|
position: relative;
|
@@ -369,6 +371,7 @@
|
|
369
371
|
display: flex;
|
370
372
|
align-items: center;
|
371
373
|
justify-content: center;
|
374
|
+
text-align: center;
|
372
375
|
position: relative;
|
373
376
|
z-index: 2;
|
374
377
|
}
|
@@ -377,6 +380,7 @@
|
|
377
380
|
display: flex;
|
378
381
|
align-items: center;
|
379
382
|
justify-content: center;
|
383
|
+
text-align: center;
|
380
384
|
position: relative;
|
381
385
|
z-index: 2;
|
382
386
|
}
|
@@ -426,6 +430,7 @@
|
|
426
430
|
display: flex;
|
427
431
|
align-items: center;
|
428
432
|
justify-content: center;
|
433
|
+
text-align: center;
|
429
434
|
position: relative;
|
430
435
|
z-index: 2;
|
431
436
|
min-height: 32px;
|
@@ -477,6 +482,7 @@
|
|
477
482
|
display: flex;
|
478
483
|
align-items: center;
|
479
484
|
justify-content: center;
|
485
|
+
text-align: center;
|
480
486
|
position: relative;
|
481
487
|
z-index: 2;
|
482
488
|
}
|
@@ -485,6 +491,7 @@
|
|
485
491
|
display: flex;
|
486
492
|
align-items: center;
|
487
493
|
justify-content: center;
|
494
|
+
text-align: center;
|
488
495
|
position: relative;
|
489
496
|
z-index: 2;
|
490
497
|
}
|
@@ -1839,6 +1846,9 @@ button.swiper-pagination-bullet {
|
|
1839
1846
|
.model_container-tips .model_wrap-tips .model_bottom-tips .okbtn:hover {
|
1840
1847
|
border: 1px solid #276588;
|
1841
1848
|
}
|
1849
|
+
.model_container-tips .model_wrap-tips .model_bottom-tips .okbtn .ant-btn-loading-icon {
|
1850
|
+
width: auto !important;
|
1851
|
+
}
|
1842
1852
|
.model_container-tips .model_wrap-tips .model_bottom-tips .concellbtn {
|
1843
1853
|
background: #1487c2;
|
1844
1854
|
font-size: 14px;
|
package/dist/index.esm.css
CHANGED
@@ -269,6 +269,7 @@
|
|
269
269
|
display: flex;
|
270
270
|
align-items: center;
|
271
271
|
justify-content: center;
|
272
|
+
text-align: center;
|
272
273
|
position: relative;
|
273
274
|
z-index: 2;
|
274
275
|
}
|
@@ -318,9 +319,10 @@
|
|
318
319
|
display: flex;
|
319
320
|
align-items: center;
|
320
321
|
justify-content: center;
|
322
|
+
text-align: center;
|
321
323
|
position: relative;
|
322
324
|
z-index: 2;
|
323
|
-
height: 32px;
|
325
|
+
min-height: 32px;
|
324
326
|
}
|
325
327
|
[data-prefers-color='dark'] .container .tbody {
|
326
328
|
overflow: auto;
|
@@ -330,7 +332,7 @@
|
|
330
332
|
[data-prefers-color='dark'] .container .tbody .tr {
|
331
333
|
padding-left: 6px;
|
332
334
|
width: 100%;
|
333
|
-
height: 32px;
|
335
|
+
min-height: 32px;
|
334
336
|
display: flex;
|
335
337
|
margin-bottom: 17px;
|
336
338
|
position: relative;
|
@@ -369,6 +371,7 @@
|
|
369
371
|
display: flex;
|
370
372
|
align-items: center;
|
371
373
|
justify-content: center;
|
374
|
+
text-align: center;
|
372
375
|
position: relative;
|
373
376
|
z-index: 2;
|
374
377
|
}
|
@@ -377,6 +380,7 @@
|
|
377
380
|
display: flex;
|
378
381
|
align-items: center;
|
379
382
|
justify-content: center;
|
383
|
+
text-align: center;
|
380
384
|
position: relative;
|
381
385
|
z-index: 2;
|
382
386
|
}
|
@@ -426,6 +430,7 @@
|
|
426
430
|
display: flex;
|
427
431
|
align-items: center;
|
428
432
|
justify-content: center;
|
433
|
+
text-align: center;
|
429
434
|
position: relative;
|
430
435
|
z-index: 2;
|
431
436
|
min-height: 32px;
|
@@ -477,6 +482,7 @@
|
|
477
482
|
display: flex;
|
478
483
|
align-items: center;
|
479
484
|
justify-content: center;
|
485
|
+
text-align: center;
|
480
486
|
position: relative;
|
481
487
|
z-index: 2;
|
482
488
|
}
|
@@ -485,6 +491,7 @@
|
|
485
491
|
display: flex;
|
486
492
|
align-items: center;
|
487
493
|
justify-content: center;
|
494
|
+
text-align: center;
|
488
495
|
position: relative;
|
489
496
|
z-index: 2;
|
490
497
|
}
|
@@ -1839,6 +1846,9 @@ button.swiper-pagination-bullet {
|
|
1839
1846
|
.model_container-tips .model_wrap-tips .model_bottom-tips .okbtn:hover {
|
1840
1847
|
border: 1px solid #276588;
|
1841
1848
|
}
|
1849
|
+
.model_container-tips .model_wrap-tips .model_bottom-tips .okbtn .ant-btn-loading-icon {
|
1850
|
+
width: auto !important;
|
1851
|
+
}
|
1842
1852
|
.model_container-tips .model_wrap-tips .model_bottom-tips .concellbtn {
|
1843
1853
|
background: #1487c2;
|
1844
1854
|
font-size: 14px;
|
package/dist/index.esm.js
CHANGED
@@ -737,7 +737,7 @@ var WSelect = function WSelect(props) {
|
|
737
737
|
|
738
738
|
onLoad && onLoad(options);
|
739
739
|
setValueEnumList(valueEnumNode);
|
740
|
-
}, [JSON.stringify(resList), request]);
|
740
|
+
}, [JSON.stringify(resList), JSON.stringify(request)]);
|
741
741
|
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
742
742
|
};
|
743
743
|
|
@@ -752,6 +752,7 @@ var Option = function Option(props) {
|
|
752
752
|
|
753
753
|
var Index$4 = WSelect;
|
754
754
|
Index$4.Option = Option;
|
755
|
+
var Select = /*#__PURE__*/React.memo(Index$4);
|
755
756
|
|
756
757
|
//! moment.js
|
757
758
|
//! version : 2.29.1
|
@@ -6437,7 +6438,9 @@ var WDatePicker$1 = function WDatePicker(props) {
|
|
6437
6438
|
defaultValue: momentValue(defaultValue),
|
6438
6439
|
value: momentValue(value),
|
6439
6440
|
onChange: function onChange(v) {
|
6440
|
-
|
6441
|
+
var _momentValue;
|
6442
|
+
|
6443
|
+
(_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, (_momentValue = momentValue(v)) === null || _momentValue === void 0 ? void 0 : _momentValue.format(format || 'YYYY-MM-DD'))) || '';
|
6441
6444
|
}
|
6442
6445
|
}, extraProps)) // </ConfigProvider>
|
6443
6446
|
|
@@ -6460,7 +6463,9 @@ var RangePicker$1 = function RangePicker(props) {
|
|
6460
6463
|
defaultValue: momentValue(defaultValue),
|
6461
6464
|
value: momentValue(value),
|
6462
6465
|
onChange: function onChange(v) {
|
6463
|
-
|
6466
|
+
var _momentValue2;
|
6467
|
+
|
6468
|
+
(_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, (_momentValue2 = momentValue(v)) === null || _momentValue2 === void 0 ? void 0 : _momentValue2.format(format || 'YYYY-MM-DD'))) || '';
|
6464
6469
|
}
|
6465
6470
|
}, extraProps)) // </ConfigProvider>
|
6466
6471
|
|
@@ -6779,7 +6784,7 @@ var WForm = function WForm(props, ref) {
|
|
6779
6784
|
name: c.dataIndex,
|
6780
6785
|
label: c.title,
|
6781
6786
|
labelCol: labelCol
|
6782
|
-
}), /*#__PURE__*/React.createElement(
|
6787
|
+
}), /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
6783
6788
|
placeholder: "\u8BF7\u9009\u62E9",
|
6784
6789
|
disabled: disabled,
|
6785
6790
|
onLoad: function onLoad(opt) {
|
@@ -7279,7 +7284,7 @@ var WForm = function WForm(props, ref) {
|
|
7279
7284
|
name: c.dataIndex,
|
7280
7285
|
label: c.title,
|
7281
7286
|
labelCol: labelCol
|
7282
|
-
}), /*#__PURE__*/React.createElement(
|
7287
|
+
}), /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
7283
7288
|
placeholder: "\u8BF7\u9009\u62E9",
|
7284
7289
|
disabled: disabled,
|
7285
7290
|
onLoad: function onLoad(opt) {
|
@@ -7784,11 +7789,15 @@ var WForm = function WForm(props, ref) {
|
|
7784
7789
|
};
|
7785
7790
|
|
7786
7791
|
var handleRest = function handleRest() {
|
7792
|
+
var _form$resetFields;
|
7793
|
+
|
7787
7794
|
onReset && onReset();
|
7788
|
-
form.resetFields();
|
7795
|
+
form === null || form === void 0 ? void 0 : (_form$resetFields = form.resetFields) === null || _form$resetFields === void 0 ? void 0 : _form$resetFields.call(form);
|
7789
7796
|
};
|
7790
7797
|
|
7791
7798
|
var setFieldsValue = function setFieldsValue(record) {
|
7799
|
+
var _form$setFieldsValue;
|
7800
|
+
|
7792
7801
|
var setFieldsValues = _objectSpread2({}, record);
|
7793
7802
|
|
7794
7803
|
filterFormColumns.forEach(function (c) {
|
@@ -7803,7 +7812,7 @@ var WForm = function WForm(props, ref) {
|
|
7803
7812
|
return false;
|
7804
7813
|
}
|
7805
7814
|
});
|
7806
|
-
form.setFieldsValue(setFieldsValues);
|
7815
|
+
form === null || form === void 0 ? void 0 : (_form$setFieldsValue = form.setFieldsValue) === null || _form$setFieldsValue === void 0 ? void 0 : _form$setFieldsValue.call(form, setFieldsValues);
|
7807
7816
|
};
|
7808
7817
|
|
7809
7818
|
useImperativeHandle(ref, function () {
|
@@ -9837,7 +9846,8 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
9837
9846
|
onCancel = _this$props.onCancel,
|
9838
9847
|
cancelText = _this$props.cancelText,
|
9839
9848
|
okText = _this$props.okText,
|
9840
|
-
footer = _this$props.footer
|
9849
|
+
footer = _this$props.footer,
|
9850
|
+
isLoading = _this$props.isLoading;
|
9841
9851
|
if (footer && /*#__PURE__*/React.isValidElement(footer)) return footer;
|
9842
9852
|
if (footer === false) return null;
|
9843
9853
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -9849,14 +9859,15 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
9849
9859
|
}
|
9850
9860
|
}, /*#__PURE__*/React.createElement(WButton, {
|
9851
9861
|
className: "concellbtn",
|
9862
|
+
style: {
|
9863
|
+
marginRight: '10px'
|
9864
|
+
},
|
9852
9865
|
onClick: function onClick(e) {
|
9853
9866
|
onCancel && onCancel(e);
|
9854
9867
|
}
|
9855
9868
|
}, cancelText || '取消'), /*#__PURE__*/React.createElement(WButton, {
|
9856
9869
|
className: "okbtn",
|
9857
|
-
|
9858
|
-
marginLeft: '10px'
|
9859
|
-
},
|
9870
|
+
loading: isLoading || false,
|
9860
9871
|
onClick: function onClick(e) {
|
9861
9872
|
onOk && onOk(e);
|
9862
9873
|
}
|
@@ -10784,4 +10795,4 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10784
10795
|
this.heartCheck = null;
|
10785
10796
|
});
|
10786
10797
|
|
10787
|
-
export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, Index$c as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 as DatePicker, index as IconFont, Index as Input, WInputNumber as InputNumber, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$7 as Number, NumericInput, Index$2 as Radio,
|
10798
|
+
export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, Index$c as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 as DatePicker, index as IconFont, Index as Input, WInputNumber as InputNumber, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$7 as Number, NumericInput, Index$2 as Radio, Select, Index$a as Swiper, WSwitch as Switch, index$1 as TabelCard, Table, Index$6 as TreeSelect, Index$5 as WDatePicker, WForm$1 as WForm, WebsocketHeart };
|
package/dist/index.js
CHANGED
@@ -771,7 +771,7 @@ var WSelect = function WSelect(props) {
|
|
771
771
|
|
772
772
|
onLoad && onLoad(options);
|
773
773
|
setValueEnumList(valueEnumNode);
|
774
|
-
}, [JSON.stringify(resList), request]);
|
774
|
+
}, [JSON.stringify(resList), JSON.stringify(request)]);
|
775
775
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
776
776
|
};
|
777
777
|
|
@@ -786,6 +786,7 @@ var Option = function Option(props) {
|
|
786
786
|
|
787
787
|
var Index$4 = WSelect;
|
788
788
|
Index$4.Option = Option;
|
789
|
+
var Select = /*#__PURE__*/React__default['default'].memo(Index$4);
|
789
790
|
|
790
791
|
//! moment.js
|
791
792
|
//! version : 2.29.1
|
@@ -6471,7 +6472,9 @@ var WDatePicker$1 = function WDatePicker(props) {
|
|
6471
6472
|
defaultValue: momentValue(defaultValue),
|
6472
6473
|
value: momentValue(value),
|
6473
6474
|
onChange: function onChange(v) {
|
6474
|
-
|
6475
|
+
var _momentValue;
|
6476
|
+
|
6477
|
+
(_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, (_momentValue = momentValue(v)) === null || _momentValue === void 0 ? void 0 : _momentValue.format(format || 'YYYY-MM-DD'))) || '';
|
6475
6478
|
}
|
6476
6479
|
}, extraProps)) // </ConfigProvider>
|
6477
6480
|
|
@@ -6494,7 +6497,9 @@ var RangePicker$1 = function RangePicker(props) {
|
|
6494
6497
|
defaultValue: momentValue(defaultValue),
|
6495
6498
|
value: momentValue(value),
|
6496
6499
|
onChange: function onChange(v) {
|
6497
|
-
|
6500
|
+
var _momentValue2;
|
6501
|
+
|
6502
|
+
(_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, (_momentValue2 = momentValue(v)) === null || _momentValue2 === void 0 ? void 0 : _momentValue2.format(format || 'YYYY-MM-DD'))) || '';
|
6498
6503
|
}
|
6499
6504
|
}, extraProps)) // </ConfigProvider>
|
6500
6505
|
|
@@ -6813,7 +6818,7 @@ var WForm = function WForm(props, ref) {
|
|
6813
6818
|
name: c.dataIndex,
|
6814
6819
|
label: c.title,
|
6815
6820
|
labelCol: labelCol
|
6816
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
6821
|
+
}), /*#__PURE__*/React__default['default'].createElement(Select, _objectSpread2(_objectSpread2({
|
6817
6822
|
placeholder: "\u8BF7\u9009\u62E9",
|
6818
6823
|
disabled: disabled,
|
6819
6824
|
onLoad: function onLoad(opt) {
|
@@ -7313,7 +7318,7 @@ var WForm = function WForm(props, ref) {
|
|
7313
7318
|
name: c.dataIndex,
|
7314
7319
|
label: c.title,
|
7315
7320
|
labelCol: labelCol
|
7316
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
7321
|
+
}), /*#__PURE__*/React__default['default'].createElement(Select, _objectSpread2(_objectSpread2({
|
7317
7322
|
placeholder: "\u8BF7\u9009\u62E9",
|
7318
7323
|
disabled: disabled,
|
7319
7324
|
onLoad: function onLoad(opt) {
|
@@ -7818,11 +7823,15 @@ var WForm = function WForm(props, ref) {
|
|
7818
7823
|
};
|
7819
7824
|
|
7820
7825
|
var handleRest = function handleRest() {
|
7826
|
+
var _form$resetFields;
|
7827
|
+
|
7821
7828
|
onReset && onReset();
|
7822
|
-
form.resetFields();
|
7829
|
+
form === null || form === void 0 ? void 0 : (_form$resetFields = form.resetFields) === null || _form$resetFields === void 0 ? void 0 : _form$resetFields.call(form);
|
7823
7830
|
};
|
7824
7831
|
|
7825
7832
|
var setFieldsValue = function setFieldsValue(record) {
|
7833
|
+
var _form$setFieldsValue;
|
7834
|
+
|
7826
7835
|
var setFieldsValues = _objectSpread2({}, record);
|
7827
7836
|
|
7828
7837
|
filterFormColumns.forEach(function (c) {
|
@@ -7837,7 +7846,7 @@ var WForm = function WForm(props, ref) {
|
|
7837
7846
|
return false;
|
7838
7847
|
}
|
7839
7848
|
});
|
7840
|
-
form.setFieldsValue(setFieldsValues);
|
7849
|
+
form === null || form === void 0 ? void 0 : (_form$setFieldsValue = form.setFieldsValue) === null || _form$setFieldsValue === void 0 ? void 0 : _form$setFieldsValue.call(form, setFieldsValues);
|
7841
7850
|
};
|
7842
7851
|
|
7843
7852
|
React.useImperativeHandle(ref, function () {
|
@@ -9871,7 +9880,8 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
9871
9880
|
onCancel = _this$props.onCancel,
|
9872
9881
|
cancelText = _this$props.cancelText,
|
9873
9882
|
okText = _this$props.okText,
|
9874
|
-
footer = _this$props.footer
|
9883
|
+
footer = _this$props.footer,
|
9884
|
+
isLoading = _this$props.isLoading;
|
9875
9885
|
if (footer && /*#__PURE__*/React__default['default'].isValidElement(footer)) return footer;
|
9876
9886
|
if (footer === false) return null;
|
9877
9887
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
@@ -9883,14 +9893,15 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
9883
9893
|
}
|
9884
9894
|
}, /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9885
9895
|
className: "concellbtn",
|
9896
|
+
style: {
|
9897
|
+
marginRight: '10px'
|
9898
|
+
},
|
9886
9899
|
onClick: function onClick(e) {
|
9887
9900
|
onCancel && onCancel(e);
|
9888
9901
|
}
|
9889
9902
|
}, cancelText || '取消'), /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9890
9903
|
className: "okbtn",
|
9891
|
-
|
9892
|
-
marginLeft: '10px'
|
9893
|
-
},
|
9904
|
+
loading: isLoading || false,
|
9894
9905
|
onClick: function onClick(e) {
|
9895
9906
|
onOk && onOk(e);
|
9896
9907
|
}
|
@@ -10835,7 +10846,7 @@ exports.ModalTips = Modal$1;
|
|
10835
10846
|
exports.Number = Index$7;
|
10836
10847
|
exports.NumericInput = NumericInput;
|
10837
10848
|
exports.Radio = Index$2;
|
10838
|
-
exports.Select =
|
10849
|
+
exports.Select = Select;
|
10839
10850
|
exports.Swiper = Index$a;
|
10840
10851
|
exports.Switch = WSwitch;
|
10841
10852
|
exports.TabelCard = index$1;
|