wargerm 0.7.66 → 0.7.68
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/Checkbox/index.d.ts +2 -1
- package/dist/components/CheckboxGroup/index.d.ts +10 -0
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/RadioGroup/index.d.ts +10 -0
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +241 -89
- package/dist/index.js +242 -88
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -8,6 +8,7 @@ import classnames from 'classnames';
|
|
8
8
|
import zhCN from 'antd/es/date-picker/locale/zh_CN';
|
9
9
|
import dayjs, { extend, weekdaysMin } from 'dayjs';
|
10
10
|
import 'dayjs/locale/zh-cn';
|
11
|
+
import { Checkbox as Checkbox$1 } from 'antd/lib';
|
11
12
|
import CountUp from 'react-countup';
|
12
13
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
13
14
|
import SwiperCore, { Pagination as Pagination$1, Navigation, Autoplay, Virtual } from 'swiper';
|
@@ -3299,7 +3300,145 @@ var WCascader = function WCascader(props) {
|
|
3299
3300
|
}, extraProps));
|
3300
3301
|
};
|
3301
3302
|
|
3302
|
-
var _excluded$9 = ["
|
3303
|
+
var _excluded$9 = ["request", "valueEnum", "onLoad", "params"];
|
3304
|
+
var WRadioGroup = function WRadioGroup(props) {
|
3305
|
+
var request = props.request,
|
3306
|
+
valueEnum = props.valueEnum,
|
3307
|
+
onLoad = props.onLoad,
|
3308
|
+
params = props.params,
|
3309
|
+
extraProps = _objectWithoutProperties(props, _excluded$9);
|
3310
|
+
var _useState = useState([]),
|
3311
|
+
_useState2 = _slicedToArray(_useState, 2),
|
3312
|
+
options = _useState2[0],
|
3313
|
+
setOptions = _useState2[1];
|
3314
|
+
useEffect(function () {
|
3315
|
+
var isMounted = true;
|
3316
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
3317
|
+
var res;
|
3318
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
3319
|
+
while (1) switch (_context.prev = _context.next) {
|
3320
|
+
case 0:
|
3321
|
+
if (!request) {
|
3322
|
+
_context.next = 8;
|
3323
|
+
break;
|
3324
|
+
}
|
3325
|
+
_context.next = 3;
|
3326
|
+
return request();
|
3327
|
+
case 3:
|
3328
|
+
res = _context.sent;
|
3329
|
+
if (isMounted) {
|
3330
|
+
_context.next = 6;
|
3331
|
+
break;
|
3332
|
+
}
|
3333
|
+
return _context.abrupt("return");
|
3334
|
+
case 6:
|
3335
|
+
setOptions(res);
|
3336
|
+
onLoad && onLoad(res);
|
3337
|
+
case 8:
|
3338
|
+
case "end":
|
3339
|
+
return _context.stop();
|
3340
|
+
}
|
3341
|
+
}, _callee);
|
3342
|
+
}))();
|
3343
|
+
var valueEnumOptions = [];
|
3344
|
+
if (valueEnum) {
|
3345
|
+
for (var key in valueEnum) {
|
3346
|
+
var text = '';
|
3347
|
+
if (typeof valueEnum[key] === 'string') {
|
3348
|
+
text = valueEnum[key];
|
3349
|
+
} else {
|
3350
|
+
var _valueEnum$key;
|
3351
|
+
text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
|
3352
|
+
}
|
3353
|
+
valueEnumOptions.push({
|
3354
|
+
label: text,
|
3355
|
+
value: key
|
3356
|
+
});
|
3357
|
+
}
|
3358
|
+
}
|
3359
|
+
if (!isMounted) return;
|
3360
|
+
onLoad && onLoad(valueEnumOptions);
|
3361
|
+
setOptions(valueEnumOptions);
|
3362
|
+
return function () {
|
3363
|
+
isMounted = false;
|
3364
|
+
};
|
3365
|
+
}, [JSON.stringify(params || {})]);
|
3366
|
+
return /*#__PURE__*/React.createElement(Radio.Group, _objectSpread2({
|
3367
|
+
options: options
|
3368
|
+
}, extraProps));
|
3369
|
+
};
|
3370
|
+
WRadioGroup.defaultProps = {};
|
3371
|
+
|
3372
|
+
var _excluded$a = ["request", "valueEnum", "onLoad", "params"];
|
3373
|
+
var WCheckboxGroup = function WCheckboxGroup(props) {
|
3374
|
+
var request = props.request,
|
3375
|
+
valueEnum = props.valueEnum,
|
3376
|
+
onLoad = props.onLoad,
|
3377
|
+
params = props.params,
|
3378
|
+
extraProps = _objectWithoutProperties(props, _excluded$a);
|
3379
|
+
var _useState = useState([]),
|
3380
|
+
_useState2 = _slicedToArray(_useState, 2),
|
3381
|
+
options = _useState2[0],
|
3382
|
+
setOptions = _useState2[1];
|
3383
|
+
useEffect(function () {
|
3384
|
+
var isMounted = true;
|
3385
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
3386
|
+
var res;
|
3387
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
3388
|
+
while (1) switch (_context.prev = _context.next) {
|
3389
|
+
case 0:
|
3390
|
+
if (!request) {
|
3391
|
+
_context.next = 8;
|
3392
|
+
break;
|
3393
|
+
}
|
3394
|
+
_context.next = 3;
|
3395
|
+
return request();
|
3396
|
+
case 3:
|
3397
|
+
res = _context.sent;
|
3398
|
+
if (isMounted) {
|
3399
|
+
_context.next = 6;
|
3400
|
+
break;
|
3401
|
+
}
|
3402
|
+
return _context.abrupt("return");
|
3403
|
+
case 6:
|
3404
|
+
setOptions(res);
|
3405
|
+
onLoad && onLoad(res);
|
3406
|
+
case 8:
|
3407
|
+
case "end":
|
3408
|
+
return _context.stop();
|
3409
|
+
}
|
3410
|
+
}, _callee);
|
3411
|
+
}))();
|
3412
|
+
var valueEnumOptions = [];
|
3413
|
+
if (valueEnum) {
|
3414
|
+
for (var key in valueEnum) {
|
3415
|
+
var text = '';
|
3416
|
+
if (typeof valueEnum[key] === 'string') {
|
3417
|
+
text = valueEnum[key];
|
3418
|
+
} else {
|
3419
|
+
var _valueEnum$key;
|
3420
|
+
text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
|
3421
|
+
}
|
3422
|
+
valueEnumOptions.push({
|
3423
|
+
label: text,
|
3424
|
+
value: key
|
3425
|
+
});
|
3426
|
+
}
|
3427
|
+
}
|
3428
|
+
if (!isMounted) return;
|
3429
|
+
onLoad && onLoad(valueEnumOptions);
|
3430
|
+
setOptions(valueEnumOptions);
|
3431
|
+
return function () {
|
3432
|
+
isMounted = false;
|
3433
|
+
};
|
3434
|
+
}, [JSON.stringify(params || {})]);
|
3435
|
+
return /*#__PURE__*/React.createElement(Checkbox$1.Group, _objectSpread2({
|
3436
|
+
options: options
|
3437
|
+
}, extraProps));
|
3438
|
+
};
|
3439
|
+
WCheckboxGroup.defaultProps = {};
|
3440
|
+
|
3441
|
+
var _excluded$b = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm", "deps"];
|
3303
3442
|
var RangePicker$2 = Index$6.RangePicker;
|
3304
3443
|
var WForm = function WForm(props, ref) {
|
3305
3444
|
var columns = props.columns,
|
@@ -3315,7 +3454,7 @@ var WForm = function WForm(props, ref) {
|
|
3315
3454
|
onReset = props.onReset,
|
3316
3455
|
setForm = props.setForm,
|
3317
3456
|
deps = props.deps,
|
3318
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
3457
|
+
extraProps = _objectWithoutProperties(props, _excluded$b);
|
3319
3458
|
var _Form$useForm = Form.useForm(),
|
3320
3459
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
3321
3460
|
form = _Form$useForm2[0];
|
@@ -3544,31 +3683,25 @@ var WForm = function WForm(props, ref) {
|
|
3544
3683
|
disabled: disabled
|
3545
3684
|
}, _showTime), c.fieldProps))));
|
3546
3685
|
} else if (c.valueType === 'checkbox') {
|
3547
|
-
var
|
3548
|
-
if (c.
|
3549
|
-
|
3550
|
-
|
3551
|
-
|
3552
|
-
|
3553
|
-
|
3554
|
-
});
|
3555
|
-
}
|
3556
|
-
}
|
3557
|
-
if (c.options) {
|
3558
|
-
options = c.options;
|
3686
|
+
var _extraProps4 = {};
|
3687
|
+
if (c.request) {
|
3688
|
+
_extraProps4.request = c.request;
|
3689
|
+
} else if (c.valueEnum) {
|
3690
|
+
_extraProps4.valueEnum = c.valueEnum;
|
3691
|
+
} else {
|
3692
|
+
_extraProps4.options = c.options;
|
3559
3693
|
}
|
3560
|
-
// if (columnsFieldsRef.current) {
|
3561
|
-
// columnsFieldsRef.current[c.dataIndex] = options;
|
3562
|
-
// }
|
3563
|
-
setColumnsFields(function (preColumnsFields) {
|
3564
|
-
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
3565
|
-
});
|
3566
3694
|
var _labelCol6 = {};
|
3567
3695
|
if (search && search.labelWidth) {
|
3568
3696
|
_labelCol6.style = {
|
3569
3697
|
width: search.labelWidth
|
3570
3698
|
};
|
3571
3699
|
}
|
3700
|
+
if (c.options) {
|
3701
|
+
setColumnsFields(function (preColumnsFields) {
|
3702
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, c.options));
|
3703
|
+
});
|
3704
|
+
}
|
3572
3705
|
return /*#__PURE__*/React.createElement(Col, _objectSpread2(_objectSpread2({
|
3573
3706
|
className: "pl12 pr12"
|
3574
3707
|
}, colProps), {}, {
|
@@ -3579,30 +3712,23 @@ var WForm = function WForm(props, ref) {
|
|
3579
3712
|
name: c.dataIndex,
|
3580
3713
|
label: c.title,
|
3581
3714
|
labelCol: _labelCol6
|
3582
|
-
}), /*#__PURE__*/React.createElement(
|
3583
|
-
|
3584
|
-
|
3585
|
-
|
3586
|
-
} else if (c.valueType === 'radio' || c.valueType === 'radioButton') {
|
3587
|
-
var _options = [];
|
3588
|
-
if (c.options) {
|
3589
|
-
_options = c.options;
|
3590
|
-
}
|
3591
|
-
if (c.valueEnum) {
|
3592
|
-
for (var _key in c.valueEnum) {
|
3593
|
-
var _text = c.valueEnum[_key].text;
|
3594
|
-
_options.push({
|
3595
|
-
label: _text,
|
3596
|
-
value: _key
|
3715
|
+
}), /*#__PURE__*/React.createElement(WCheckboxGroup, _objectSpread2(_objectSpread2({
|
3716
|
+
onLoad: function onLoad(opt) {
|
3717
|
+
setColumnsFields(function (preColumnsFields) {
|
3718
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, opt));
|
3597
3719
|
});
|
3598
|
-
}
|
3720
|
+
},
|
3721
|
+
disabled: disabled
|
3722
|
+
}, c.fieldProps), _extraProps4))));
|
3723
|
+
} else if (c.valueType === 'radio' || c.valueType === 'radioButton') {
|
3724
|
+
var _extraProps5 = {};
|
3725
|
+
if (c.request) {
|
3726
|
+
_extraProps5.request = c.request;
|
3727
|
+
} else if (c.valueEnum) {
|
3728
|
+
_extraProps5.valueEnum = c.valueEnum;
|
3729
|
+
} else {
|
3730
|
+
_extraProps5.options = c.options;
|
3599
3731
|
}
|
3600
|
-
// if (columnsFieldsRef.current) {
|
3601
|
-
// columnsFieldsRef.current[c.dataIndex] = options;
|
3602
|
-
// }
|
3603
|
-
setColumnsFields(function (preColumnsFields) {
|
3604
|
-
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options));
|
3605
|
-
});
|
3606
3732
|
var _labelCol7 = {};
|
3607
3733
|
if (search && search.labelWidth) {
|
3608
3734
|
_labelCol7.style = {
|
@@ -3616,6 +3742,11 @@ var WForm = function WForm(props, ref) {
|
|
3616
3742
|
buttonStyle: 'solid'
|
3617
3743
|
};
|
3618
3744
|
}
|
3745
|
+
if (c.options) {
|
3746
|
+
setColumnsFields(function (preColumnsFields) {
|
3747
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, c.options));
|
3748
|
+
});
|
3749
|
+
}
|
3619
3750
|
return /*#__PURE__*/React.createElement(Col, _objectSpread2(_objectSpread2({
|
3620
3751
|
className: "pl12 pr12"
|
3621
3752
|
}, colProps), {}, {
|
@@ -3626,19 +3757,22 @@ var WForm = function WForm(props, ref) {
|
|
3626
3757
|
name: c.dataIndex,
|
3627
3758
|
label: c.title,
|
3628
3759
|
labelCol: _labelCol7
|
3629
|
-
}), /*#__PURE__*/React.createElement(
|
3760
|
+
}), /*#__PURE__*/React.createElement(WRadioGroup, _objectSpread2(_objectSpread2(_objectSpread2({
|
3761
|
+
onLoad: function onLoad(opt) {
|
3762
|
+
setColumnsFields(function (preColumnsFields) {
|
3763
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, opt));
|
3764
|
+
});
|
3765
|
+
},
|
3630
3766
|
disabled: disabled
|
3631
|
-
}, radioButtonProps),
|
3632
|
-
options: _options
|
3633
|
-
}, c.fieldProps))));
|
3767
|
+
}, radioButtonProps), c.fieldProps), _extraProps5))));
|
3634
3768
|
} else if (c.valueType === 'switch') {
|
3635
|
-
var
|
3769
|
+
var options = [];
|
3636
3770
|
if (c.valueEnum) {
|
3637
|
-
for (var
|
3638
|
-
var
|
3639
|
-
|
3640
|
-
label:
|
3641
|
-
value:
|
3771
|
+
for (var key in c.valueEnum) {
|
3772
|
+
var text = c.valueEnum[key].text;
|
3773
|
+
options.push({
|
3774
|
+
label: text,
|
3775
|
+
value: key
|
3642
3776
|
});
|
3643
3777
|
}
|
3644
3778
|
}
|
@@ -3652,7 +3786,7 @@ var WForm = function WForm(props, ref) {
|
|
3652
3786
|
// columnsFieldsRef.current[c.dataIndex] = options;
|
3653
3787
|
// }
|
3654
3788
|
setColumnsFields(function (preColumnsFields) {
|
3655
|
-
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex,
|
3789
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
3656
3790
|
});
|
3657
3791
|
return /*#__PURE__*/React.createElement(Col, _objectSpread2(_objectSpread2({
|
3658
3792
|
className: "pl12 pr12"
|
@@ -4011,7 +4145,7 @@ var WForm = function WForm(props, ref) {
|
|
4011
4145
|
};
|
4012
4146
|
var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
|
4013
4147
|
|
4014
|
-
var _excluded$
|
4148
|
+
var _excluded$c = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
|
4015
4149
|
function Table(_ref) {
|
4016
4150
|
var _formSearchRef$curren4, _columns$, _columns$2;
|
4017
4151
|
var columns = _ref.columns,
|
@@ -4042,7 +4176,7 @@ function Table(_ref) {
|
|
4042
4176
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
4043
4177
|
formRef = _ref.formRef,
|
4044
4178
|
none = _ref.none,
|
4045
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
4179
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
4046
4180
|
var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
4047
4181
|
_useState2 = _slicedToArray(_useState, 2),
|
4048
4182
|
selectedRowKeys = _useState2[0],
|
@@ -4529,7 +4663,7 @@ Table.defaultProps = {
|
|
4529
4663
|
};
|
4530
4664
|
var index = /*#__PURE__*/memo(Table);
|
4531
4665
|
|
4532
|
-
var _excluded$
|
4666
|
+
var _excluded$d = ["value", "renderDom", "onLoad", "params", "onChange", "request"];
|
4533
4667
|
function Index$8(props, ref) {
|
4534
4668
|
var value = props.value,
|
4535
4669
|
renderDom = props.renderDom,
|
@@ -4537,7 +4671,7 @@ function Index$8(props, ref) {
|
|
4537
4671
|
params = props.params,
|
4538
4672
|
onChange = props.onChange,
|
4539
4673
|
request = props.request,
|
4540
|
-
rest = _objectWithoutProperties(props, _excluded$
|
4674
|
+
rest = _objectWithoutProperties(props, _excluded$d);
|
4541
4675
|
var _useState = useState(''),
|
4542
4676
|
_useState2 = _slicedToArray(_useState, 2),
|
4543
4677
|
areaValue = _useState2[0],
|
@@ -4592,7 +4726,7 @@ function Index$8(props, ref) {
|
|
4592
4726
|
}
|
4593
4727
|
var index$1 = /*#__PURE__*/React.forwardRef(Index$8);
|
4594
4728
|
|
4595
|
-
var _excluded$
|
4729
|
+
var _excluded$e = ["height", "width", "count", "style", "numberStyle"],
|
4596
4730
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
4597
4731
|
var Number$1 = function Number(_ref) {
|
4598
4732
|
var height = _ref.height,
|
@@ -4601,7 +4735,7 @@ var Number$1 = function Number(_ref) {
|
|
4601
4735
|
count = _ref$count === void 0 ? 0 : _ref$count,
|
4602
4736
|
style = _ref.style,
|
4603
4737
|
numberStyle = _ref.numberStyle,
|
4604
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
4738
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
4605
4739
|
// 上次的值
|
4606
4740
|
var _useState = useState(0),
|
4607
4741
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -4751,12 +4885,12 @@ var Index$9 = function Index(props) {
|
|
4751
4885
|
}));
|
4752
4886
|
};
|
4753
4887
|
|
4754
|
-
var _excluded$
|
4888
|
+
var _excluded$f = ["duration", "className"];
|
4755
4889
|
var Index$a = function Index(props) {
|
4756
4890
|
var _props$duration = props.duration,
|
4757
4891
|
duration = _props$duration === void 0 ? 2.75 : _props$duration,
|
4758
4892
|
className = props.className,
|
4759
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
4893
|
+
extraProps = _objectWithoutProperties(props, _excluded$f);
|
4760
4894
|
return /*#__PURE__*/React.createElement(CountUp, _objectSpread2(_objectSpread2({
|
4761
4895
|
duration: duration
|
4762
4896
|
}, extraProps), {}, {
|
@@ -4765,7 +4899,7 @@ var Index$a = function Index(props) {
|
|
4765
4899
|
};
|
4766
4900
|
Index$a.defaultProps = {};
|
4767
4901
|
|
4768
|
-
var _excluded$
|
4902
|
+
var _excluded$g = ["list", "render", "none", "partSize"];
|
4769
4903
|
function AutoScroll(props) {
|
4770
4904
|
var inner1 = useRef();
|
4771
4905
|
var inner2 = useRef();
|
@@ -4842,7 +4976,7 @@ var Index$b = function Index(_ref) {
|
|
4842
4976
|
none = _ref.none,
|
4843
4977
|
_ref$partSize = _ref.partSize,
|
4844
4978
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
4845
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
4979
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$g);
|
4846
4980
|
var _useState = useState([]),
|
4847
4981
|
_useState2 = _slicedToArray(_useState, 2),
|
4848
4982
|
partA = _useState2[0],
|
@@ -4916,7 +5050,7 @@ var Index$b = function Index(_ref) {
|
|
4916
5050
|
}, none || '暂无数据'));
|
4917
5051
|
};
|
4918
5052
|
|
4919
|
-
var _excluded$
|
5053
|
+
var _excluded$h = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem", "noMove"];
|
4920
5054
|
// install Swiper modules
|
4921
5055
|
SwiperCore.use([Pagination$1, Navigation, Autoplay, Virtual]);
|
4922
5056
|
var Index$c = /*#__PURE__*/forwardRef(function (props, ref) {
|
@@ -4928,7 +5062,7 @@ var Index$c = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4928
5062
|
onSwiperChange = props.onSwiperChange,
|
4929
5063
|
renderItem = props.renderItem,
|
4930
5064
|
noMove = props.noMove,
|
4931
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
5065
|
+
extraProps = _objectWithoutProperties(props, _excluded$h);
|
4932
5066
|
var _useState = useState(null),
|
4933
5067
|
_useState2 = _slicedToArray(_useState, 2),
|
4934
5068
|
controlledSwiper = _useState2[0],
|
@@ -5577,7 +5711,7 @@ function createBrowserHistory(props) {
|
|
5577
5711
|
return history;
|
5578
5712
|
}
|
5579
5713
|
|
5580
|
-
var _excluded$
|
5714
|
+
var _excluded$i = ["routes", "className"];
|
5581
5715
|
var history = createBrowserHistory();
|
5582
5716
|
function itemRender(route, params, routes, paths) {
|
5583
5717
|
var last = routes.indexOf(route) === routes.length - 1;
|
@@ -5593,7 +5727,7 @@ function itemRender(route, params, routes, paths) {
|
|
5593
5727
|
var Index$d = function Index(_ref) {
|
5594
5728
|
var routes = _ref.routes,
|
5595
5729
|
className = _ref.className,
|
5596
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
5730
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
5597
5731
|
return /*#__PURE__*/React.createElement(Breadcrumb, _objectSpread2({
|
5598
5732
|
className: className || 'default',
|
5599
5733
|
separator: ">>",
|
@@ -5602,7 +5736,7 @@ var Index$d = function Index(_ref) {
|
|
5602
5736
|
}, props));
|
5603
5737
|
};
|
5604
5738
|
|
5605
|
-
var _excluded$
|
5739
|
+
var _excluded$j = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
|
5606
5740
|
var Index$e = function Index(_ref, ref) {
|
5607
5741
|
var _sliderTabs$component, _sliderTabs$tabs;
|
5608
5742
|
var title = _ref.title,
|
@@ -5611,7 +5745,7 @@ var Index$e = function Index(_ref, ref) {
|
|
5611
5745
|
headerTail = _ref.headerTail,
|
5612
5746
|
headerCenter = _ref.headerCenter,
|
5613
5747
|
sliderTabs = _ref.sliderTabs,
|
5614
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
5748
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
5615
5749
|
useImperativeHandle(ref, function () {
|
5616
5750
|
return {
|
5617
5751
|
activeTab: activeTab
|
@@ -5827,7 +5961,7 @@ function DialogModel(props, ref) {
|
|
5827
5961
|
}
|
5828
5962
|
var Dialog = /*#__PURE__*/React.forwardRef(DialogModel);
|
5829
5963
|
|
5830
|
-
var _excluded$
|
5964
|
+
var _excluded$k = ["open", "width", "closeCb", "onClose", "className", "style", "isDrag", "wrapClassName"],
|
5831
5965
|
_excluded2$3 = ["open"];
|
5832
5966
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
5833
5967
|
_inherits(Modal, _React$PureComponent);
|
@@ -5959,7 +6093,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
5959
6093
|
style = _this$props4.style,
|
5960
6094
|
isDrag = _this$props4.isDrag,
|
5961
6095
|
wrapClassName = _this$props4.wrapClassName,
|
5962
|
-
other = _objectWithoutProperties(_this$props4, _excluded$
|
6096
|
+
other = _objectWithoutProperties(_this$props4, _excluded$k);
|
5963
6097
|
return /*#__PURE__*/React.createElement(Dialog, _objectSpread2({
|
5964
6098
|
ref: this.containerRef,
|
5965
6099
|
closeCb: closeCb,
|
@@ -6124,7 +6258,7 @@ function DialogModel$1(props) {
|
|
6124
6258
|
return renderChildren;
|
6125
6259
|
}
|
6126
6260
|
|
6127
|
-
var _excluded$
|
6261
|
+
var _excluded$l = ["open"];
|
6128
6262
|
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
6129
6263
|
_inherits(Modal, _React$PureComponent);
|
6130
6264
|
var _super = _createSuper(Modal);
|
@@ -6246,7 +6380,7 @@ Modal$1.show = function (config) {
|
|
6246
6380
|
setShow = _useState2[1];
|
6247
6381
|
manager.setShow = setShow;
|
6248
6382
|
var open = props.open,
|
6249
|
-
trueProps = _objectWithoutProperties(props, _excluded$
|
6383
|
+
trueProps = _objectWithoutProperties(props, _excluded$l);
|
6250
6384
|
useEffect(function () {
|
6251
6385
|
manager.mounted = true;
|
6252
6386
|
setShow(open);
|
@@ -6418,7 +6552,7 @@ function DragBox(_ref) {
|
|
6418
6552
|
}, children))) : ( /*#__PURE__*/React.createElement(React.Fragment, null));
|
6419
6553
|
}
|
6420
6554
|
|
6421
|
-
var _excluded$
|
6555
|
+
var _excluded$m = ["columns", "extraColumns", "search", "open", "setOpen", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSlot", "modalFooterSlot", "formProps"];
|
6422
6556
|
var ModalForm = function ModalForm(props, ref) {
|
6423
6557
|
var columns = props.columns,
|
6424
6558
|
extraColumns = props.extraColumns,
|
@@ -6437,7 +6571,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
6437
6571
|
modalHeaderSlot = props.modalHeaderSlot,
|
6438
6572
|
modalFooterSlot = props.modalFooterSlot,
|
6439
6573
|
formProps = props.formProps,
|
6440
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
6574
|
+
extraProps = _objectWithoutProperties(props, _excluded$m);
|
6441
6575
|
var formRef = useRef(null);
|
6442
6576
|
var _useState = useState(false),
|
6443
6577
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -6562,7 +6696,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
6562
6696
|
};
|
6563
6697
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
6564
6698
|
|
6565
|
-
var _excluded$
|
6699
|
+
var _excluded$n = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "filterAction", "renderTableBar", "renderTableBarDeps", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered", "showIndex", "searchTableSlot"];
|
6566
6700
|
var TabelCard = function TabelCard(props, ref) {
|
6567
6701
|
var columns = props.columns,
|
6568
6702
|
extraColumns = props.extraColumns,
|
@@ -6586,7 +6720,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
6586
6720
|
noBordered = props.noBordered,
|
6587
6721
|
showIndex = props.showIndex,
|
6588
6722
|
searchTableSlot = props.searchTableSlot,
|
6589
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
6723
|
+
extraProps = _objectWithoutProperties(props, _excluded$n);
|
6590
6724
|
var actionRef = useRef();
|
6591
6725
|
var modalFormRef = useRef(null);
|
6592
6726
|
var searchFormRef = useRef(null);
|
@@ -7094,6 +7228,15 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7094
7228
|
if (item.hiddenInModalForm || item.hideInModalForm) {
|
7095
7229
|
return false;
|
7096
7230
|
}
|
7231
|
+
if (item.type === 'group') {
|
7232
|
+
var _item$children;
|
7233
|
+
item.children = (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.filter(function (itm) {
|
7234
|
+
if (itm.hiddenInModalForm || itm.hideInModalForm) {
|
7235
|
+
return false;
|
7236
|
+
}
|
7237
|
+
return true;
|
7238
|
+
});
|
7239
|
+
}
|
7097
7240
|
if (item.onlyShowInView) {
|
7098
7241
|
if (modalFormConfig.type === '查看') {
|
7099
7242
|
return true;
|
@@ -7105,8 +7248,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7105
7248
|
}).map(function (item) {
|
7106
7249
|
var _item$renderColumn;
|
7107
7250
|
if (item.type === 'group') {
|
7108
|
-
var _item$
|
7109
|
-
item.children = (_item$
|
7251
|
+
var _item$children2;
|
7252
|
+
item.children = (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.map(function (itm) {
|
7110
7253
|
var _itm$renderColumn;
|
7111
7254
|
return (itm === null || itm === void 0 ? void 0 : (_itm$renderColumn = itm.renderColumn) === null || _itm$renderColumn === void 0 ? void 0 : _itm$renderColumn.call(itm, itm, modalFormConfig)) || itm;
|
7112
7255
|
});
|
@@ -7117,6 +7260,15 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7117
7260
|
if (item.hiddenInModalForm || item.hideInModalForm) {
|
7118
7261
|
return false;
|
7119
7262
|
}
|
7263
|
+
if (item.type === 'group') {
|
7264
|
+
var _item$children3;
|
7265
|
+
item.children = (_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.filter(function (itm) {
|
7266
|
+
if (itm.hiddenInModalForm || itm.hideInModalForm) {
|
7267
|
+
return false;
|
7268
|
+
}
|
7269
|
+
return true;
|
7270
|
+
});
|
7271
|
+
}
|
7120
7272
|
if (item.onlyShowInView) {
|
7121
7273
|
if (modalFormConfig.type === '查看') {
|
7122
7274
|
return true;
|
@@ -7128,8 +7280,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7128
7280
|
}).map(function (item) {
|
7129
7281
|
var _item$renderColumn2;
|
7130
7282
|
if (item.type === 'group') {
|
7131
|
-
var _item$
|
7132
|
-
item.children = (_item$
|
7283
|
+
var _item$children4;
|
7284
|
+
item.children = (_item$children4 = item.children) === null || _item$children4 === void 0 ? void 0 : _item$children4.map(function (itm) {
|
7133
7285
|
var _itm$renderColumn2;
|
7134
7286
|
return (itm === null || itm === void 0 ? void 0 : (_itm$renderColumn2 = itm.renderColumn) === null || _itm$renderColumn2 === void 0 ? void 0 : _itm$renderColumn2.call(itm, itm, modalFormConfig)) || itm;
|
7135
7287
|
});
|
@@ -10824,7 +10976,7 @@ function DhPlayer(_ref, ref) {
|
|
10824
10976
|
}
|
10825
10977
|
var index$6 = /*#__PURE__*/forwardRef(DhPlayer);
|
10826
10978
|
|
10827
|
-
var _excluded$
|
10979
|
+
var _excluded$o = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "open", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
10828
10980
|
// 默认速度控制
|
10829
10981
|
var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2];
|
10830
10982
|
// 默认记忆提示文字展示时长(s)
|
@@ -10855,7 +11007,7 @@ var index$7 = (function (_ref) {
|
|
10855
11007
|
enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
|
10856
11008
|
_ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
|
10857
11009
|
lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
|
10858
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
11010
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
10859
11011
|
var player = useRef();
|
10860
11012
|
var currentPlayerIndex = useRef(0);
|
10861
11013
|
// 内置的 index 状态管理
|
@@ -11025,7 +11177,7 @@ var index$7 = (function (_ref) {
|
|
11025
11177
|
});
|
11026
11178
|
});
|
11027
11179
|
|
11028
|
-
var _excluded$
|
11180
|
+
var _excluded$p = ["className", "frameStyle", "style", "direction", "children"];
|
11029
11181
|
function FrameBox$1(_ref) {
|
11030
11182
|
var className = _ref.className,
|
11031
11183
|
frameStyle = _ref.frameStyle,
|
@@ -11033,7 +11185,7 @@ function FrameBox$1(_ref) {
|
|
11033
11185
|
_ref$direction = _ref.direction,
|
11034
11186
|
direction = _ref$direction === void 0 ? 'in' : _ref$direction,
|
11035
11187
|
children = _ref.children,
|
11036
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
11188
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
11037
11189
|
return /*#__PURE__*/React.createElement("div", _objectSpread2({
|
11038
11190
|
className: classnames(_defineProperty(_defineProperty({}, 'frame', true), className || '', true)),
|
11039
11191
|
style: style
|
@@ -11060,7 +11212,7 @@ function FrameBox$1(_ref) {
|
|
11060
11212
|
}), children);
|
11061
11213
|
}
|
11062
11214
|
|
11063
|
-
var _excluded$
|
11215
|
+
var _excluded$q = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
|
11064
11216
|
function NtTable(_ref, ref) {
|
11065
11217
|
var _formSearchRef$curren4, _columns$, _columns$2;
|
11066
11218
|
var columns = _ref.columns,
|
@@ -11091,7 +11243,7 @@ function NtTable(_ref, ref) {
|
|
11091
11243
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
11092
11244
|
formRef = _ref.formRef,
|
11093
11245
|
none = _ref.none,
|
11094
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
11246
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
11095
11247
|
var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
11096
11248
|
_useState2 = _slicedToArray(_useState, 2),
|
11097
11249
|
selectedRowKeys = _useState2[0],
|
@@ -12347,7 +12499,7 @@ function WaterLevelCharts(config) {
|
|
12347
12499
|
/*
|
12348
12500
|
* @Author: lijin
|
12349
12501
|
* @Date: 2021-09-09 11:02:54
|
12350
|
-
* @LastEditTime: 2023-
|
12502
|
+
* @LastEditTime: 2023-12-25 19:04:08
|
12351
12503
|
* @LastEditors: lijin
|
12352
12504
|
* @Description:
|
12353
12505
|
* @FilePath: \wargerm\src\index.ts
|
@@ -12359,4 +12511,4 @@ if (REACT_APP_ENV == 'development') {
|
|
12359
12511
|
document.documentElement.setAttribute(COLOR_ATTR_NAME, 'sd');
|
12360
12512
|
}
|
12361
12513
|
|
12362
|
-
export { Index$b as AutoScroll, Index$d as Breadcrumb, WButton as Button, index$4 as Calendar, index$2 as Card, WCascader as Cascader, Index$4 as Checkbox, Index$a as CountUp, Index$2 as DatePicker, index$6 as DhPlayer, DragBox, IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, index$8 as NtTable, Index$9 as Number, NumericInput, Index$3 as Radio, index$1 as RequestRenderDom, Index$5 as Select, Index$c as Swiper, WSwitch as Switch, index$3 as TabelCard, index as Table, TableEdit, Index$7 as TreeSelect, Upload, index$7 as Video, index$5 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter, useStateWithCall, wTracing, create as whox, wmox };
|
12514
|
+
export { Index$b as AutoScroll, Index$d as Breadcrumb, WButton as Button, index$4 as Calendar, index$2 as Card, WCascader as Cascader, Index$4 as Checkbox, WCheckboxGroup as CheckboxGroup, Index$a as CountUp, Index$2 as DatePicker, index$6 as DhPlayer, DragBox, IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, index$8 as NtTable, Index$9 as Number, NumericInput, Index$3 as Radio, WRadioGroup as RadioGroup, index$1 as RequestRenderDom, Index$5 as Select, Index$c as Swiper, WSwitch as Switch, index$3 as TabelCard, index as Table, TableEdit, Index$7 as TreeSelect, Upload, index$7 as Video, index$5 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter, useStateWithCall, wTracing, create as whox, wmox };
|