linkmore-design 1.1.13-alpha.2 → 1.1.13-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -10
- package/dist/ConfigProvider/context.d.ts +1 -0
- package/dist/Descriptions/index.d.ts +1 -1
- package/dist/Form/FormWrapper.d.ts +3 -0
- package/dist/Form/WrapperItem.d.ts +4 -0
- package/dist/Form/demos/responsive.d.ts +0 -1
- package/dist/Form/index.d.ts +2 -0
- package/dist/Form/interface.d.ts +12 -0
- package/dist/IconFont/demos/ConfigProvider.d.ts +2 -0
- package/dist/IconFont/index.d.ts +1 -2
- package/dist/LmTable/demos/summuy.d.ts +2 -0
- package/dist/QuickMenu/demos/useInDraw.d.ts +2 -0
- package/dist/QuickMenu/index.d.ts +1 -0
- package/dist/TreeSelect/demos/treedata.d.ts +3 -0
- package/dist/index.umd.js +1271 -1039
- package/dist/index.umd.min.js +17 -17
- package/dist/variables.css +162 -98
- package/es/Cascader/index.js +16 -2
- package/es/Cascader/style/index.css +1 -0
- package/es/Cascader/style/variables.css +1 -0
- package/es/ConfigProvider/context.d.ts +1 -0
- package/es/ConfigProvider/index.js +5 -3
- package/es/Descriptions/index.d.ts +1 -1
- package/es/Descriptions/index.js +3 -3
- package/es/Descriptions/style/index.css +3 -0
- package/es/Descriptions/style/variables.css +3 -0
- package/es/Form/Form.js +13 -4
- package/es/Form/FormItem/ItemHolder.js +1 -10
- package/es/Form/FormWrapper.d.ts +3 -0
- package/es/Form/FormWrapper.js +22 -0
- package/es/Form/WrapperItem.d.ts +4 -0
- package/es/Form/WrapperItem.js +217 -0
- package/es/Form/container.js +1 -13
- package/es/Form/images/icon_collapse.svg +1 -0
- package/es/Form/index.d.ts +2 -0
- package/es/Form/index.js +2 -0
- package/es/Form/interface.d.ts +12 -0
- package/es/Form/style/index.css +34 -44
- package/es/Form/style/variables.css +34 -44
- package/es/IconFont/index.d.ts +1 -2
- package/es/IconFont/index.js +18 -4
- package/es/ImageViewer/components/Operate.js +4 -7
- package/es/InputNumber/index.js +11 -4
- package/es/InputNumber/style/index.css +7 -0
- package/es/InputNumber/style/variables.css +7 -0
- package/es/LmEditTable/EditTable.js +3 -3
- package/es/LmEditTable/sortableItemCol.js +8 -5
- package/es/LmEditTable/util.js +1 -1
- package/es/LmFilter/components/CheckboxFilter.js +9 -4
- package/es/LmFilter/components/DropdownFIlter.js +166 -115
- package/es/LmFilter/components/SelectFilter.js +4 -3
- package/es/LmFilter/filterFns/index.js +4 -6
- package/es/LmFilter/style/index.css +73 -54
- package/es/LmFilter/style/variables.css +73 -54
- package/es/LmFilter/utils.js +6 -6
- package/es/LmSelect/style/index.css +1 -0
- package/es/LmSelect/style/variables.css +1 -0
- package/es/LmTable/style/index.css +39 -0
- package/es/LmTable/style/variables.css +39 -0
- package/es/LmUpload/UploadList/ItemText.js +5 -1
- package/es/QuickMenu/index.d.ts +1 -0
- package/es/QuickMenu/index.js +12 -8
- package/es/Select/style/index.css +1 -0
- package/es/Select/style/variables.css +1 -0
- package/es/TreeSelect/index.js +16 -2
- package/es/TreeSelect/style/index.css +3 -0
- package/es/TreeSelect/style/variables.css +3 -0
- package/es/styles/variables.css +162 -98
- package/lib/Cascader/index.js +20 -2
- package/lib/Cascader/style/index.css +1 -0
- package/lib/Cascader/style/variables.css +1 -0
- package/lib/ConfigProvider/context.d.ts +1 -0
- package/lib/ConfigProvider/index.js +5 -3
- package/lib/Descriptions/index.d.ts +1 -1
- package/lib/Descriptions/index.js +3 -3
- package/lib/Descriptions/style/index.css +3 -0
- package/lib/Descriptions/style/variables.css +3 -0
- package/lib/Form/Form.js +13 -4
- package/lib/Form/FormItem/ItemHolder.js +1 -10
- package/lib/Form/FormWrapper.d.ts +3 -0
- package/lib/Form/FormWrapper.js +34 -0
- package/lib/Form/WrapperItem.d.ts +4 -0
- package/lib/Form/WrapperItem.js +235 -0
- package/lib/Form/container.js +1 -13
- package/lib/Form/images/icon_collapse.svg +1 -0
- package/lib/Form/index.d.ts +2 -0
- package/lib/Form/index.js +3 -0
- package/lib/Form/interface.d.ts +12 -0
- package/lib/Form/style/index.css +34 -44
- package/lib/Form/style/variables.css +34 -44
- package/lib/IconFont/index.d.ts +1 -2
- package/lib/IconFont/index.js +25 -4
- package/lib/ImageViewer/components/Operate.js +4 -8
- package/lib/InputNumber/index.js +13 -4
- package/lib/InputNumber/style/index.css +7 -0
- package/lib/InputNumber/style/variables.css +7 -0
- package/lib/LmEditTable/EditTable.js +3 -3
- package/lib/LmEditTable/sortableItemCol.js +8 -5
- package/lib/LmEditTable/util.js +1 -1
- package/lib/LmFilter/components/CheckboxFilter.js +9 -4
- package/lib/LmFilter/components/DropdownFIlter.js +166 -115
- package/lib/LmFilter/components/SelectFilter.js +4 -3
- package/lib/LmFilter/filterFns/index.js +4 -6
- package/lib/LmFilter/style/index.css +73 -54
- package/lib/LmFilter/style/variables.css +73 -54
- package/lib/LmFilter/utils.js +6 -6
- package/lib/LmSelect/style/index.css +1 -0
- package/lib/LmSelect/style/variables.css +1 -0
- package/lib/LmTable/style/index.css +39 -0
- package/lib/LmTable/style/variables.css +39 -0
- package/lib/LmUpload/UploadList/ItemText.js +5 -1
- package/lib/QuickMenu/index.d.ts +1 -0
- package/lib/QuickMenu/index.js +11 -7
- package/lib/Select/style/index.css +1 -0
- package/lib/Select/style/variables.css +1 -0
- package/lib/TreeSelect/index.js +20 -2
- package/lib/TreeSelect/style/index.css +3 -0
- package/lib/TreeSelect/style/variables.css +3 -0
- package/lib/styles/variables.css +162 -98
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -13301,7 +13301,8 @@
|
|
|
13301
13301
|
legacyLocale = props.legacyLocale,
|
|
13302
13302
|
parentContext = props.parentContext,
|
|
13303
13303
|
iconPrefixCls = props.iconPrefixCls,
|
|
13304
|
-
componentDisabled = props.componentDisabled
|
|
13304
|
+
componentDisabled = props.componentDisabled,
|
|
13305
|
+
iconUrl = props.iconUrl;
|
|
13305
13306
|
var getPrefixCls = React.useCallback(function (suffixCls, customizePrefixCls) {
|
|
13306
13307
|
var prefixCls = props.prefixCls;
|
|
13307
13308
|
if (customizePrefixCls) return customizePrefixCls;
|
|
@@ -13317,7 +13318,8 @@
|
|
|
13317
13318
|
space: space,
|
|
13318
13319
|
virtual: virtual,
|
|
13319
13320
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth,
|
|
13320
|
-
getPrefixCls: getPrefixCls
|
|
13321
|
+
getPrefixCls: getPrefixCls,
|
|
13322
|
+
iconUrl: iconUrl
|
|
13321
13323
|
}); // Pass the props used by `useContext` directly with child component.
|
|
13322
13324
|
// These props should merged into `config`.
|
|
13323
13325
|
|
|
@@ -34780,7 +34782,7 @@
|
|
|
34780
34782
|
Cascader$1.SHOW_PARENT = SHOW_PARENT$1;
|
|
34781
34783
|
Cascader$1.SHOW_CHILD = SHOW_CHILD$1;
|
|
34782
34784
|
|
|
34783
|
-
var _excluded$y = ["children", "className", "dropdownClassName", "placeholder", "defaultLabel"];
|
|
34785
|
+
var _excluded$y = ["children", "className", "dropdownClassName", "placeholder", "defaultLabel", "disabled", "size"];
|
|
34784
34786
|
var prefixCls = 'lm_cascader';
|
|
34785
34787
|
var prefixDropdownCls = 'lm_cascader_dropdown';
|
|
34786
34788
|
|
|
@@ -34791,7 +34793,15 @@
|
|
|
34791
34793
|
_props$placeholder = props.placeholder,
|
|
34792
34794
|
placeholder = _props$placeholder === void 0 ? '请选择' : _props$placeholder,
|
|
34793
34795
|
defaultLabel = props.defaultLabel,
|
|
34794
|
-
|
|
34796
|
+
customDisabled = props.disabled,
|
|
34797
|
+
customizeSize = props.size,
|
|
34798
|
+
others = _objectWithoutProperties$1(props, _excluded$y); // ===================== Disabled =====================
|
|
34799
|
+
|
|
34800
|
+
|
|
34801
|
+
var disabled = React__default['default'].useContext(DisabledContext$1);
|
|
34802
|
+
var size = React__default['default'].useContext(SizeContext$1);
|
|
34803
|
+
var mergeSize = customizeSize || size;
|
|
34804
|
+
var mergedDisabled = customDisabled || disabled;
|
|
34795
34805
|
|
|
34796
34806
|
var displayRender = function displayRender(label, selectedOptions) {
|
|
34797
34807
|
var hasUndefined = selectedOptions.some(function (v) {
|
|
@@ -34805,12 +34815,15 @@
|
|
|
34805
34815
|
return label.join('/');
|
|
34806
34816
|
};
|
|
34807
34817
|
|
|
34808
|
-
return /*#__PURE__*/React__default['default'].createElement(Cascader$1, _objectSpread({
|
|
34818
|
+
return /*#__PURE__*/React__default['default'].createElement(Cascader$1, _objectSpread(_objectSpread({
|
|
34809
34819
|
placeholder: placeholder,
|
|
34810
34820
|
className: classnames(prefixCls, className),
|
|
34811
34821
|
dropdownClassName: classnames(prefixDropdownCls, dropdownClassName),
|
|
34812
34822
|
displayRender: displayRender
|
|
34813
|
-
}, others)
|
|
34823
|
+
}, others), {}, {
|
|
34824
|
+
size: mergeSize,
|
|
34825
|
+
disabled: mergedDisabled
|
|
34826
|
+
}));
|
|
34814
34827
|
};
|
|
34815
34828
|
|
|
34816
34829
|
var Checkbox$1 = /*#__PURE__*/function (_Component) {
|
|
@@ -68593,11 +68606,21 @@
|
|
|
68593
68606
|
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",D={};D[v]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return v;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(v=i),i||!r&&v},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var v=this.$locale().weekStart||0,D=(y<v?y+7:y)-v;return $(r?m-D:m+(6-D),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,v=O.m(this,M);return v=(l={},l[c]=v/12,l[f]=v,l[h]=v/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?v:O.a(v)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[v],w.Ls=D,w.p={},w}));
|
|
68594
68607
|
});
|
|
68595
68608
|
|
|
68596
|
-
var
|
|
68597
|
-
scriptUrl: '//at.alicdn.com/t/c/font_2966019_neaxovtw4w.js' // 在 iconfont.cn 上生成
|
|
68598
|
-
// scriptUrl: require('./font/iconfont.js'),
|
|
68609
|
+
var ConfigContext$2 = ConfigProvider$1.ConfigContext;
|
|
68599
68610
|
|
|
68600
|
-
|
|
68611
|
+
var IconFont = function IconFont(props) {
|
|
68612
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$2),
|
|
68613
|
+
iconUrl = _React$useContext.iconUrl;
|
|
68614
|
+
|
|
68615
|
+
var resetUrl = React.useMemo(function () {
|
|
68616
|
+
if (!iconUrl) return [];
|
|
68617
|
+
return Array.isArray(iconUrl) ? iconUrl : [iconUrl];
|
|
68618
|
+
}, [iconUrl]);
|
|
68619
|
+
var Component = create({
|
|
68620
|
+
scriptUrl: ['//at.alicdn.com/t/c/font_2966019_ac9pzkeuo0e.js'].concat(_toConsumableArray$1(resetUrl))
|
|
68621
|
+
});
|
|
68622
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, _objectSpread({}, props));
|
|
68623
|
+
};
|
|
68601
68624
|
|
|
68602
68625
|
var UploadBox = function UploadBox(props) {
|
|
68603
68626
|
var _props$value = props.value,
|
|
@@ -89948,7 +89971,8 @@
|
|
|
89948
89971
|
setFilterValue = instance.setFilterValue,
|
|
89949
89972
|
visible = instance.visible;
|
|
89950
89973
|
var _itemProps$data = itemProps.data,
|
|
89951
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
89974
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
89975
|
+
showSearch = itemProps.showSearch;
|
|
89952
89976
|
var delayedFn = useDelayedFn();
|
|
89953
89977
|
var inputRef = React.useRef(null); // 搜索后的筛选项
|
|
89954
89978
|
|
|
@@ -89959,8 +89983,8 @@
|
|
|
89959
89983
|
|
|
89960
89984
|
|
|
89961
89985
|
var isSearch = React.useMemo(function () {
|
|
89962
|
-
return filters.length > 8;
|
|
89963
|
-
}, [filters.length]); // 自定义节点字段
|
|
89986
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
89987
|
+
}, [filters.length, showSearch]); // 自定义节点字段
|
|
89964
89988
|
|
|
89965
89989
|
var fieldNames = React.useMemo(function () {
|
|
89966
89990
|
return _objectSpread({
|
|
@@ -90119,7 +90143,7 @@
|
|
|
90119
90143
|
filterValues.forEach(function (item) {
|
|
90120
90144
|
if (item.length === 1) {
|
|
90121
90145
|
var findItem = originArr === null || originArr === void 0 ? void 0 : originArr.find(function (v) {
|
|
90122
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90146
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
|
|
90123
90147
|
});
|
|
90124
90148
|
getChildren(findItem);
|
|
90125
90149
|
}
|
|
@@ -90128,11 +90152,11 @@
|
|
|
90128
90152
|
var _originArr$find;
|
|
90129
90153
|
|
|
90130
90154
|
var findArr1 = originArr === null || originArr === void 0 ? void 0 : (_originArr$find = originArr.find(function (v) {
|
|
90131
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90155
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[0]);
|
|
90132
90156
|
})) === null || _originArr$find === void 0 ? void 0 : _originArr$find[fieldNames.children];
|
|
90133
90157
|
|
|
90134
90158
|
var _findItem = findArr1 === null || findArr1 === void 0 ? void 0 : findArr1.find(function (v) {
|
|
90135
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90159
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
|
|
90136
90160
|
});
|
|
90137
90161
|
|
|
90138
90162
|
getChildren(_findItem);
|
|
@@ -90142,15 +90166,15 @@
|
|
|
90142
90166
|
var _originArr$find2, _findArr$find;
|
|
90143
90167
|
|
|
90144
90168
|
var _findArr = originArr === null || originArr === void 0 ? void 0 : (_originArr$find2 = originArr.find(function (v) {
|
|
90145
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90169
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[0]);
|
|
90146
90170
|
})) === null || _originArr$find2 === void 0 ? void 0 : _originArr$find2[fieldNames.children];
|
|
90147
90171
|
|
|
90148
90172
|
var findArr2 = _findArr === null || _findArr === void 0 ? void 0 : (_findArr$find = _findArr.find(function (v) {
|
|
90149
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90173
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[1]);
|
|
90150
90174
|
})) === null || _findArr$find === void 0 ? void 0 : _findArr$find[fieldNames.children];
|
|
90151
90175
|
|
|
90152
90176
|
var _findItem2 = findArr2 === null || findArr2 === void 0 ? void 0 : findArr2.find(function (v) {
|
|
90153
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90177
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
|
|
90154
90178
|
});
|
|
90155
90179
|
|
|
90156
90180
|
nArr.push(_findItem2);
|
|
@@ -90186,7 +90210,9 @@
|
|
|
90186
90210
|
visible = instance.visible,
|
|
90187
90211
|
setVisible = instance.setVisible;
|
|
90188
90212
|
var _itemProps$data = itemProps.data,
|
|
90189
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
90213
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
90214
|
+
showSearch = itemProps.showSearch,
|
|
90215
|
+
showAllChecked = itemProps.showAllChecked;
|
|
90190
90216
|
var inputRef = React.useRef(); // 选中的数据项: [key, key, ...];
|
|
90191
90217
|
|
|
90192
90218
|
var _useState = React.useState(filterValue),
|
|
@@ -90205,8 +90231,11 @@
|
|
|
90205
90231
|
var delayedFn = useDelayedFn(); // 是否存在搜索, 当数据大于8时存在搜索
|
|
90206
90232
|
|
|
90207
90233
|
var isSearch = React.useMemo(function () {
|
|
90208
|
-
return filters.length > 8;
|
|
90209
|
-
}, [filters.length]);
|
|
90234
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
90235
|
+
}, [filters.length, showSearch]);
|
|
90236
|
+
var isAllCheck = React.useMemo(function () {
|
|
90237
|
+
return !!(showAllChecked !== null && showAllChecked !== void 0 ? showAllChecked : true);
|
|
90238
|
+
}, [showAllChecked]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
90210
90239
|
|
|
90211
90240
|
var checkAll = React.useMemo(function () {
|
|
90212
90241
|
var isAll = checkedValues.length >= options.length;
|
|
@@ -90288,7 +90317,7 @@
|
|
|
90288
90317
|
ref: inputRef,
|
|
90289
90318
|
onSearch: handleFilter,
|
|
90290
90319
|
onChange: handleFilter
|
|
90291
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90320
|
+
}), isAllCheck && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90292
90321
|
className: "filter_header_operate"
|
|
90293
90322
|
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
90294
90323
|
indeterminate: indeterminate,
|
|
@@ -90629,144 +90658,202 @@
|
|
|
90629
90658
|
})
|
|
90630
90659
|
};
|
|
90631
90660
|
return widgets[type] || null;
|
|
90632
|
-
};
|
|
90661
|
+
}; // 提示文字 占位符
|
|
90633
90662
|
|
|
90634
|
-
|
|
90635
|
-
|
|
90636
|
-
|
|
90663
|
+
|
|
90664
|
+
var ItemPlacehodler = /*#__PURE__*/React__default['default'].memo(function (_ref2) {
|
|
90665
|
+
var item = _ref2.item;
|
|
90666
|
+
var type = item.type,
|
|
90667
|
+
itemProps = item.props,
|
|
90668
|
+
dateType = item.dateType,
|
|
90669
|
+
datetype = item.datetype,
|
|
90670
|
+
placeholder = item.placeholder; // 日期显示的处理
|
|
90637
90671
|
|
|
90638
90672
|
if (['date'].includes(type)) {
|
|
90639
|
-
|
|
90640
|
-
|
|
90673
|
+
// 兼容大小写
|
|
90674
|
+
if (['range', 'rangePicker'].includes(dateType || datetype)) {
|
|
90675
|
+
var pls = placeholder !== null && placeholder !== void 0 ? placeholder : ['开始日期', '结束日期'];
|
|
90676
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, pls === null || pls === void 0 ? void 0 : pls[0], /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
90641
90677
|
type: "lmweb-swap-right",
|
|
90642
90678
|
style: {
|
|
90643
90679
|
fontSize: 14
|
|
90644
90680
|
}
|
|
90645
|
-
}),
|
|
90681
|
+
}), pls === null || pls === void 0 ? void 0 : pls[1], /*#__PURE__*/React__default['default'].createElement(CalendarOutlined$2, {
|
|
90646
90682
|
style: {
|
|
90647
90683
|
fontSize: 12
|
|
90648
90684
|
}
|
|
90649
90685
|
}));
|
|
90650
90686
|
}
|
|
90651
90687
|
|
|
90652
|
-
var
|
|
90688
|
+
var unit = {
|
|
90653
90689
|
week: '周',
|
|
90654
90690
|
month: '月份',
|
|
90655
90691
|
quarter: '季度',
|
|
90656
90692
|
year: '年份'
|
|
90657
90693
|
};
|
|
90658
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u9009\u62E9"
|
|
90694
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, placeholder !== null && placeholder !== void 0 ? placeholder : "\u9009\u62E9".concat(unit[itemProps === null || itemProps === void 0 ? void 0 : itemProps.picker] || '日期'), /*#__PURE__*/React__default['default'].createElement(CalendarOutlined$2, {
|
|
90659
90695
|
style: {
|
|
90660
90696
|
fontSize: 12
|
|
90661
90697
|
}
|
|
90662
90698
|
}));
|
|
90663
90699
|
}
|
|
90664
90700
|
|
|
90665
|
-
return '全部';
|
|
90666
|
-
}; // 根据不同的类型展示文本内容
|
|
90667
|
-
|
|
90701
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, placeholder !== null && placeholder !== void 0 ? placeholder : '全部');
|
|
90702
|
+
}); // 根据不同的类型展示文本内容
|
|
90668
90703
|
|
|
90669
|
-
var
|
|
90670
|
-
var
|
|
90704
|
+
var ItemLabel = /*#__PURE__*/React__default['default'].memo(function (_ref3) {
|
|
90705
|
+
var instance = _ref3.instance,
|
|
90706
|
+
item = _ref3.item;
|
|
90707
|
+
var filterValue = instance.filterValue;
|
|
90671
90708
|
var type = item.type,
|
|
90672
|
-
data = item.data;
|
|
90673
|
-
|
|
90674
|
-
|
|
90675
|
-
|
|
90676
|
-
|
|
90709
|
+
data = item.data;
|
|
90710
|
+
/*
|
|
90711
|
+
* 是否返回字符串类型
|
|
90712
|
+
* return string | type: 'input', 'select', 'checkbox', 'cascader'
|
|
90713
|
+
* return Jsx | type: 'date'
|
|
90714
|
+
*/
|
|
90677
90715
|
|
|
90716
|
+
var isString = React.useMemo(function () {
|
|
90717
|
+
return ['input', 'select', 'checkbox', 'cascader'].includes(type);
|
|
90718
|
+
}, [type]); // 存在筛选数据时 ⬇️
|
|
90678
90719
|
|
|
90679
|
-
|
|
90680
|
-
|
|
90720
|
+
var String = React.useMemo(function () {
|
|
90721
|
+
try {
|
|
90722
|
+
var _data$find;
|
|
90681
90723
|
|
|
90682
|
-
|
|
90683
|
-
|
|
90684
|
-
|
|
90685
|
-
|
|
90686
|
-
|
|
90724
|
+
// 级联数据转换平级结构
|
|
90725
|
+
if (['cascader'].includes(type)) {
|
|
90726
|
+
var nArr = getFlatItem(item, filterValue);
|
|
90727
|
+
var labels = nArr === null || nArr === void 0 ? void 0 : nArr.map(function (v) {
|
|
90728
|
+
var _item$props, _item$props$fieldName;
|
|
90687
90729
|
|
|
90688
|
-
|
|
90689
|
-
|
|
90730
|
+
return v[(item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : (_item$props$fieldName = _item$props.fieldNames) === null || _item$props$fieldName === void 0 ? void 0 : _item$props$fieldName.label) || 'label'];
|
|
90731
|
+
});
|
|
90690
90732
|
|
|
90691
|
-
|
|
90692
|
-
|
|
90693
|
-
|
|
90694
|
-
|
|
90733
|
+
switch (labels.length) {
|
|
90734
|
+
case 0:
|
|
90735
|
+
// 数据未查找到时
|
|
90736
|
+
return filterValue;
|
|
90695
90737
|
|
|
90696
|
-
|
|
90697
|
-
|
|
90738
|
+
case 1:
|
|
90739
|
+
return labels[0];
|
|
90698
90740
|
|
|
90699
|
-
|
|
90700
|
-
|
|
90741
|
+
case 2:
|
|
90742
|
+
return "".concat(labels[0], "\u3001").concat(labels[1]);
|
|
90701
90743
|
|
|
90702
|
-
|
|
90703
|
-
|
|
90744
|
+
default:
|
|
90745
|
+
return "".concat(labels[0], "\u3001+").concat(labels.length - 1, "...");
|
|
90746
|
+
}
|
|
90704
90747
|
}
|
|
90705
|
-
}
|
|
90706
90748
|
|
|
90707
|
-
|
|
90708
|
-
|
|
90749
|
+
if (Array.isArray(filterValue)) {
|
|
90750
|
+
var _data$filter;
|
|
90709
90751
|
|
|
90710
|
-
|
|
90711
|
-
|
|
90712
|
-
|
|
90713
|
-
|
|
90714
|
-
|
|
90715
|
-
|
|
90716
|
-
|
|
90717
|
-
|
|
90718
|
-
|
|
90719
|
-
|
|
90752
|
+
// 日期
|
|
90753
|
+
if (['date'].includes(type)) {
|
|
90754
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, filterValue[0], /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
90755
|
+
type: "lmweb-swap-right",
|
|
90756
|
+
style: {
|
|
90757
|
+
fontSize: 14,
|
|
90758
|
+
color: 'var(--text-color)'
|
|
90759
|
+
}
|
|
90760
|
+
}), filterValue[1]);
|
|
90761
|
+
} // 多选
|
|
90720
90762
|
|
|
90721
90763
|
|
|
90722
|
-
|
|
90723
|
-
|
|
90724
|
-
|
|
90725
|
-
|
|
90726
|
-
|
|
90764
|
+
var _labels = data === null || data === void 0 ? void 0 : (_data$filter = data.filter(function (v) {
|
|
90765
|
+
return toStringIsEqual(v.value, filterValue, 'includes');
|
|
90766
|
+
})) === null || _data$filter === void 0 ? void 0 : _data$filter.map(function (v) {
|
|
90767
|
+
return v.label;
|
|
90768
|
+
});
|
|
90727
90769
|
|
|
90728
|
-
|
|
90729
|
-
|
|
90730
|
-
|
|
90770
|
+
if (!_labels.length) {
|
|
90771
|
+
_labels = filterValue;
|
|
90772
|
+
} // 受控模式未查找到显示的内容时展示
|
|
90731
90773
|
|
|
90732
90774
|
|
|
90733
|
-
|
|
90734
|
-
|
|
90735
|
-
|
|
90775
|
+
switch (_labels.length) {
|
|
90776
|
+
case 1:
|
|
90777
|
+
return _labels[0];
|
|
90736
90778
|
|
|
90737
|
-
|
|
90738
|
-
|
|
90779
|
+
case 2:
|
|
90780
|
+
return "".concat(_labels[0], "\u3001").concat(_labels[1]);
|
|
90739
90781
|
|
|
90740
|
-
|
|
90741
|
-
|
|
90742
|
-
|
|
90743
|
-
|
|
90782
|
+
default:
|
|
90783
|
+
return "".concat(_labels[0], "\u3001+").concat(_labels.length - 1, "...");
|
|
90784
|
+
}
|
|
90785
|
+
} // 输入框
|
|
90744
90786
|
|
|
90745
90787
|
|
|
90746
|
-
|
|
90747
|
-
|
|
90748
|
-
|
|
90788
|
+
if (['input', 'date'].includes(type)) {
|
|
90789
|
+
return filterValue;
|
|
90790
|
+
} // 单选框 受控模式未查找到显示的内容时展示filterValue
|
|
90749
90791
|
|
|
90750
90792
|
|
|
90751
|
-
|
|
90752
|
-
|
|
90753
|
-
|
|
90754
|
-
|
|
90755
|
-
|
|
90756
|
-
|
|
90757
|
-
|
|
90793
|
+
var label = (data === null || data === void 0 ? void 0 : (_data$find = data.find(function (v) {
|
|
90794
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v.value, filterValue);
|
|
90795
|
+
})) === null || _data$find === void 0 ? void 0 : _data$find.label) || filterValue;
|
|
90796
|
+
return label;
|
|
90797
|
+
} catch (error) {
|
|
90798
|
+
console.log('报错了!', '报错项:', item, '报错值', filterValue);
|
|
90799
|
+
return filterValue;
|
|
90800
|
+
}
|
|
90801
|
+
}, [type, filterValue]);
|
|
90802
|
+
|
|
90803
|
+
if (isString) {
|
|
90804
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, String);
|
|
90758
90805
|
}
|
|
90759
|
-
|
|
90806
|
+
|
|
90807
|
+
return String;
|
|
90808
|
+
});
|
|
90809
|
+
var FilterItem = /*#__PURE__*/React__default['default'].memo(function (_ref4) {
|
|
90810
|
+
var instance = _ref4.instance,
|
|
90811
|
+
item = _ref4.item;
|
|
90812
|
+
var filterValue = instance.filterValue,
|
|
90813
|
+
setFilterValue = instance.setFilterValue;
|
|
90814
|
+
var title = item.title,
|
|
90815
|
+
colon = item.colon; // 是否有筛选值/是否处于筛选状态
|
|
90816
|
+
|
|
90817
|
+
var active = React.useMemo(function () {
|
|
90818
|
+
return getIsHas(filterValue);
|
|
90819
|
+
}, [filterValue]); // 冒号
|
|
90820
|
+
|
|
90821
|
+
var showColon = React.useMemo(function () {
|
|
90822
|
+
return (colon !== null && colon !== void 0 ? colon : ':') ? ':' : null;
|
|
90823
|
+
}, [colon]);
|
|
90824
|
+
|
|
90825
|
+
var handleClear = function handleClear(e) {
|
|
90826
|
+
if (active) {
|
|
90827
|
+
e.stopPropagation();
|
|
90828
|
+
setFilterValue(getValueForType(item.type));
|
|
90829
|
+
}
|
|
90830
|
+
};
|
|
90831
|
+
|
|
90832
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (title || showColon) && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90833
|
+
className: "filter_item_label"
|
|
90834
|
+
}, title, showColon), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90835
|
+
className: "filter_item_value"
|
|
90836
|
+
}, active ? /*#__PURE__*/React__default['default'].createElement(ItemLabel, {
|
|
90837
|
+
instance: instance,
|
|
90838
|
+
item: item
|
|
90839
|
+
}) : /*#__PURE__*/React__default['default'].createElement(ItemPlacehodler, {
|
|
90840
|
+
item: item
|
|
90841
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90842
|
+
className: "filter_item_icon addon_after"
|
|
90843
|
+
}, item.type !== 'date' || active ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
90844
|
+
type: active ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
90845
|
+
onClick: handleClear
|
|
90846
|
+
}) : null));
|
|
90847
|
+
});
|
|
90760
90848
|
/*
|
|
90761
90849
|
* css样式控制
|
|
90762
90850
|
* expand: 展开样式
|
|
90763
90851
|
* active: 选中样式
|
|
90764
90852
|
*/
|
|
90765
90853
|
|
|
90766
|
-
|
|
90767
|
-
|
|
90768
|
-
|
|
90769
|
-
item = _ref2.item;
|
|
90854
|
+
var DropdownFilter = /*#__PURE__*/React__default['default'].memo(function (_ref5) {
|
|
90855
|
+
var instance = _ref5.instance,
|
|
90856
|
+
item = _ref5.item;
|
|
90770
90857
|
|
|
90771
90858
|
var _useState = React.useState(false),
|
|
90772
90859
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -90775,11 +90862,21 @@
|
|
|
90775
90862
|
|
|
90776
90863
|
var filterValue = instance.filterValue,
|
|
90777
90864
|
size = instance.size;
|
|
90778
|
-
var popupClassName = item.popupClassName
|
|
90865
|
+
var popupClassName = item.popupClassName,
|
|
90866
|
+
className = item.className,
|
|
90867
|
+
style = item.style; // 是否有筛选值/是否处于筛选状态
|
|
90868
|
+
|
|
90869
|
+
var active = React.useMemo(function () {
|
|
90870
|
+
return getIsHas(filterValue);
|
|
90871
|
+
}, [filterValue]); // 触发查询时关闭下拉框
|
|
90779
90872
|
|
|
90780
90873
|
var setFilterValue = function setFilterValue(obj) {
|
|
90781
90874
|
instance.setFilterValue(obj);
|
|
90782
90875
|
setVisible(false);
|
|
90876
|
+
};
|
|
90877
|
+
|
|
90878
|
+
var onVisibleChange = function onVisibleChange(v) {
|
|
90879
|
+
return setVisible(v);
|
|
90783
90880
|
}; // 重组Instance 加入下拉关闭控制
|
|
90784
90881
|
|
|
90785
90882
|
|
|
@@ -90788,19 +90885,7 @@
|
|
|
90788
90885
|
setVisible: setVisible
|
|
90789
90886
|
}, instance), {}, {
|
|
90790
90887
|
setFilterValue: setFilterValue
|
|
90791
|
-
});
|
|
90792
|
-
|
|
90793
|
-
|
|
90794
|
-
var active = React.useMemo(function () {
|
|
90795
|
-
return getIsHas(filterValue);
|
|
90796
|
-
}, [filterValue]);
|
|
90797
|
-
|
|
90798
|
-
var handleClear = function handleClear(e) {
|
|
90799
|
-
if (active) {
|
|
90800
|
-
e.stopPropagation();
|
|
90801
|
-
setFilterValue(getValueForType(item.type));
|
|
90802
|
-
}
|
|
90803
|
-
};
|
|
90888
|
+
});
|
|
90804
90889
|
|
|
90805
90890
|
return /*#__PURE__*/React__default['default'].createElement(LMDropdown, {
|
|
90806
90891
|
trigger: ['click'],
|
|
@@ -90810,27 +90895,21 @@
|
|
|
90810
90895
|
instance: resetInstance,
|
|
90811
90896
|
item: item
|
|
90812
90897
|
}),
|
|
90813
|
-
overlayClassName: classnames("filter_dropdown_container_".concat(item.type),
|
|
90814
|
-
onVisibleChange:
|
|
90815
|
-
return setVisible(v);
|
|
90816
|
-
} // 未开启则需手动控制下拉展示组件的初始化
|
|
90898
|
+
overlayClassName: classnames("filter_dropdown_container_".concat(item.type), popupClassName),
|
|
90899
|
+
onVisibleChange: onVisibleChange // 未开启则需手动控制下拉展示组件的初始化
|
|
90817
90900
|
,
|
|
90818
90901
|
destroyPopupOnHide: true
|
|
90819
90902
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90820
|
-
className: classnames('lm_filter_basic_item', size, {
|
|
90903
|
+
className: classnames('lm_filter_basic_item', className, size, {
|
|
90821
90904
|
expand: visible,
|
|
90822
90905
|
active: active
|
|
90823
|
-
})
|
|
90824
|
-
|
|
90825
|
-
|
|
90826
|
-
|
|
90827
|
-
|
|
90828
|
-
|
|
90829
|
-
|
|
90830
|
-
}, item.type !== 'date' || active ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
90831
|
-
type: active ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
90832
|
-
onClick: handleClear
|
|
90833
|
-
}) : null)));
|
|
90906
|
+
}),
|
|
90907
|
+
style: style
|
|
90908
|
+
}, /*#__PURE__*/React__default['default'].createElement(FilterItem, {
|
|
90909
|
+
key: item.title,
|
|
90910
|
+
instance: resetInstance,
|
|
90911
|
+
item: item
|
|
90912
|
+
})));
|
|
90834
90913
|
});
|
|
90835
90914
|
|
|
90836
90915
|
var _excluded$15 = ["instance", "item", "value", "onChange", "options"],
|
|
@@ -93096,12 +93175,10 @@
|
|
|
93096
93175
|
var field = item.field;
|
|
93097
93176
|
|
|
93098
93177
|
if (field) {
|
|
93099
|
-
// 将结果转换为字符串
|
|
93100
|
-
var isArray = Array.isArray(itemValue);
|
|
93101
|
-
|
|
93178
|
+
// 将结果转换为字符串(级联数据需要递归)
|
|
93102
93179
|
var transformString = function transformString(val) {
|
|
93103
|
-
return isArray ? val.map(function (v) {
|
|
93104
|
-
return
|
|
93180
|
+
return Array.isArray(val) ? val.map(function (v) {
|
|
93181
|
+
return transformString(v);
|
|
93105
93182
|
}) : String(val);
|
|
93106
93183
|
};
|
|
93107
93184
|
|
|
@@ -93114,7 +93191,7 @@
|
|
|
93114
93191
|
fieldName: field,
|
|
93115
93192
|
fieldType: item.valueType || 'string',
|
|
93116
93193
|
type: item.type,
|
|
93117
|
-
value: isArray ? stringValue : [stringValue],
|
|
93194
|
+
value: Array.isArray(itemValue) ? stringValue : [stringValue],
|
|
93118
93195
|
operator: item.operator || 'equal'
|
|
93119
93196
|
})); // 数据清除时不返回结构体
|
|
93120
93197
|
|
|
@@ -181982,6 +182059,7 @@
|
|
|
181982
182059
|
instance = _ref.instance;
|
|
181983
182060
|
var readOnly = instance.readOnly,
|
|
181984
182061
|
remove = instance.remove,
|
|
182062
|
+
download = instance.download,
|
|
181985
182063
|
fileNames = instance.fileNames;
|
|
181986
182064
|
return /*#__PURE__*/React.createElement("div", {
|
|
181987
182065
|
className: classnames('lm_upload_item lm_upload_item_text', file[fileNames.status] === 'error' && 'lm_upload_item_error')
|
|
@@ -181992,7 +182070,10 @@
|
|
|
181992
182070
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
181993
182071
|
type: "lmweb-attachment"
|
|
181994
182072
|
})), /*#__PURE__*/React.createElement("div", {
|
|
181995
|
-
className: "lm_upload_item_name"
|
|
182073
|
+
className: "lm_upload_item_name",
|
|
182074
|
+
onClick: function onClick() {
|
|
182075
|
+
return download(file);
|
|
182076
|
+
}
|
|
181996
182077
|
}, file[fileNames.fileName])), !readOnly && /*#__PURE__*/React.createElement("div", {
|
|
181997
182078
|
className: "text_right lm_upload_item_text_action"
|
|
181998
182079
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -188531,23 +188612,29 @@
|
|
|
188531
188612
|
}));
|
|
188532
188613
|
};
|
|
188533
188614
|
|
|
188534
|
-
var _excluded$1j = ["children", "className", "disabled"];
|
|
188615
|
+
var _excluded$1j = ["children", "className", "disabled", "size"];
|
|
188535
188616
|
var prefixCls$3 = 'lm_input-number';
|
|
188536
188617
|
|
|
188537
188618
|
var LMInputNumber = function LMInputNumber(props) {
|
|
188538
188619
|
var children = props.children,
|
|
188539
188620
|
className = props.className,
|
|
188540
188621
|
customDisabled = props.disabled,
|
|
188622
|
+
customizeSize = props.size,
|
|
188541
188623
|
rest = _objectWithoutProperties$1(props, _excluded$1j); // ===================== Disabled =====================
|
|
188542
188624
|
|
|
188543
188625
|
|
|
188544
188626
|
var disabled = React__default['default'].useContext(DisabledContext$1);
|
|
188545
|
-
var mergedDisabled = customDisabled || disabled;
|
|
188546
|
-
|
|
188627
|
+
var mergedDisabled = customDisabled || disabled; // ===================== size =====================
|
|
188628
|
+
|
|
188629
|
+
var size = React__default['default'].useContext(SizeContext$1);
|
|
188630
|
+
var mergeSize = customizeSize || size;
|
|
188631
|
+
return /*#__PURE__*/React__default['default'].createElement(InputNumber$1, _objectSpread(_objectSpread({
|
|
188547
188632
|
className: classnames(className, prefixCls$3),
|
|
188548
|
-
disabled: mergedDisabled,
|
|
188549
188633
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
188550
|
-
}, rest)
|
|
188634
|
+
}, rest), {}, {
|
|
188635
|
+
size: mergeSize,
|
|
188636
|
+
disabled: mergedDisabled
|
|
188637
|
+
}));
|
|
188551
188638
|
};
|
|
188552
188639
|
|
|
188553
188640
|
var CInputNumber = LMInputNumber;
|
|
@@ -192717,14 +192804,14 @@
|
|
|
192717
192804
|
'hr-HR': hrHRIntl
|
|
192718
192805
|
};
|
|
192719
192806
|
var intlMapKeys = Object.keys(intlMap);
|
|
192720
|
-
var ConfigContext$
|
|
192807
|
+
var ConfigContext$3 = /*#__PURE__*/React__default['default'].createContext({
|
|
192721
192808
|
intl: _objectSpread2(_objectSpread2({}, zhCNIntl), {}, {
|
|
192722
192809
|
locale: 'default'
|
|
192723
192810
|
}),
|
|
192724
192811
|
valueTypeMap: {}
|
|
192725
192812
|
});
|
|
192726
|
-
var ConfigConsumer$2 = ConfigContext$
|
|
192727
|
-
ConfigProvider$2 = ConfigContext$
|
|
192813
|
+
var ConfigConsumer$2 = ConfigContext$3.Consumer,
|
|
192814
|
+
ConfigProvider$2 = ConfigContext$3.Provider;
|
|
192728
192815
|
/**
|
|
192729
192816
|
* 根据 antd 的 key 来找到的 locale 插件的 key
|
|
192730
192817
|
*
|
|
@@ -192810,7 +192897,7 @@
|
|
|
192810
192897
|
var _useContext2 = React.useContext(ConfigProvider.ConfigContext),
|
|
192811
192898
|
locale = _useContext2.locale;
|
|
192812
192899
|
|
|
192813
|
-
var _useContext3 = React.useContext(ConfigContext$
|
|
192900
|
+
var _useContext3 = React.useContext(ConfigContext$3),
|
|
192814
192901
|
intl = _useContext3.intl;
|
|
192815
192902
|
|
|
192816
192903
|
if (intl && intl.locale !== 'default') {
|
|
@@ -208563,7 +208650,7 @@
|
|
|
208563
208650
|
rest = _objectWithoutProperties(_ref, _excluded$1A);
|
|
208564
208651
|
|
|
208565
208652
|
var intl = useIntl();
|
|
208566
|
-
var context = React.useContext(ConfigContext$
|
|
208653
|
+
var context = React.useContext(ConfigContext$3);
|
|
208567
208654
|
|
|
208568
208655
|
var fieldProps = (value !== undefined || _onChange || (rest === null || rest === void 0 ? void 0 : rest.fieldProps)) && _objectSpread2(_objectSpread2({
|
|
208569
208656
|
value: value
|
|
@@ -284901,10 +284988,10 @@
|
|
|
284901
284988
|
}));
|
|
284902
284989
|
};
|
|
284903
284990
|
|
|
284904
|
-
var ConfigContext$
|
|
284991
|
+
var ConfigContext$4 = ConfigProvider$1.ConfigContext;
|
|
284905
284992
|
|
|
284906
284993
|
var CustomizeRenderEmpty = function CustomizeRenderEmpty() {
|
|
284907
|
-
var _React$useContext = React__default['default'].useContext(ConfigContext$
|
|
284994
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$4),
|
|
284908
284995
|
locale = _React$useContext.locale;
|
|
284909
284996
|
|
|
284910
284997
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -285661,7 +285748,7 @@
|
|
|
285661
285748
|
_excluded2$w = ["className", "style"],
|
|
285662
285749
|
_excluded3$7 = ["onResize", "width", "onResizeStop"];
|
|
285663
285750
|
var Summary$1 = ProviderWarp.Summary;
|
|
285664
|
-
var ConfigContext$
|
|
285751
|
+
var ConfigContext$5 = ConfigProvider$1.ConfigContext;
|
|
285665
285752
|
|
|
285666
285753
|
var isEmpty = function isEmpty(obj) {
|
|
285667
285754
|
var _Object$keys;
|
|
@@ -285737,7 +285824,7 @@
|
|
|
285737
285824
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
285738
285825
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
285739
285826
|
|
|
285740
|
-
var _React$useContext = React__default['default'].useContext(ConfigContext$
|
|
285827
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$5),
|
|
285741
285828
|
locale = _React$useContext.locale;
|
|
285742
285829
|
|
|
285743
285830
|
var transformRowClick = function transformRowClick(data) {
|
|
@@ -288139,7 +288226,7 @@
|
|
|
288139
288226
|
LMModal.config = Modal$1.config;
|
|
288140
288227
|
|
|
288141
288228
|
var _excluded$2f = ["children", "className"];
|
|
288142
|
-
var ConfigContext$
|
|
288229
|
+
var ConfigContext$6 = ConfigProvider$1.ConfigContext;
|
|
288143
288230
|
var prefixCls$6 = 'lm_pagination';
|
|
288144
288231
|
|
|
288145
288232
|
var LMPagination = function LMPagination(props) {
|
|
@@ -288147,7 +288234,7 @@
|
|
|
288147
288234
|
className = props.className,
|
|
288148
288235
|
others = _objectWithoutProperties$1(props, _excluded$2f);
|
|
288149
288236
|
|
|
288150
|
-
var _React$useContext = React__default['default'].useContext(ConfigContext$
|
|
288237
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$6),
|
|
288151
288238
|
locale = _React$useContext.locale; // 更改中文语言包内容显示
|
|
288152
288239
|
|
|
288153
288240
|
|
|
@@ -300492,28 +300579,6 @@
|
|
|
300492
300579
|
var isIllegalName = formItemNameBlackList$1.indexOf(mergedId) >= 0;
|
|
300493
300580
|
return isIllegalName ? "".concat(defaultItemNamePrefixCls$1, "_").concat(mergedId) : mergedId;
|
|
300494
300581
|
}
|
|
300495
|
-
function updateFormResponsiveClass(dom) {
|
|
300496
|
-
var form = dom.tagName.toLocaleLowerCase() === 'form' ? dom : dom.querySelector('form');
|
|
300497
|
-
|
|
300498
|
-
if (form) {
|
|
300499
|
-
var index = 0;
|
|
300500
|
-
Array.prototype.slice.call(form.children).forEach(function (element) {
|
|
300501
|
-
if (element.classList.contains('ant-form-item-responsive')) {
|
|
300502
|
-
index += 1;
|
|
300503
|
-
|
|
300504
|
-
if (index % 3 === 0) {
|
|
300505
|
-
element.classList.add('nth-three');
|
|
300506
|
-
} else if (index % 4 === 0) {
|
|
300507
|
-
element.classList.add('nth-four');
|
|
300508
|
-
} else if (index % 5 === 0) {
|
|
300509
|
-
element.classList.add('nth-five');
|
|
300510
|
-
}
|
|
300511
|
-
} else {
|
|
300512
|
-
index = 0;
|
|
300513
|
-
}
|
|
300514
|
-
});
|
|
300515
|
-
}
|
|
300516
|
-
}
|
|
300517
300582
|
|
|
300518
300583
|
function toNamePathStr$1(name) {
|
|
300519
300584
|
var namePath = toArray$c(name);
|
|
@@ -300563,732 +300628,9 @@
|
|
|
300563
300628
|
return [wrapForm];
|
|
300564
300629
|
}
|
|
300565
300630
|
|
|
300566
|
-
var _excluded$2z = ["children", "className", "responsive"];
|
|
300567
|
-
var prefixCls$a = 'lm_container';
|
|
300568
|
-
|
|
300569
|
-
var LMContainer = function LMContainer(props) {
|
|
300570
|
-
var children = props.children,
|
|
300571
|
-
className = props.className,
|
|
300572
|
-
responsive = props.responsive,
|
|
300573
|
-
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
300574
|
-
|
|
300575
|
-
var _useState = React.useState({
|
|
300576
|
-
width: '100%',
|
|
300577
|
-
height: '100%'
|
|
300578
|
-
}),
|
|
300579
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
300580
|
-
containerSize = _useState2[0],
|
|
300581
|
-
setContainerSize = _useState2[1];
|
|
300582
|
-
|
|
300583
|
-
var containerWrapRef = React.useRef(null);
|
|
300584
|
-
var throttleSize = React.useCallback(function () {
|
|
300585
|
-
var width = containerSize.width,
|
|
300586
|
-
height = containerSize.height;
|
|
300587
|
-
var responsiveCls = responsive && width !== '100%' ? 'responsive' : '';
|
|
300588
|
-
var lm_col = '';
|
|
300589
|
-
|
|
300590
|
-
if (responsiveCls) {
|
|
300591
|
-
if (parseInt(width) < 990) {
|
|
300592
|
-
lm_col = 'lm_col_3';
|
|
300593
|
-
} else if (parseInt(width) < 1390) {
|
|
300594
|
-
lm_col = 'lm_col_4';
|
|
300595
|
-
} else {
|
|
300596
|
-
lm_col = 'lm_col_5';
|
|
300597
|
-
}
|
|
300598
|
-
}
|
|
300599
|
-
|
|
300600
|
-
var classes = classnames(className, prefixCls$a, responsiveCls, lm_col);
|
|
300601
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({
|
|
300602
|
-
className: classes
|
|
300603
|
-
}, others), {}, {
|
|
300604
|
-
style: {
|
|
300605
|
-
width: width,
|
|
300606
|
-
height: height
|
|
300607
|
-
}
|
|
300608
|
-
}), children);
|
|
300609
|
-
}, [containerSize, props]);
|
|
300610
|
-
|
|
300611
|
-
var changeSize = function changeSize() {
|
|
300612
|
-
var _containerWrapRef$cur;
|
|
300613
|
-
|
|
300614
|
-
updateFormResponsiveClass(containerWrapRef.current);
|
|
300615
|
-
|
|
300616
|
-
var _ref = ((_containerWrapRef$cur = containerWrapRef.current) === null || _containerWrapRef$cur === void 0 ? void 0 : _containerWrapRef$cur.getBoundingClientRect()) || {},
|
|
300617
|
-
_ref$width = _ref.width,
|
|
300618
|
-
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
300619
|
-
|
|
300620
|
-
setContainerSize({
|
|
300621
|
-
width: width,
|
|
300622
|
-
height: '100%'
|
|
300623
|
-
});
|
|
300624
|
-
};
|
|
300625
|
-
|
|
300626
|
-
var handResize = lodash.throttle(changeSize, 600);
|
|
300627
|
-
React.useEffect(function () {
|
|
300628
|
-
setTimeout(function () {
|
|
300629
|
-
changeSize();
|
|
300630
|
-
}, 100);
|
|
300631
|
-
window.addEventListener('resize', handResize);
|
|
300632
|
-
return function () {
|
|
300633
|
-
window.removeEventListener('resize', handResize);
|
|
300634
|
-
};
|
|
300635
|
-
}, []);
|
|
300636
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
300637
|
-
className: "lm_container_wrapper",
|
|
300638
|
-
ref: containerWrapRef,
|
|
300639
|
-
style: {
|
|
300640
|
-
width: '100%',
|
|
300641
|
-
height: '100%'
|
|
300642
|
-
}
|
|
300643
|
-
}, throttleSize());
|
|
300644
|
-
};
|
|
300645
|
-
|
|
300646
|
-
var _excluded$2A = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive"];
|
|
300647
|
-
|
|
300648
|
-
var InternalForm$2 = function InternalForm(props, ref) {
|
|
300649
|
-
var _classNames;
|
|
300650
|
-
|
|
300651
|
-
var contextSize = React.useContext(SizeContext$1);
|
|
300652
|
-
var contextDisabled = React.useContext(DisabledContext$1);
|
|
300653
|
-
|
|
300654
|
-
var _React$useContext = React.useContext(ConfigContext$1),
|
|
300655
|
-
getPrefixCls = _React$useContext.getPrefixCls,
|
|
300656
|
-
direction = _React$useContext.direction,
|
|
300657
|
-
contextForm = _React$useContext.form;
|
|
300658
|
-
|
|
300659
|
-
var customizePrefixCls = props.prefixCls,
|
|
300660
|
-
_props$className = props.className,
|
|
300661
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
300662
|
-
_props$size = props.size,
|
|
300663
|
-
size = _props$size === void 0 ? contextSize : _props$size,
|
|
300664
|
-
_props$disabled = props.disabled,
|
|
300665
|
-
disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled,
|
|
300666
|
-
form = props.form,
|
|
300667
|
-
colon = props.colon,
|
|
300668
|
-
labelAlign = props.labelAlign,
|
|
300669
|
-
labelWrap = props.labelWrap,
|
|
300670
|
-
labelCol = props.labelCol,
|
|
300671
|
-
wrapperCol = props.wrapperCol,
|
|
300672
|
-
hideRequiredMark = props.hideRequiredMark,
|
|
300673
|
-
_props$layout = props.layout,
|
|
300674
|
-
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
300675
|
-
scrollToFirstError = props.scrollToFirstError,
|
|
300676
|
-
requiredMark = props.requiredMark,
|
|
300677
|
-
onFinishFailed = props.onFinishFailed,
|
|
300678
|
-
name = props.name,
|
|
300679
|
-
responsive = props.responsive,
|
|
300680
|
-
restFormProps = _objectWithoutProperties$1(props, _excluded$2A);
|
|
300681
|
-
|
|
300682
|
-
var mergedRequiredMark = React.useMemo(function () {
|
|
300683
|
-
if (requiredMark !== undefined) {
|
|
300684
|
-
return requiredMark;
|
|
300685
|
-
}
|
|
300686
|
-
|
|
300687
|
-
if (contextForm && contextForm.requiredMark !== undefined) {
|
|
300688
|
-
return contextForm.requiredMark;
|
|
300689
|
-
}
|
|
300690
|
-
|
|
300691
|
-
if (hideRequiredMark) {
|
|
300692
|
-
return false;
|
|
300693
|
-
}
|
|
300694
|
-
|
|
300695
|
-
return true;
|
|
300696
|
-
}, [hideRequiredMark, requiredMark, contextForm]);
|
|
300697
|
-
var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon;
|
|
300698
|
-
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
|
300699
|
-
var formClassName = classnames('lm_form', prefixCls, (_classNames = {}, _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(layout), true), _defineProperty$1(_classNames, "".concat(prefixCls, "-hide-required-mark"), mergedRequiredMark === false), _defineProperty$1(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(size), size), _classNames), className);
|
|
300700
|
-
|
|
300701
|
-
var _useForm = useForm$2(form),
|
|
300702
|
-
_useForm2 = _slicedToArray$1(_useForm, 1),
|
|
300703
|
-
wrapForm = _useForm2[0];
|
|
300704
|
-
|
|
300705
|
-
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
|
300706
|
-
__INTERNAL__.name = name;
|
|
300707
|
-
var formContextValue = React.useMemo(function () {
|
|
300708
|
-
return {
|
|
300709
|
-
name: name,
|
|
300710
|
-
labelAlign: labelAlign,
|
|
300711
|
-
labelCol: labelCol,
|
|
300712
|
-
labelWrap: labelWrap,
|
|
300713
|
-
wrapperCol: wrapperCol,
|
|
300714
|
-
vertical: layout === 'vertical',
|
|
300715
|
-
colon: mergedColon,
|
|
300716
|
-
requiredMark: mergedRequiredMark,
|
|
300717
|
-
itemRef: __INTERNAL__.itemRef,
|
|
300718
|
-
form: wrapForm
|
|
300719
|
-
};
|
|
300720
|
-
}, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]);
|
|
300721
|
-
React.useImperativeHandle(ref, function () {
|
|
300722
|
-
return wrapForm;
|
|
300723
|
-
});
|
|
300724
|
-
|
|
300725
|
-
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
|
300726
|
-
onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo);
|
|
300727
|
-
var defaultScrollToFirstError = {
|
|
300728
|
-
block: 'nearest'
|
|
300729
|
-
};
|
|
300730
|
-
|
|
300731
|
-
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
300732
|
-
if (_typeof$1(scrollToFirstError) === 'object') {
|
|
300733
|
-
defaultScrollToFirstError = scrollToFirstError;
|
|
300734
|
-
}
|
|
300735
|
-
|
|
300736
|
-
wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError);
|
|
300737
|
-
}
|
|
300738
|
-
};
|
|
300739
|
-
|
|
300740
|
-
var formNode = /*#__PURE__*/React.createElement(DisabledContextProvider$1, {
|
|
300741
|
-
disabled: disabled
|
|
300742
|
-
}, /*#__PURE__*/React.createElement(SizeContextProvider$1, {
|
|
300743
|
-
size: size
|
|
300744
|
-
}, /*#__PURE__*/React.createElement(FormContext$2.Provider, {
|
|
300745
|
-
value: formContextValue
|
|
300746
|
-
}, /*#__PURE__*/React.createElement(RefForm, _objectSpread(_objectSpread({
|
|
300747
|
-
id: name
|
|
300748
|
-
}, restFormProps), {}, {
|
|
300749
|
-
name: name,
|
|
300750
|
-
onFinishFailed: onInternalFinishFailed,
|
|
300751
|
-
form: wrapForm,
|
|
300752
|
-
className: formClassName
|
|
300753
|
-
})))));
|
|
300754
|
-
|
|
300755
|
-
if (responsive) {
|
|
300756
|
-
return /*#__PURE__*/React.createElement(LMContainer, {
|
|
300757
|
-
responsive: true
|
|
300758
|
-
}, formNode);
|
|
300759
|
-
}
|
|
300760
|
-
|
|
300761
|
-
return formNode;
|
|
300762
|
-
};
|
|
300763
|
-
|
|
300764
|
-
var Form$3 = /*#__PURE__*/React.forwardRef(InternalForm$2);
|
|
300765
|
-
|
|
300766
|
-
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
300767
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
300768
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
300769
|
-
|
|
300770
|
-
if (!it) {
|
|
300771
|
-
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
300772
|
-
if (it) o = it;
|
|
300773
|
-
var i = 0;
|
|
300774
|
-
|
|
300775
|
-
var F = function F() {};
|
|
300776
|
-
|
|
300777
|
-
return {
|
|
300778
|
-
s: F,
|
|
300779
|
-
n: function n() {
|
|
300780
|
-
if (i >= o.length) return {
|
|
300781
|
-
done: true
|
|
300782
|
-
};
|
|
300783
|
-
return {
|
|
300784
|
-
done: false,
|
|
300785
|
-
value: o[i++]
|
|
300786
|
-
};
|
|
300787
|
-
},
|
|
300788
|
-
e: function e(_e) {
|
|
300789
|
-
throw _e;
|
|
300790
|
-
},
|
|
300791
|
-
f: F
|
|
300792
|
-
};
|
|
300793
|
-
}
|
|
300794
|
-
|
|
300795
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
300796
|
-
}
|
|
300797
|
-
|
|
300798
|
-
var normalCompletion = true,
|
|
300799
|
-
didErr = false,
|
|
300800
|
-
err;
|
|
300801
|
-
return {
|
|
300802
|
-
s: function s() {
|
|
300803
|
-
it = it.call(o);
|
|
300804
|
-
},
|
|
300805
|
-
n: function n() {
|
|
300806
|
-
var step = it.next();
|
|
300807
|
-
normalCompletion = step.done;
|
|
300808
|
-
return step;
|
|
300809
|
-
},
|
|
300810
|
-
e: function e(_e2) {
|
|
300811
|
-
didErr = true;
|
|
300812
|
-
err = _e2;
|
|
300813
|
-
},
|
|
300814
|
-
f: function f() {
|
|
300815
|
-
try {
|
|
300816
|
-
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
300817
|
-
} finally {
|
|
300818
|
-
if (didErr) throw err;
|
|
300819
|
-
}
|
|
300820
|
-
}
|
|
300821
|
-
};
|
|
300822
|
-
}
|
|
300823
|
-
|
|
300824
|
-
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
300825
|
-
});
|
|
300826
|
-
|
|
300827
|
-
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
300828
|
-
|
|
300829
|
-
var ref$1 = createCommonjsModule(function (module, exports) {
|
|
300830
|
-
|
|
300831
|
-
|
|
300832
|
-
|
|
300833
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300834
|
-
value: true
|
|
300835
|
-
});
|
|
300836
|
-
exports.composeRef = composeRef;
|
|
300837
|
-
exports.fillRef = fillRef;
|
|
300838
|
-
exports.supportRef = supportRef;
|
|
300839
|
-
exports.useComposeRef = useComposeRef;
|
|
300840
|
-
|
|
300841
|
-
var _typeof2 = interopRequireDefault(_typeof_1);
|
|
300842
|
-
|
|
300843
|
-
|
|
300844
|
-
|
|
300845
|
-
var _useMemo = interopRequireDefault(useMemo_1);
|
|
300846
|
-
|
|
300847
|
-
function fillRef(ref, node) {
|
|
300848
|
-
if (typeof ref === 'function') {
|
|
300849
|
-
ref(node);
|
|
300850
|
-
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
300851
|
-
ref.current = node;
|
|
300852
|
-
}
|
|
300853
|
-
}
|
|
300854
|
-
/**
|
|
300855
|
-
* Merge refs into one ref function to support ref passing.
|
|
300856
|
-
*/
|
|
300857
|
-
|
|
300858
|
-
|
|
300859
|
-
function composeRef() {
|
|
300860
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
300861
|
-
refs[_key] = arguments[_key];
|
|
300862
|
-
}
|
|
300863
|
-
|
|
300864
|
-
var refList = refs.filter(function (ref) {
|
|
300865
|
-
return ref;
|
|
300866
|
-
});
|
|
300867
|
-
|
|
300868
|
-
if (refList.length <= 1) {
|
|
300869
|
-
return refList[0];
|
|
300870
|
-
}
|
|
300871
|
-
|
|
300872
|
-
return function (node) {
|
|
300873
|
-
refs.forEach(function (ref) {
|
|
300874
|
-
fillRef(ref, node);
|
|
300875
|
-
});
|
|
300876
|
-
};
|
|
300877
|
-
}
|
|
300878
|
-
|
|
300879
|
-
function useComposeRef() {
|
|
300880
|
-
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
300881
|
-
refs[_key2] = arguments[_key2];
|
|
300882
|
-
}
|
|
300883
|
-
|
|
300884
|
-
return (0, _useMemo.default)(function () {
|
|
300885
|
-
return composeRef.apply(void 0, refs);
|
|
300886
|
-
}, refs, function (prev, next) {
|
|
300887
|
-
return prev.length === next.length && prev.every(function (ref, i) {
|
|
300888
|
-
return ref === next[i];
|
|
300889
|
-
});
|
|
300890
|
-
});
|
|
300891
|
-
}
|
|
300892
|
-
|
|
300893
|
-
function supportRef(nodeOrComponent) {
|
|
300894
|
-
var _type$prototype, _nodeOrComponent$prot;
|
|
300895
|
-
|
|
300896
|
-
var type = (0, reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
300897
|
-
|
|
300898
|
-
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
300899
|
-
return false;
|
|
300900
|
-
} // Class component
|
|
300901
|
-
|
|
300902
|
-
|
|
300903
|
-
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
300904
|
-
return false;
|
|
300905
|
-
}
|
|
300906
|
-
|
|
300907
|
-
return true;
|
|
300908
|
-
}
|
|
300909
|
-
/* eslint-enable */
|
|
300910
|
-
});
|
|
300911
|
-
|
|
300912
|
-
var useFormItemStatus$1 = function useFormItemStatus() {
|
|
300913
|
-
var _useContext = React.useContext(FormItemInputContext$1),
|
|
300914
|
-
status = _useContext.status;
|
|
300915
|
-
|
|
300916
|
-
warning$6(status !== undefined, 'Form.Item', "Form.Item.useStatus should be used under Form.Item component. For more information: ".concat(window.location.protocol, "//").concat(window.location.host, "/components/form-cn/#Form.Item.useStatus"));
|
|
300917
|
-
return {
|
|
300918
|
-
status: status
|
|
300919
|
-
};
|
|
300920
|
-
};
|
|
300921
|
-
|
|
300922
|
-
var raf_1 = createCommonjsModule(function (module, exports) {
|
|
300923
|
-
|
|
300924
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300925
|
-
value: true
|
|
300926
|
-
});
|
|
300927
|
-
exports.default = wrapperRaf;
|
|
300928
|
-
|
|
300929
|
-
var raf = function raf(callback) {
|
|
300930
|
-
return +setTimeout(callback, 16);
|
|
300931
|
-
};
|
|
300932
|
-
|
|
300933
|
-
var caf = function caf(num) {
|
|
300934
|
-
return clearTimeout(num);
|
|
300935
|
-
};
|
|
300936
|
-
|
|
300937
|
-
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
300938
|
-
raf = function raf(callback) {
|
|
300939
|
-
return window.requestAnimationFrame(callback);
|
|
300940
|
-
};
|
|
300941
|
-
|
|
300942
|
-
caf = function caf(handle) {
|
|
300943
|
-
return window.cancelAnimationFrame(handle);
|
|
300944
|
-
};
|
|
300945
|
-
}
|
|
300946
|
-
|
|
300947
|
-
var rafUUID = 0;
|
|
300948
|
-
var rafIds = new Map();
|
|
300949
|
-
|
|
300950
|
-
function cleanup(id) {
|
|
300951
|
-
rafIds.delete(id);
|
|
300952
|
-
}
|
|
300953
|
-
|
|
300954
|
-
function wrapperRaf(callback) {
|
|
300955
|
-
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
300956
|
-
rafUUID += 1;
|
|
300957
|
-
var id = rafUUID;
|
|
300958
|
-
|
|
300959
|
-
function callRef(leftTimes) {
|
|
300960
|
-
if (leftTimes === 0) {
|
|
300961
|
-
// Clean up
|
|
300962
|
-
cleanup(id); // Trigger
|
|
300963
|
-
|
|
300964
|
-
callback();
|
|
300965
|
-
} else {
|
|
300966
|
-
// Next raf
|
|
300967
|
-
var realId = raf(function () {
|
|
300968
|
-
callRef(leftTimes - 1);
|
|
300969
|
-
}); // Bind real raf id
|
|
300970
|
-
|
|
300971
|
-
rafIds.set(id, realId);
|
|
300972
|
-
}
|
|
300973
|
-
}
|
|
300974
|
-
|
|
300975
|
-
callRef(times);
|
|
300976
|
-
return id;
|
|
300977
|
-
}
|
|
300978
|
-
|
|
300979
|
-
wrapperRaf.cancel = function (id) {
|
|
300980
|
-
var realId = rafIds.get(id);
|
|
300981
|
-
cleanup(realId);
|
|
300982
|
-
return caf(realId);
|
|
300983
|
-
};
|
|
300984
|
-
});
|
|
300985
|
-
|
|
300986
|
-
var raf$1 = /*@__PURE__*/getDefaultExportFromCjs(raf_1);
|
|
300987
|
-
|
|
300988
|
-
function useFrameState$1(defaultValue) {
|
|
300989
|
-
var _React$useState = React.useState(defaultValue),
|
|
300990
|
-
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
300991
|
-
value = _React$useState2[0],
|
|
300992
|
-
setValue = _React$useState2[1];
|
|
300993
|
-
|
|
300994
|
-
var frameRef = React.useRef(null);
|
|
300995
|
-
var batchRef = React.useRef([]);
|
|
300996
|
-
var destroyRef = React.useRef(false);
|
|
300997
|
-
React.useEffect(function () {
|
|
300998
|
-
destroyRef.current = false;
|
|
300999
|
-
return function () {
|
|
301000
|
-
destroyRef.current = true;
|
|
301001
|
-
raf$1.cancel(frameRef.current);
|
|
301002
|
-
frameRef.current = null;
|
|
301003
|
-
};
|
|
301004
|
-
}, []);
|
|
301005
|
-
|
|
301006
|
-
function setFrameValue(updater) {
|
|
301007
|
-
if (destroyRef.current) {
|
|
301008
|
-
return;
|
|
301009
|
-
}
|
|
301010
|
-
|
|
301011
|
-
if (frameRef.current === null) {
|
|
301012
|
-
batchRef.current = [];
|
|
301013
|
-
frameRef.current = raf$1(function () {
|
|
301014
|
-
frameRef.current = null;
|
|
301015
|
-
setValue(function (prevValue) {
|
|
301016
|
-
var current = prevValue;
|
|
301017
|
-
batchRef.current.forEach(function (func) {
|
|
301018
|
-
current = func(current);
|
|
301019
|
-
});
|
|
301020
|
-
return current;
|
|
301021
|
-
});
|
|
301022
|
-
});
|
|
301023
|
-
}
|
|
301024
|
-
|
|
301025
|
-
batchRef.current.push(updater);
|
|
301026
|
-
}
|
|
301027
|
-
|
|
301028
|
-
return [value, setFrameValue];
|
|
301029
|
-
}
|
|
301030
|
-
|
|
301031
|
-
function useItemRef$1() {
|
|
301032
|
-
var _React$useContext = React.useContext(FormContext$2),
|
|
301033
|
-
itemRef = _React$useContext.itemRef;
|
|
301034
|
-
|
|
301035
|
-
var cacheRef = React.useRef({});
|
|
301036
|
-
|
|
301037
|
-
function getRef(name, children) {
|
|
301038
|
-
var childrenRef = children && _typeof$1(children) === 'object' && children.ref;
|
|
301039
|
-
var nameStr = name.join('_');
|
|
301040
|
-
|
|
301041
|
-
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
|
301042
|
-
cacheRef.current.name = nameStr;
|
|
301043
|
-
cacheRef.current.originRef = childrenRef;
|
|
301044
|
-
cacheRef.current.ref = ref$1.composeRef(itemRef(name), childrenRef);
|
|
301045
|
-
}
|
|
301046
|
-
|
|
301047
|
-
return cacheRef.current.ref;
|
|
301048
|
-
}
|
|
301049
|
-
|
|
301050
|
-
return getRef;
|
|
301051
|
-
}
|
|
301052
|
-
|
|
301053
|
-
var CheckCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301054
|
-
// This icon file is generated automatically.
|
|
301055
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301056
|
-
var CheckCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
|
|
301057
|
-
exports.default = CheckCircleFilled;
|
|
301058
|
-
});
|
|
301059
|
-
|
|
301060
|
-
var CheckCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301061
|
-
|
|
301062
|
-
|
|
301063
|
-
|
|
301064
|
-
|
|
301065
|
-
|
|
301066
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301067
|
-
value: true
|
|
301068
|
-
});
|
|
301069
|
-
exports.default = void 0;
|
|
301070
|
-
|
|
301071
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301072
|
-
|
|
301073
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301074
|
-
|
|
301075
|
-
var _CheckCircleFilled = interopRequireDefault(CheckCircleFilled_1);
|
|
301076
|
-
|
|
301077
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301078
|
-
|
|
301079
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301080
|
-
// DON NOT EDIT IT MANUALLY
|
|
301081
|
-
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
301082
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301083
|
-
ref: ref,
|
|
301084
|
-
icon: _CheckCircleFilled.default
|
|
301085
|
-
}));
|
|
301086
|
-
};
|
|
301087
|
-
|
|
301088
|
-
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
301089
|
-
|
|
301090
|
-
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
301091
|
-
|
|
301092
|
-
exports.default = _default;
|
|
301093
|
-
});
|
|
301094
|
-
|
|
301095
|
-
var CheckCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301096
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301097
|
-
value: true
|
|
301098
|
-
});
|
|
301099
|
-
exports.default = void 0;
|
|
301100
|
-
|
|
301101
|
-
var _CheckCircleFilled = _interopRequireDefault(CheckCircleFilled_1$1);
|
|
301102
|
-
|
|
301103
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301104
|
-
|
|
301105
|
-
var _default = _CheckCircleFilled;
|
|
301106
|
-
exports.default = _default;
|
|
301107
|
-
module.exports = _default;
|
|
301108
|
-
});
|
|
301109
|
-
|
|
301110
|
-
var CheckCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CheckCircleFilled$3);
|
|
301111
|
-
|
|
301112
|
-
var CloseCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301113
|
-
// This icon file is generated automatically.
|
|
301114
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301115
|
-
var CloseCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
301116
|
-
exports.default = CloseCircleFilled;
|
|
301117
|
-
});
|
|
301118
|
-
|
|
301119
|
-
var CloseCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301120
|
-
|
|
301121
|
-
|
|
301122
|
-
|
|
301123
|
-
|
|
301124
|
-
|
|
301125
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301126
|
-
value: true
|
|
301127
|
-
});
|
|
301128
|
-
exports.default = void 0;
|
|
301129
|
-
|
|
301130
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301131
|
-
|
|
301132
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301133
|
-
|
|
301134
|
-
var _CloseCircleFilled = interopRequireDefault(CloseCircleFilled_1);
|
|
301135
|
-
|
|
301136
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301137
|
-
|
|
301138
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301139
|
-
// DON NOT EDIT IT MANUALLY
|
|
301140
|
-
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
301141
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301142
|
-
ref: ref,
|
|
301143
|
-
icon: _CloseCircleFilled.default
|
|
301144
|
-
}));
|
|
301145
|
-
};
|
|
301146
|
-
|
|
301147
|
-
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
301148
|
-
|
|
301149
|
-
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
301150
|
-
|
|
301151
|
-
exports.default = _default;
|
|
301152
|
-
});
|
|
301153
|
-
|
|
301154
|
-
var CloseCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301155
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301156
|
-
value: true
|
|
301157
|
-
});
|
|
301158
|
-
exports.default = void 0;
|
|
301159
|
-
|
|
301160
|
-
var _CloseCircleFilled = _interopRequireDefault(CloseCircleFilled_1$1);
|
|
301161
|
-
|
|
301162
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301163
|
-
|
|
301164
|
-
var _default = _CloseCircleFilled;
|
|
301165
|
-
exports.default = _default;
|
|
301166
|
-
module.exports = _default;
|
|
301167
|
-
});
|
|
301168
|
-
|
|
301169
|
-
var CloseCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CloseCircleFilled$3);
|
|
301170
|
-
|
|
301171
|
-
var ExclamationCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301172
|
-
// This icon file is generated automatically.
|
|
301173
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301174
|
-
var ExclamationCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
|
|
301175
|
-
exports.default = ExclamationCircleFilled;
|
|
301176
|
-
});
|
|
301177
|
-
|
|
301178
|
-
var ExclamationCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301179
|
-
|
|
301180
|
-
|
|
301181
|
-
|
|
301182
|
-
|
|
301183
|
-
|
|
301184
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301185
|
-
value: true
|
|
301186
|
-
});
|
|
301187
|
-
exports.default = void 0;
|
|
301188
|
-
|
|
301189
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301190
|
-
|
|
301191
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301192
|
-
|
|
301193
|
-
var _ExclamationCircleFilled = interopRequireDefault(ExclamationCircleFilled_1);
|
|
301194
|
-
|
|
301195
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301196
|
-
|
|
301197
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301198
|
-
// DON NOT EDIT IT MANUALLY
|
|
301199
|
-
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
301200
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301201
|
-
ref: ref,
|
|
301202
|
-
icon: _ExclamationCircleFilled.default
|
|
301203
|
-
}));
|
|
301204
|
-
};
|
|
301205
|
-
|
|
301206
|
-
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
301207
|
-
|
|
301208
|
-
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
301209
|
-
|
|
301210
|
-
exports.default = _default;
|
|
301211
|
-
});
|
|
301212
|
-
|
|
301213
|
-
var ExclamationCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301214
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301215
|
-
value: true
|
|
301216
|
-
});
|
|
301217
|
-
exports.default = void 0;
|
|
301218
|
-
|
|
301219
|
-
var _ExclamationCircleFilled = _interopRequireDefault(ExclamationCircleFilled_1$1);
|
|
301220
|
-
|
|
301221
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301222
|
-
|
|
301223
|
-
var _default = _ExclamationCircleFilled;
|
|
301224
|
-
exports.default = _default;
|
|
301225
|
-
module.exports = _default;
|
|
301226
|
-
});
|
|
301227
|
-
|
|
301228
|
-
var ExclamationCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(ExclamationCircleFilled$3);
|
|
301229
|
-
|
|
301230
|
-
var LoadingOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
301231
|
-
// This icon file is generated automatically.
|
|
301232
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301233
|
-
var LoadingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
301234
|
-
exports.default = LoadingOutlined;
|
|
301235
|
-
});
|
|
301236
|
-
|
|
301237
|
-
var LoadingOutlined_1$1 = createCommonjsModule(function (module, exports) {
|
|
301238
|
-
|
|
301239
|
-
|
|
301240
|
-
|
|
301241
|
-
|
|
301242
|
-
|
|
301243
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301244
|
-
value: true
|
|
301245
|
-
});
|
|
301246
|
-
exports.default = void 0;
|
|
301247
|
-
|
|
301248
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301249
|
-
|
|
301250
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301251
|
-
|
|
301252
|
-
var _LoadingOutlined = interopRequireDefault(LoadingOutlined_1);
|
|
301253
|
-
|
|
301254
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301255
|
-
|
|
301256
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301257
|
-
// DON NOT EDIT IT MANUALLY
|
|
301258
|
-
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
301259
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301260
|
-
ref: ref,
|
|
301261
|
-
icon: _LoadingOutlined.default
|
|
301262
|
-
}));
|
|
301263
|
-
};
|
|
301264
|
-
|
|
301265
|
-
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
301266
|
-
|
|
301267
|
-
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
301268
|
-
|
|
301269
|
-
exports.default = _default;
|
|
301270
|
-
});
|
|
301271
|
-
|
|
301272
|
-
var LoadingOutlined$3 = createCommonjsModule(function (module, exports) {
|
|
301273
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301274
|
-
value: true
|
|
301275
|
-
});
|
|
301276
|
-
exports.default = void 0;
|
|
301277
|
-
|
|
301278
|
-
var _LoadingOutlined = _interopRequireDefault(LoadingOutlined_1$1);
|
|
301279
|
-
|
|
301280
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301281
|
-
|
|
301282
|
-
var _default = _LoadingOutlined;
|
|
301283
|
-
exports.default = _default;
|
|
301284
|
-
module.exports = _default;
|
|
301285
|
-
});
|
|
301286
|
-
|
|
301287
|
-
var LoadingOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(LoadingOutlined$3);
|
|
301288
|
-
|
|
301289
300631
|
var RowContext$1 = /*#__PURE__*/React.createContext({});
|
|
301290
300632
|
|
|
301291
|
-
var _excluded$
|
|
300633
|
+
var _excluded$2z = ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"];
|
|
301292
300634
|
|
|
301293
300635
|
function parseFlex$1(flex) {
|
|
301294
300636
|
if (typeof flex === 'number') {
|
|
@@ -301325,7 +300667,7 @@
|
|
|
301325
300667
|
children = props.children,
|
|
301326
300668
|
flex = props.flex,
|
|
301327
300669
|
style = props.style,
|
|
301328
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300670
|
+
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
301329
300671
|
|
|
301330
300672
|
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
301331
300673
|
var sizeClassObj = {};
|
|
@@ -301558,7 +300900,7 @@
|
|
|
301558
300900
|
return flexible;
|
|
301559
300901
|
});
|
|
301560
300902
|
|
|
301561
|
-
var _excluded$
|
|
300903
|
+
var _excluded$2A = ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"];
|
|
301562
300904
|
var RowAligns$1 = tuple$2('top', 'middle', 'bottom', 'stretch');
|
|
301563
300905
|
var RowJustify$1 = tuple$2('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
|
|
301564
300906
|
var Row$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -301573,7 +300915,7 @@
|
|
|
301573
300915
|
_props$gutter = props.gutter,
|
|
301574
300916
|
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
301575
300917
|
wrap = props.wrap,
|
|
301576
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300918
|
+
others = _objectWithoutProperties$1(props, _excluded$2A);
|
|
301577
300919
|
|
|
301578
300920
|
var _React$useContext = React.useContext(ConfigContext),
|
|
301579
300921
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -303424,7 +302766,7 @@
|
|
|
303424
302766
|
return NextArrow;
|
|
303425
302767
|
}(React__default['default'].PureComponent);
|
|
303426
302768
|
|
|
303427
|
-
var _excluded$
|
|
302769
|
+
var _excluded$2B = ["animating"];
|
|
303428
302770
|
var InnerSlider = /*#__PURE__*/function (_React$Component) {
|
|
303429
302771
|
_inherits(InnerSlider, _React$Component);
|
|
303430
302772
|
|
|
@@ -303840,7 +303182,7 @@
|
|
|
303840
303182
|
if (!nextState) return;
|
|
303841
303183
|
_this.animationEndCallback = setTimeout(function () {
|
|
303842
303184
|
var animating = nextState.animating,
|
|
303843
|
-
firstBatch = _objectWithoutProperties(nextState, _excluded$
|
|
303185
|
+
firstBatch = _objectWithoutProperties(nextState, _excluded$2B);
|
|
303844
303186
|
|
|
303845
303187
|
_this.setState(firstBatch, function () {
|
|
303846
303188
|
_this.callbackTimers.push(setTimeout(function () {
|
|
@@ -305828,7 +305170,7 @@
|
|
|
305828
305170
|
Layout$1.Content = Content;
|
|
305829
305171
|
Layout$1.Sider = Sider;
|
|
305830
305172
|
|
|
305831
|
-
var _excluded$
|
|
305173
|
+
var _excluded$2C = ["children", "locked"];
|
|
305832
305174
|
var MenuContext$4 = /*#__PURE__*/React.createContext(null);
|
|
305833
305175
|
|
|
305834
305176
|
function mergeProps$3(origin, target) {
|
|
@@ -305847,7 +305189,7 @@
|
|
|
305847
305189
|
function InheritableContextProvider$3(_ref) {
|
|
305848
305190
|
var children = _ref.children,
|
|
305849
305191
|
locked = _ref.locked,
|
|
305850
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305192
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2C);
|
|
305851
305193
|
|
|
305852
305194
|
var context = React.useContext(MenuContext$4);
|
|
305853
305195
|
var inheritableContext = useMemo(function () {
|
|
@@ -305891,7 +305233,7 @@
|
|
|
305891
305233
|
return ret;
|
|
305892
305234
|
}
|
|
305893
305235
|
|
|
305894
|
-
var _excluded$
|
|
305236
|
+
var _excluded$2D = ["item"];
|
|
305895
305237
|
/**
|
|
305896
305238
|
* `onClick` event return `info.item` which point to react node directly.
|
|
305897
305239
|
* We should warning this since it will not work on FC.
|
|
@@ -305899,7 +305241,7 @@
|
|
|
305899
305241
|
|
|
305900
305242
|
function warnItemProp$3(_ref) {
|
|
305901
305243
|
var item = _ref.item,
|
|
305902
|
-
restInfo = _objectWithoutProperties(_ref, _excluded$
|
|
305244
|
+
restInfo = _objectWithoutProperties(_ref, _excluded$2D);
|
|
305903
305245
|
|
|
305904
305246
|
Object.defineProperty(restInfo, 'item', {
|
|
305905
305247
|
get: function get() {
|
|
@@ -305978,7 +305320,7 @@
|
|
|
305978
305320
|
|
|
305979
305321
|
var PrivateContext$3 = /*#__PURE__*/React.createContext({});
|
|
305980
305322
|
|
|
305981
|
-
var _excluded$
|
|
305323
|
+
var _excluded$2E = ["title", "attribute", "elementRef"],
|
|
305982
305324
|
_excluded2$F = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"],
|
|
305983
305325
|
_excluded3$a = ["active"];
|
|
305984
305326
|
// We have to use class component here.
|
|
@@ -306002,7 +305344,7 @@
|
|
|
306002
305344
|
title = _this$props.title,
|
|
306003
305345
|
attribute = _this$props.attribute,
|
|
306004
305346
|
elementRef = _this$props.elementRef,
|
|
306005
|
-
restProps = _objectWithoutProperties(_this$props, _excluded$
|
|
305347
|
+
restProps = _objectWithoutProperties(_this$props, _excluded$2E);
|
|
306006
305348
|
|
|
306007
305349
|
var passedProps = omit(restProps, ['eventKey']);
|
|
306008
305350
|
warningOnce(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
@@ -306177,7 +305519,7 @@
|
|
|
306177
305519
|
return /*#__PURE__*/React.createElement(InternalMenuItem$3, props);
|
|
306178
305520
|
}
|
|
306179
305521
|
|
|
306180
|
-
var _excluded$
|
|
305522
|
+
var _excluded$2F = ["label", "children", "key", "type"];
|
|
306181
305523
|
function parseChildren$3(children, keyPath) {
|
|
306182
305524
|
return toArray(children).map(function (child, index) {
|
|
306183
305525
|
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -306214,7 +305556,7 @@
|
|
|
306214
305556
|
children = opt.children,
|
|
306215
305557
|
key = opt.key,
|
|
306216
305558
|
type = opt.type,
|
|
306217
|
-
restProps = _objectWithoutProperties(opt, _excluded$
|
|
305559
|
+
restProps = _objectWithoutProperties(opt, _excluded$2F);
|
|
306218
305560
|
|
|
306219
305561
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index); // MenuItemGroup & SubMenuItem
|
|
306220
305562
|
|
|
@@ -306284,12 +305626,12 @@
|
|
|
306284
305626
|
return func ? callback : undefined;
|
|
306285
305627
|
}
|
|
306286
305628
|
|
|
306287
|
-
var _excluded$
|
|
305629
|
+
var _excluded$2G = ["className", "children"];
|
|
306288
305630
|
|
|
306289
305631
|
var InternalSubMenuList$3 = function InternalSubMenuList(_ref, ref) {
|
|
306290
305632
|
var className = _ref.className,
|
|
306291
305633
|
children = _ref.children,
|
|
306292
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305634
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2G);
|
|
306293
305635
|
|
|
306294
305636
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
306295
305637
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -307118,7 +306460,7 @@
|
|
|
307118
306460
|
}));
|
|
307119
306461
|
}
|
|
307120
306462
|
|
|
307121
|
-
var _excluded$
|
|
306463
|
+
var _excluded$2H = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"],
|
|
307122
306464
|
_excluded2$G = ["active"];
|
|
307123
306465
|
|
|
307124
306466
|
var InternalSubMenu$3 = function InternalSubMenu(props) {
|
|
@@ -307142,7 +306484,7 @@
|
|
|
307142
306484
|
onTitleClick = props.onTitleClick,
|
|
307143
306485
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
307144
306486
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
307145
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
306487
|
+
restProps = _objectWithoutProperties(props, _excluded$2H);
|
|
307146
306488
|
|
|
307147
306489
|
var domDataId = useMenuId$3(eventKey);
|
|
307148
306490
|
|
|
@@ -307813,7 +307155,7 @@
|
|
|
307813
307155
|
};
|
|
307814
307156
|
}
|
|
307815
307157
|
|
|
307816
|
-
var _excluded$
|
|
307158
|
+
var _excluded$2I = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem"];
|
|
307817
307159
|
/**
|
|
307818
307160
|
* Menu modify after refactor:
|
|
307819
307161
|
* ## Add
|
|
@@ -307885,7 +307227,7 @@
|
|
|
307885
307227
|
openTransitionName = props.openTransitionName,
|
|
307886
307228
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
307887
307229
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
307888
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
307230
|
+
restProps = _objectWithoutProperties(props, _excluded$2I);
|
|
307889
307231
|
|
|
307890
307232
|
var childList = React.useMemo(function () {
|
|
307891
307233
|
return parseItems$3(children, items, EMPTY_LIST$7);
|
|
@@ -308230,7 +307572,7 @@
|
|
|
308230
307572
|
}, childList)))));
|
|
308231
307573
|
});
|
|
308232
307574
|
|
|
308233
|
-
var _excluded$
|
|
307575
|
+
var _excluded$2J = ["className", "title", "eventKey", "children"],
|
|
308234
307576
|
_excluded2$H = ["children"];
|
|
308235
307577
|
|
|
308236
307578
|
var InternalMenuItemGroup$3 = function InternalMenuItemGroup(_ref) {
|
|
@@ -308238,7 +307580,7 @@
|
|
|
308238
307580
|
title = _ref.title,
|
|
308239
307581
|
eventKey = _ref.eventKey,
|
|
308240
307582
|
children = _ref.children,
|
|
308241
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
307583
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2J);
|
|
308242
307584
|
|
|
308243
307585
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
308244
307586
|
prefixCls = _React$useContext.prefixCls;
|
|
@@ -309862,7 +309204,7 @@
|
|
|
309862
309204
|
});
|
|
309863
309205
|
}
|
|
309864
309206
|
|
|
309865
|
-
var _excluded$
|
|
309207
|
+
var _excluded$2K = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
|
|
309866
309208
|
|
|
309867
309209
|
function getValidTitle(option) {
|
|
309868
309210
|
if (typeof option.title !== 'undefined') {
|
|
@@ -309941,7 +309283,7 @@
|
|
|
309941
309283
|
className = _props$className === void 0 ? '' : _props$className,
|
|
309942
309284
|
_props$motionName = props.motionName,
|
|
309943
309285
|
motionName = _props$motionName === void 0 ? 'thumb-motion' : _props$motionName,
|
|
309944
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
309286
|
+
restProps = _objectWithoutProperties(props, _excluded$2K);
|
|
309945
309287
|
|
|
309946
309288
|
var containerRef = React.useRef(null);
|
|
309947
309289
|
var mergedRef = React.useMemo(function () {
|
|
@@ -311323,6 +310665,867 @@
|
|
|
311323
310665
|
useBreakpoint: useBreakpoint$4
|
|
311324
310666
|
};
|
|
311325
310667
|
|
|
310668
|
+
var icon = require('./images/icon_collapse.svg'); // 行个数 => 在24份中占用的分数
|
|
310669
|
+
|
|
310670
|
+
|
|
310671
|
+
var rowMap = new Map([[5, [4, 1]], [4, [5, 1]], [3, [7, 1]]]);
|
|
310672
|
+
|
|
310673
|
+
var Title$3 = function Title(props) {
|
|
310674
|
+
var title = props.title,
|
|
310675
|
+
onToggle = props.onToggle;
|
|
310676
|
+
|
|
310677
|
+
var _useState = React.useState(true),
|
|
310678
|
+
_useState2 = _slicedToArray$1(_useState, 2),
|
|
310679
|
+
visible = _useState2[0],
|
|
310680
|
+
setVisible = _useState2[1];
|
|
310681
|
+
|
|
310682
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310683
|
+
className: "form_responsive_group_title",
|
|
310684
|
+
onClick: function onClick() {
|
|
310685
|
+
setVisible(!visible);
|
|
310686
|
+
onToggle && onToggle(!visible);
|
|
310687
|
+
}
|
|
310688
|
+
}, /*#__PURE__*/React__default['default'].createElement("h3", null, title), /*#__PURE__*/React__default['default'].createElement("img", {
|
|
310689
|
+
src: icon,
|
|
310690
|
+
className: !visible ? 'open' : '',
|
|
310691
|
+
alt: ""
|
|
310692
|
+
}));
|
|
310693
|
+
};
|
|
310694
|
+
|
|
310695
|
+
var List$3 = function List(props) {
|
|
310696
|
+
var customizeChildren = props.children,
|
|
310697
|
+
countPerRow = props.countPerRow,
|
|
310698
|
+
title = props.title,
|
|
310699
|
+
user = props.user;
|
|
310700
|
+
|
|
310701
|
+
var _rowMap$get = rowMap.get(countPerRow),
|
|
310702
|
+
_rowMap$get2 = _slicedToArray$1(_rowMap$get, 2),
|
|
310703
|
+
colSpan = _rowMap$get2[0],
|
|
310704
|
+
colSpace = _rowMap$get2[1];
|
|
310705
|
+
|
|
310706
|
+
var _useState3 = React.useState(true),
|
|
310707
|
+
_useState4 = _slicedToArray$1(_useState3, 2),
|
|
310708
|
+
visible = _useState4[0],
|
|
310709
|
+
setVisible = _useState4[1]; // 最终的结果
|
|
310710
|
+
|
|
310711
|
+
|
|
310712
|
+
var rowlist = React.useMemo(function () {
|
|
310713
|
+
var children = []; // 收集(满了就重置)
|
|
310714
|
+
|
|
310715
|
+
var collection = [];
|
|
310716
|
+
var result = [];
|
|
310717
|
+
|
|
310718
|
+
if (!Array.isArray(customizeChildren)) {
|
|
310719
|
+
children = [customizeChildren];
|
|
310720
|
+
}
|
|
310721
|
+
|
|
310722
|
+
children = Array.prototype.slice.call(customizeChildren).flat();
|
|
310723
|
+
|
|
310724
|
+
if (user) {
|
|
310725
|
+
result.push( /*#__PURE__*/React__default['default'].createElement(Title$3, {
|
|
310726
|
+
title: title,
|
|
310727
|
+
onToggle: function onToggle(value) {
|
|
310728
|
+
setVisible(value);
|
|
310729
|
+
}
|
|
310730
|
+
}));
|
|
310731
|
+
} // 一行
|
|
310732
|
+
|
|
310733
|
+
|
|
310734
|
+
function generatorRow() {
|
|
310735
|
+
var node = /*#__PURE__*/React__default['default'].createElement(Row$1, null, collection.map(function (child, index) {
|
|
310736
|
+
if (index !== collection.length - 1) {
|
|
310737
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, {
|
|
310738
|
+
key: index
|
|
310739
|
+
}, /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310740
|
+
span: colSpan
|
|
310741
|
+
}, child), /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310742
|
+
span: colSpace
|
|
310743
|
+
}));
|
|
310744
|
+
}
|
|
310745
|
+
|
|
310746
|
+
return /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310747
|
+
span: colSpan,
|
|
310748
|
+
key: index
|
|
310749
|
+
}, child);
|
|
310750
|
+
}));
|
|
310751
|
+
result.push(node);
|
|
310752
|
+
collection.length = 0;
|
|
310753
|
+
}
|
|
310754
|
+
|
|
310755
|
+
for (var i = 0; i < children.length; i += 1) {
|
|
310756
|
+
var child = children[i]; // 过滤掉React.Fragment
|
|
310757
|
+
|
|
310758
|
+
while (child.type === Symbol.for('react.fragment')) {
|
|
310759
|
+
if (Array.isArray(child.props.children)) {
|
|
310760
|
+
var _children;
|
|
310761
|
+
|
|
310762
|
+
(_children = children).splice.apply(_children, [i, 1].concat(_toConsumableArray$1(child.props.children)));
|
|
310763
|
+
|
|
310764
|
+
child = children[i];
|
|
310765
|
+
} else {
|
|
310766
|
+
child = child.props.children;
|
|
310767
|
+
}
|
|
310768
|
+
}
|
|
310769
|
+
|
|
310770
|
+
if (child) {
|
|
310771
|
+
var _child, _child$props;
|
|
310772
|
+
|
|
310773
|
+
if ((_child = child) === null || _child === void 0 ? void 0 : (_child$props = _child.props) === null || _child$props === void 0 ? void 0 : _child$props.responsive) {
|
|
310774
|
+
collection.push(child);
|
|
310775
|
+
|
|
310776
|
+
if (collection.length && collection.length === countPerRow) {
|
|
310777
|
+
generatorRow();
|
|
310778
|
+
}
|
|
310779
|
+
} else if (collection.length) {
|
|
310780
|
+
generatorRow();
|
|
310781
|
+
result.push(child);
|
|
310782
|
+
} else {
|
|
310783
|
+
result.push(child);
|
|
310784
|
+
}
|
|
310785
|
+
}
|
|
310786
|
+
}
|
|
310787
|
+
|
|
310788
|
+
if (collection.length) {
|
|
310789
|
+
generatorRow();
|
|
310790
|
+
}
|
|
310791
|
+
|
|
310792
|
+
return result;
|
|
310793
|
+
}, [customizeChildren, countPerRow, user, title]);
|
|
310794
|
+
var needRenderList = rowlist;
|
|
310795
|
+
|
|
310796
|
+
if (!visible && needRenderList.length) {
|
|
310797
|
+
needRenderList = [needRenderList[0]];
|
|
310798
|
+
}
|
|
310799
|
+
|
|
310800
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, needRenderList.map(function (child, index) {
|
|
310801
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, {
|
|
310802
|
+
key: index
|
|
310803
|
+
}, child);
|
|
310804
|
+
}));
|
|
310805
|
+
};
|
|
310806
|
+
|
|
310807
|
+
var WrapperItem = function WrapperItem(props) {
|
|
310808
|
+
var user = props.user;
|
|
310809
|
+
var targetRef = React.useRef(null);
|
|
310810
|
+
|
|
310811
|
+
var _useState5 = React.useState({
|
|
310812
|
+
width: '100%',
|
|
310813
|
+
height: '100%'
|
|
310814
|
+
}),
|
|
310815
|
+
_useState6 = _slicedToArray$1(_useState5, 2),
|
|
310816
|
+
containerSize = _useState6[0],
|
|
310817
|
+
setContainerSize = _useState6[1]; // 每行的个数
|
|
310818
|
+
|
|
310819
|
+
|
|
310820
|
+
var _useState7 = React.useState(5),
|
|
310821
|
+
_useState8 = _slicedToArray$1(_useState7, 2),
|
|
310822
|
+
countPerRow = _useState8[0],
|
|
310823
|
+
setCountPerRow = _useState8[1];
|
|
310824
|
+
|
|
310825
|
+
var changeSize = function changeSize() {
|
|
310826
|
+
var _targetRef$current;
|
|
310827
|
+
|
|
310828
|
+
var maxWidth = 1824;
|
|
310829
|
+
|
|
310830
|
+
var _ref = ((_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.getBoundingClientRect()) || {},
|
|
310831
|
+
_ref$width = _ref.width,
|
|
310832
|
+
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
310833
|
+
|
|
310834
|
+
if (width < 990) {
|
|
310835
|
+
setCountPerRow(3);
|
|
310836
|
+
} else if (width < 1390) {
|
|
310837
|
+
setCountPerRow(4);
|
|
310838
|
+
} else {
|
|
310839
|
+
setCountPerRow(5);
|
|
310840
|
+
}
|
|
310841
|
+
|
|
310842
|
+
if (width !== '100%') {
|
|
310843
|
+
width -= 32;
|
|
310844
|
+
|
|
310845
|
+
if (width > maxWidth) {
|
|
310846
|
+
if (user) {
|
|
310847
|
+
width = maxWidth - 64;
|
|
310848
|
+
}
|
|
310849
|
+
}
|
|
310850
|
+
}
|
|
310851
|
+
|
|
310852
|
+
setContainerSize({
|
|
310853
|
+
width: width
|
|
310854
|
+
});
|
|
310855
|
+
};
|
|
310856
|
+
|
|
310857
|
+
var handResize = lodash.throttle(changeSize, 600);
|
|
310858
|
+
React.useEffect(function () {
|
|
310859
|
+
changeSize();
|
|
310860
|
+
window.addEventListener('resize', handResize);
|
|
310861
|
+
return function () {
|
|
310862
|
+
window.removeEventListener('resize', handResize);
|
|
310863
|
+
};
|
|
310864
|
+
}, []);
|
|
310865
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310866
|
+
className: "lm_container_wrapper",
|
|
310867
|
+
ref: targetRef
|
|
310868
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310869
|
+
style: _objectSpread(_objectSpread({}, containerSize), {}, {
|
|
310870
|
+
margin: '0 auto'
|
|
310871
|
+
})
|
|
310872
|
+
}, /*#__PURE__*/React__default['default'].createElement(List$3, _objectSpread(_objectSpread({}, props), {}, {
|
|
310873
|
+
countPerRow: countPerRow
|
|
310874
|
+
})))));
|
|
310875
|
+
};
|
|
310876
|
+
|
|
310877
|
+
var _excluded$2L = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive", "children"];
|
|
310878
|
+
|
|
310879
|
+
var InternalForm$2 = function InternalForm(props, ref) {
|
|
310880
|
+
var _classNames;
|
|
310881
|
+
|
|
310882
|
+
var contextSize = React.useContext(SizeContext$1);
|
|
310883
|
+
var contextDisabled = React.useContext(DisabledContext$1);
|
|
310884
|
+
|
|
310885
|
+
var _React$useContext = React.useContext(ConfigContext$1),
|
|
310886
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
310887
|
+
direction = _React$useContext.direction,
|
|
310888
|
+
contextForm = _React$useContext.form;
|
|
310889
|
+
|
|
310890
|
+
var customizePrefixCls = props.prefixCls,
|
|
310891
|
+
_props$className = props.className,
|
|
310892
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
310893
|
+
_props$size = props.size,
|
|
310894
|
+
size = _props$size === void 0 ? contextSize : _props$size,
|
|
310895
|
+
_props$disabled = props.disabled,
|
|
310896
|
+
disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled,
|
|
310897
|
+
form = props.form,
|
|
310898
|
+
colon = props.colon,
|
|
310899
|
+
labelAlign = props.labelAlign,
|
|
310900
|
+
labelWrap = props.labelWrap,
|
|
310901
|
+
labelCol = props.labelCol,
|
|
310902
|
+
wrapperCol = props.wrapperCol,
|
|
310903
|
+
hideRequiredMark = props.hideRequiredMark,
|
|
310904
|
+
_props$layout = props.layout,
|
|
310905
|
+
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
310906
|
+
scrollToFirstError = props.scrollToFirstError,
|
|
310907
|
+
requiredMark = props.requiredMark,
|
|
310908
|
+
onFinishFailed = props.onFinishFailed,
|
|
310909
|
+
name = props.name,
|
|
310910
|
+
responsive = props.responsive,
|
|
310911
|
+
customizeChildren = props.children,
|
|
310912
|
+
restFormProps = _objectWithoutProperties$1(props, _excluded$2L);
|
|
310913
|
+
|
|
310914
|
+
var children = customizeChildren;
|
|
310915
|
+
var mergedRequiredMark = React.useMemo(function () {
|
|
310916
|
+
if (requiredMark !== undefined) {
|
|
310917
|
+
return requiredMark;
|
|
310918
|
+
}
|
|
310919
|
+
|
|
310920
|
+
if (contextForm && contextForm.requiredMark !== undefined) {
|
|
310921
|
+
return contextForm.requiredMark;
|
|
310922
|
+
}
|
|
310923
|
+
|
|
310924
|
+
if (hideRequiredMark) {
|
|
310925
|
+
return false;
|
|
310926
|
+
}
|
|
310927
|
+
|
|
310928
|
+
return true;
|
|
310929
|
+
}, [hideRequiredMark, requiredMark, contextForm]);
|
|
310930
|
+
var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon;
|
|
310931
|
+
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
|
310932
|
+
var formClassName = classnames('lm_form', prefixCls, (_classNames = {}, _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(layout), true), _defineProperty$1(_classNames, "".concat(prefixCls, "-hide-required-mark"), mergedRequiredMark === false), _defineProperty$1(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(size), size), _classNames), className);
|
|
310933
|
+
|
|
310934
|
+
var _useForm = useForm$2(form),
|
|
310935
|
+
_useForm2 = _slicedToArray$1(_useForm, 1),
|
|
310936
|
+
wrapForm = _useForm2[0];
|
|
310937
|
+
|
|
310938
|
+
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
|
310939
|
+
__INTERNAL__.name = name;
|
|
310940
|
+
var formContextValue = React.useMemo(function () {
|
|
310941
|
+
return {
|
|
310942
|
+
name: name,
|
|
310943
|
+
labelAlign: labelAlign,
|
|
310944
|
+
labelCol: labelCol,
|
|
310945
|
+
labelWrap: labelWrap,
|
|
310946
|
+
wrapperCol: wrapperCol,
|
|
310947
|
+
vertical: layout === 'vertical',
|
|
310948
|
+
colon: mergedColon,
|
|
310949
|
+
requiredMark: mergedRequiredMark,
|
|
310950
|
+
itemRef: __INTERNAL__.itemRef,
|
|
310951
|
+
form: wrapForm
|
|
310952
|
+
};
|
|
310953
|
+
}, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]);
|
|
310954
|
+
React.useImperativeHandle(ref, function () {
|
|
310955
|
+
return wrapForm;
|
|
310956
|
+
});
|
|
310957
|
+
|
|
310958
|
+
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
|
310959
|
+
onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo);
|
|
310960
|
+
var defaultScrollToFirstError = {
|
|
310961
|
+
block: 'nearest'
|
|
310962
|
+
};
|
|
310963
|
+
|
|
310964
|
+
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
310965
|
+
if (_typeof$1(scrollToFirstError) === 'object') {
|
|
310966
|
+
defaultScrollToFirstError = scrollToFirstError;
|
|
310967
|
+
}
|
|
310968
|
+
|
|
310969
|
+
wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError);
|
|
310970
|
+
}
|
|
310971
|
+
};
|
|
310972
|
+
|
|
310973
|
+
if (responsive) {
|
|
310974
|
+
children = /*#__PURE__*/React.createElement(WrapperItem, {
|
|
310975
|
+
children: children
|
|
310976
|
+
});
|
|
310977
|
+
}
|
|
310978
|
+
|
|
310979
|
+
var formNode = /*#__PURE__*/React.createElement(DisabledContextProvider$1, {
|
|
310980
|
+
disabled: disabled
|
|
310981
|
+
}, /*#__PURE__*/React.createElement(SizeContextProvider$1, {
|
|
310982
|
+
size: size
|
|
310983
|
+
}, /*#__PURE__*/React.createElement(FormContext$2.Provider, {
|
|
310984
|
+
value: formContextValue
|
|
310985
|
+
}, /*#__PURE__*/React.createElement(RefForm, _objectSpread(_objectSpread({
|
|
310986
|
+
id: name
|
|
310987
|
+
}, restFormProps), {}, {
|
|
310988
|
+
children: children,
|
|
310989
|
+
name: name,
|
|
310990
|
+
onFinishFailed: onInternalFinishFailed,
|
|
310991
|
+
form: wrapForm,
|
|
310992
|
+
className: formClassName
|
|
310993
|
+
})))));
|
|
310994
|
+
|
|
310995
|
+
if (responsive) {
|
|
310996
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
310997
|
+
className: "lm_form_responsive_box"
|
|
310998
|
+
}, formNode);
|
|
310999
|
+
}
|
|
311000
|
+
|
|
311001
|
+
return formNode;
|
|
311002
|
+
};
|
|
311003
|
+
|
|
311004
|
+
var Form$3 = /*#__PURE__*/React.forwardRef(InternalForm$2);
|
|
311005
|
+
|
|
311006
|
+
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
311007
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
311008
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
311009
|
+
|
|
311010
|
+
if (!it) {
|
|
311011
|
+
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
311012
|
+
if (it) o = it;
|
|
311013
|
+
var i = 0;
|
|
311014
|
+
|
|
311015
|
+
var F = function F() {};
|
|
311016
|
+
|
|
311017
|
+
return {
|
|
311018
|
+
s: F,
|
|
311019
|
+
n: function n() {
|
|
311020
|
+
if (i >= o.length) return {
|
|
311021
|
+
done: true
|
|
311022
|
+
};
|
|
311023
|
+
return {
|
|
311024
|
+
done: false,
|
|
311025
|
+
value: o[i++]
|
|
311026
|
+
};
|
|
311027
|
+
},
|
|
311028
|
+
e: function e(_e) {
|
|
311029
|
+
throw _e;
|
|
311030
|
+
},
|
|
311031
|
+
f: F
|
|
311032
|
+
};
|
|
311033
|
+
}
|
|
311034
|
+
|
|
311035
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
311036
|
+
}
|
|
311037
|
+
|
|
311038
|
+
var normalCompletion = true,
|
|
311039
|
+
didErr = false,
|
|
311040
|
+
err;
|
|
311041
|
+
return {
|
|
311042
|
+
s: function s() {
|
|
311043
|
+
it = it.call(o);
|
|
311044
|
+
},
|
|
311045
|
+
n: function n() {
|
|
311046
|
+
var step = it.next();
|
|
311047
|
+
normalCompletion = step.done;
|
|
311048
|
+
return step;
|
|
311049
|
+
},
|
|
311050
|
+
e: function e(_e2) {
|
|
311051
|
+
didErr = true;
|
|
311052
|
+
err = _e2;
|
|
311053
|
+
},
|
|
311054
|
+
f: function f() {
|
|
311055
|
+
try {
|
|
311056
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
311057
|
+
} finally {
|
|
311058
|
+
if (didErr) throw err;
|
|
311059
|
+
}
|
|
311060
|
+
}
|
|
311061
|
+
};
|
|
311062
|
+
}
|
|
311063
|
+
|
|
311064
|
+
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
311065
|
+
});
|
|
311066
|
+
|
|
311067
|
+
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
311068
|
+
|
|
311069
|
+
var ref$1 = createCommonjsModule(function (module, exports) {
|
|
311070
|
+
|
|
311071
|
+
|
|
311072
|
+
|
|
311073
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311074
|
+
value: true
|
|
311075
|
+
});
|
|
311076
|
+
exports.composeRef = composeRef;
|
|
311077
|
+
exports.fillRef = fillRef;
|
|
311078
|
+
exports.supportRef = supportRef;
|
|
311079
|
+
exports.useComposeRef = useComposeRef;
|
|
311080
|
+
|
|
311081
|
+
var _typeof2 = interopRequireDefault(_typeof_1);
|
|
311082
|
+
|
|
311083
|
+
|
|
311084
|
+
|
|
311085
|
+
var _useMemo = interopRequireDefault(useMemo_1);
|
|
311086
|
+
|
|
311087
|
+
function fillRef(ref, node) {
|
|
311088
|
+
if (typeof ref === 'function') {
|
|
311089
|
+
ref(node);
|
|
311090
|
+
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
311091
|
+
ref.current = node;
|
|
311092
|
+
}
|
|
311093
|
+
}
|
|
311094
|
+
/**
|
|
311095
|
+
* Merge refs into one ref function to support ref passing.
|
|
311096
|
+
*/
|
|
311097
|
+
|
|
311098
|
+
|
|
311099
|
+
function composeRef() {
|
|
311100
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
311101
|
+
refs[_key] = arguments[_key];
|
|
311102
|
+
}
|
|
311103
|
+
|
|
311104
|
+
var refList = refs.filter(function (ref) {
|
|
311105
|
+
return ref;
|
|
311106
|
+
});
|
|
311107
|
+
|
|
311108
|
+
if (refList.length <= 1) {
|
|
311109
|
+
return refList[0];
|
|
311110
|
+
}
|
|
311111
|
+
|
|
311112
|
+
return function (node) {
|
|
311113
|
+
refs.forEach(function (ref) {
|
|
311114
|
+
fillRef(ref, node);
|
|
311115
|
+
});
|
|
311116
|
+
};
|
|
311117
|
+
}
|
|
311118
|
+
|
|
311119
|
+
function useComposeRef() {
|
|
311120
|
+
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
311121
|
+
refs[_key2] = arguments[_key2];
|
|
311122
|
+
}
|
|
311123
|
+
|
|
311124
|
+
return (0, _useMemo.default)(function () {
|
|
311125
|
+
return composeRef.apply(void 0, refs);
|
|
311126
|
+
}, refs, function (prev, next) {
|
|
311127
|
+
return prev.length === next.length && prev.every(function (ref, i) {
|
|
311128
|
+
return ref === next[i];
|
|
311129
|
+
});
|
|
311130
|
+
});
|
|
311131
|
+
}
|
|
311132
|
+
|
|
311133
|
+
function supportRef(nodeOrComponent) {
|
|
311134
|
+
var _type$prototype, _nodeOrComponent$prot;
|
|
311135
|
+
|
|
311136
|
+
var type = (0, reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
311137
|
+
|
|
311138
|
+
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
311139
|
+
return false;
|
|
311140
|
+
} // Class component
|
|
311141
|
+
|
|
311142
|
+
|
|
311143
|
+
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
311144
|
+
return false;
|
|
311145
|
+
}
|
|
311146
|
+
|
|
311147
|
+
return true;
|
|
311148
|
+
}
|
|
311149
|
+
/* eslint-enable */
|
|
311150
|
+
});
|
|
311151
|
+
|
|
311152
|
+
var useFormItemStatus$1 = function useFormItemStatus() {
|
|
311153
|
+
var _useContext = React.useContext(FormItemInputContext$1),
|
|
311154
|
+
status = _useContext.status;
|
|
311155
|
+
|
|
311156
|
+
warning$6(status !== undefined, 'Form.Item', "Form.Item.useStatus should be used under Form.Item component. For more information: ".concat(window.location.protocol, "//").concat(window.location.host, "/components/form-cn/#Form.Item.useStatus"));
|
|
311157
|
+
return {
|
|
311158
|
+
status: status
|
|
311159
|
+
};
|
|
311160
|
+
};
|
|
311161
|
+
|
|
311162
|
+
var raf_1 = createCommonjsModule(function (module, exports) {
|
|
311163
|
+
|
|
311164
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311165
|
+
value: true
|
|
311166
|
+
});
|
|
311167
|
+
exports.default = wrapperRaf;
|
|
311168
|
+
|
|
311169
|
+
var raf = function raf(callback) {
|
|
311170
|
+
return +setTimeout(callback, 16);
|
|
311171
|
+
};
|
|
311172
|
+
|
|
311173
|
+
var caf = function caf(num) {
|
|
311174
|
+
return clearTimeout(num);
|
|
311175
|
+
};
|
|
311176
|
+
|
|
311177
|
+
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
311178
|
+
raf = function raf(callback) {
|
|
311179
|
+
return window.requestAnimationFrame(callback);
|
|
311180
|
+
};
|
|
311181
|
+
|
|
311182
|
+
caf = function caf(handle) {
|
|
311183
|
+
return window.cancelAnimationFrame(handle);
|
|
311184
|
+
};
|
|
311185
|
+
}
|
|
311186
|
+
|
|
311187
|
+
var rafUUID = 0;
|
|
311188
|
+
var rafIds = new Map();
|
|
311189
|
+
|
|
311190
|
+
function cleanup(id) {
|
|
311191
|
+
rafIds.delete(id);
|
|
311192
|
+
}
|
|
311193
|
+
|
|
311194
|
+
function wrapperRaf(callback) {
|
|
311195
|
+
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
311196
|
+
rafUUID += 1;
|
|
311197
|
+
var id = rafUUID;
|
|
311198
|
+
|
|
311199
|
+
function callRef(leftTimes) {
|
|
311200
|
+
if (leftTimes === 0) {
|
|
311201
|
+
// Clean up
|
|
311202
|
+
cleanup(id); // Trigger
|
|
311203
|
+
|
|
311204
|
+
callback();
|
|
311205
|
+
} else {
|
|
311206
|
+
// Next raf
|
|
311207
|
+
var realId = raf(function () {
|
|
311208
|
+
callRef(leftTimes - 1);
|
|
311209
|
+
}); // Bind real raf id
|
|
311210
|
+
|
|
311211
|
+
rafIds.set(id, realId);
|
|
311212
|
+
}
|
|
311213
|
+
}
|
|
311214
|
+
|
|
311215
|
+
callRef(times);
|
|
311216
|
+
return id;
|
|
311217
|
+
}
|
|
311218
|
+
|
|
311219
|
+
wrapperRaf.cancel = function (id) {
|
|
311220
|
+
var realId = rafIds.get(id);
|
|
311221
|
+
cleanup(realId);
|
|
311222
|
+
return caf(realId);
|
|
311223
|
+
};
|
|
311224
|
+
});
|
|
311225
|
+
|
|
311226
|
+
var raf$1 = /*@__PURE__*/getDefaultExportFromCjs(raf_1);
|
|
311227
|
+
|
|
311228
|
+
function useFrameState$1(defaultValue) {
|
|
311229
|
+
var _React$useState = React.useState(defaultValue),
|
|
311230
|
+
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
311231
|
+
value = _React$useState2[0],
|
|
311232
|
+
setValue = _React$useState2[1];
|
|
311233
|
+
|
|
311234
|
+
var frameRef = React.useRef(null);
|
|
311235
|
+
var batchRef = React.useRef([]);
|
|
311236
|
+
var destroyRef = React.useRef(false);
|
|
311237
|
+
React.useEffect(function () {
|
|
311238
|
+
destroyRef.current = false;
|
|
311239
|
+
return function () {
|
|
311240
|
+
destroyRef.current = true;
|
|
311241
|
+
raf$1.cancel(frameRef.current);
|
|
311242
|
+
frameRef.current = null;
|
|
311243
|
+
};
|
|
311244
|
+
}, []);
|
|
311245
|
+
|
|
311246
|
+
function setFrameValue(updater) {
|
|
311247
|
+
if (destroyRef.current) {
|
|
311248
|
+
return;
|
|
311249
|
+
}
|
|
311250
|
+
|
|
311251
|
+
if (frameRef.current === null) {
|
|
311252
|
+
batchRef.current = [];
|
|
311253
|
+
frameRef.current = raf$1(function () {
|
|
311254
|
+
frameRef.current = null;
|
|
311255
|
+
setValue(function (prevValue) {
|
|
311256
|
+
var current = prevValue;
|
|
311257
|
+
batchRef.current.forEach(function (func) {
|
|
311258
|
+
current = func(current);
|
|
311259
|
+
});
|
|
311260
|
+
return current;
|
|
311261
|
+
});
|
|
311262
|
+
});
|
|
311263
|
+
}
|
|
311264
|
+
|
|
311265
|
+
batchRef.current.push(updater);
|
|
311266
|
+
}
|
|
311267
|
+
|
|
311268
|
+
return [value, setFrameValue];
|
|
311269
|
+
}
|
|
311270
|
+
|
|
311271
|
+
function useItemRef$1() {
|
|
311272
|
+
var _React$useContext = React.useContext(FormContext$2),
|
|
311273
|
+
itemRef = _React$useContext.itemRef;
|
|
311274
|
+
|
|
311275
|
+
var cacheRef = React.useRef({});
|
|
311276
|
+
|
|
311277
|
+
function getRef(name, children) {
|
|
311278
|
+
var childrenRef = children && _typeof$1(children) === 'object' && children.ref;
|
|
311279
|
+
var nameStr = name.join('_');
|
|
311280
|
+
|
|
311281
|
+
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
|
311282
|
+
cacheRef.current.name = nameStr;
|
|
311283
|
+
cacheRef.current.originRef = childrenRef;
|
|
311284
|
+
cacheRef.current.ref = ref$1.composeRef(itemRef(name), childrenRef);
|
|
311285
|
+
}
|
|
311286
|
+
|
|
311287
|
+
return cacheRef.current.ref;
|
|
311288
|
+
}
|
|
311289
|
+
|
|
311290
|
+
return getRef;
|
|
311291
|
+
}
|
|
311292
|
+
|
|
311293
|
+
var CheckCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311294
|
+
// This icon file is generated automatically.
|
|
311295
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311296
|
+
var CheckCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
|
|
311297
|
+
exports.default = CheckCircleFilled;
|
|
311298
|
+
});
|
|
311299
|
+
|
|
311300
|
+
var CheckCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311301
|
+
|
|
311302
|
+
|
|
311303
|
+
|
|
311304
|
+
|
|
311305
|
+
|
|
311306
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311307
|
+
value: true
|
|
311308
|
+
});
|
|
311309
|
+
exports.default = void 0;
|
|
311310
|
+
|
|
311311
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311312
|
+
|
|
311313
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311314
|
+
|
|
311315
|
+
var _CheckCircleFilled = interopRequireDefault(CheckCircleFilled_1);
|
|
311316
|
+
|
|
311317
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311318
|
+
|
|
311319
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311320
|
+
// DON NOT EDIT IT MANUALLY
|
|
311321
|
+
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
311322
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311323
|
+
ref: ref,
|
|
311324
|
+
icon: _CheckCircleFilled.default
|
|
311325
|
+
}));
|
|
311326
|
+
};
|
|
311327
|
+
|
|
311328
|
+
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
311329
|
+
|
|
311330
|
+
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
311331
|
+
|
|
311332
|
+
exports.default = _default;
|
|
311333
|
+
});
|
|
311334
|
+
|
|
311335
|
+
var CheckCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311336
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311337
|
+
value: true
|
|
311338
|
+
});
|
|
311339
|
+
exports.default = void 0;
|
|
311340
|
+
|
|
311341
|
+
var _CheckCircleFilled = _interopRequireDefault(CheckCircleFilled_1$1);
|
|
311342
|
+
|
|
311343
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311344
|
+
|
|
311345
|
+
var _default = _CheckCircleFilled;
|
|
311346
|
+
exports.default = _default;
|
|
311347
|
+
module.exports = _default;
|
|
311348
|
+
});
|
|
311349
|
+
|
|
311350
|
+
var CheckCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CheckCircleFilled$3);
|
|
311351
|
+
|
|
311352
|
+
var CloseCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311353
|
+
// This icon file is generated automatically.
|
|
311354
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311355
|
+
var CloseCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
311356
|
+
exports.default = CloseCircleFilled;
|
|
311357
|
+
});
|
|
311358
|
+
|
|
311359
|
+
var CloseCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311360
|
+
|
|
311361
|
+
|
|
311362
|
+
|
|
311363
|
+
|
|
311364
|
+
|
|
311365
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311366
|
+
value: true
|
|
311367
|
+
});
|
|
311368
|
+
exports.default = void 0;
|
|
311369
|
+
|
|
311370
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311371
|
+
|
|
311372
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311373
|
+
|
|
311374
|
+
var _CloseCircleFilled = interopRequireDefault(CloseCircleFilled_1);
|
|
311375
|
+
|
|
311376
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311377
|
+
|
|
311378
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311379
|
+
// DON NOT EDIT IT MANUALLY
|
|
311380
|
+
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
311381
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311382
|
+
ref: ref,
|
|
311383
|
+
icon: _CloseCircleFilled.default
|
|
311384
|
+
}));
|
|
311385
|
+
};
|
|
311386
|
+
|
|
311387
|
+
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
311388
|
+
|
|
311389
|
+
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
311390
|
+
|
|
311391
|
+
exports.default = _default;
|
|
311392
|
+
});
|
|
311393
|
+
|
|
311394
|
+
var CloseCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311395
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311396
|
+
value: true
|
|
311397
|
+
});
|
|
311398
|
+
exports.default = void 0;
|
|
311399
|
+
|
|
311400
|
+
var _CloseCircleFilled = _interopRequireDefault(CloseCircleFilled_1$1);
|
|
311401
|
+
|
|
311402
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311403
|
+
|
|
311404
|
+
var _default = _CloseCircleFilled;
|
|
311405
|
+
exports.default = _default;
|
|
311406
|
+
module.exports = _default;
|
|
311407
|
+
});
|
|
311408
|
+
|
|
311409
|
+
var CloseCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CloseCircleFilled$3);
|
|
311410
|
+
|
|
311411
|
+
var ExclamationCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311412
|
+
// This icon file is generated automatically.
|
|
311413
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311414
|
+
var ExclamationCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
|
|
311415
|
+
exports.default = ExclamationCircleFilled;
|
|
311416
|
+
});
|
|
311417
|
+
|
|
311418
|
+
var ExclamationCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311419
|
+
|
|
311420
|
+
|
|
311421
|
+
|
|
311422
|
+
|
|
311423
|
+
|
|
311424
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311425
|
+
value: true
|
|
311426
|
+
});
|
|
311427
|
+
exports.default = void 0;
|
|
311428
|
+
|
|
311429
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311430
|
+
|
|
311431
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311432
|
+
|
|
311433
|
+
var _ExclamationCircleFilled = interopRequireDefault(ExclamationCircleFilled_1);
|
|
311434
|
+
|
|
311435
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311436
|
+
|
|
311437
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311438
|
+
// DON NOT EDIT IT MANUALLY
|
|
311439
|
+
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
311440
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311441
|
+
ref: ref,
|
|
311442
|
+
icon: _ExclamationCircleFilled.default
|
|
311443
|
+
}));
|
|
311444
|
+
};
|
|
311445
|
+
|
|
311446
|
+
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
311447
|
+
|
|
311448
|
+
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
311449
|
+
|
|
311450
|
+
exports.default = _default;
|
|
311451
|
+
});
|
|
311452
|
+
|
|
311453
|
+
var ExclamationCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311454
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311455
|
+
value: true
|
|
311456
|
+
});
|
|
311457
|
+
exports.default = void 0;
|
|
311458
|
+
|
|
311459
|
+
var _ExclamationCircleFilled = _interopRequireDefault(ExclamationCircleFilled_1$1);
|
|
311460
|
+
|
|
311461
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311462
|
+
|
|
311463
|
+
var _default = _ExclamationCircleFilled;
|
|
311464
|
+
exports.default = _default;
|
|
311465
|
+
module.exports = _default;
|
|
311466
|
+
});
|
|
311467
|
+
|
|
311468
|
+
var ExclamationCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(ExclamationCircleFilled$3);
|
|
311469
|
+
|
|
311470
|
+
var LoadingOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
311471
|
+
// This icon file is generated automatically.
|
|
311472
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311473
|
+
var LoadingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
311474
|
+
exports.default = LoadingOutlined;
|
|
311475
|
+
});
|
|
311476
|
+
|
|
311477
|
+
var LoadingOutlined_1$1 = createCommonjsModule(function (module, exports) {
|
|
311478
|
+
|
|
311479
|
+
|
|
311480
|
+
|
|
311481
|
+
|
|
311482
|
+
|
|
311483
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311484
|
+
value: true
|
|
311485
|
+
});
|
|
311486
|
+
exports.default = void 0;
|
|
311487
|
+
|
|
311488
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311489
|
+
|
|
311490
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311491
|
+
|
|
311492
|
+
var _LoadingOutlined = interopRequireDefault(LoadingOutlined_1);
|
|
311493
|
+
|
|
311494
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311495
|
+
|
|
311496
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311497
|
+
// DON NOT EDIT IT MANUALLY
|
|
311498
|
+
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
311499
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311500
|
+
ref: ref,
|
|
311501
|
+
icon: _LoadingOutlined.default
|
|
311502
|
+
}));
|
|
311503
|
+
};
|
|
311504
|
+
|
|
311505
|
+
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
311506
|
+
|
|
311507
|
+
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
311508
|
+
|
|
311509
|
+
exports.default = _default;
|
|
311510
|
+
});
|
|
311511
|
+
|
|
311512
|
+
var LoadingOutlined$3 = createCommonjsModule(function (module, exports) {
|
|
311513
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311514
|
+
value: true
|
|
311515
|
+
});
|
|
311516
|
+
exports.default = void 0;
|
|
311517
|
+
|
|
311518
|
+
var _LoadingOutlined = _interopRequireDefault(LoadingOutlined_1$1);
|
|
311519
|
+
|
|
311520
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311521
|
+
|
|
311522
|
+
var _default = _LoadingOutlined;
|
|
311523
|
+
exports.default = _default;
|
|
311524
|
+
module.exports = _default;
|
|
311525
|
+
});
|
|
311526
|
+
|
|
311527
|
+
var LoadingOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(LoadingOutlined$3);
|
|
311528
|
+
|
|
311326
311529
|
var QuestionCircleOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
311327
311530
|
// This icon file is generated automatically.
|
|
311328
311531
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -311382,7 +311585,7 @@
|
|
|
311382
311585
|
|
|
311383
311586
|
var QuestionCircleOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(QuestionCircleOutlined$3);
|
|
311384
311587
|
|
|
311385
|
-
var _excluded$
|
|
311588
|
+
var _excluded$2M = ["icon"];
|
|
311386
311589
|
|
|
311387
311590
|
function toTooltipProps$1(tooltip) {
|
|
311388
311591
|
if (!tooltip) {
|
|
@@ -311443,7 +311646,7 @@
|
|
|
311443
311646
|
if (tooltipProps) {
|
|
311444
311647
|
var _tooltipProps$icon = tooltipProps.icon,
|
|
311445
311648
|
icon = _tooltipProps$icon === void 0 ? /*#__PURE__*/React.createElement(QuestionCircleOutlined$4, null) : _tooltipProps$icon,
|
|
311446
|
-
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$
|
|
311649
|
+
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$2M);
|
|
311447
311650
|
|
|
311448
311651
|
var tooltipNode = /*#__PURE__*/React.createElement(Tooltip$4, _objectSpread({}, restTooltipProps), /*#__PURE__*/React.cloneElement(icon, {
|
|
311449
311652
|
className: "".concat(prefixCls, "-item-tooltip"),
|
|
@@ -311543,7 +311746,7 @@
|
|
|
311543
311746
|
}), dom));
|
|
311544
311747
|
};
|
|
311545
311748
|
|
|
311546
|
-
var _excluded$
|
|
311749
|
+
var _excluded$2N = ["prefixCls", "className", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "isRequired", "responsive", "errorPlacement", "onSubItemMetaChange"];
|
|
311547
311750
|
var iconMap$1 = {
|
|
311548
311751
|
success: CheckCircleFilled$4,
|
|
311549
311752
|
warning: ExclamationCircleFilled$4,
|
|
@@ -311570,7 +311773,7 @@
|
|
|
311570
311773
|
_props$errorPlacement = props.errorPlacement,
|
|
311571
311774
|
errorPlacement = _props$errorPlacement === void 0 ? 'default' : _props$errorPlacement,
|
|
311572
311775
|
onSubItemMetaChange = props.onSubItemMetaChange,
|
|
311573
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
311776
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2N);
|
|
311574
311777
|
|
|
311575
311778
|
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
311576
311779
|
|
|
@@ -311636,17 +311839,8 @@
|
|
|
311636
311839
|
}, [mergedValidateStatus, hasFeedback]); // ======================== Render ========================
|
|
311637
311840
|
|
|
311638
311841
|
var itemClassName = (_itemClassName = {}, _defineProperty$1(_itemClassName, itemPrefixCls, true), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-with-help"), hasHelp || debounceErrors.length || debounceWarnings.length), _defineProperty$1(_itemClassName, "".concat(className), !!className), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-feedback"), mergedValidateStatus && hasFeedback), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-success"), mergedValidateStatus === 'success'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-warning"), mergedValidateStatus === 'warning'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-has-error"), mergedValidateStatus === 'error'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-is-validating"), mergedValidateStatus === 'validating'), _defineProperty$1(_itemClassName, "".concat(itemPrefixCls, "-hidden"), hidden), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-top', errorPlacement === 'top'), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-left', errorPlacement === 'left'), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-right', errorPlacement === 'right'), _defineProperty$1(_itemClassName, 'lm_form-item-tip-error lm_form-item-tip-error-bottom', errorPlacement === 'bottom'), _defineProperty$1(_itemClassName, 'ant-form-item-responsive', responsive), _itemClassName);
|
|
311639
|
-
var nthCls = '';
|
|
311640
|
-
|
|
311641
|
-
if (itemRef.current && itemRef.current.classList) {
|
|
311642
|
-
var list = itemRef.current.classList;
|
|
311643
|
-
if (list.contains('nth-three')) nthCls = 'nth-three';
|
|
311644
|
-
if (list.contains('nth-four')) nthCls = 'nth-four';
|
|
311645
|
-
if (list.contains('nth-five')) nthCls = 'nth-five';
|
|
311646
|
-
}
|
|
311647
|
-
|
|
311648
311842
|
return /*#__PURE__*/React.createElement("div", {
|
|
311649
|
-
className: classnames(itemClassName
|
|
311843
|
+
className: classnames(itemClassName),
|
|
311650
311844
|
style: style,
|
|
311651
311845
|
ref: itemRef
|
|
311652
311846
|
}, /*#__PURE__*/React.createElement(Row$1, _objectSpread({
|
|
@@ -311980,12 +312174,12 @@
|
|
|
311980
312174
|
var FormItem$1 = InternalFormItem$2;
|
|
311981
312175
|
FormItem$1.useStatus = useFormItemStatus$1;
|
|
311982
312176
|
|
|
311983
|
-
var _excluded$
|
|
312177
|
+
var _excluded$2O = ["prefixCls", "children"];
|
|
311984
312178
|
|
|
311985
312179
|
var FormList$1 = function FormList(_ref) {
|
|
311986
312180
|
var customizePrefixCls = _ref.prefixCls,
|
|
311987
312181
|
children = _ref.children,
|
|
311988
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312182
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2O);
|
|
311989
312183
|
|
|
311990
312184
|
warning$6(!!props.name, 'Form.List', 'Miss `name` prop.');
|
|
311991
312185
|
|
|
@@ -312020,6 +312214,26 @@
|
|
|
312020
312214
|
return form;
|
|
312021
312215
|
}
|
|
312022
312216
|
|
|
312217
|
+
function withComponent(WrappedComponent) {
|
|
312218
|
+
var WithComponent = function WithComponent(props) {
|
|
312219
|
+
return /*#__PURE__*/React__default['default'].createElement(WrappedComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
312220
|
+
with: true
|
|
312221
|
+
}));
|
|
312222
|
+
};
|
|
312223
|
+
|
|
312224
|
+
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
312225
|
+
WithComponent.displayName = "withComponent(".concat(wrappedComponentName, ")");
|
|
312226
|
+
return WithComponent;
|
|
312227
|
+
}
|
|
312228
|
+
|
|
312229
|
+
var FormWrapper = function FormWrapper(props) {
|
|
312230
|
+
return /*#__PURE__*/React__default['default'].createElement(WrapperItem, _objectSpread(_objectSpread({}, props), {}, {
|
|
312231
|
+
user: true
|
|
312232
|
+
}));
|
|
312233
|
+
};
|
|
312234
|
+
|
|
312235
|
+
var Wrapper = withComponent(FormWrapper);
|
|
312236
|
+
|
|
312023
312237
|
var Form$4 = Form$3;
|
|
312024
312238
|
Form$4.Item = FormItem$1;
|
|
312025
312239
|
Form$4.List = FormList$1;
|
|
@@ -312033,6 +312247,8 @@
|
|
|
312033
312247
|
warning$6(false, 'Form', 'antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.');
|
|
312034
312248
|
};
|
|
312035
312249
|
|
|
312250
|
+
Form$4.Wrapper = Wrapper;
|
|
312251
|
+
|
|
312036
312252
|
var DndContainer$1 = function DndContainer(_ref) {
|
|
312037
312253
|
var children = _ref.children,
|
|
312038
312254
|
move = _ref.move;
|
|
@@ -312174,12 +312390,12 @@
|
|
|
312174
312390
|
}, tableProps)));
|
|
312175
312391
|
});
|
|
312176
312392
|
|
|
312177
|
-
var _excluded$
|
|
312393
|
+
var _excluded$2P = ["children"];
|
|
312178
312394
|
var VirtualWrapper$1 = /*#__PURE__*/React__default['default'].memo(function (wrapperProps) {
|
|
312179
312395
|
var _virtualItems$, _virtualItems;
|
|
312180
312396
|
|
|
312181
312397
|
var children = wrapperProps.children,
|
|
312182
|
-
resetProps = _objectWithoutProperties$1(wrapperProps, _excluded$
|
|
312398
|
+
resetProps = _objectWithoutProperties$1(wrapperProps, _excluded$2P);
|
|
312183
312399
|
|
|
312184
312400
|
var _useStore = useStore$1(),
|
|
312185
312401
|
state = _useStore.state,
|
|
@@ -312220,10 +312436,10 @@
|
|
|
312220
312436
|
})));
|
|
312221
312437
|
});
|
|
312222
312438
|
|
|
312223
|
-
var _excluded$
|
|
312439
|
+
var _excluded$2Q = ["children"];
|
|
312224
312440
|
var VirtualRow$1 = /*#__PURE__*/React__default['default'].memo(function (_ref, ref) {
|
|
312225
312441
|
var children = _ref.children,
|
|
312226
|
-
resetProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
312442
|
+
resetProps = _objectWithoutProperties$1(_ref, _excluded$2Q);
|
|
312227
312443
|
|
|
312228
312444
|
var _useStore = useStore$1(),
|
|
312229
312445
|
state = _useStore.state,
|
|
@@ -312268,14 +312484,14 @@
|
|
|
312268
312484
|
}), children);
|
|
312269
312485
|
});
|
|
312270
312486
|
|
|
312271
|
-
var _excluded$
|
|
312487
|
+
var _excluded$2R = ["data-row-key", "children", "className", "virtual"];
|
|
312272
312488
|
|
|
312273
312489
|
var SortableItem$1 = function SortableItem(props) {
|
|
312274
312490
|
var key = props['data-row-key'],
|
|
312275
312491
|
children = props.children,
|
|
312276
312492
|
className = props.className,
|
|
312277
312493
|
virtual = props.virtual,
|
|
312278
|
-
resetField = _objectWithoutProperties$1(props, _excluded$
|
|
312494
|
+
resetField = _objectWithoutProperties$1(props, _excluded$2R);
|
|
312279
312495
|
|
|
312280
312496
|
var _useSortable = useSortable({
|
|
312281
312497
|
id: key
|
|
@@ -312307,16 +312523,17 @@
|
|
|
312307
312523
|
|
|
312308
312524
|
var SortableItem$2 = /*#__PURE__*/React.memo(SortableItem$1);
|
|
312309
312525
|
|
|
312310
|
-
var _excluded$
|
|
312526
|
+
var _excluded$2S = ["children"];
|
|
312311
312527
|
var Item$5 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
312312
|
-
var _children$props;
|
|
312313
|
-
|
|
312314
312528
|
var children = _ref.children,
|
|
312315
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312529
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2S);
|
|
312316
312530
|
|
|
312317
|
-
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread({}, props), {}, {
|
|
312531
|
+
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread(_objectSpread({}, props), children.props), {}, {
|
|
312318
312532
|
ref: ref
|
|
312319
|
-
})
|
|
312533
|
+
})); // <th {...props} ref={ref as any}>
|
|
312534
|
+
// {/* {(children as any)?.props?.children || children} */}
|
|
312535
|
+
// { children }
|
|
312536
|
+
// </th>
|
|
312320
312537
|
});
|
|
312321
312538
|
function SortableItem$3(props) {
|
|
312322
312539
|
var _useSortable = useSortable({
|
|
@@ -312330,7 +312547,9 @@
|
|
|
312330
312547
|
|
|
312331
312548
|
var style = {
|
|
312332
312549
|
position: 'relative',
|
|
312333
|
-
transform: CSS.Translate.toString(transform),
|
|
312550
|
+
transform: CSS.Translate.toString(transform ? _objectSpread(_objectSpread({}, transform), {}, {
|
|
312551
|
+
y: 0
|
|
312552
|
+
}) : transform),
|
|
312334
312553
|
transition: transition,
|
|
312335
312554
|
touchAction: 'none',
|
|
312336
312555
|
height: '40px',
|
|
@@ -312416,7 +312635,7 @@
|
|
|
312416
312635
|
|
|
312417
312636
|
return _objectSpread(_objectSpread({}, v), {}, _defineProperty$1({}, rowKey, v[rowKey] || "v".concat(idx + 1)));
|
|
312418
312637
|
});
|
|
312419
|
-
return res;
|
|
312638
|
+
return res || [];
|
|
312420
312639
|
}
|
|
312421
312640
|
function getExpandStatus(children) {
|
|
312422
312641
|
var _children$2, _children$2$props, _children$2$props$chi, _children$2$props$chi2, _children$2$props$chi3;
|
|
@@ -312485,13 +312704,13 @@
|
|
|
312485
312704
|
}, children);
|
|
312486
312705
|
};
|
|
312487
312706
|
|
|
312488
|
-
var _excluded$
|
|
312707
|
+
var _excluded$2T = ["keys", "onSortEnd", "virtual"];
|
|
312489
312708
|
|
|
312490
312709
|
var DraggableContainer = function DraggableContainer(_ref) {
|
|
312491
312710
|
var keys = _ref.keys,
|
|
312492
312711
|
onSortEnd = _ref.onSortEnd,
|
|
312493
312712
|
virtual = _ref.virtual,
|
|
312494
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312713
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2T);
|
|
312495
312714
|
|
|
312496
312715
|
return /*#__PURE__*/React__default['default'].createElement(DndContainer$2, {
|
|
312497
312716
|
move: onSortEnd
|
|
@@ -312500,7 +312719,7 @@
|
|
|
312500
312719
|
}, virtual ? /*#__PURE__*/React__default['default'].createElement(VirtualWrapper$1, _objectSpread({}, props)) : /*#__PURE__*/React__default['default'].createElement("tbody", _objectSpread({}, props))));
|
|
312501
312720
|
};
|
|
312502
312721
|
|
|
312503
|
-
var _excluded$
|
|
312722
|
+
var _excluded$2U = ["index", "virtual"],
|
|
312504
312723
|
_excluded2$I = ["index"],
|
|
312505
312724
|
_excluded3$b = ["value", "onChange", "record", "rowIndex", "colIndex", "validator"],
|
|
312506
312725
|
_excluded4$1 = ["record", "rowKey", "isEdit", "col", "rowIndex", "colIndex", "handleTableRowDelete", "handleTableRowAdd", "quickOpetateClearAll", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
@@ -312512,7 +312731,7 @@
|
|
|
312512
312731
|
var EditableRow$1 = function EditableRow(_ref) {
|
|
312513
312732
|
var index = _ref.index,
|
|
312514
312733
|
virtual = _ref.virtual,
|
|
312515
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312734
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2U);
|
|
312516
312735
|
|
|
312517
312736
|
var _Form$useForm = Form$4.useForm(),
|
|
312518
312737
|
_Form$useForm2 = _slicedToArray$1(_Form$useForm, 1),
|
|
@@ -313523,7 +313742,7 @@
|
|
|
313523
313742
|
/** 组装之后的最终columns */
|
|
313524
313743
|
|
|
313525
313744
|
var resultColumns = React.useMemo(function () {
|
|
313526
|
-
var _localColumns;
|
|
313745
|
+
var _localColumns, _localColumns2, _localColumns3;
|
|
313527
313746
|
|
|
313528
313747
|
var rColumns = hasDisableOptions ? DisableOptions : columns;
|
|
313529
313748
|
var localColumns = [sortOpen ? {
|
|
@@ -313569,7 +313788,7 @@
|
|
|
313569
313788
|
} : null]).filter(function (item) {
|
|
313570
313789
|
return item;
|
|
313571
313790
|
});
|
|
313572
|
-
localColumns = localColumns.map(function (item, index) {
|
|
313791
|
+
localColumns = (_localColumns = localColumns) === null || _localColumns === void 0 ? void 0 : _localColumns.map(function (item, index) {
|
|
313573
313792
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
313574
313793
|
order: [null, undefined].includes(item.order) ? index : item.order
|
|
313575
313794
|
});
|
|
@@ -313579,7 +313798,7 @@
|
|
|
313579
313798
|
var leftColumns = [];
|
|
313580
313799
|
var mainColumns = [];
|
|
313581
313800
|
var rightColumns = [];
|
|
313582
|
-
(
|
|
313801
|
+
(_localColumns2 = localColumns) === null || _localColumns2 === void 0 ? void 0 : _localColumns2.forEach(function (item) {
|
|
313583
313802
|
if ((item === null || item === void 0 ? void 0 : item.fixed) === 'left') {
|
|
313584
313803
|
leftColumns.push(item);
|
|
313585
313804
|
} else if ((item === null || item === void 0 ? void 0 : item.fixed) === 'right') {
|
|
@@ -313643,7 +313862,7 @@
|
|
|
313643
313862
|
return newCol;
|
|
313644
313863
|
};
|
|
313645
313864
|
|
|
313646
|
-
var res = localColumns.map(function (col, index) {
|
|
313865
|
+
var res = (_localColumns3 = localColumns) === null || _localColumns3 === void 0 ? void 0 : _localColumns3.map(function (col, index) {
|
|
313647
313866
|
return mapColumns(col, index);
|
|
313648
313867
|
});
|
|
313649
313868
|
return res;
|
|
@@ -313750,7 +313969,7 @@
|
|
|
313750
313969
|
fixed: true,
|
|
313751
313970
|
type: 'checkbox',
|
|
313752
313971
|
columnWidth: 36,
|
|
313753
|
-
selectedRowKeys: localRowSelectList.map(function (v) {
|
|
313972
|
+
selectedRowKeys: localRowSelectList === null || localRowSelectList === void 0 ? void 0 : localRowSelectList.map(function (v) {
|
|
313754
313973
|
return v[_rowKey];
|
|
313755
313974
|
}),
|
|
313756
313975
|
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
@@ -313833,7 +314052,7 @@
|
|
|
313833
314052
|
return targetElement;
|
|
313834
314053
|
}
|
|
313835
314054
|
|
|
313836
|
-
var prefixCls$
|
|
314055
|
+
var prefixCls$a = 'lm_quick_menu';
|
|
313837
314056
|
|
|
313838
314057
|
var LMQuickMenu = function LMQuickMenu(props) {
|
|
313839
314058
|
var className = props.className,
|
|
@@ -313860,6 +314079,11 @@
|
|
|
313860
314079
|
var scroll = useScroll(getTargetElement$1(warpElement || document), function () {
|
|
313861
314080
|
return scrollOpenStatus;
|
|
313862
314081
|
});
|
|
314082
|
+
var filterMenuData = React.useMemo(function () {
|
|
314083
|
+
return menuData === null || menuData === void 0 ? void 0 : menuData.filter(function (item) {
|
|
314084
|
+
return item.hidden !== true;
|
|
314085
|
+
});
|
|
314086
|
+
}, [menuData]);
|
|
313863
314087
|
|
|
313864
314088
|
function clearActiveToc() {
|
|
313865
314089
|
[].forEach.call(document.querySelectorAll('.lm_menu_list li a'), function (node) {
|
|
@@ -313885,7 +314109,7 @@
|
|
|
313885
314109
|
(_menuTimeEventRef$cur = menuTimeEventRef.current) === null || _menuTimeEventRef$cur === void 0 ? void 0 : _menuTimeEventRef$cur.destroy();
|
|
313886
314110
|
}
|
|
313887
314111
|
|
|
313888
|
-
if (!
|
|
314112
|
+
if (!filterMenuData.length) {
|
|
313889
314113
|
return;
|
|
313890
314114
|
} // eslint-disable-next-line global-require
|
|
313891
314115
|
|
|
@@ -313897,11 +314121,10 @@
|
|
|
313897
314121
|
|
|
313898
314122
|
menuTimeEventRef.current = scrollama();
|
|
313899
314123
|
(_menuTimeEventRef$cur2 = menuTimeEventRef.current) === null || _menuTimeEventRef$cur2 === void 0 ? void 0 : (_menuTimeEventRef$cur3 = _menuTimeEventRef$cur2.setup({
|
|
313900
|
-
step:
|
|
314124
|
+
step: filterMenuData.map(function (item) {
|
|
313901
314125
|
return document.getElementById("".concat(item.menuId));
|
|
313902
|
-
}).filter(Boolean)
|
|
313903
|
-
|
|
313904
|
-
|
|
314126
|
+
}).filter(Boolean),
|
|
314127
|
+
container: getTargetElement$1(warpElement || document)
|
|
313905
314128
|
})) === null || _menuTimeEventRef$cur3 === void 0 ? void 0 : _menuTimeEventRef$cur3.onStepEnter(function (_ref) {
|
|
313906
314129
|
var element = _ref.element;
|
|
313907
314130
|
updateActiveToc(element.id);
|
|
@@ -313909,7 +314132,7 @@
|
|
|
313909
314132
|
};
|
|
313910
314133
|
|
|
313911
314134
|
function setKeysDom() {
|
|
313912
|
-
|
|
314135
|
+
filterMenuData.forEach(function (item) {
|
|
313913
314136
|
var _getTargetElement, _document$getElementB;
|
|
313914
314137
|
|
|
313915
314138
|
var warpTop = ((_getTargetElement = getTargetElement$1(warpElement || document)) === null || _getTargetElement === void 0 ? void 0 : _getTargetElement.offsetTop) || 0;
|
|
@@ -313967,7 +314190,7 @@
|
|
|
313967
314190
|
};
|
|
313968
314191
|
}, []);
|
|
313969
314192
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
313970
|
-
className: classnames(prefixCls$
|
|
314193
|
+
className: classnames(prefixCls$a),
|
|
313971
314194
|
onMouseEnter: function onMouseEnter() {
|
|
313972
314195
|
if (scrollTimeOut.current) {
|
|
313973
314196
|
clearTimeout(scrollTimeOut.current);
|
|
@@ -313987,7 +314210,7 @@
|
|
|
313987
314210
|
})
|
|
313988
314211
|
}), /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
313989
314212
|
className: classnames('lm_menu_list', hovering && 'show', className)
|
|
313990
|
-
},
|
|
314213
|
+
}, filterMenuData.map(function (item) {
|
|
313991
314214
|
return /*#__PURE__*/React__default['default'].createElement("li", {
|
|
313992
314215
|
key: item.menuId,
|
|
313993
314216
|
onClick: function onClick() {
|
|
@@ -314481,7 +314704,7 @@
|
|
|
314481
314704
|
}
|
|
314482
314705
|
}
|
|
314483
314706
|
|
|
314484
|
-
var _excluded$
|
|
314707
|
+
var _excluded$2V = ["prefixCls", "getPopupContainer", "className", "placement", "size", "disabled", "bordered", "placeholder", "status"];
|
|
314485
314708
|
function generateRangePicker$1(generateConfig) {
|
|
314486
314709
|
var RangePicker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
314487
314710
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -314494,7 +314717,7 @@
|
|
|
314494
314717
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
314495
314718
|
placeholder = props.placeholder,
|
|
314496
314719
|
customStatus = props.status,
|
|
314497
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314720
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2V);
|
|
314498
314721
|
|
|
314499
314722
|
var innerRef = React.useRef(null);
|
|
314500
314723
|
|
|
@@ -314594,7 +314817,7 @@
|
|
|
314594
314817
|
return RangePicker$1;
|
|
314595
314818
|
}
|
|
314596
314819
|
|
|
314597
|
-
var _excluded$
|
|
314820
|
+
var _excluded$2W = ["prefixCls", "getPopupContainer", "className", "size", "bordered", "placement", "placeholder", "disabled", "status"];
|
|
314598
314821
|
function generatePicker$2(generateConfig) {
|
|
314599
314822
|
function getPicker(picker, displayName) {
|
|
314600
314823
|
var Picker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -314608,7 +314831,7 @@
|
|
|
314608
314831
|
placeholder = props.placeholder,
|
|
314609
314832
|
customDisabled = props.disabled,
|
|
314610
314833
|
customStatus = props.status,
|
|
314611
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314834
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2W);
|
|
314612
314835
|
|
|
314613
314836
|
warning$6(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
|
|
314614
314837
|
|
|
@@ -314830,13 +315053,13 @@
|
|
|
314830
315053
|
return propValue;
|
|
314831
315054
|
};
|
|
314832
315055
|
|
|
314833
|
-
var _excluded$
|
|
315056
|
+
var _excluded$2X = ["prefixCls", "title", "content", "_overlay"];
|
|
314834
315057
|
var Popover$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
314835
315058
|
var customizePrefixCls = _ref.prefixCls,
|
|
314836
315059
|
title = _ref.title,
|
|
314837
315060
|
content = _ref.content,
|
|
314838
315061
|
_overlay = _ref._overlay,
|
|
314839
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
315062
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$2X);
|
|
314840
315063
|
|
|
314841
315064
|
var _React$useContext = React.useContext(ConfigContext),
|
|
314842
315065
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -315685,7 +315908,7 @@
|
|
|
315685
315908
|
|
|
315686
315909
|
var KeyCode$1 = /*@__PURE__*/getDefaultExportFromCjs(KeyCode_1);
|
|
315687
315910
|
|
|
315688
|
-
var _excluded$
|
|
315911
|
+
var _excluded$2Y = ["style", "noStyle", "disabled"];
|
|
315689
315912
|
var inlineStyle$1 = {
|
|
315690
315913
|
border: 0,
|
|
315691
315914
|
background: 'transparent',
|
|
@@ -315714,7 +315937,7 @@
|
|
|
315714
315937
|
var style = props.style,
|
|
315715
315938
|
noStyle = props.noStyle,
|
|
315716
315939
|
disabled = props.disabled,
|
|
315717
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
315940
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2Y);
|
|
315718
315941
|
|
|
315719
315942
|
var mergedStyle = {};
|
|
315720
315943
|
|
|
@@ -315925,7 +316148,7 @@
|
|
|
315925
316148
|
}, conditions);
|
|
315926
316149
|
});
|
|
315927
316150
|
|
|
315928
|
-
var _excluded$
|
|
316151
|
+
var _excluded$2Z = ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"];
|
|
315929
316152
|
|
|
315930
316153
|
var Typography$2 = function Typography(_ref, ref) {
|
|
315931
316154
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -315935,7 +316158,7 @@
|
|
|
315935
316158
|
ariaLabel = _ref['aria-label'],
|
|
315936
316159
|
setContentRef = _ref.setContentRef,
|
|
315937
316160
|
children = _ref.children,
|
|
315938
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316161
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2Z);
|
|
315939
316162
|
|
|
315940
316163
|
var _React$useContext = React.useContext(ConfigContext),
|
|
315941
316164
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -316178,7 +316401,7 @@
|
|
|
316178
316401
|
EllipsisTooltip$1.displayName = 'EllipsisTooltip';
|
|
316179
316402
|
}
|
|
316180
316403
|
|
|
316181
|
-
var _excluded$
|
|
316404
|
+
var _excluded$2_ = ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"];
|
|
316182
316405
|
|
|
316183
316406
|
function wrapperDecorations$1(_ref, content) {
|
|
316184
316407
|
var mark = _ref.mark,
|
|
@@ -316230,7 +316453,7 @@
|
|
|
316230
316453
|
copyable = props.copyable,
|
|
316231
316454
|
component = props.component,
|
|
316232
316455
|
title = props.title,
|
|
316233
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316456
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2_);
|
|
316234
316457
|
|
|
316235
316458
|
var _React$useContext = React.useContext(ConfigContext),
|
|
316236
316459
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -316648,12 +316871,12 @@
|
|
|
316648
316871
|
});
|
|
316649
316872
|
});
|
|
316650
316873
|
|
|
316651
|
-
var _excluded$
|
|
316874
|
+
var _excluded$2$ = ["ellipsis", "rel"];
|
|
316652
316875
|
|
|
316653
316876
|
var Link$2 = function Link(_ref, ref) {
|
|
316654
316877
|
var ellipsis = _ref.ellipsis,
|
|
316655
316878
|
rel = _ref.rel,
|
|
316656
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316879
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2$);
|
|
316657
316880
|
|
|
316658
316881
|
warning$6(_typeof$1(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
|
|
316659
316882
|
var baseRef = React.useRef(null);
|
|
@@ -316687,11 +316910,11 @@
|
|
|
316687
316910
|
|
|
316688
316911
|
var Paragraph$7 = /*#__PURE__*/React.forwardRef(Paragraph$6);
|
|
316689
316912
|
|
|
316690
|
-
var _excluded$
|
|
316913
|
+
var _excluded$30 = ["ellipsis"];
|
|
316691
316914
|
|
|
316692
316915
|
var Text$2 = function Text(_ref, ref) {
|
|
316693
316916
|
var ellipsis = _ref.ellipsis,
|
|
316694
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316917
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$30);
|
|
316695
316918
|
|
|
316696
316919
|
var mergedEllipsis = React.useMemo(function () {
|
|
316697
316920
|
if (ellipsis && _typeof$1(ellipsis) === 'object') {
|
|
@@ -316711,13 +316934,13 @@
|
|
|
316711
316934
|
|
|
316712
316935
|
var Text$3 = /*#__PURE__*/React.forwardRef(Text$2);
|
|
316713
316936
|
|
|
316714
|
-
var _excluded$
|
|
316937
|
+
var _excluded$31 = ["level"];
|
|
316715
316938
|
var TITLE_ELE_LIST$1 = tupleNum$1(1, 2, 3, 4, 5);
|
|
316716
316939
|
|
|
316717
|
-
var Title$
|
|
316940
|
+
var Title$4 = function Title(props, ref) {
|
|
316718
316941
|
var _props$level = props.level,
|
|
316719
316942
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
316720
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316943
|
+
restProps = _objectWithoutProperties$1(props, _excluded$31);
|
|
316721
316944
|
|
|
316722
316945
|
var component;
|
|
316723
316946
|
|
|
@@ -316735,12 +316958,12 @@
|
|
|
316735
316958
|
}));
|
|
316736
316959
|
};
|
|
316737
316960
|
|
|
316738
|
-
var Title$
|
|
316961
|
+
var Title$5 = /*#__PURE__*/React.forwardRef(Title$4);
|
|
316739
316962
|
|
|
316740
316963
|
var Typography$3 = ExportTypography$1;
|
|
316741
316964
|
Typography$3.Text = Text$3;
|
|
316742
316965
|
Typography$3.Link = Link$3;
|
|
316743
|
-
Typography$3.Title = Title$
|
|
316966
|
+
Typography$3.Title = Title$5;
|
|
316744
316967
|
Typography$3.Paragraph = Paragraph$7;
|
|
316745
316968
|
Typography$3.AntdTypography = Typography$1;
|
|
316746
316969
|
|
|
@@ -316822,14 +317045,22 @@
|
|
|
316822
317045
|
RefAutoComplete$1.Option = Option;
|
|
316823
317046
|
RefAutoComplete$1.AntdAutoComplete = RefAutoComplete;
|
|
316824
317047
|
|
|
316825
|
-
var _excluded$
|
|
317048
|
+
var _excluded$32 = ["children", "treeData", "value", "defaultLabel", "disabled", "size"];
|
|
316826
317049
|
var CLMTreeSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
316827
317050
|
var children = props.children,
|
|
316828
317051
|
treeData = props.treeData,
|
|
316829
317052
|
value = props.value,
|
|
316830
317053
|
defaultLabel = props.defaultLabel,
|
|
316831
|
-
|
|
317054
|
+
customDisabled = props.disabled,
|
|
317055
|
+
customizeSize = props.size,
|
|
317056
|
+
resetProps = _objectWithoutProperties$1(props, _excluded$32); // ===================== Disabled =====================
|
|
317057
|
+
|
|
317058
|
+
|
|
317059
|
+
var disabled = React__default['default'].useContext(DisabledContext$1);
|
|
317060
|
+
var mergedDisabled = customDisabled || disabled; // ===================== size =====================
|
|
316832
317061
|
|
|
317062
|
+
var size = React__default['default'].useContext(SizeContext$1);
|
|
317063
|
+
var mergeSize = customizeSize || size;
|
|
316833
317064
|
var deepChildren = React.useCallback(function (arr) {
|
|
316834
317065
|
var flag = false;
|
|
316835
317066
|
React__default['default'].Children.forEach(arr, function (child) {
|
|
@@ -316876,7 +317107,10 @@
|
|
|
316876
317107
|
}, [value, hasOption]);
|
|
316877
317108
|
return /*#__PURE__*/React__default['default'].createElement(TreeSelect$1, _objectSpread({
|
|
316878
317109
|
ref: ref,
|
|
316879
|
-
|
|
317110
|
+
className: 'lm_tree_select',
|
|
317111
|
+
value: resetValue,
|
|
317112
|
+
size: mergeSize,
|
|
317113
|
+
disabled: mergedDisabled
|
|
316880
317114
|
}, resetProps), children);
|
|
316881
317115
|
});
|
|
316882
317116
|
var LMTreeSelect = CLMTreeSelect;
|
|
@@ -316953,7 +317187,7 @@
|
|
|
316953
317187
|
return ErrorBoundary;
|
|
316954
317188
|
}(React.Component);
|
|
316955
317189
|
|
|
316956
|
-
var _excluded$
|
|
317190
|
+
var _excluded$33 = ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "duration"];
|
|
316957
317191
|
var iconMapFilled$1 = {
|
|
316958
317192
|
success: CheckCircleFilled$2,
|
|
316959
317193
|
info: InfoCircleFilled$2,
|
|
@@ -317026,7 +317260,7 @@
|
|
|
317026
317260
|
closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined$2, null) : _ref$closeIcon,
|
|
317027
317261
|
action = _ref.action,
|
|
317028
317262
|
duration = _ref.duration,
|
|
317029
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
317263
|
+
props = _objectWithoutProperties$1(_ref, _excluded$33);
|
|
317030
317264
|
|
|
317031
317265
|
var _React$useState = React.useState(false),
|
|
317032
317266
|
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
@@ -317456,8 +317690,8 @@
|
|
|
317456
317690
|
};
|
|
317457
317691
|
};
|
|
317458
317692
|
|
|
317459
|
-
var _excluded$
|
|
317460
|
-
var prefixCls$
|
|
317693
|
+
var _excluded$34 = ["className", "onUrge", "onDeleteComment"];
|
|
317694
|
+
var prefixCls$b = 'lm_approval';
|
|
317461
317695
|
var colors = ['#36BCF1', '#AE86DC', '#8BD248', '#F5A173'];
|
|
317462
317696
|
var cacheColorMap = new Map();
|
|
317463
317697
|
|
|
@@ -317495,8 +317729,8 @@
|
|
|
317495
317729
|
_props$onAgree = props.onAgree,
|
|
317496
317730
|
onAgree = _props$onAgree === void 0 ? function () {} : _props$onAgree;
|
|
317497
317731
|
var status = getStatus(steps);
|
|
317498
|
-
var currentStatusCls = classnames(prefixCls$
|
|
317499
|
-
var drawerCls = classnames(prefixCls$
|
|
317732
|
+
var currentStatusCls = classnames(prefixCls$b + '_title_status');
|
|
317733
|
+
var drawerCls = classnames(prefixCls$b + '_drawer');
|
|
317500
317734
|
var statusText = ApprovalType.toText(ApprovalType.APPROVAL, status);
|
|
317501
317735
|
|
|
317502
317736
|
var handleClose = function handleClose() {
|
|
@@ -317563,7 +317797,7 @@
|
|
|
317563
317797
|
_user = props._user,
|
|
317564
317798
|
onUrge = props.onUrge,
|
|
317565
317799
|
onDeleteComment = props.onDeleteComment;
|
|
317566
|
-
var itemCls = classnames(prefixCls$
|
|
317800
|
+
var itemCls = classnames(prefixCls$b + '_item');
|
|
317567
317801
|
var itemHeaderCls = classnames(itemCls + '_header');
|
|
317568
317802
|
var itemBodyCls = classnames(itemCls + '_body', ApprovalType.isPending(type, approvalStatus) ? 'small' : '');
|
|
317569
317803
|
|
|
@@ -317864,7 +318098,7 @@
|
|
|
317864
318098
|
onUrge = _props$onUrge === void 0 ? function () {} : _props$onUrge,
|
|
317865
318099
|
_props$onDeleteCommen2 = props.onDeleteComment,
|
|
317866
318100
|
onDeleteComment = _props$onDeleteCommen2 === void 0 ? function () {} : _props$onDeleteCommen2,
|
|
317867
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
318101
|
+
others = _objectWithoutProperties$1(props, _excluded$34);
|
|
317868
318102
|
|
|
317869
318103
|
var _useState = React.useState(false),
|
|
317870
318104
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -317889,7 +318123,7 @@
|
|
|
317889
318123
|
};
|
|
317890
318124
|
|
|
317891
318125
|
return /*#__PURE__*/React__default['default'].createElement(LMDrawer$1, _objectSpread({
|
|
317892
|
-
className: classnames(className, prefixCls$
|
|
318126
|
+
className: classnames(className, prefixCls$b)
|
|
317893
318127
|
}, others), /*#__PURE__*/React__default['default'].createElement(Approval, _objectSpread(_objectSpread({}, others), {}, {
|
|
317894
318128
|
onUrge: _onUrge,
|
|
317895
318129
|
onDeleteComment: onDeleteComment,
|
|
@@ -319655,9 +319889,9 @@
|
|
|
319655
319889
|
return nodes;
|
|
319656
319890
|
}
|
|
319657
319891
|
|
|
319658
|
-
var _excluded$
|
|
319892
|
+
var _excluded$35 = ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"],
|
|
319659
319893
|
_excluded2$J = ["prefixCls", "className"];
|
|
319660
|
-
var ConfigContext$
|
|
319894
|
+
var ConfigContext$7 = ConfigProvider$1.ConfigContext;
|
|
319661
319895
|
|
|
319662
319896
|
function getIcon$1(props) {
|
|
319663
319897
|
var isLeaf = props.isLeaf,
|
|
@@ -319680,7 +319914,7 @@
|
|
|
319680
319914
|
var defaultExpandAll = _ref2.defaultExpandAll,
|
|
319681
319915
|
defaultExpandParent = _ref2.defaultExpandParent,
|
|
319682
319916
|
defaultExpandedKeys = _ref2.defaultExpandedKeys,
|
|
319683
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
319917
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$35);
|
|
319684
319918
|
|
|
319685
319919
|
// Shift click usage
|
|
319686
319920
|
var lastSelectedKey = React.useRef();
|
|
@@ -319791,7 +320025,7 @@
|
|
|
319791
320025
|
}
|
|
319792
320026
|
};
|
|
319793
320027
|
|
|
319794
|
-
var _React$useContext = React.useContext(ConfigContext$
|
|
320028
|
+
var _React$useContext = React.useContext(ConfigContext$7),
|
|
319795
320029
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
319796
320030
|
direction = _React$useContext.direction;
|
|
319797
320031
|
|
|
@@ -320098,11 +320332,11 @@
|
|
|
320098
320332
|
});
|
|
320099
320333
|
}
|
|
320100
320334
|
|
|
320101
|
-
var ConfigContext$
|
|
320335
|
+
var ConfigContext$8 = ConfigProvider$1.ConfigContext;
|
|
320102
320336
|
var Tree$2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
320103
320337
|
var _classNames;
|
|
320104
320338
|
|
|
320105
|
-
var _React$useContext = React.useContext(ConfigContext$
|
|
320339
|
+
var _React$useContext = React.useContext(ConfigContext$8),
|
|
320106
320340
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
320107
320341
|
direction = _React$useContext.direction,
|
|
320108
320342
|
virtual = _React$useContext.virtual;
|
|
@@ -320178,16 +320412,16 @@
|
|
|
320178
320412
|
blockNode: false
|
|
320179
320413
|
};
|
|
320180
320414
|
|
|
320181
|
-
var _excluded$
|
|
320182
|
-
var prefixCls$
|
|
320415
|
+
var _excluded$36 = ["className"];
|
|
320416
|
+
var prefixCls$c = 'lm_tree';
|
|
320183
320417
|
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
320184
320418
|
var className = props.className,
|
|
320185
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
320419
|
+
rest = _objectWithoutProperties$1(props, _excluded$36);
|
|
320186
320420
|
|
|
320187
320421
|
return /*#__PURE__*/React__default['default'].createElement(Tree$2, _objectSpread(_objectSpread({
|
|
320188
320422
|
ref: ref
|
|
320189
320423
|
}, rest), {}, {
|
|
320190
|
-
className: classnames(prefixCls$
|
|
320424
|
+
className: classnames(prefixCls$c, className)
|
|
320191
320425
|
}));
|
|
320192
320426
|
});
|
|
320193
320427
|
LmTree.TreeNode = Tree$2.TreeNode;
|
|
@@ -321241,7 +321475,7 @@
|
|
|
321241
321475
|
}, unitNodes);
|
|
321242
321476
|
}
|
|
321243
321477
|
|
|
321244
|
-
var _excluded$
|
|
321478
|
+
var _excluded$37 = ["prefixCls", "count", "className", "motionClassName", "style", "title", "show", "component", "children"];
|
|
321245
321479
|
|
|
321246
321480
|
var ScrollNumber$1 = function ScrollNumber(_ref) {
|
|
321247
321481
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -321254,7 +321488,7 @@
|
|
|
321254
321488
|
_ref$component = _ref.component,
|
|
321255
321489
|
component = _ref$component === void 0 ? 'sup' : _ref$component,
|
|
321256
321490
|
children = _ref.children,
|
|
321257
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321491
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$37);
|
|
321258
321492
|
|
|
321259
321493
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
321260
321494
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -321304,7 +321538,7 @@
|
|
|
321304
321538
|
return /*#__PURE__*/React.createElement(component, newProps, numberNodes);
|
|
321305
321539
|
};
|
|
321306
321540
|
|
|
321307
|
-
var _excluded$
|
|
321541
|
+
var _excluded$38 = ["prefixCls", "scrollNumberPrefixCls", "children", "status", "text", "color", "count", "overflowCount", "dot", "size", "title", "offset", "style", "className", "showZero"];
|
|
321308
321542
|
|
|
321309
321543
|
var Badge$1 = function Badge(_ref) {
|
|
321310
321544
|
var _classNames, _classNames2;
|
|
@@ -321329,7 +321563,7 @@
|
|
|
321329
321563
|
className = _ref.className,
|
|
321330
321564
|
_ref$showZero = _ref.showZero,
|
|
321331
321565
|
showZero = _ref$showZero === void 0 ? false : _ref$showZero,
|
|
321332
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321566
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$38);
|
|
321333
321567
|
|
|
321334
321568
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
321335
321569
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -321464,7 +321698,7 @@
|
|
|
321464
321698
|
|
|
321465
321699
|
Badge$1.Ribbon = Ribbon$1;
|
|
321466
321700
|
|
|
321467
|
-
var _excluded$
|
|
321701
|
+
var _excluded$39 = ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"];
|
|
321468
321702
|
|
|
321469
321703
|
var Divider$5 = function Divider(props) {
|
|
321470
321704
|
var _classNames;
|
|
@@ -321483,7 +321717,7 @@
|
|
|
321483
321717
|
children = props.children,
|
|
321484
321718
|
dashed = props.dashed,
|
|
321485
321719
|
plain = props.plain,
|
|
321486
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
321720
|
+
restProps = _objectWithoutProperties$1(props, _excluded$39);
|
|
321487
321721
|
|
|
321488
321722
|
var prefixCls = getPrefixCls('divider', customizePrefixCls);
|
|
321489
321723
|
var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
|
|
@@ -321794,9 +322028,9 @@
|
|
|
321794
322028
|
value: contextValue
|
|
321795
322029
|
}, /*#__PURE__*/React.createElement("div", {
|
|
321796
322030
|
className: classnames(prefixCls, (_classNames = {}, _defineProperty$1(_classNames, "".concat(prefixCls, "-").concat(size), size && size !== 'default'), _defineProperty$1(_classNames, "".concat(prefixCls, "-bordered"), !!bordered), _defineProperty$1(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className, 'lm_descriptions', {
|
|
321797
|
-
|
|
321798
|
-
|
|
321799
|
-
|
|
322031
|
+
lm_descriptions_default: containerType === 'default',
|
|
322032
|
+
lm_descriptions_drawer: containerType === 'drawer',
|
|
322033
|
+
lm_descriptions_modal: containerType === 'modal'
|
|
321800
322034
|
}),
|
|
321801
322035
|
style: style
|
|
321802
322036
|
}, (title || extra) && /*#__PURE__*/React.createElement("div", {
|
|
@@ -323999,14 +324233,14 @@
|
|
|
323999
324233
|
|
|
324000
324234
|
var Body$1 = /*#__PURE__*/React__default['default'].memo(Index$b);
|
|
324001
324235
|
|
|
324002
|
-
var _excluded$
|
|
324236
|
+
var _excluded$3a = ["value", "onChange", "leftIcon", "rightIcon"];
|
|
324003
324237
|
|
|
324004
324238
|
var ResetSlider = function ResetSlider(_ref) {
|
|
324005
324239
|
var value = _ref.value,
|
|
324006
324240
|
_onChange = _ref.onChange,
|
|
324007
324241
|
leftIcon = _ref.leftIcon,
|
|
324008
324242
|
rightIcon = _ref.rightIcon,
|
|
324009
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
324243
|
+
props = _objectWithoutProperties$1(_ref, _excluded$3a);
|
|
324010
324244
|
|
|
324011
324245
|
// 减
|
|
324012
324246
|
var decrement = function decrement() {
|
|
@@ -324149,14 +324383,14 @@
|
|
|
324149
324383
|
|
|
324150
324384
|
var Container$2 = /*#__PURE__*/React__default['default'].memo(LmBoxContainer);
|
|
324151
324385
|
|
|
324152
|
-
var Wrapper = function Wrapper(_ref) {
|
|
324386
|
+
var Wrapper$1 = function Wrapper(_ref) {
|
|
324153
324387
|
var instance = _ref.instance;
|
|
324154
324388
|
return /*#__PURE__*/React__default['default'].createElement(Container$2, {
|
|
324155
324389
|
instance: instance
|
|
324156
324390
|
});
|
|
324157
324391
|
};
|
|
324158
324392
|
|
|
324159
|
-
var Wrapper$
|
|
324393
|
+
var Wrapper$2 = /*#__PURE__*/React__default['default'].memo(Wrapper$1);
|
|
324160
324394
|
|
|
324161
324395
|
var LmBox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
324162
324396
|
var initialState = React.useMemo(function () {
|
|
@@ -324192,7 +324426,7 @@
|
|
|
324192
324426
|
}
|
|
324193
324427
|
}, RefMethods);
|
|
324194
324428
|
});
|
|
324195
|
-
return /*#__PURE__*/React__default['default'].createElement(Wrapper$
|
|
324429
|
+
return /*#__PURE__*/React__default['default'].createElement(Wrapper$2, {
|
|
324196
324430
|
instance: instance
|
|
324197
324431
|
});
|
|
324198
324432
|
});
|
|
@@ -324540,20 +324774,18 @@
|
|
|
324540
324774
|
onClick: function onClick(e) {
|
|
324541
324775
|
return handleTranform(e, 'zoomIn');
|
|
324542
324776
|
}
|
|
324543
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
|
324777
|
+
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
324778
|
+
type: "lmweb-icon_m_narrow",
|
|
324544
324779
|
onClick: function onClick(e) {
|
|
324545
324780
|
return handleTranform(e, 'zoomOut');
|
|
324546
|
-
},
|
|
324547
|
-
style: {
|
|
324548
|
-
fontSize: 22
|
|
324549
324781
|
}
|
|
324550
324782
|
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
324551
|
-
type: "lmweb-
|
|
324783
|
+
type: "lmweb-icon_m_turnleft-01",
|
|
324552
324784
|
onClick: function onClick(e) {
|
|
324553
324785
|
return handleTranform(e, 'rotateLeft');
|
|
324554
324786
|
}
|
|
324555
324787
|
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
324556
|
-
type: "lmweb-
|
|
324788
|
+
type: "lmweb-reload",
|
|
324557
324789
|
onClick: function onClick(e) {
|
|
324558
324790
|
return handleTranform(e, 'rotateRight');
|
|
324559
324791
|
}
|