zmdms-webui 0.0.134 → 0.0.136

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.
@@ -52,7 +52,7 @@ var Button = function (props) {
52
52
  }
53
53
  });
54
54
  }); };
55
- return (jsx(Button$1, __assign({ className: classes, type: type, disabled: disabled || !isAuth, size: size, danger: danger, onClick: myOnClick, loading: loading || innerLoading }, resetProps)));
55
+ return !isAuth ? null : (jsx(Button$1, __assign({ className: classes, type: type, disabled: disabled || !isAuth, size: size, danger: danger, onClick: myOnClick, loading: loading || innerLoading }, resetProps)));
56
56
  };
57
57
  var ButtonCom = Button;
58
58
  ButtonCom.displayName = "ZTXK_WEBUI_Button";
@@ -1,4 +1,4 @@
1
- import { __rest, __assign } from '../_virtual/_tslib.js';
1
+ import { __awaiter, __rest, __assign, __generator } from '../_virtual/_tslib.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { memo, forwardRef, useMemo, useCallback, useRef, useImperativeHandle } from 'react';
4
4
  import { Form as Form$1 } from 'antd';
@@ -114,7 +114,25 @@ var Form = function (props, ref) {
114
114
  };
115
115
  var MemoForm = memo(forwardRef(Form));
116
116
  MemoForm.displayName = "ZTXK_WEBUI_Form";
117
- MemoForm.useForm = Form$1.useForm;
117
+ MemoForm.useForm = function () {
118
+ var form = Form$1.useForm()[0];
119
+ var validateFields = form.validateFields;
120
+ // 代理表单验证方法,自动滚动到出错位置
121
+ form.validateFields = function (nameList) { return __awaiter(void 0, void 0, void 0, function () {
122
+ return __generator(this, function (_a) {
123
+ return [2 /*return*/, validateFields(nameList).catch(function (err) {
124
+ try {
125
+ form.scrollToField(err === null || err === void 0 ? void 0 : err.errorFields[0].name[0]);
126
+ }
127
+ catch (err) {
128
+ console.log("滚动报错");
129
+ }
130
+ return Promise.reject(err);
131
+ })];
132
+ });
133
+ }); };
134
+ return [form];
135
+ };
118
136
  MemoForm.Item = Form$1.Item;
119
137
  MemoForm.List = Form$1.List;
120
138
  MemoForm.ErrorList = Form$1.ErrorList;
@@ -1 +1 @@
1
- .ant-form-item .ant-input-number+.ant-form-text{margin-left:8px}.ant-form-inline{display:flex;flex-wrap:wrap}.ant-form-inline .ant-form-item{flex:none;flex-wrap:nowrap;margin-bottom:0;margin-right:16px}.ant-form-inline .ant-form-item-with-help{margin-bottom:24px}.ant-form-inline .ant-form-item>.ant-form-item-control,.ant-form-inline .ant-form-item>.ant-form-item-label{display:inline-block;vertical-align:top}.ant-form-inline .ant-form-item>.ant-form-item-label{flex:none}.ant-form-inline .ant-form-item .ant-form-item-has-feedback,.ant-form-inline .ant-form-item .ant-form-text{display:inline-block}.ant-form-horizontal .ant-form-item-label{flex-grow:0}.ant-form-horizontal .ant-form-item-control{flex:1 1 0;min-width:0}.ant-form-horizontal .ant-form-item-label[class$="-24"]+.ant-form-item-control,.ant-form-horizontal .ant-form-item-label[class*="-24 "]+.ant-form-item-control{min-width:unset}.ant-form-vertical .ant-form-item-row{flex-direction:column}.ant-form-vertical .ant-form-item-label>label{height:auto}.ant-form-vertical .ant-form-item .ant-form-item-control{width:100%}.ant-col-24.ant-form-item-label,.ant-col-xl-24.ant-form-item-label,.ant-form-vertical .ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-24.ant-form-item-label>label,.ant-col-xl-24.ant-form-item-label>label,.ant-form-vertical .ant-form-item-label>label{margin:0}.ant-col-24.ant-form-item-label>label:after,.ant-col-xl-24.ant-form-item-label>label:after,.ant-form-vertical .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-24.ant-form-item-label,.ant-form-rtl.ant-col-xl-24.ant-form-item-label,.ant-form-rtl.ant-form-vertical .ant-form-item-label{text-align:right}@media (max-width:575px){.ant-form-item .ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-form-item .ant-form-item-label>label{margin:0}.ant-form-item .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-form-item .ant-form-item-label{text-align:right}.ant-form .ant-form-item{flex-wrap:wrap}.ant-form .ant-form-item .ant-form-item-control,.ant-form .ant-form-item .ant-form-item-label{flex:0 0 100%;max-width:100%}.ant-col-xs-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-xs-24.ant-form-item-label>label{margin:0}.ant-col-xs-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xs-24.ant-form-item-label{text-align:right}}@media (max-width:767px){.ant-col-sm-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-sm-24.ant-form-item-label>label{margin:0}.ant-col-sm-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-sm-24.ant-form-item-label{text-align:right}}@media (max-width:991px){.ant-col-md-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-md-24.ant-form-item-label>label{margin:0}.ant-col-md-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-md-24.ant-form-item-label{text-align:right}}@media (max-width:1199px){.ant-col-lg-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-lg-24.ant-form-item-label>label{margin:0}.ant-col-lg-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-lg-24.ant-form-item-label{text-align:right}}@media (max-width:1599px){.ant-col-xl-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-xl-24.ant-form-item-label>label{margin:0}.ant-col-xl-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xl-24.ant-form-item-label{text-align:right}}.ant-form-item-explain-error{color:#ff4d4f}.ant-form-item-explain-warning{color:#faad14}.ant-form-item-has-feedback .ant-switch{margin:2px 0 4px}.ant-form-item-has-warning .ant-form-item-split{color:#faad14}.ant-form-item-has-error .ant-form-item-split{color:#ff4d4f}.ant-form{font-feature-settings:"tnum";box-sizing:border-box;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;margin:0;padding:0}.ant-form legend{border:0;border-bottom:1px solid #d9d9d9;color:#00000073;display:block;font-size:16px;line-height:inherit;margin-bottom:20px;padding:0;width:100%}.ant-form label{font-size:14px}.ant-form input[type=search]{box-sizing:border-box}.ant-form input[type=checkbox],.ant-form input[type=radio]{line-height:normal}.ant-form input[type=file]{display:block}.ant-form input[type=range]{display:block;width:100%}.ant-form select[multiple],.ant-form select[size]{height:auto}.ant-form input[type=checkbox]:focus,.ant-form input[type=file]:focus,.ant-form input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ant-form output{color:#000000a6;display:block;font-size:14px;line-height:1.5715;padding-top:15px}.ant-form .ant-form-text{display:inline-block;padding-right:8px}.ant-form-small .ant-form-item-label>label{height:24px}.ant-form-small .ant-form-item-control-input{min-height:24px}.ant-form-large .ant-form-item-label>label{height:40px}.ant-form-large .ant-form-item-control-input{min-height:40px}.ant-form-item{font-feature-settings:"tnum";box-sizing:border-box;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;margin:0 0 24px;padding:0;vertical-align:top}.ant-form-item-with-help{transition:none}.ant-form-item-hidden,.ant-form-item-hidden.ant-row{display:none}.ant-form-item-label{display:inline-block;flex-grow:0;overflow:hidden;text-align:right;vertical-align:middle;white-space:nowrap}.ant-form-item-label-left{text-align:left}.ant-form-item-label-wrap{line-height:1.3215em;overflow:unset;white-space:unset}.ant-form-item-label>label{align-items:center;color:#000000d9;display:inline-flex;font-size:14px;height:32px;max-width:100%;position:relative}.ant-form-item-label>label>.anticon{font-size:14px;vertical-align:top}.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{color:#ff4d4f;content:"*";display:inline-block;font-family:SimSun,sans-serif;font-size:14px;line-height:1;margin-right:4px}.ant-form-hide-required-mark .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:none}.ant-form-item-label>label .ant-form-item-optional{color:#00000073;display:inline-block;margin-left:4px}.ant-form-hide-required-mark .ant-form-item-label>label .ant-form-item-optional{display:none}.ant-form-item-label>label .ant-form-item-tooltip{color:#00000073;cursor:help;margin-inline-start:4px;writing-mode:horizontal-tb}.ant-form-item-label>label:after{content:":";margin:0 8px 0 2px;position:relative;top:-.5px}.ant-form-item-label>label.ant-form-item-no-colon:after{content:" "}.ant-form-item-control{display:flex;flex-direction:column;flex-grow:1}.ant-form-item-control:first-child:not([class^=ant-col-]):not([class*=" ant-col-"]){width:100%}.ant-form-item-control-input{align-items:center;display:flex;min-height:32px;position:relative}.ant-form-item-control-input-content{flex:auto;max-width:100%}.ant-form-item-explain,.ant-form-item-extra{clear:both;color:#00000073;font-size:14px;line-height:1.5715;transition:color .3s cubic-bezier(.215,.61,.355,1)}.ant-form-item-explain-connected{width:100%}.ant-form-item-extra{min-height:24px}.ant-form-item-with-help .ant-form-item-explain{height:auto;opacity:1}.ant-form-item-feedback-icon{animation:zoomIn .3s cubic-bezier(.12,.4,.29,1.46);font-size:14px;pointer-events:none;text-align:center;visibility:visible}.ant-form-item-feedback-icon-success{color:#52c41a}.ant-form-item-feedback-icon-error{color:#ff4d4f}.ant-form-item-feedback-icon-warning{color:#faad14}.ant-form-item-feedback-icon-validating{color:#5b76f6}.ant-show-help{transition:opacity .3s cubic-bezier(.645,.045,.355,1)}.ant-show-help-appear,.ant-show-help-enter{opacity:0}.ant-show-help-appear-active,.ant-show-help-enter-active,.ant-show-help-leave{opacity:1}.ant-show-help-leave-active{opacity:0}.ant-show-help-item{overflow:hidden;transition:height .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-appear,.ant-show-help-item-enter{opacity:0;transform:translateY(-5px)}.ant-show-help-item-appear-active,.ant-show-help-item-enter-active{opacity:1;transform:translateY(0)}.ant-show-help-item-leave{transition:height .2s cubic-bezier(.645,.045,.355,1),opacity .2s cubic-bezier(.645,.045,.355,1),transform .2s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-leave-active{transform:translateY(-5px)}@keyframes diffZoomIn1{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes diffZoomIn2{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes diffZoomIn3{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.ant-form-rtl{direction:rtl}.ant-form-rtl .ant-form-item-label{text-align:left}.ant-form-rtl .ant-form-item-label>label.ant-form-item-required:before{margin-left:4px;margin-right:0}.ant-form-rtl .ant-form-item-label>label:after{margin:0 2px 0 8px}.ant-form-rtl .ant-form-item-label>label .ant-form-item-optional{margin-left:0;margin-right:4px}.ant-col-rtl .ant-form-item-control:first-child{width:100%}.ant-form-rtl .ant-form-item-has-feedback .ant-input{padding-left:24px;padding-right:11px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-left:18px;padding-right:11px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input,.ant-form-rtl .ant-form-item-has-feedback .ant-input-number-affix-wrapper .ant-input-number{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{left:28px;right:auto}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number{padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-clear{left:32px;right:auto}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-left:42px;padding-right:0}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-left:19px;margin-right:0}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear{left:32px;right:auto}.ant-form-rtl .ant-form-item-has-feedback .ant-picker,.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large{padding-left:29.2px;padding-right:11px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small{padding-left:25.2px;padding-right:7px}.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{left:0;right:auto}.ant-form-rtl.ant-form-inline .ant-form-item{margin-left:16px;margin-right:0}.ztxk-form{background:#fff;display:flex;justify-content:space-between;padding:0}.ztxk-form .ztxk-form--detault-dom{align-items:center;border:1px solid #d9d9d9;border-left:none;border-radius:0 4px 4px 0;display:flex;min-height:32px;padding:4px 11px;transition:all .3s}.ztxk-form.ztxk-form--bottom-border{border-bottom:1px solid #ebf3fe}.ztxk-form .ztxk-form__left{flex:1;overflow:hidden;position:relative;transition:max-height .3s ease-out}.ztxk-form .ztxk-form__left.ztxk-form__left--flex{display:flex;flex-grow:1;flex-wrap:wrap}.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-checkbox-group,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-form-item-label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-form-item-label label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-input,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-input-affix-wrapper,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-picker,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-radio-group,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-select-selector,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .city-picker-span,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-form-item-label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-form-item-label label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-input,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-input-affix-wrapper,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-picker,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-select-selector,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .city-picker-span,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ztxk-form--detault-dom{border-color:#f88!important}.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-form-item-margin-offset{margin-bottom:0!important}.ztxk-form .ztxk-form__left.ztxk-form__left--flex-direction{flex-direction:column}.ztxk-form .ztxk-form__left.ztxk-form__left--flex-direction>div{flex:none}.ztxk-form .ztxk-form--operation{align-items:center;display:flex;flex-direction:column;margin-right:10px}.ztxk-form .ztxk-form--operation .ztxk-dynamic-setting{cursor:pointer;margin-top:6px;position:relative}.ztxk-form .ztxk-form--operation .ztxk-from--toggle{cursor:pointer;margin-top:4px}.ztxk-form .ztxk-form--operation .ztxk-from--toggle>span{transition:transform .4s ease 0s}.ztxk-form .ztxk-form__right{display:flex}.ztxk-form .ztxk-form__right>button.ant-btn{margin-left:10px;margin-right:0}.ztxk-form .ztxk-form__right>button.ant-btn:first-child{margin-left:0}
1
+ .ant-form-item .ant-input-number+.ant-form-text{margin-left:8px}.ant-form-inline{display:flex;flex-wrap:wrap}.ant-form-inline .ant-form-item{flex:none;flex-wrap:nowrap;margin-bottom:0;margin-right:16px}.ant-form-inline .ant-form-item-with-help{margin-bottom:24px}.ant-form-inline .ant-form-item>.ant-form-item-control,.ant-form-inline .ant-form-item>.ant-form-item-label{display:inline-block;vertical-align:top}.ant-form-inline .ant-form-item>.ant-form-item-label{flex:none}.ant-form-inline .ant-form-item .ant-form-item-has-feedback,.ant-form-inline .ant-form-item .ant-form-text{display:inline-block}.ant-form-horizontal .ant-form-item-label{flex-grow:0}.ant-form-horizontal .ant-form-item-control{flex:1 1 0;min-width:0}.ant-form-horizontal .ant-form-item-label[class$="-24"]+.ant-form-item-control,.ant-form-horizontal .ant-form-item-label[class*="-24 "]+.ant-form-item-control{min-width:unset}.ant-form-vertical .ant-form-item-row{flex-direction:column}.ant-form-vertical .ant-form-item-label>label{height:auto}.ant-form-vertical .ant-form-item .ant-form-item-control{width:100%}.ant-col-24.ant-form-item-label,.ant-col-xl-24.ant-form-item-label,.ant-form-vertical .ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-24.ant-form-item-label>label,.ant-col-xl-24.ant-form-item-label>label,.ant-form-vertical .ant-form-item-label>label{margin:0}.ant-col-24.ant-form-item-label>label:after,.ant-col-xl-24.ant-form-item-label>label:after,.ant-form-vertical .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-24.ant-form-item-label,.ant-form-rtl.ant-col-xl-24.ant-form-item-label,.ant-form-rtl.ant-form-vertical .ant-form-item-label{text-align:right}@media (max-width:575px){.ant-form-item .ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-form-item .ant-form-item-label>label{margin:0}.ant-form-item .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-form-item .ant-form-item-label{text-align:right}.ant-form .ant-form-item{flex-wrap:wrap}.ant-form .ant-form-item .ant-form-item-control,.ant-form .ant-form-item .ant-form-item-label{flex:0 0 100%;max-width:100%}.ant-col-xs-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-xs-24.ant-form-item-label>label{margin:0}.ant-col-xs-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xs-24.ant-form-item-label{text-align:right}}@media (max-width:767px){.ant-col-sm-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-sm-24.ant-form-item-label>label{margin:0}.ant-col-sm-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-sm-24.ant-form-item-label{text-align:right}}@media (max-width:991px){.ant-col-md-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-md-24.ant-form-item-label>label{margin:0}.ant-col-md-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-md-24.ant-form-item-label{text-align:right}}@media (max-width:1199px){.ant-col-lg-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-lg-24.ant-form-item-label>label{margin:0}.ant-col-lg-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-lg-24.ant-form-item-label{text-align:right}}@media (max-width:1599px){.ant-col-xl-24.ant-form-item-label{line-height:1.5715;padding:0 0 8px;text-align:left;white-space:normal}.ant-col-xl-24.ant-form-item-label>label{margin:0}.ant-col-xl-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xl-24.ant-form-item-label{text-align:right}}.ant-form-item-explain-error{color:#ff4d4f}.ant-form-item-explain-warning{color:#faad14}.ant-form-item-has-feedback .ant-switch{margin:2px 0 4px}.ant-form-item-has-warning .ant-form-item-split{color:#faad14}.ant-form-item-has-error .ant-form-item-split{color:#ff4d4f}.ant-form{font-feature-settings:"tnum";box-sizing:border-box;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;margin:0;padding:0}.ant-form legend{border:0;border-bottom:1px solid #d9d9d9;color:#00000073;display:block;font-size:16px;line-height:inherit;margin-bottom:20px;padding:0;width:100%}.ant-form label{font-size:14px}.ant-form input[type=search]{box-sizing:border-box}.ant-form input[type=checkbox],.ant-form input[type=radio]{line-height:normal}.ant-form input[type=file]{display:block}.ant-form input[type=range]{display:block;width:100%}.ant-form select[multiple],.ant-form select[size]{height:auto}.ant-form input[type=checkbox]:focus,.ant-form input[type=file]:focus,.ant-form input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ant-form output{color:#000000a6;display:block;font-size:14px;line-height:1.5715;padding-top:15px}.ant-form .ant-form-text{display:inline-block;padding-right:8px}.ant-form-small .ant-form-item-label>label{height:24px}.ant-form-small .ant-form-item-control-input{min-height:24px}.ant-form-large .ant-form-item-label>label{height:40px}.ant-form-large .ant-form-item-control-input{min-height:40px}.ant-form-item{font-feature-settings:"tnum";box-sizing:border-box;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;margin:0 0 24px;padding:0;vertical-align:top}.ant-form-item-with-help{transition:none}.ant-form-item-hidden,.ant-form-item-hidden.ant-row{display:none}.ant-form-item-label{display:inline-block;flex-grow:0;overflow:hidden;text-align:right;vertical-align:middle;white-space:nowrap}.ant-form-item-label-left{text-align:left}.ant-form-item-label-wrap{line-height:1.3215em;overflow:unset;white-space:unset}.ant-form-item-label>label{align-items:center;color:#000000d9;display:inline-flex;font-size:14px;height:32px;max-width:100%;position:relative}.ant-form-item-label>label>.anticon{font-size:14px;vertical-align:top}.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{color:#ff4d4f;content:"*";display:inline-block;font-family:SimSun,sans-serif;font-size:14px;line-height:1;margin-right:4px}.ant-form-hide-required-mark .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:none}.ant-form-item-label>label .ant-form-item-optional{color:#00000073;display:inline-block;margin-left:4px}.ant-form-hide-required-mark .ant-form-item-label>label .ant-form-item-optional{display:none}.ant-form-item-label>label .ant-form-item-tooltip{color:#00000073;cursor:help;margin-inline-start:4px;writing-mode:horizontal-tb}.ant-form-item-label>label:after{content:":";margin:0 8px 0 2px;position:relative;top:-.5px}.ant-form-item-label>label.ant-form-item-no-colon:after{content:" "}.ant-form-item-control{display:flex;flex-direction:column;flex-grow:1}.ant-form-item-control:first-child:not([class^=ant-col-]):not([class*=" ant-col-"]){width:100%}.ant-form-item-control-input{align-items:center;display:flex;min-height:32px;position:relative}.ant-form-item-control-input-content{flex:auto;max-width:100%}.ant-form-item-explain,.ant-form-item-extra{clear:both;color:#00000073;font-size:14px;line-height:1.5715;transition:color .3s cubic-bezier(.215,.61,.355,1)}.ant-form-item-explain-connected{width:100%}.ant-form-item-extra{min-height:24px}.ant-form-item-with-help .ant-form-item-explain{height:auto;opacity:1}.ant-form-item-feedback-icon{animation:zoomIn .3s cubic-bezier(.12,.4,.29,1.46);font-size:14px;pointer-events:none;text-align:center;visibility:visible}.ant-form-item-feedback-icon-success{color:#52c41a}.ant-form-item-feedback-icon-error{color:#ff4d4f}.ant-form-item-feedback-icon-warning{color:#faad14}.ant-form-item-feedback-icon-validating{color:#5b76f6}.ant-show-help{transition:opacity .3s cubic-bezier(.645,.045,.355,1)}.ant-show-help-appear,.ant-show-help-enter{opacity:0}.ant-show-help-appear-active,.ant-show-help-enter-active,.ant-show-help-leave{opacity:1}.ant-show-help-leave-active{opacity:0}.ant-show-help-item{overflow:hidden;transition:height .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-appear,.ant-show-help-item-enter{opacity:0;transform:translateY(-5px)}.ant-show-help-item-appear-active,.ant-show-help-item-enter-active{opacity:1;transform:translateY(0)}.ant-show-help-item-leave{transition:height .2s cubic-bezier(.645,.045,.355,1),opacity .2s cubic-bezier(.645,.045,.355,1),transform .2s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-leave-active{transform:translateY(-5px)}@keyframes diffZoomIn1{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes diffZoomIn2{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes diffZoomIn3{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.ant-form-rtl{direction:rtl}.ant-form-rtl .ant-form-item-label{text-align:left}.ant-form-rtl .ant-form-item-label>label.ant-form-item-required:before{margin-left:4px;margin-right:0}.ant-form-rtl .ant-form-item-label>label:after{margin:0 2px 0 8px}.ant-form-rtl .ant-form-item-label>label .ant-form-item-optional{margin-left:0;margin-right:4px}.ant-col-rtl .ant-form-item-control:first-child{width:100%}.ant-form-rtl .ant-form-item-has-feedback .ant-input{padding-left:24px;padding-right:11px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-left:18px;padding-right:11px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input,.ant-form-rtl .ant-form-item-has-feedback .ant-input-number-affix-wrapper .ant-input-number{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{left:28px;right:auto}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number{padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-clear{left:32px;right:auto}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-left:42px;padding-right:0}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-left:19px;margin-right:0}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear{left:32px;right:auto}.ant-form-rtl .ant-form-item-has-feedback .ant-picker,.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large{padding-left:29.2px;padding-right:11px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small{padding-left:25.2px;padding-right:7px}.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{left:0;right:auto}.ant-form-rtl.ant-form-inline .ant-form-item{margin-left:16px;margin-right:0}.ztxk-form{background:#fff;display:flex;justify-content:space-between;padding:0}.ztxk-form .ztxk-form--detault-dom{align-items:center;border:1px solid #d9d9d9;border-left:none;border-radius:0 4px 4px 0;display:flex;min-height:32px;padding:4px 11px;transition:all .3s}.ztxk-form.ztxk-form--bottom-border{border-bottom:1px solid #ebf3fe}.ztxk-form .ztxk-form__left{flex:1;overflow:hidden;position:relative;transition:max-height .3s ease-out}.ztxk-form .ztxk-form__left.ztxk-form__left--flex{display:flex;flex-grow:1;flex-wrap:wrap}.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-checkbox-group,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-form-item-label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-form-item-label label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-input,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-input-affix-wrapper,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-picker,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-radio-group,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-select-selector,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .city-picker-span,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error.ztxk-form__item--direction-column,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-form-item-label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-form-item-label label,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-input,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-input-affix-wrapper,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-picker,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ant-select-selector,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .city-picker-span,.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error:hover .ztxk-form--detault-dom{border-color:#f88!important}.ztxk-form .ztxk-form__left.ztxk-form__left--flex .ant-form-item-has-error .ant-form-item-margin-offset{margin-bottom:0!important}.ztxk-form .ztxk-form__left.ztxk-form__left--flex-direction{flex-direction:column}.ztxk-form .ztxk-form__left.ztxk-form__left--flex-direction>div{flex:none}.ztxk-form .ztxk-form--operation{align-items:center;display:flex;flex-direction:column;margin-right:10px}.ztxk-form .ztxk-form--operation .ztxk-dynamic-setting{cursor:pointer;margin-top:6px;position:relative}.ztxk-form .ztxk-form--operation .ztxk-from--toggle{cursor:pointer;margin-top:4px}.ztxk-form .ztxk-form--operation .ztxk-from--toggle>span{transition:transform .4s ease 0s}.ztxk-form .ztxk-form__right{display:flex}.ztxk-form .ztxk-form__right>button.ant-btn{margin-left:10px;margin-right:0}.ztxk-form .ztxk-form__right>button.ant-btn:first-child{margin-left:0}
@@ -1 +1 @@
1
- .ztxk-form__item--wrap{align-items:center;display:flex;padding-bottom:10px;padding-right:10px;position:relative}.ztxk-form__item--wrap .ztxk-form__item--wrap--tips{color:#f88;position:absolute;right:10px;top:2px}.ztxk-form__item--wrap .ant-form-item{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-form-item-explain{display:none}.ztxk-form__item--wrap .ant-form-item .ant-picker-focused{box-shadow:none}.ztxk-form__item--wrap .ant-form-item .ant-select{margin-left:0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus,.ztxk-form__item--wrap .ant-form-item .ant-input:focus,.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{box-shadow:none}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-picker,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-select-selector,.ztxk-form__item--wrap .ant-form-item:hover .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number-disabled{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ant-form-item:focus-within .ztxk-form--detault-dom,.ztxk-form__item--wrap .ant-form-item:hover .ztxk-form--detault-dom{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item .ant-input-number-disabled{background-color:#f5f5f5}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label{background-color:#fff;border:1px solid #cdd9e6;border-radius:4px 0 0 4px;border-right:0;color:#768696;font-size:12px;text-align:right;transition:border .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{font-size:12px;height:30px;line-height:30px;padding-left:6px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper .ant-input{font-size:13px;height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:hover,.ztxk-form__item--wrap .ant-form-item .ant-input-number:hover{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-number{border-left:none;border-radius:0 4px 4px 0;height:32px;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus{border-color:#1566d2;border-left:1px solid #1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker{border-left:none;border-radius:0 4px 4px 0;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-picker.ant-picker-focused{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker .ant-picker-input>input{text-align:left}.ztxk-form__item--wrap .ant-form-item .ant-input{border-left:none;border-radius:0 4px 4px 0;height:32px}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea .ant-input{height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea.ant-input-textarea-show-count.ant-input-textarea-in-form-item:after{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-select{width:100%}.ztxk-form__item--wrap .ant-form-item textarea{resize:none}.ztxk-form__item--wrap .ant-form-item .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item .ant-radio-group{align-items:center;border:1px solid #d9d9d9;border-left:none;border-radius:0 4px 4px 0;display:flex;min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control{font-size:13px;width:calc(100% - 130px)}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{background-color:none}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label>*,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label>*{cursor:default}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control-input-content,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item .ant-picker{min-height:32px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input:focus{border-color:#1566d2!important}.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column{border:1px solid #cdd9e6;border-radius:4px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--direction-column:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column>.ant-form-item-row{flex-direction:column}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-label{border:none;border-radius:4px;text-align:left}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-control{padding-left:10px;width:100%}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-select-selector{border:none}.ztxk-form__item--wrap .ztxk-form__item{flex:1}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom{background-color:#f5f5f5;cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom>*{cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-select-selector,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ztxk-form--detault-dom{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-select-selector{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group{padding-left:11px}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label label{border:none}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-radio-group{border:none;min-height:32px}.ztxk-form__item--wrap .ztxk-form__item--single-select{color:red}.ztxk-form__item--wrap .ztxk-form__item--single-select .ant-form-item-control-input-content{background:#fff;border:none;line-height:32px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border.pro-form__item--nolabel .ant-form-item-control-input-content{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content{background:#fff;border:1px solid #d9d9d9;border-radius:4px;line-height:30px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--stress .ant-form-item-label label{color:#f88}.ztxk-form__item--wrap .ztxk-form__item--custom .ztxk-form--detault-dom{padding:2px 11px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number{border:1px solid #d9d9d9;border-radius:4px;height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number-input{height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector{border:1px solid #d9d9d9;border-radius:4px;height:26px;min-height:26px!important}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-search-input{height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-item{line-height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ztxk-form--detault-dom{padding:0 11px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number{border-bottom:none;border-radius:4px;border-top:none;height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector{border:1px solid #d9d9d9;border-bottom:none;border-radius:4px;border-top:none;height:30px;min-height:30px!important}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-search-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-item{line-height:30px}
1
+ .ztxk-form__item--wrap{align-items:center;display:flex;padding-bottom:10px;padding-right:10px;position:relative}.ztxk-form__item--wrap .ztxk-form__item--wrap--tips{color:#f88;position:absolute;right:10px;top:2px}.ztxk-form__item--wrap .ant-form-item{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-form-item-explain{display:none}.ztxk-form__item--wrap .ant-form-item .ant-picker-focused{box-shadow:none}.ztxk-form__item--wrap .ant-form-item .ant-select{margin-left:0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus,.ztxk-form__item--wrap .ant-form-item .ant-input:focus,.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{box-shadow:none}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-picker,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-select-selector,.ztxk-form__item--wrap .ant-form-item:hover .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-radio-group,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:focus-within .ant-input-number-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number-disabled{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ant-form-item:focus-within .ztxk-form--detault-dom,.ztxk-form__item--wrap .ant-form-item:hover .ztxk-form--detault-dom{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-disabled,.ztxk-form__item--wrap .ant-form-item .ant-input-number-disabled{background-color:#f5f5f5}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label{background-color:#fff;border:1px solid #cdd9e6;border-radius:4px 0 0 4px;border-right:0;color:#768696;font-size:12px;text-align:right;transition:border .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{font-size:12px;height:30px;line-height:30px;padding-left:6px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-select-selector .ant-select-selection-item{width:100px}.ztxk-form__item--wrap .ant-form-item .ant-select-focused.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper{border-left:none;border-radius:0 4px 4px 0}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper .ant-input{font-size:13px;height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:hover,.ztxk-form__item--wrap .ant-form-item .ant-input-number:hover{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-input-number{border-left:none;border-radius:0 4px 4px 0;height:32px;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-input-number:focus{border-color:#1566d2;border-left:1px solid #1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker{border-left:none;border-radius:0 4px 4px 0;width:100%}.ztxk-form__item--wrap .ant-form-item .ant-picker.ant-picker-focused{border-color:#1566d2}.ztxk-form__item--wrap .ant-form-item .ant-picker .ant-picker-input>input{text-align:left}.ztxk-form__item--wrap .ant-form-item .ant-input{border-left:none;border-radius:0 4px 4px 0;height:32px}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea .ant-input{height:auto}.ztxk-form__item--wrap .ant-form-item .ant-input-textarea.ant-input-textarea-show-count.ant-input-textarea-in-form-item:after{margin-bottom:0}.ztxk-form__item--wrap .ant-form-item .ant-select{width:100%}.ztxk-form__item--wrap .ant-form-item textarea{resize:none}.ztxk-form__item--wrap .ant-form-item .ant-checkbox-group,.ztxk-form__item--wrap .ant-form-item .ant-radio-group{align-items:center;border:1px solid #d9d9d9;border-left:none;border-radius:0 4px 4px 0;display:flex;min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control{font-size:13px;width:calc(100% - 130px)}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label{background-color:none}.ztxk-form__item--wrap .ant-form-item .ant-form-item-label label>*,.ztxk-form__item--wrap .ant-form-item .ant-form-item-label>*{cursor:default}.ztxk-form__item--wrap .ant-form-item .ant-form-item-control-input-content,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item .ant-picker{min-height:32px}.ztxk-form__item--wrap .ant-form-item .ant-select-selector,.ztxk-form__item--wrap .ant-form-item .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{min-height:32px;transition:all .3s}.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper-focused,.ztxk-form__item--wrap .ant-form-item .ant-input-affix-wrapper:focus,.ztxk-form__item--wrap .ant-form-item .ant-input-focused,.ztxk-form__item--wrap .ant-form-item .ant-input:focus{border-color:#1566d2!important}.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label,.ztxk-form__item--wrap .ant-form-item:hover .ant-form-item-label label,.ztxk-form__item--wrap .ant-form-item:hover .ant-input,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ant-form-item:hover .ant-input-number,.ztxk-form__item--wrap .ant-form-item:hover .ant-picker,.ztxk-form__item--wrap .ant-form-item:hover .ant-select-selector{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column{border:1px solid #cdd9e6;border-radius:4px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--direction-column:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--direction-column>.ant-form-item-row{flex-direction:column}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-label{border:none;border-radius:4px;text-align:left}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-form-item-control{padding-left:10px;width:100%}.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--direction-column .ant-select-selector{border:none}.ztxk-form__item--wrap .ztxk-form__item--direction-column textarea.ant-input:focus{box-shadow:none!important}.ztxk-form__item--wrap .ztxk-form__item{flex:1}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom{background-color:#f5f5f5;cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ant-form-item-label>*,.ztxk-form__item--wrap .ztxk-form__item--disabled .ztxk-form--detault-dom>*{cursor:not-allowed}.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ant-select-selector,.ztxk-form__item--wrap .ztxk-form__item--disabled:hover .ztxk-form--detault-dom{border-color:#cdd9e6!important}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-form-item-label label,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-affix-wrapper,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-input-number,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-picker,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-select-selector{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-label .ant-radio-group{padding-left:11px}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-form-item-label label{border:none}.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-checkbox-group,.ztxk-form__item--wrap .ztxk-form__item--hidden-border .ant-radio-group{border:none;min-height:32px}.ztxk-form__item--wrap .ztxk-form__item--single-select{color:red}.ztxk-form__item--wrap .ztxk-form__item--single-select .ant-form-item-control-input-content{background:#fff;border:none;line-height:32px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border.pro-form__item--nolabel .ant-form-item-control-input-content{border-left:1px solid #d9d9d9;border-radius:4px}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content{background:#fff;border:1px solid #d9d9d9;border-radius:4px;line-height:30px;padding-left:11px;transition:border .3s}.ztxk-form__item--wrap .ztxk-form__item--single-show-border .ant-form-item-control-input-content:hover{border-color:#1566d2}.ztxk-form__item--wrap .ztxk-form__item--stress .ant-form-item-label label{color:#f88}.ztxk-form__item--wrap .ztxk-form__item--custom .ztxk-form--detault-dom{padding:2px 11px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number{border:1px solid #d9d9d9;border-radius:4px;height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-input-number-input{height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector{border:1px solid #d9d9d9;border-radius:4px;height:26px;min-height:26px!important}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-search-input{height:26px}.ztxk-form__item--wrap .ztxk-form__item--custom .ant-select-selector .ant-select-selection-item{line-height:23px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ztxk-form--detault-dom{padding:0 11px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input,.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number{border-bottom:none;border-radius:4px;border-top:none;height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-input-number-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector{border:1px solid #d9d9d9;border-bottom:none;border-radius:4px;border-top:none;height:30px;min-height:30px!important}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-search-input{height:30px}.ztxk-form__item--wrap .ztxk-form__item--custom-fill .ant-select-selector .ant-select-selection-item{line-height:30px}
@@ -1,4 +1,4 @@
1
- import { __rest, __awaiter, __assign, __generator } from '../_virtual/_tslib.js';
1
+ import { __rest, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, useState, useCallback, useImperativeHandle } from 'react';
4
4
  import { Modal as Modal$1, message } from 'antd';
@@ -1,40 +1,47 @@
1
1
  import { __assign } from '../_virtual/_tslib.js';
2
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
- import { useState, useRef, useCallback } from 'react';
3
+ import { useState, useRef, useMemo, useCallback, useEffect } from 'react';
4
4
  import { unescapeString } from 'zmdms-utils';
5
5
  import MemoSelect from './select.js';
6
6
  import { Divider } from 'antd';
7
7
 
8
- function useRenderChildren(props) {
9
- var list = props.list, defaultList = props.defaultList, _a = props.dataKey, dataKey = _a === void 0 ? "id" : _a, _b = props.titleKey, titleKey = _b === void 0 ? "name" : _b, joinKey = props.joinKey, joinStr = props.joinStr, lineFeedKey = props.lineFeedKey, lineFeedStr = props.lineFeedStr, showAll = props.showAll, children = props.children, disabledValues = props.disabledValues;
10
- var concatHandle = function (arr1, arr2) {
11
- if (!arr2) {
12
- return arr1;
8
+ var concatHandle = function (arr1, _a) {
9
+ var arr2 = _a.arr2, dataKey = _a.dataKey, titleKey = _a.titleKey;
10
+ if (!arr2) {
11
+ return arr1;
12
+ }
13
+ var resultList = (arr1 === null || arr1 === void 0 ? void 0 : arr1.slice()) || [];
14
+ arr2.forEach(function (item, index) {
15
+ if (!item) {
16
+ console.error("\u9ED8\u8BA4\u6570\u636E\u4E2D\u6709\u7A7A\u503C \u4F4D\u7F6E\u518DdefalutList\u4E2D\u7B2C".concat(index + 1, "\u9879"));
17
+ return;
13
18
  }
14
- var resultList = (arr1 === null || arr1 === void 0 ? void 0 : arr1.slice()) || [];
15
- arr2.forEach(function (item, index) {
16
- if (!item) {
17
- console.error("\u9ED8\u8BA4\u6570\u636E\u4E2D\u6709\u7A7A\u503C \u4F4D\u7F6E\u518DdefalutList\u4E2D\u7B2C".concat(index + 1, "\u9879"));
18
- return;
19
- }
20
- var currentIndex = resultList.findIndex(function (arr1Item) { return arr1Item && dataKey && arr1Item[dataKey] === item[dataKey]; });
21
- if (currentIndex === -1) {
22
- resultList.push(item);
19
+ var currentIndex = resultList.findIndex(function (arr1Item) { return arr1Item && dataKey && arr1Item[dataKey] === item[dataKey]; });
20
+ if (currentIndex === -1) {
21
+ resultList.push(item);
22
+ }
23
+ else {
24
+ // 找到了 需要替换
25
+ var newItem = __assign({}, item);
26
+ if (titleKey && !newItem[titleKey]) {
27
+ Reflect.deleteProperty(newItem, titleKey);
23
28
  }
24
- else {
25
- // 找到了 需要替换
26
- var newItem = __assign({}, item);
27
- if (titleKey && !newItem[titleKey]) {
28
- Reflect.deleteProperty(newItem, titleKey);
29
- }
30
- if (dataKey && !newItem[dataKey]) {
31
- Reflect.deleteProperty(newItem, dataKey);
32
- }
33
- resultList.splice(currentIndex, 1, __assign(__assign({}, resultList[currentIndex]), newItem));
29
+ if (dataKey && !newItem[dataKey]) {
30
+ Reflect.deleteProperty(newItem, dataKey);
34
31
  }
32
+ resultList.splice(currentIndex, 1, __assign(__assign({}, resultList[currentIndex]), newItem));
33
+ }
34
+ });
35
+ };
36
+ function useRenderChildren(props) {
37
+ var list = props.list, defaultList = props.defaultList, _a = props.dataKey, dataKey = _a === void 0 ? "id" : _a, _b = props.titleKey, titleKey = _b === void 0 ? "name" : _b, joinKey = props.joinKey, joinStr = props.joinStr, lineFeedKey = props.lineFeedKey, lineFeedStr = props.lineFeedStr, showAll = props.showAll, children = props.children, disabledValues = props.disabledValues;
38
+ var resultList = useMemo(function () {
39
+ return concatHandle(list, {
40
+ arr2: defaultList,
41
+ dataKey: dataKey,
42
+ titleKey: titleKey,
35
43
  });
36
- };
37
- var resultList = concatHandle(list, defaultList);
44
+ }, [list, defaultList, dataKey, titleKey]);
38
45
  var renderChildren = function () {
39
46
  if (children) {
40
47
  return children;
@@ -100,7 +107,7 @@ function useDropdownRender(renderDom) {
100
107
  function useRemeberCheckedValues() {
101
108
  var currentCheckedValuesRef = useRef([]);
102
109
  return {
103
- parseCheckedValues: useCallback(function (currentValues, currentAllValues, dataKey) {
110
+ parseCheckedValues: useCallback(function (currentValues, currentAllValues, dataKey, defaultValues) {
104
111
  var newCurrentChecked = [];
105
112
  // 将新加的数据 添加到 已选中项中
106
113
  if (Array.isArray(currentAllValues)) {
@@ -118,10 +125,61 @@ function useRemeberCheckedValues() {
118
125
  if (result) {
119
126
  newCurrentChecked.push(result);
120
127
  }
128
+ else {
129
+ // 对于没找到的数据 从另外的数据里找
130
+ var defaultValue = defaultValues.current.find(function (i) { return (i === null || i === void 0 ? void 0 : i[dataKey]) === key; });
131
+ if (defaultValue) {
132
+ newCurrentChecked.push(defaultValue);
133
+ }
134
+ }
121
135
  });
122
136
  }
123
137
  return newCurrentChecked;
124
138
  }, []),
139
+ currentCheckedValuesRef: currentCheckedValuesRef,
140
+ };
141
+ }
142
+ /**
143
+ * 多选模式 初始化记录值
144
+ */
145
+ function useInitRemeberCheckedValues(_a) {
146
+ var list = _a.list, value = _a.value, mode = _a.mode, _b = _a.dataKey, dataKey = _b === void 0 ? "id" : _b, currentCheckedValuesRef = _a.currentCheckedValuesRef;
147
+ // 非change触发记录下选中项
148
+ var defaultCheckedValuesRef = useRef();
149
+ var isChangeRef = useRef(false);
150
+ useEffect(function () {
151
+ // 非 change 触发值改变 才执行
152
+ if (isChangeRef.current || mode !== "multiple") {
153
+ isChangeRef.current = false;
154
+ return;
155
+ }
156
+ if (Array.isArray(value)) {
157
+ console.log(1111);
158
+ var result = value.map(function (v) {
159
+ var _a, _b;
160
+ var checked = (_a = defaultCheckedValuesRef.current) === null || _a === void 0 ? void 0 : _a.find(function (item) { return (item === null || item === void 0 ? void 0 : item[dataKey]) === v; });
161
+ if (checked) {
162
+ return checked;
163
+ }
164
+ var current = (_b = currentCheckedValuesRef.current) === null || _b === void 0 ? void 0 : _b.find(function (item) { return (item === null || item === void 0 ? void 0 : item[dataKey]) === v; });
165
+ if (current) {
166
+ return current;
167
+ }
168
+ console.log("性能遍历");
169
+ var item = list === null || list === void 0 ? void 0 : list.find(function (item) {
170
+ if (!item) {
171
+ return null;
172
+ }
173
+ return item[dataKey] === v;
174
+ });
175
+ return item;
176
+ });
177
+ defaultCheckedValuesRef.current = result;
178
+ }
179
+ }, [mode, list, value, dataKey, currentCheckedValuesRef]);
180
+ return {
181
+ defaultCheckedValuesRef: defaultCheckedValuesRef,
182
+ isChangeRef: isChangeRef,
125
183
  };
126
184
  }
127
185
  /**
@@ -157,4 +215,4 @@ function useSearchValue(props) {
157
215
  };
158
216
  }
159
217
 
160
- export { useDropdownRender, useRemeberCheckedValues, useRenderChildren, useSearchValue };
218
+ export { useDropdownRender, useInitRemeberCheckedValues, useRemeberCheckedValues, useRenderChildren, useSearchValue };
@@ -2,7 +2,7 @@ import { __rest, __assign } from '../_virtual/_tslib.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { memo, forwardRef, useCallback } from 'react';
4
4
  import { Select as Select$1 } from 'antd';
5
- import { useSearchValue, useRemeberCheckedValues, useRenderChildren, useDropdownRender } from './hooks.js';
5
+ import { useSearchValue, useRemeberCheckedValues, useRenderChildren, useInitRemeberCheckedValues, useDropdownRender } from './hooks.js';
6
6
  import debounce from 'lodash/debounce';
7
7
 
8
8
  function textContent(children) {
@@ -26,11 +26,11 @@ function textContent(children) {
26
26
  var Select = function (props, ref) {
27
27
  var list = props.list, defaultList = props.defaultList, _a = props.dataKey, dataKey = _a === void 0 ? "id" : _a, _b = props.titleKey, titleKey = _b === void 0 ? "name" : _b, joinKey = props.joinKey, _c = props.joinStr, joinStr = _c === void 0 ? "-" : _c, lineFeedKey = props.lineFeedKey, _d = props.lineFeedStr, lineFeedStr = _d === void 0 ? "-" : _d, showAll = props.showAll, children = props.children, disabledValues = props.disabledValues, _e = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _e === void 0 ? 100 : _e, onChange = props.onChange, onSearch = props.onSearch, isRemoteSearch = props.isRemoteSearch, dropdownButton = props.dropdownButton, dropdownRender = props.dropdownRender, resetProps = __rest(props, ["list", "defaultList", "dataKey", "titleKey", "joinKey", "joinStr", "lineFeedKey", "lineFeedStr", "showAll", "children", "disabledValues", "dropdownMatchSelectWidth", "onChange", "onSearch", "isRemoteSearch", "dropdownButton", "dropdownRender"]);
28
28
  // 记录当前选中项 只有当多选模式下 才需要用到这个选项
29
- var parseCheckedValues = useRemeberCheckedValues().parseCheckedValues;
29
+ var _f = useRemeberCheckedValues(), parseCheckedValues = _f.parseCheckedValues, currentCheckedValuesRef = _f.currentCheckedValuesRef;
30
30
  /**
31
31
  * 渲染子元素
32
32
  */
33
- var _f = useRenderChildren({
33
+ var _g = useRenderChildren({
34
34
  list: list,
35
35
  defaultList: defaultList,
36
36
  dataKey: dataKey,
@@ -42,7 +42,17 @@ var Select = function (props, ref) {
42
42
  showAll: showAll,
43
43
  children: children,
44
44
  disabledValues: disabledValues,
45
- }), renderChildren = _f.renderChildren, resultList = _f.resultList;
45
+ value: resetProps.value,
46
+ mode: resetProps.mode,
47
+ }), renderChildren = _g.renderChildren, resultList = _g.resultList;
48
+ // 非change触发记录下选中项
49
+ var _h = useInitRemeberCheckedValues({
50
+ list: resultList,
51
+ value: resetProps.value,
52
+ mode: resetProps.mode,
53
+ dataKey: dataKey,
54
+ currentCheckedValuesRef: currentCheckedValuesRef,
55
+ }), defaultCheckedValuesRef = _h.defaultCheckedValuesRef, isChangeRef = _h.isChangeRef;
46
56
  /**
47
57
  * 底部渲染按钮
48
58
  */
@@ -51,6 +61,7 @@ var Select = function (props, ref) {
51
61
  * onChange方法代理
52
62
  */
53
63
  var onChangeHandle = function (value, options) {
64
+ isChangeRef.current = true;
54
65
  if (!Array.isArray(resultList) || resultList.length === 0) {
55
66
  onChange && onChange(value, options);
56
67
  return;
@@ -73,7 +84,7 @@ var Select = function (props, ref) {
73
84
  });
74
85
  });
75
86
  currentData = currentData === null || currentData === void 0 ? void 0 : currentData.filter(function (item) { return item; });
76
- currentData = parseCheckedValues(value, currentData, dataKey);
87
+ currentData = parseCheckedValues(value, currentData, dataKey, defaultCheckedValuesRef);
77
88
  }
78
89
  else {
79
90
  currentData = resultList.find(function (item) {
@@ -185,7 +185,7 @@ var EnhanceCell = function (props) {
185
185
  }), style: {
186
186
  lineHeight: resetEditableConfigProps.rows
187
187
  ? "".concat(26 * resetEditableConfigProps.rows, "px")
188
- : "30px",
188
+ : "22px",
189
189
  }, title: val, onClick: resultDisabled
190
190
  ? undefined
191
191
  : function () {
@@ -195,7 +195,13 @@ var EnhanceCell = function (props) {
195
195
  }
196
196
  return (jsx("td", __assign({ ref: tdRef }, resetProps, { onClick: function () {
197
197
  setIsCurrent(true);
198
- } }, { children: jsx(Popover, __assign({ trigger: "click", content: showPopover.message, open: showPopover.open, overlayClassName: "error-popover", onOpenChange: function (open) {
198
+ } }, { children: jsx(Popover
199
+ // 将 click 改成 contextMenu
200
+ // click 会导致 Radio.Group元素 的点击文本选不中选项
201
+ , __assign({
202
+ // 将 click 改成 contextMenu
203
+ // click 会导致 Radio.Group元素 的点击文本选不中选项
204
+ trigger: "contextMenu", content: showPopover.message, open: showPopover.open, overlayClassName: "error-popover", onOpenChange: function (open) {
199
205
  setShowPopover(function (pre) {
200
206
  return __assign(__assign({}, pre), { open: open });
201
207
  });