wargerm 0.7.67 → 0.7.69

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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { CheckboxProps, CheckboxGroupProps } from 'antd/lib/Checkbox';
2
+ import { CheckboxProps } from 'antd';
3
+ import { CheckboxGroupProps } from 'antd/es/checkbox';
3
4
  export interface ICheckbox extends CheckboxProps {
4
5
  }
5
6
  export type IndexComponent = React.FC<ICheckbox> & {
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { CheckboxGroupProps } from 'antd/es/checkbox';
3
+ export interface ICheckboxGroup extends CheckboxGroupProps {
4
+ request?: () => Promise<any>;
5
+ valueEnum?: Record<string, any>;
6
+ params?: Record<string, any>;
7
+ onLoad?: (options: Record<string, any>[]) => void;
8
+ }
9
+ declare const WCheckboxGroup: FC<ICheckboxGroup>;
10
+ export default WCheckboxGroup;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { RadioProps, RadioGroupProps } from 'antd/lib/Radio';
2
+ import { RadioProps, RadioGroupProps } from 'antd';
3
3
  export interface IRadio extends RadioProps {
4
4
  sideButtonStyle?: string;
5
5
  }
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { RadioGroupProps } from 'antd';
3
+ export interface IRadioGroup extends RadioGroupProps {
4
+ request?: () => Promise<any>;
5
+ valueEnum?: Record<string, any>;
6
+ params?: Record<string, any>;
7
+ onLoad?: (options: Record<string, any>[]) => void;
8
+ }
9
+ declare const WRadioGroup: FC<IRadioGroup>;
10
+ export default WRadioGroup;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { SelectProps, OptionProps } from 'antd/lib/Select';
2
+ import { OptionProps, SelectProps } from 'antd/es/select';
3
3
  export interface IOptionProps extends OptionProps {
4
4
  }
5
5
  export interface ISelect extends SelectProps<any> {
package/dist/index.d.ts CHANGED
@@ -16,7 +16,9 @@ export { default as Upload } from './components/Upload';
16
16
  export { default as InputNumber } from './components/InputNumber';
17
17
  export { default as Table } from './components/Table';
18
18
  export { default as Checkbox } from './components/Checkbox';
19
+ export { default as CheckboxGroup } from './components/CheckboxGroup';
19
20
  export { default as Radio } from './components/Radio';
21
+ export { default as RadioGroup } from './components/RadioGroup';
20
22
  export { default as Select } from './components/Select';
21
23
  export { default as RequestRenderDom } from './components/RequestRenderDom';
22
24
  export { default as DatePicker } from './components/DatePicker';
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 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm", "deps"];
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$9);
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];
@@ -3328,11 +3467,31 @@ var WForm = function WForm(props, ref) {
3328
3467
  columnsFields = _useState4[0],
3329
3468
  setColumnsFields = _useState4[1];
3330
3469
  var filterFormColumns = deepCopy(columns).filter(function (c) {
3470
+ if (c.type == 'group') {
3471
+ var _c$children;
3472
+ c.children = (_c$children = c.children) === null || _c$children === void 0 ? void 0 : _c$children.filter(function (itm) {
3473
+ if (disabledHideInSearch) return true;
3474
+ if (itm.hideInSearch || itm.disabledHideInSearch) {
3475
+ return false;
3476
+ }
3477
+ return true;
3478
+ });
3479
+ }
3331
3480
  return !c.hideInSearch || disabledHideInSearch;
3332
3481
  }).sort(function (a, b) {
3333
3482
  return (b.order || 0) - (a.order || 0);
3334
3483
  });
3335
3484
  var filterExtraFormColumns = deepCopy(extraColumns || []).filter(function (c) {
3485
+ if (c.type == 'group') {
3486
+ var _c$children2;
3487
+ c.children = (_c$children2 = c.children) === null || _c$children2 === void 0 ? void 0 : _c$children2.filter(function (itm) {
3488
+ if (disabledHideInSearch) return true;
3489
+ if (itm.hideInSearch || itm.disabledHideInSearch) {
3490
+ return false;
3491
+ }
3492
+ return true;
3493
+ });
3494
+ }
3336
3495
  return !c.hideInSearch || disabledHideInSearch;
3337
3496
  }).sort(function (a, b) {
3338
3497
  return (b.order || 0) - (a.order || 0);
@@ -3544,31 +3703,25 @@ var WForm = function WForm(props, ref) {
3544
3703
  disabled: disabled
3545
3704
  }, _showTime), c.fieldProps))));
3546
3705
  } else if (c.valueType === 'checkbox') {
3547
- var options = [];
3548
- if (c.valueEnum) {
3549
- for (var key in c.valueEnum) {
3550
- var text = c.valueEnum[key].text;
3551
- options.push({
3552
- label: text,
3553
- value: key
3554
- });
3555
- }
3556
- }
3557
- if (c.options) {
3558
- options = c.options;
3706
+ var _extraProps4 = {};
3707
+ if (c.request) {
3708
+ _extraProps4.request = c.request;
3709
+ } else if (c.valueEnum) {
3710
+ _extraProps4.valueEnum = c.valueEnum;
3711
+ } else {
3712
+ _extraProps4.options = c.options;
3559
3713
  }
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
3714
  var _labelCol6 = {};
3567
3715
  if (search && search.labelWidth) {
3568
3716
  _labelCol6.style = {
3569
3717
  width: search.labelWidth
3570
3718
  };
3571
3719
  }
3720
+ if (c.options) {
3721
+ setColumnsFields(function (preColumnsFields) {
3722
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, c.options));
3723
+ });
3724
+ }
3572
3725
  return /*#__PURE__*/React.createElement(Col, _objectSpread2(_objectSpread2({
3573
3726
  className: "pl12 pr12"
3574
3727
  }, colProps), {}, {
@@ -3579,30 +3732,23 @@ var WForm = function WForm(props, ref) {
3579
3732
  name: c.dataIndex,
3580
3733
  label: c.title,
3581
3734
  labelCol: _labelCol6
3582
- }), /*#__PURE__*/React.createElement(Index$4.Group, _objectSpread2({
3583
- disabled: disabled,
3584
- options: options
3585
- }, c.fieldProps))));
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
3735
+ }), /*#__PURE__*/React.createElement(WCheckboxGroup, _objectSpread2(_objectSpread2({
3736
+ onLoad: function onLoad(opt) {
3737
+ setColumnsFields(function (preColumnsFields) {
3738
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, opt));
3597
3739
  });
3598
- }
3740
+ },
3741
+ disabled: disabled
3742
+ }, c.fieldProps), _extraProps4))));
3743
+ } else if (c.valueType === 'radio' || c.valueType === 'radioButton') {
3744
+ var _extraProps5 = {};
3745
+ if (c.request) {
3746
+ _extraProps5.request = c.request;
3747
+ } else if (c.valueEnum) {
3748
+ _extraProps5.valueEnum = c.valueEnum;
3749
+ } else {
3750
+ _extraProps5.options = c.options;
3599
3751
  }
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
3752
  var _labelCol7 = {};
3607
3753
  if (search && search.labelWidth) {
3608
3754
  _labelCol7.style = {
@@ -3616,6 +3762,11 @@ var WForm = function WForm(props, ref) {
3616
3762
  buttonStyle: 'solid'
3617
3763
  };
3618
3764
  }
3765
+ if (c.options) {
3766
+ setColumnsFields(function (preColumnsFields) {
3767
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, c.options));
3768
+ });
3769
+ }
3619
3770
  return /*#__PURE__*/React.createElement(Col, _objectSpread2(_objectSpread2({
3620
3771
  className: "pl12 pr12"
3621
3772
  }, colProps), {}, {
@@ -3626,19 +3777,22 @@ var WForm = function WForm(props, ref) {
3626
3777
  name: c.dataIndex,
3627
3778
  label: c.title,
3628
3779
  labelCol: _labelCol7
3629
- }), /*#__PURE__*/React.createElement(Index$3.Group, _objectSpread2(_objectSpread2({
3780
+ }), /*#__PURE__*/React.createElement(WRadioGroup, _objectSpread2(_objectSpread2(_objectSpread2({
3781
+ onLoad: function onLoad(opt) {
3782
+ setColumnsFields(function (preColumnsFields) {
3783
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, opt));
3784
+ });
3785
+ },
3630
3786
  disabled: disabled
3631
- }, radioButtonProps), {}, {
3632
- options: _options
3633
- }, c.fieldProps))));
3787
+ }, radioButtonProps), c.fieldProps), _extraProps5))));
3634
3788
  } else if (c.valueType === 'switch') {
3635
- var _options2 = [];
3789
+ var options = [];
3636
3790
  if (c.valueEnum) {
3637
- for (var _key2 in c.valueEnum) {
3638
- var _text2 = c.valueEnum[_key2].text;
3639
- _options2.push({
3640
- label: _text2,
3641
- value: _key2
3791
+ for (var key in c.valueEnum) {
3792
+ var text = c.valueEnum[key].text;
3793
+ options.push({
3794
+ label: text,
3795
+ value: key
3642
3796
  });
3643
3797
  }
3644
3798
  }
@@ -3652,7 +3806,7 @@ var WForm = function WForm(props, ref) {
3652
3806
  // columnsFieldsRef.current[c.dataIndex] = options;
3653
3807
  // }
3654
3808
  setColumnsFields(function (preColumnsFields) {
3655
- return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options2));
3809
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
3656
3810
  });
3657
3811
  return /*#__PURE__*/React.createElement(Col, _objectSpread2(_objectSpread2({
3658
3812
  className: "pl12 pr12"
@@ -4011,7 +4165,7 @@ var WForm = function WForm(props, ref) {
4011
4165
  };
4012
4166
  var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
4013
4167
 
4014
- var _excluded$a = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
4168
+ 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
4169
  function Table(_ref) {
4016
4170
  var _formSearchRef$curren4, _columns$, _columns$2;
4017
4171
  var columns = _ref.columns,
@@ -4042,7 +4196,7 @@ function Table(_ref) {
4042
4196
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
4043
4197
  formRef = _ref.formRef,
4044
4198
  none = _ref.none,
4045
- props = _objectWithoutProperties(_ref, _excluded$a);
4199
+ props = _objectWithoutProperties(_ref, _excluded$c);
4046
4200
  var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
4047
4201
  _useState2 = _slicedToArray(_useState, 2),
4048
4202
  selectedRowKeys = _useState2[0],
@@ -4529,7 +4683,7 @@ Table.defaultProps = {
4529
4683
  };
4530
4684
  var index = /*#__PURE__*/memo(Table);
4531
4685
 
4532
- var _excluded$b = ["value", "renderDom", "onLoad", "params", "onChange", "request"];
4686
+ var _excluded$d = ["value", "renderDom", "onLoad", "params", "onChange", "request"];
4533
4687
  function Index$8(props, ref) {
4534
4688
  var value = props.value,
4535
4689
  renderDom = props.renderDom,
@@ -4537,7 +4691,7 @@ function Index$8(props, ref) {
4537
4691
  params = props.params,
4538
4692
  onChange = props.onChange,
4539
4693
  request = props.request,
4540
- rest = _objectWithoutProperties(props, _excluded$b);
4694
+ rest = _objectWithoutProperties(props, _excluded$d);
4541
4695
  var _useState = useState(''),
4542
4696
  _useState2 = _slicedToArray(_useState, 2),
4543
4697
  areaValue = _useState2[0],
@@ -4592,7 +4746,7 @@ function Index$8(props, ref) {
4592
4746
  }
4593
4747
  var index$1 = /*#__PURE__*/React.forwardRef(Index$8);
4594
4748
 
4595
- var _excluded$c = ["height", "width", "count", "style", "numberStyle"],
4749
+ var _excluded$e = ["height", "width", "count", "style", "numberStyle"],
4596
4750
  _excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
4597
4751
  var Number$1 = function Number(_ref) {
4598
4752
  var height = _ref.height,
@@ -4601,7 +4755,7 @@ var Number$1 = function Number(_ref) {
4601
4755
  count = _ref$count === void 0 ? 0 : _ref$count,
4602
4756
  style = _ref.style,
4603
4757
  numberStyle = _ref.numberStyle,
4604
- props = _objectWithoutProperties(_ref, _excluded$c);
4758
+ props = _objectWithoutProperties(_ref, _excluded$e);
4605
4759
  // 上次的值
4606
4760
  var _useState = useState(0),
4607
4761
  _useState2 = _slicedToArray(_useState, 2),
@@ -4751,12 +4905,12 @@ var Index$9 = function Index(props) {
4751
4905
  }));
4752
4906
  };
4753
4907
 
4754
- var _excluded$d = ["duration", "className"];
4908
+ var _excluded$f = ["duration", "className"];
4755
4909
  var Index$a = function Index(props) {
4756
4910
  var _props$duration = props.duration,
4757
4911
  duration = _props$duration === void 0 ? 2.75 : _props$duration,
4758
4912
  className = props.className,
4759
- extraProps = _objectWithoutProperties(props, _excluded$d);
4913
+ extraProps = _objectWithoutProperties(props, _excluded$f);
4760
4914
  return /*#__PURE__*/React.createElement(CountUp, _objectSpread2(_objectSpread2({
4761
4915
  duration: duration
4762
4916
  }, extraProps), {}, {
@@ -4765,7 +4919,7 @@ var Index$a = function Index(props) {
4765
4919
  };
4766
4920
  Index$a.defaultProps = {};
4767
4921
 
4768
- var _excluded$e = ["list", "render", "none", "partSize"];
4922
+ var _excluded$g = ["list", "render", "none", "partSize"];
4769
4923
  function AutoScroll(props) {
4770
4924
  var inner1 = useRef();
4771
4925
  var inner2 = useRef();
@@ -4842,7 +4996,7 @@ var Index$b = function Index(_ref) {
4842
4996
  none = _ref.none,
4843
4997
  _ref$partSize = _ref.partSize,
4844
4998
  partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
4845
- otherProps = _objectWithoutProperties(_ref, _excluded$e);
4999
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
4846
5000
  var _useState = useState([]),
4847
5001
  _useState2 = _slicedToArray(_useState, 2),
4848
5002
  partA = _useState2[0],
@@ -4916,7 +5070,7 @@ var Index$b = function Index(_ref) {
4916
5070
  }, none || '暂无数据'));
4917
5071
  };
4918
5072
 
4919
- var _excluded$f = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem", "noMove"];
5073
+ var _excluded$h = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem", "noMove"];
4920
5074
  // install Swiper modules
4921
5075
  SwiperCore.use([Pagination$1, Navigation, Autoplay, Virtual]);
4922
5076
  var Index$c = /*#__PURE__*/forwardRef(function (props, ref) {
@@ -4928,7 +5082,7 @@ var Index$c = /*#__PURE__*/forwardRef(function (props, ref) {
4928
5082
  onSwiperChange = props.onSwiperChange,
4929
5083
  renderItem = props.renderItem,
4930
5084
  noMove = props.noMove,
4931
- extraProps = _objectWithoutProperties(props, _excluded$f);
5085
+ extraProps = _objectWithoutProperties(props, _excluded$h);
4932
5086
  var _useState = useState(null),
4933
5087
  _useState2 = _slicedToArray(_useState, 2),
4934
5088
  controlledSwiper = _useState2[0],
@@ -5577,7 +5731,7 @@ function createBrowserHistory(props) {
5577
5731
  return history;
5578
5732
  }
5579
5733
 
5580
- var _excluded$g = ["routes", "className"];
5734
+ var _excluded$i = ["routes", "className"];
5581
5735
  var history = createBrowserHistory();
5582
5736
  function itemRender(route, params, routes, paths) {
5583
5737
  var last = routes.indexOf(route) === routes.length - 1;
@@ -5593,7 +5747,7 @@ function itemRender(route, params, routes, paths) {
5593
5747
  var Index$d = function Index(_ref) {
5594
5748
  var routes = _ref.routes,
5595
5749
  className = _ref.className,
5596
- props = _objectWithoutProperties(_ref, _excluded$g);
5750
+ props = _objectWithoutProperties(_ref, _excluded$i);
5597
5751
  return /*#__PURE__*/React.createElement(Breadcrumb, _objectSpread2({
5598
5752
  className: className || 'default',
5599
5753
  separator: ">>",
@@ -5602,7 +5756,7 @@ var Index$d = function Index(_ref) {
5602
5756
  }, props));
5603
5757
  };
5604
5758
 
5605
- var _excluded$h = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5759
+ var _excluded$j = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5606
5760
  var Index$e = function Index(_ref, ref) {
5607
5761
  var _sliderTabs$component, _sliderTabs$tabs;
5608
5762
  var title = _ref.title,
@@ -5611,7 +5765,7 @@ var Index$e = function Index(_ref, ref) {
5611
5765
  headerTail = _ref.headerTail,
5612
5766
  headerCenter = _ref.headerCenter,
5613
5767
  sliderTabs = _ref.sliderTabs,
5614
- props = _objectWithoutProperties(_ref, _excluded$h);
5768
+ props = _objectWithoutProperties(_ref, _excluded$j);
5615
5769
  useImperativeHandle(ref, function () {
5616
5770
  return {
5617
5771
  activeTab: activeTab
@@ -5827,7 +5981,7 @@ function DialogModel(props, ref) {
5827
5981
  }
5828
5982
  var Dialog = /*#__PURE__*/React.forwardRef(DialogModel);
5829
5983
 
5830
- var _excluded$i = ["open", "width", "closeCb", "onClose", "className", "style", "isDrag", "wrapClassName"],
5984
+ var _excluded$k = ["open", "width", "closeCb", "onClose", "className", "style", "isDrag", "wrapClassName"],
5831
5985
  _excluded2$3 = ["open"];
5832
5986
  var Modal = /*#__PURE__*/function (_React$PureComponent) {
5833
5987
  _inherits(Modal, _React$PureComponent);
@@ -5959,7 +6113,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
5959
6113
  style = _this$props4.style,
5960
6114
  isDrag = _this$props4.isDrag,
5961
6115
  wrapClassName = _this$props4.wrapClassName,
5962
- other = _objectWithoutProperties(_this$props4, _excluded$i);
6116
+ other = _objectWithoutProperties(_this$props4, _excluded$k);
5963
6117
  return /*#__PURE__*/React.createElement(Dialog, _objectSpread2({
5964
6118
  ref: this.containerRef,
5965
6119
  closeCb: closeCb,
@@ -6124,7 +6278,7 @@ function DialogModel$1(props) {
6124
6278
  return renderChildren;
6125
6279
  }
6126
6280
 
6127
- var _excluded$j = ["open"];
6281
+ var _excluded$l = ["open"];
6128
6282
  var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
6129
6283
  _inherits(Modal, _React$PureComponent);
6130
6284
  var _super = _createSuper(Modal);
@@ -6246,7 +6400,7 @@ Modal$1.show = function (config) {
6246
6400
  setShow = _useState2[1];
6247
6401
  manager.setShow = setShow;
6248
6402
  var open = props.open,
6249
- trueProps = _objectWithoutProperties(props, _excluded$j);
6403
+ trueProps = _objectWithoutProperties(props, _excluded$l);
6250
6404
  useEffect(function () {
6251
6405
  manager.mounted = true;
6252
6406
  setShow(open);
@@ -6418,7 +6572,7 @@ function DragBox(_ref) {
6418
6572
  }, children))) : ( /*#__PURE__*/React.createElement(React.Fragment, null));
6419
6573
  }
6420
6574
 
6421
- var _excluded$k = ["columns", "extraColumns", "search", "open", "setOpen", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSlot", "modalFooterSlot", "formProps"];
6575
+ var _excluded$m = ["columns", "extraColumns", "search", "open", "setOpen", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSlot", "modalFooterSlot", "formProps"];
6422
6576
  var ModalForm = function ModalForm(props, ref) {
6423
6577
  var columns = props.columns,
6424
6578
  extraColumns = props.extraColumns,
@@ -6437,7 +6591,7 @@ var ModalForm = function ModalForm(props, ref) {
6437
6591
  modalHeaderSlot = props.modalHeaderSlot,
6438
6592
  modalFooterSlot = props.modalFooterSlot,
6439
6593
  formProps = props.formProps,
6440
- extraProps = _objectWithoutProperties(props, _excluded$k);
6594
+ extraProps = _objectWithoutProperties(props, _excluded$m);
6441
6595
  var formRef = useRef(null);
6442
6596
  var _useState = useState(false),
6443
6597
  _useState2 = _slicedToArray(_useState, 2),
@@ -6562,7 +6716,7 @@ var ModalForm = function ModalForm(props, ref) {
6562
6716
  };
6563
6717
  var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
6564
6718
 
6565
- var _excluded$l = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "filterAction", "renderTableBar", "renderTableBarDeps", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered", "showIndex", "searchTableSlot"];
6719
+ var _excluded$n = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "filterAction", "renderTableBar", "renderTableBarDeps", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered", "showIndex", "searchTableSlot"];
6566
6720
  var TabelCard = function TabelCard(props, ref) {
6567
6721
  var columns = props.columns,
6568
6722
  extraColumns = props.extraColumns,
@@ -6586,7 +6740,7 @@ var TabelCard = function TabelCard(props, ref) {
6586
6740
  noBordered = props.noBordered,
6587
6741
  showIndex = props.showIndex,
6588
6742
  searchTableSlot = props.searchTableSlot,
6589
- extraProps = _objectWithoutProperties(props, _excluded$l);
6743
+ extraProps = _objectWithoutProperties(props, _excluded$n);
6590
6744
  var actionRef = useRef();
6591
6745
  var modalFormRef = useRef(null);
6592
6746
  var searchFormRef = useRef(null);
@@ -10842,7 +10996,7 @@ function DhPlayer(_ref, ref) {
10842
10996
  }
10843
10997
  var index$6 = /*#__PURE__*/forwardRef(DhPlayer);
10844
10998
 
10845
- var _excluded$m = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "open", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
10999
+ var _excluded$o = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "open", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
10846
11000
  // 默认速度控制
10847
11001
  var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2];
10848
11002
  // 默认记忆提示文字展示时长(s)
@@ -10873,7 +11027,7 @@ var index$7 = (function (_ref) {
10873
11027
  enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
10874
11028
  _ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
10875
11029
  lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
10876
- props = _objectWithoutProperties(_ref, _excluded$m);
11030
+ props = _objectWithoutProperties(_ref, _excluded$o);
10877
11031
  var player = useRef();
10878
11032
  var currentPlayerIndex = useRef(0);
10879
11033
  // 内置的 index 状态管理
@@ -11043,7 +11197,7 @@ var index$7 = (function (_ref) {
11043
11197
  });
11044
11198
  });
11045
11199
 
11046
- var _excluded$n = ["className", "frameStyle", "style", "direction", "children"];
11200
+ var _excluded$p = ["className", "frameStyle", "style", "direction", "children"];
11047
11201
  function FrameBox$1(_ref) {
11048
11202
  var className = _ref.className,
11049
11203
  frameStyle = _ref.frameStyle,
@@ -11051,7 +11205,7 @@ function FrameBox$1(_ref) {
11051
11205
  _ref$direction = _ref.direction,
11052
11206
  direction = _ref$direction === void 0 ? 'in' : _ref$direction,
11053
11207
  children = _ref.children,
11054
- props = _objectWithoutProperties(_ref, _excluded$n);
11208
+ props = _objectWithoutProperties(_ref, _excluded$p);
11055
11209
  return /*#__PURE__*/React.createElement("div", _objectSpread2({
11056
11210
  className: classnames(_defineProperty(_defineProperty({}, 'frame', true), className || '', true)),
11057
11211
  style: style
@@ -11078,7 +11232,7 @@ function FrameBox$1(_ref) {
11078
11232
  }), children);
11079
11233
  }
11080
11234
 
11081
- var _excluded$o = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
11235
+ 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"];
11082
11236
  function NtTable(_ref, ref) {
11083
11237
  var _formSearchRef$curren4, _columns$, _columns$2;
11084
11238
  var columns = _ref.columns,
@@ -11109,7 +11263,7 @@ function NtTable(_ref, ref) {
11109
11263
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
11110
11264
  formRef = _ref.formRef,
11111
11265
  none = _ref.none,
11112
- props = _objectWithoutProperties(_ref, _excluded$o);
11266
+ props = _objectWithoutProperties(_ref, _excluded$q);
11113
11267
  var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
11114
11268
  _useState2 = _slicedToArray(_useState, 2),
11115
11269
  selectedRowKeys = _useState2[0],
@@ -12365,7 +12519,7 @@ function WaterLevelCharts(config) {
12365
12519
  /*
12366
12520
  * @Author: lijin
12367
12521
  * @Date: 2021-09-09 11:02:54
12368
- * @LastEditTime: 2023-09-18 17:44:13
12522
+ * @LastEditTime: 2023-12-25 19:04:08
12369
12523
  * @LastEditors: lijin
12370
12524
  * @Description:
12371
12525
  * @FilePath: \wargerm\src\index.ts
@@ -12377,4 +12531,4 @@ if (REACT_APP_ENV == 'development') {
12377
12531
  document.documentElement.setAttribute(COLOR_ATTR_NAME, 'sd');
12378
12532
  }
12379
12533
 
12380
- 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 };
12534
+ 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 };
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ var classnames = require('classnames');
12
12
  var zhCN = require('antd/es/date-picker/locale/zh_CN');
13
13
  var dayjs = require('dayjs');
14
14
  require('dayjs/locale/zh-cn');
15
+ var lib = require('antd/lib');
15
16
  var CountUp = require('react-countup');
16
17
  var react = require('swiper/react');
17
18
  var SwiperCore = require('swiper');
@@ -3343,7 +3344,145 @@ var WCascader = function WCascader(props) {
3343
3344
  }, extraProps));
3344
3345
  };
3345
3346
 
3346
- var _excluded$9 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm", "deps"];
3347
+ var _excluded$9 = ["request", "valueEnum", "onLoad", "params"];
3348
+ var WRadioGroup = function WRadioGroup(props) {
3349
+ var request = props.request,
3350
+ valueEnum = props.valueEnum,
3351
+ onLoad = props.onLoad,
3352
+ params = props.params,
3353
+ extraProps = _objectWithoutProperties(props, _excluded$9);
3354
+ var _useState = React.useState([]),
3355
+ _useState2 = _slicedToArray(_useState, 2),
3356
+ options = _useState2[0],
3357
+ setOptions = _useState2[1];
3358
+ React.useEffect(function () {
3359
+ var isMounted = true;
3360
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3361
+ var res;
3362
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
3363
+ while (1) switch (_context.prev = _context.next) {
3364
+ case 0:
3365
+ if (!request) {
3366
+ _context.next = 8;
3367
+ break;
3368
+ }
3369
+ _context.next = 3;
3370
+ return request();
3371
+ case 3:
3372
+ res = _context.sent;
3373
+ if (isMounted) {
3374
+ _context.next = 6;
3375
+ break;
3376
+ }
3377
+ return _context.abrupt("return");
3378
+ case 6:
3379
+ setOptions(res);
3380
+ onLoad && onLoad(res);
3381
+ case 8:
3382
+ case "end":
3383
+ return _context.stop();
3384
+ }
3385
+ }, _callee);
3386
+ }))();
3387
+ var valueEnumOptions = [];
3388
+ if (valueEnum) {
3389
+ for (var key in valueEnum) {
3390
+ var text = '';
3391
+ if (typeof valueEnum[key] === 'string') {
3392
+ text = valueEnum[key];
3393
+ } else {
3394
+ var _valueEnum$key;
3395
+ text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
3396
+ }
3397
+ valueEnumOptions.push({
3398
+ label: text,
3399
+ value: key
3400
+ });
3401
+ }
3402
+ }
3403
+ if (!isMounted) return;
3404
+ onLoad && onLoad(valueEnumOptions);
3405
+ setOptions(valueEnumOptions);
3406
+ return function () {
3407
+ isMounted = false;
3408
+ };
3409
+ }, [JSON.stringify(params || {})]);
3410
+ return /*#__PURE__*/React__default['default'].createElement(antd.Radio.Group, _objectSpread2({
3411
+ options: options
3412
+ }, extraProps));
3413
+ };
3414
+ WRadioGroup.defaultProps = {};
3415
+
3416
+ var _excluded$a = ["request", "valueEnum", "onLoad", "params"];
3417
+ var WCheckboxGroup = function WCheckboxGroup(props) {
3418
+ var request = props.request,
3419
+ valueEnum = props.valueEnum,
3420
+ onLoad = props.onLoad,
3421
+ params = props.params,
3422
+ extraProps = _objectWithoutProperties(props, _excluded$a);
3423
+ var _useState = React.useState([]),
3424
+ _useState2 = _slicedToArray(_useState, 2),
3425
+ options = _useState2[0],
3426
+ setOptions = _useState2[1];
3427
+ React.useEffect(function () {
3428
+ var isMounted = true;
3429
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3430
+ var res;
3431
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
3432
+ while (1) switch (_context.prev = _context.next) {
3433
+ case 0:
3434
+ if (!request) {
3435
+ _context.next = 8;
3436
+ break;
3437
+ }
3438
+ _context.next = 3;
3439
+ return request();
3440
+ case 3:
3441
+ res = _context.sent;
3442
+ if (isMounted) {
3443
+ _context.next = 6;
3444
+ break;
3445
+ }
3446
+ return _context.abrupt("return");
3447
+ case 6:
3448
+ setOptions(res);
3449
+ onLoad && onLoad(res);
3450
+ case 8:
3451
+ case "end":
3452
+ return _context.stop();
3453
+ }
3454
+ }, _callee);
3455
+ }))();
3456
+ var valueEnumOptions = [];
3457
+ if (valueEnum) {
3458
+ for (var key in valueEnum) {
3459
+ var text = '';
3460
+ if (typeof valueEnum[key] === 'string') {
3461
+ text = valueEnum[key];
3462
+ } else {
3463
+ var _valueEnum$key;
3464
+ text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
3465
+ }
3466
+ valueEnumOptions.push({
3467
+ label: text,
3468
+ value: key
3469
+ });
3470
+ }
3471
+ }
3472
+ if (!isMounted) return;
3473
+ onLoad && onLoad(valueEnumOptions);
3474
+ setOptions(valueEnumOptions);
3475
+ return function () {
3476
+ isMounted = false;
3477
+ };
3478
+ }, [JSON.stringify(params || {})]);
3479
+ return /*#__PURE__*/React__default['default'].createElement(lib.Checkbox.Group, _objectSpread2({
3480
+ options: options
3481
+ }, extraProps));
3482
+ };
3483
+ WCheckboxGroup.defaultProps = {};
3484
+
3485
+ var _excluded$b = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm", "deps"];
3347
3486
  var RangePicker$2 = Index$6.RangePicker;
3348
3487
  var WForm = function WForm(props, ref) {
3349
3488
  var columns = props.columns,
@@ -3359,7 +3498,7 @@ var WForm = function WForm(props, ref) {
3359
3498
  onReset = props.onReset,
3360
3499
  setForm = props.setForm,
3361
3500
  deps = props.deps,
3362
- extraProps = _objectWithoutProperties(props, _excluded$9);
3501
+ extraProps = _objectWithoutProperties(props, _excluded$b);
3363
3502
  var _Form$useForm = antd.Form.useForm(),
3364
3503
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
3365
3504
  form = _Form$useForm2[0];
@@ -3372,11 +3511,31 @@ var WForm = function WForm(props, ref) {
3372
3511
  columnsFields = _useState4[0],
3373
3512
  setColumnsFields = _useState4[1];
3374
3513
  var filterFormColumns = deepCopy(columns).filter(function (c) {
3514
+ if (c.type == 'group') {
3515
+ var _c$children;
3516
+ c.children = (_c$children = c.children) === null || _c$children === void 0 ? void 0 : _c$children.filter(function (itm) {
3517
+ if (disabledHideInSearch) return true;
3518
+ if (itm.hideInSearch || itm.disabledHideInSearch) {
3519
+ return false;
3520
+ }
3521
+ return true;
3522
+ });
3523
+ }
3375
3524
  return !c.hideInSearch || disabledHideInSearch;
3376
3525
  }).sort(function (a, b) {
3377
3526
  return (b.order || 0) - (a.order || 0);
3378
3527
  });
3379
3528
  var filterExtraFormColumns = deepCopy(extraColumns || []).filter(function (c) {
3529
+ if (c.type == 'group') {
3530
+ var _c$children2;
3531
+ c.children = (_c$children2 = c.children) === null || _c$children2 === void 0 ? void 0 : _c$children2.filter(function (itm) {
3532
+ if (disabledHideInSearch) return true;
3533
+ if (itm.hideInSearch || itm.disabledHideInSearch) {
3534
+ return false;
3535
+ }
3536
+ return true;
3537
+ });
3538
+ }
3380
3539
  return !c.hideInSearch || disabledHideInSearch;
3381
3540
  }).sort(function (a, b) {
3382
3541
  return (b.order || 0) - (a.order || 0);
@@ -3588,31 +3747,25 @@ var WForm = function WForm(props, ref) {
3588
3747
  disabled: disabled
3589
3748
  }, _showTime), c.fieldProps))));
3590
3749
  } else if (c.valueType === 'checkbox') {
3591
- var options = [];
3592
- if (c.valueEnum) {
3593
- for (var key in c.valueEnum) {
3594
- var text = c.valueEnum[key].text;
3595
- options.push({
3596
- label: text,
3597
- value: key
3598
- });
3599
- }
3600
- }
3601
- if (c.options) {
3602
- options = c.options;
3750
+ var _extraProps4 = {};
3751
+ if (c.request) {
3752
+ _extraProps4.request = c.request;
3753
+ } else if (c.valueEnum) {
3754
+ _extraProps4.valueEnum = c.valueEnum;
3755
+ } else {
3756
+ _extraProps4.options = c.options;
3603
3757
  }
3604
- // if (columnsFieldsRef.current) {
3605
- // columnsFieldsRef.current[c.dataIndex] = options;
3606
- // }
3607
- setColumnsFields(function (preColumnsFields) {
3608
- return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
3609
- });
3610
3758
  var _labelCol6 = {};
3611
3759
  if (search && search.labelWidth) {
3612
3760
  _labelCol6.style = {
3613
3761
  width: search.labelWidth
3614
3762
  };
3615
3763
  }
3764
+ if (c.options) {
3765
+ setColumnsFields(function (preColumnsFields) {
3766
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, c.options));
3767
+ });
3768
+ }
3616
3769
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, _objectSpread2(_objectSpread2({
3617
3770
  className: "pl12 pr12"
3618
3771
  }, colProps), {}, {
@@ -3623,30 +3776,23 @@ var WForm = function WForm(props, ref) {
3623
3776
  name: c.dataIndex,
3624
3777
  label: c.title,
3625
3778
  labelCol: _labelCol6
3626
- }), /*#__PURE__*/React__default['default'].createElement(Index$4.Group, _objectSpread2({
3627
- disabled: disabled,
3628
- options: options
3629
- }, c.fieldProps))));
3630
- } else if (c.valueType === 'radio' || c.valueType === 'radioButton') {
3631
- var _options = [];
3632
- if (c.options) {
3633
- _options = c.options;
3634
- }
3635
- if (c.valueEnum) {
3636
- for (var _key in c.valueEnum) {
3637
- var _text = c.valueEnum[_key].text;
3638
- _options.push({
3639
- label: _text,
3640
- value: _key
3779
+ }), /*#__PURE__*/React__default['default'].createElement(WCheckboxGroup, _objectSpread2(_objectSpread2({
3780
+ onLoad: function onLoad(opt) {
3781
+ setColumnsFields(function (preColumnsFields) {
3782
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, opt));
3641
3783
  });
3642
- }
3784
+ },
3785
+ disabled: disabled
3786
+ }, c.fieldProps), _extraProps4))));
3787
+ } else if (c.valueType === 'radio' || c.valueType === 'radioButton') {
3788
+ var _extraProps5 = {};
3789
+ if (c.request) {
3790
+ _extraProps5.request = c.request;
3791
+ } else if (c.valueEnum) {
3792
+ _extraProps5.valueEnum = c.valueEnum;
3793
+ } else {
3794
+ _extraProps5.options = c.options;
3643
3795
  }
3644
- // if (columnsFieldsRef.current) {
3645
- // columnsFieldsRef.current[c.dataIndex] = options;
3646
- // }
3647
- setColumnsFields(function (preColumnsFields) {
3648
- return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options));
3649
- });
3650
3796
  var _labelCol7 = {};
3651
3797
  if (search && search.labelWidth) {
3652
3798
  _labelCol7.style = {
@@ -3660,6 +3806,11 @@ var WForm = function WForm(props, ref) {
3660
3806
  buttonStyle: 'solid'
3661
3807
  };
3662
3808
  }
3809
+ if (c.options) {
3810
+ setColumnsFields(function (preColumnsFields) {
3811
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, c.options));
3812
+ });
3813
+ }
3663
3814
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, _objectSpread2(_objectSpread2({
3664
3815
  className: "pl12 pr12"
3665
3816
  }, colProps), {}, {
@@ -3670,19 +3821,22 @@ var WForm = function WForm(props, ref) {
3670
3821
  name: c.dataIndex,
3671
3822
  label: c.title,
3672
3823
  labelCol: _labelCol7
3673
- }), /*#__PURE__*/React__default['default'].createElement(Index$3.Group, _objectSpread2(_objectSpread2({
3824
+ }), /*#__PURE__*/React__default['default'].createElement(WRadioGroup, _objectSpread2(_objectSpread2(_objectSpread2({
3825
+ onLoad: function onLoad(opt) {
3826
+ setColumnsFields(function (preColumnsFields) {
3827
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, opt));
3828
+ });
3829
+ },
3674
3830
  disabled: disabled
3675
- }, radioButtonProps), {}, {
3676
- options: _options
3677
- }, c.fieldProps))));
3831
+ }, radioButtonProps), c.fieldProps), _extraProps5))));
3678
3832
  } else if (c.valueType === 'switch') {
3679
- var _options2 = [];
3833
+ var options = [];
3680
3834
  if (c.valueEnum) {
3681
- for (var _key2 in c.valueEnum) {
3682
- var _text2 = c.valueEnum[_key2].text;
3683
- _options2.push({
3684
- label: _text2,
3685
- value: _key2
3835
+ for (var key in c.valueEnum) {
3836
+ var text = c.valueEnum[key].text;
3837
+ options.push({
3838
+ label: text,
3839
+ value: key
3686
3840
  });
3687
3841
  }
3688
3842
  }
@@ -3696,7 +3850,7 @@ var WForm = function WForm(props, ref) {
3696
3850
  // columnsFieldsRef.current[c.dataIndex] = options;
3697
3851
  // }
3698
3852
  setColumnsFields(function (preColumnsFields) {
3699
- return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options2));
3853
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
3700
3854
  });
3701
3855
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, _objectSpread2(_objectSpread2({
3702
3856
  className: "pl12 pr12"
@@ -4055,7 +4209,7 @@ var WForm = function WForm(props, ref) {
4055
4209
  };
4056
4210
  var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
4057
4211
 
4058
- var _excluded$a = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
4212
+ 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"];
4059
4213
  function Table(_ref) {
4060
4214
  var _formSearchRef$curren4, _columns$, _columns$2;
4061
4215
  var columns = _ref.columns,
@@ -4086,7 +4240,7 @@ function Table(_ref) {
4086
4240
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
4087
4241
  formRef = _ref.formRef,
4088
4242
  none = _ref.none,
4089
- props = _objectWithoutProperties(_ref, _excluded$a);
4243
+ props = _objectWithoutProperties(_ref, _excluded$c);
4090
4244
  var _useState = React.useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
4091
4245
  _useState2 = _slicedToArray(_useState, 2),
4092
4246
  selectedRowKeys = _useState2[0],
@@ -4573,7 +4727,7 @@ Table.defaultProps = {
4573
4727
  };
4574
4728
  var index = /*#__PURE__*/React.memo(Table);
4575
4729
 
4576
- var _excluded$b = ["value", "renderDom", "onLoad", "params", "onChange", "request"];
4730
+ var _excluded$d = ["value", "renderDom", "onLoad", "params", "onChange", "request"];
4577
4731
  function Index$8(props, ref) {
4578
4732
  var value = props.value,
4579
4733
  renderDom = props.renderDom,
@@ -4581,7 +4735,7 @@ function Index$8(props, ref) {
4581
4735
  params = props.params,
4582
4736
  onChange = props.onChange,
4583
4737
  request = props.request,
4584
- rest = _objectWithoutProperties(props, _excluded$b);
4738
+ rest = _objectWithoutProperties(props, _excluded$d);
4585
4739
  var _useState = React.useState(''),
4586
4740
  _useState2 = _slicedToArray(_useState, 2),
4587
4741
  areaValue = _useState2[0],
@@ -4636,7 +4790,7 @@ function Index$8(props, ref) {
4636
4790
  }
4637
4791
  var index$1 = /*#__PURE__*/React__default['default'].forwardRef(Index$8);
4638
4792
 
4639
- var _excluded$c = ["height", "width", "count", "style", "numberStyle"],
4793
+ var _excluded$e = ["height", "width", "count", "style", "numberStyle"],
4640
4794
  _excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
4641
4795
  var Number$1 = function Number(_ref) {
4642
4796
  var height = _ref.height,
@@ -4645,7 +4799,7 @@ var Number$1 = function Number(_ref) {
4645
4799
  count = _ref$count === void 0 ? 0 : _ref$count,
4646
4800
  style = _ref.style,
4647
4801
  numberStyle = _ref.numberStyle,
4648
- props = _objectWithoutProperties(_ref, _excluded$c);
4802
+ props = _objectWithoutProperties(_ref, _excluded$e);
4649
4803
  // 上次的值
4650
4804
  var _useState = React.useState(0),
4651
4805
  _useState2 = _slicedToArray(_useState, 2),
@@ -4795,12 +4949,12 @@ var Index$9 = function Index(props) {
4795
4949
  }));
4796
4950
  };
4797
4951
 
4798
- var _excluded$d = ["duration", "className"];
4952
+ var _excluded$f = ["duration", "className"];
4799
4953
  var Index$a = function Index(props) {
4800
4954
  var _props$duration = props.duration,
4801
4955
  duration = _props$duration === void 0 ? 2.75 : _props$duration,
4802
4956
  className = props.className,
4803
- extraProps = _objectWithoutProperties(props, _excluded$d);
4957
+ extraProps = _objectWithoutProperties(props, _excluded$f);
4804
4958
  return /*#__PURE__*/React__default['default'].createElement(CountUp__default['default'], _objectSpread2(_objectSpread2({
4805
4959
  duration: duration
4806
4960
  }, extraProps), {}, {
@@ -4809,7 +4963,7 @@ var Index$a = function Index(props) {
4809
4963
  };
4810
4964
  Index$a.defaultProps = {};
4811
4965
 
4812
- var _excluded$e = ["list", "render", "none", "partSize"];
4966
+ var _excluded$g = ["list", "render", "none", "partSize"];
4813
4967
  function AutoScroll(props) {
4814
4968
  var inner1 = React.useRef();
4815
4969
  var inner2 = React.useRef();
@@ -4886,7 +5040,7 @@ var Index$b = function Index(_ref) {
4886
5040
  none = _ref.none,
4887
5041
  _ref$partSize = _ref.partSize,
4888
5042
  partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
4889
- otherProps = _objectWithoutProperties(_ref, _excluded$e);
5043
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
4890
5044
  var _useState = React.useState([]),
4891
5045
  _useState2 = _slicedToArray(_useState, 2),
4892
5046
  partA = _useState2[0],
@@ -4960,7 +5114,7 @@ var Index$b = function Index(_ref) {
4960
5114
  }, none || '暂无数据'));
4961
5115
  };
4962
5116
 
4963
- var _excluded$f = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem", "noMove"];
5117
+ var _excluded$h = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem", "noMove"];
4964
5118
  // install Swiper modules
4965
5119
  SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation, SwiperCore.Autoplay, SwiperCore.Virtual]);
4966
5120
  var Index$c = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -4972,7 +5126,7 @@ var Index$c = /*#__PURE__*/React.forwardRef(function (props, ref) {
4972
5126
  onSwiperChange = props.onSwiperChange,
4973
5127
  renderItem = props.renderItem,
4974
5128
  noMove = props.noMove,
4975
- extraProps = _objectWithoutProperties(props, _excluded$f);
5129
+ extraProps = _objectWithoutProperties(props, _excluded$h);
4976
5130
  var _useState = React.useState(null),
4977
5131
  _useState2 = _slicedToArray(_useState, 2),
4978
5132
  controlledSwiper = _useState2[0],
@@ -5621,7 +5775,7 @@ function createBrowserHistory(props) {
5621
5775
  return history;
5622
5776
  }
5623
5777
 
5624
- var _excluded$g = ["routes", "className"];
5778
+ var _excluded$i = ["routes", "className"];
5625
5779
  var history = createBrowserHistory();
5626
5780
  function itemRender(route, params, routes, paths) {
5627
5781
  var last = routes.indexOf(route) === routes.length - 1;
@@ -5637,7 +5791,7 @@ function itemRender(route, params, routes, paths) {
5637
5791
  var Index$d = function Index(_ref) {
5638
5792
  var routes = _ref.routes,
5639
5793
  className = _ref.className,
5640
- props = _objectWithoutProperties(_ref, _excluded$g);
5794
+ props = _objectWithoutProperties(_ref, _excluded$i);
5641
5795
  return /*#__PURE__*/React__default['default'].createElement(antd.Breadcrumb, _objectSpread2({
5642
5796
  className: className || 'default',
5643
5797
  separator: ">>",
@@ -5646,7 +5800,7 @@ var Index$d = function Index(_ref) {
5646
5800
  }, props));
5647
5801
  };
5648
5802
 
5649
- var _excluded$h = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5803
+ var _excluded$j = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5650
5804
  var Index$e = function Index(_ref, ref) {
5651
5805
  var _sliderTabs$component, _sliderTabs$tabs;
5652
5806
  var title = _ref.title,
@@ -5655,7 +5809,7 @@ var Index$e = function Index(_ref, ref) {
5655
5809
  headerTail = _ref.headerTail,
5656
5810
  headerCenter = _ref.headerCenter,
5657
5811
  sliderTabs = _ref.sliderTabs,
5658
- props = _objectWithoutProperties(_ref, _excluded$h);
5812
+ props = _objectWithoutProperties(_ref, _excluded$j);
5659
5813
  React.useImperativeHandle(ref, function () {
5660
5814
  return {
5661
5815
  activeTab: activeTab
@@ -5871,7 +6025,7 @@ function DialogModel(props, ref) {
5871
6025
  }
5872
6026
  var Dialog = /*#__PURE__*/React__default['default'].forwardRef(DialogModel);
5873
6027
 
5874
- var _excluded$i = ["open", "width", "closeCb", "onClose", "className", "style", "isDrag", "wrapClassName"],
6028
+ var _excluded$k = ["open", "width", "closeCb", "onClose", "className", "style", "isDrag", "wrapClassName"],
5875
6029
  _excluded2$3 = ["open"];
5876
6030
  var Modal = /*#__PURE__*/function (_React$PureComponent) {
5877
6031
  _inherits(Modal, _React$PureComponent);
@@ -6003,7 +6157,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
6003
6157
  style = _this$props4.style,
6004
6158
  isDrag = _this$props4.isDrag,
6005
6159
  wrapClassName = _this$props4.wrapClassName,
6006
- other = _objectWithoutProperties(_this$props4, _excluded$i);
6160
+ other = _objectWithoutProperties(_this$props4, _excluded$k);
6007
6161
  return /*#__PURE__*/React__default['default'].createElement(Dialog, _objectSpread2({
6008
6162
  ref: this.containerRef,
6009
6163
  closeCb: closeCb,
@@ -6168,7 +6322,7 @@ function DialogModel$1(props) {
6168
6322
  return renderChildren;
6169
6323
  }
6170
6324
 
6171
- var _excluded$j = ["open"];
6325
+ var _excluded$l = ["open"];
6172
6326
  var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
6173
6327
  _inherits(Modal, _React$PureComponent);
6174
6328
  var _super = _createSuper(Modal);
@@ -6290,7 +6444,7 @@ Modal$1.show = function (config) {
6290
6444
  setShow = _useState2[1];
6291
6445
  manager.setShow = setShow;
6292
6446
  var open = props.open,
6293
- trueProps = _objectWithoutProperties(props, _excluded$j);
6447
+ trueProps = _objectWithoutProperties(props, _excluded$l);
6294
6448
  React.useEffect(function () {
6295
6449
  manager.mounted = true;
6296
6450
  setShow(open);
@@ -6462,7 +6616,7 @@ function DragBox(_ref) {
6462
6616
  }, children))) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null));
6463
6617
  }
6464
6618
 
6465
- var _excluded$k = ["columns", "extraColumns", "search", "open", "setOpen", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSlot", "modalFooterSlot", "formProps"];
6619
+ var _excluded$m = ["columns", "extraColumns", "search", "open", "setOpen", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSlot", "modalFooterSlot", "formProps"];
6466
6620
  var ModalForm = function ModalForm(props, ref) {
6467
6621
  var columns = props.columns,
6468
6622
  extraColumns = props.extraColumns,
@@ -6481,7 +6635,7 @@ var ModalForm = function ModalForm(props, ref) {
6481
6635
  modalHeaderSlot = props.modalHeaderSlot,
6482
6636
  modalFooterSlot = props.modalFooterSlot,
6483
6637
  formProps = props.formProps,
6484
- extraProps = _objectWithoutProperties(props, _excluded$k);
6638
+ extraProps = _objectWithoutProperties(props, _excluded$m);
6485
6639
  var formRef = React.useRef(null);
6486
6640
  var _useState = React.useState(false),
6487
6641
  _useState2 = _slicedToArray(_useState, 2),
@@ -6606,7 +6760,7 @@ var ModalForm = function ModalForm(props, ref) {
6606
6760
  };
6607
6761
  var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
6608
6762
 
6609
- var _excluded$l = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "filterAction", "renderTableBar", "renderTableBarDeps", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered", "showIndex", "searchTableSlot"];
6763
+ var _excluded$n = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "filterAction", "renderTableBar", "renderTableBarDeps", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered", "showIndex", "searchTableSlot"];
6610
6764
  var TabelCard = function TabelCard(props, ref) {
6611
6765
  var columns = props.columns,
6612
6766
  extraColumns = props.extraColumns,
@@ -6630,7 +6784,7 @@ var TabelCard = function TabelCard(props, ref) {
6630
6784
  noBordered = props.noBordered,
6631
6785
  showIndex = props.showIndex,
6632
6786
  searchTableSlot = props.searchTableSlot,
6633
- extraProps = _objectWithoutProperties(props, _excluded$l);
6787
+ extraProps = _objectWithoutProperties(props, _excluded$n);
6634
6788
  var actionRef = React.useRef();
6635
6789
  var modalFormRef = React.useRef(null);
6636
6790
  var searchFormRef = React.useRef(null);
@@ -10886,7 +11040,7 @@ function DhPlayer(_ref, ref) {
10886
11040
  }
10887
11041
  var index$6 = /*#__PURE__*/React.forwardRef(DhPlayer);
10888
11042
 
10889
- var _excluded$m = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "open", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
11043
+ var _excluded$o = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "open", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
10890
11044
  // 默认速度控制
10891
11045
  var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2];
10892
11046
  // 默认记忆提示文字展示时长(s)
@@ -10917,7 +11071,7 @@ var index$7 = (function (_ref) {
10917
11071
  enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
10918
11072
  _ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
10919
11073
  lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
10920
- props = _objectWithoutProperties(_ref, _excluded$m);
11074
+ props = _objectWithoutProperties(_ref, _excluded$o);
10921
11075
  var player = React.useRef();
10922
11076
  var currentPlayerIndex = React.useRef(0);
10923
11077
  // 内置的 index 状态管理
@@ -11087,7 +11241,7 @@ var index$7 = (function (_ref) {
11087
11241
  });
11088
11242
  });
11089
11243
 
11090
- var _excluded$n = ["className", "frameStyle", "style", "direction", "children"];
11244
+ var _excluded$p = ["className", "frameStyle", "style", "direction", "children"];
11091
11245
  function FrameBox$1(_ref) {
11092
11246
  var className = _ref.className,
11093
11247
  frameStyle = _ref.frameStyle,
@@ -11095,7 +11249,7 @@ function FrameBox$1(_ref) {
11095
11249
  _ref$direction = _ref.direction,
11096
11250
  direction = _ref$direction === void 0 ? 'in' : _ref$direction,
11097
11251
  children = _ref.children,
11098
- props = _objectWithoutProperties(_ref, _excluded$n);
11252
+ props = _objectWithoutProperties(_ref, _excluded$p);
11099
11253
  return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
11100
11254
  className: classnames__default['default'](_defineProperty(_defineProperty({}, 'frame', true), className || '', true)),
11101
11255
  style: style
@@ -11122,7 +11276,7 @@ function FrameBox$1(_ref) {
11122
11276
  }), children);
11123
11277
  }
11124
11278
 
11125
- var _excluded$o = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
11279
+ 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"];
11126
11280
  function NtTable(_ref, ref) {
11127
11281
  var _formSearchRef$curren4, _columns$, _columns$2;
11128
11282
  var columns = _ref.columns,
@@ -11153,7 +11307,7 @@ function NtTable(_ref, ref) {
11153
11307
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
11154
11308
  formRef = _ref.formRef,
11155
11309
  none = _ref.none,
11156
- props = _objectWithoutProperties(_ref, _excluded$o);
11310
+ props = _objectWithoutProperties(_ref, _excluded$q);
11157
11311
  var _useState = React.useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
11158
11312
  _useState2 = _slicedToArray(_useState, 2),
11159
11313
  selectedRowKeys = _useState2[0],
@@ -12409,7 +12563,7 @@ function WaterLevelCharts(config) {
12409
12563
  /*
12410
12564
  * @Author: lijin
12411
12565
  * @Date: 2021-09-09 11:02:54
12412
- * @LastEditTime: 2023-09-18 17:44:13
12566
+ * @LastEditTime: 2023-12-25 19:04:08
12413
12567
  * @LastEditors: lijin
12414
12568
  * @Description:
12415
12569
  * @FilePath: \wargerm\src\index.ts
@@ -12428,6 +12582,7 @@ exports.Calendar = index$4;
12428
12582
  exports.Card = index$2;
12429
12583
  exports.Cascader = WCascader;
12430
12584
  exports.Checkbox = Index$4;
12585
+ exports.CheckboxGroup = WCheckboxGroup;
12431
12586
  exports.CountUp = Index$a;
12432
12587
  exports.DatePicker = Index$2;
12433
12588
  exports.DhPlayer = index$6;
@@ -12443,6 +12598,7 @@ exports.NtTable = index$8;
12443
12598
  exports.Number = Index$9;
12444
12599
  exports.NumericInput = NumericInput;
12445
12600
  exports.Radio = Index$3;
12601
+ exports.RadioGroup = WRadioGroup;
12446
12602
  exports.RequestRenderDom = index$1;
12447
12603
  exports.Select = Index$5;
12448
12604
  exports.Swiper = Index$c;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.7.67",
4
+ "version": "0.7.69",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",