linkmore-design 1.1.13-alpha.1 → 1.1.13-alpha.3
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 +45 -0
- package/dist/ConfigProvider/context.d.ts +1 -0
- package/dist/Form/FormWrapper.d.ts +3 -0
- package/dist/Form/WrapperItem.d.ts +4 -0
- package/dist/Form/demos/disabled.d.ts +2 -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/LmEditTable/EditTable.d.ts +1 -0
- package/dist/LmFilter/LmFilter.d.ts +2 -6
- package/dist/LmTable/demos/summuy.d.ts +2 -0
- package/dist/LmTable/expression.d.ts +1 -0
- package/dist/LmTable/hooks/useGroupDataSource.d.ts +7 -0
- package/dist/TreeSelect/demos/treedata.d.ts +3 -0
- package/dist/index.umd.js +1405 -1065
- package/dist/index.umd.min.js +17 -17
- package/dist/variables.css +153 -95
- 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/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 -41
- package/es/Form/style/variables.css +34 -41
- 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/Input/index.js +21 -9
- package/es/InputNumber/index.js +9 -2
- package/es/InputNumber/style/index.css +4 -0
- package/es/InputNumber/style/variables.css +4 -0
- package/es/LmEditTable/EditTable.d.ts +1 -0
- package/es/LmEditTable/EditTable.js +36 -9
- package/es/LmEditTable/sortableItemCol.js +8 -5
- package/es/LmEditTable/util.js +13 -4
- package/es/LmFilter/LmFilter.js +6 -6
- package/es/LmFilter/components/CheckboxFilter.js +9 -4
- package/es/LmFilter/components/DropdownFIlter.js +167 -113
- package/es/LmFilter/components/SelectFilter.js +4 -3
- package/es/LmFilter/filterFns/index.js +4 -6
- package/es/LmFilter/index.js +0 -3
- 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/Table.js +10 -7
- package/es/LmTable/expression.d.ts +1 -0
- package/es/LmTable/expression.js +31 -0
- package/es/LmTable/hooks/useGroupDataSource.js +50 -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/LmUpload/fns/index.js +8 -3
- package/es/Select/index.js +17 -7
- package/es/Select/style/index.css +1 -0
- package/es/Select/style/variables.css +1 -0
- package/es/styles/variables.css +153 -95
- package/lib/Cascader/index.js +16 -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/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 -41
- package/lib/Form/style/variables.css +34 -41
- 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/Input/index.js +24 -9
- package/lib/InputNumber/index.js +11 -2
- package/lib/InputNumber/style/index.css +4 -0
- package/lib/InputNumber/style/variables.css +4 -0
- package/lib/LmEditTable/EditTable.d.ts +1 -0
- package/lib/LmEditTable/EditTable.js +35 -8
- package/lib/LmEditTable/sortableItemCol.js +8 -5
- package/lib/LmEditTable/util.js +13 -4
- package/lib/LmFilter/LmFilter.js +6 -6
- package/lib/LmFilter/components/CheckboxFilter.js +9 -4
- package/lib/LmFilter/components/DropdownFIlter.js +167 -113
- package/lib/LmFilter/components/SelectFilter.js +4 -3
- package/lib/LmFilter/filterFns/index.js +4 -6
- package/lib/LmFilter/index.js +0 -3
- 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/Table.js +10 -7
- package/lib/LmTable/expression.d.ts +1 -0
- package/lib/LmTable/expression.js +41 -0
- package/lib/LmTable/hooks/useGroupDataSource.js +50 -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/LmUpload/fns/index.js +8 -3
- package/lib/Select/index.js +19 -7
- package/lib/Select/style/index.css +1 -0
- package/lib/Select/style/variables.css +1 -0
- package/lib/styles/variables.css +153 -95
- 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"];
|
|
34785
|
+
var _excluded$y = ["children", "className", "dropdownClassName", "placeholder", "defaultLabel"];
|
|
34784
34786
|
var prefixCls = 'lm_cascader';
|
|
34785
34787
|
var prefixDropdownCls = 'lm_cascader_dropdown';
|
|
34786
34788
|
|
|
@@ -34790,12 +34792,26 @@
|
|
|
34790
34792
|
dropdownClassName = props.dropdownClassName,
|
|
34791
34793
|
_props$placeholder = props.placeholder,
|
|
34792
34794
|
placeholder = _props$placeholder === void 0 ? '请选择' : _props$placeholder,
|
|
34795
|
+
defaultLabel = props.defaultLabel,
|
|
34793
34796
|
others = _objectWithoutProperties$1(props, _excluded$y);
|
|
34794
34797
|
|
|
34798
|
+
var displayRender = function displayRender(label, selectedOptions) {
|
|
34799
|
+
var hasUndefined = selectedOptions.some(function (v) {
|
|
34800
|
+
return !v;
|
|
34801
|
+
});
|
|
34802
|
+
|
|
34803
|
+
if (hasUndefined && defaultLabel) {
|
|
34804
|
+
return defaultLabel;
|
|
34805
|
+
}
|
|
34806
|
+
|
|
34807
|
+
return label.join('/');
|
|
34808
|
+
};
|
|
34809
|
+
|
|
34795
34810
|
return /*#__PURE__*/React__default['default'].createElement(Cascader$1, _objectSpread({
|
|
34796
34811
|
placeholder: placeholder,
|
|
34797
34812
|
className: classnames(prefixCls, className),
|
|
34798
|
-
dropdownClassName: classnames(prefixDropdownCls, dropdownClassName)
|
|
34813
|
+
dropdownClassName: classnames(prefixDropdownCls, dropdownClassName),
|
|
34814
|
+
displayRender: displayRender
|
|
34799
34815
|
}, others));
|
|
34800
34816
|
};
|
|
34801
34817
|
|
|
@@ -68579,11 +68595,21 @@
|
|
|
68579
68595
|
!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}));
|
|
68580
68596
|
});
|
|
68581
68597
|
|
|
68582
|
-
var
|
|
68583
|
-
scriptUrl: '//at.alicdn.com/t/c/font_2966019_neaxovtw4w.js' // 在 iconfont.cn 上生成
|
|
68584
|
-
// scriptUrl: require('./font/iconfont.js'),
|
|
68598
|
+
var ConfigContext$2 = ConfigProvider$1.ConfigContext;
|
|
68585
68599
|
|
|
68586
|
-
|
|
68600
|
+
var IconFont = function IconFont(props) {
|
|
68601
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$2),
|
|
68602
|
+
iconUrl = _React$useContext.iconUrl;
|
|
68603
|
+
|
|
68604
|
+
var resetUrl = React.useMemo(function () {
|
|
68605
|
+
if (!iconUrl) return [];
|
|
68606
|
+
return Array.isArray(iconUrl) ? iconUrl : [iconUrl];
|
|
68607
|
+
}, [iconUrl]);
|
|
68608
|
+
var Component = create({
|
|
68609
|
+
scriptUrl: ['//at.alicdn.com/t/c/font_2966019_ac9pzkeuo0e.js'].concat(_toConsumableArray$1(resetUrl))
|
|
68610
|
+
});
|
|
68611
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, _objectSpread({}, props));
|
|
68612
|
+
};
|
|
68587
68613
|
|
|
68588
68614
|
var UploadBox = function UploadBox(props) {
|
|
68589
68615
|
var _props$value = props.value,
|
|
@@ -89934,7 +89960,8 @@
|
|
|
89934
89960
|
setFilterValue = instance.setFilterValue,
|
|
89935
89961
|
visible = instance.visible;
|
|
89936
89962
|
var _itemProps$data = itemProps.data,
|
|
89937
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
89963
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
89964
|
+
showSearch = itemProps.showSearch;
|
|
89938
89965
|
var delayedFn = useDelayedFn();
|
|
89939
89966
|
var inputRef = React.useRef(null); // 搜索后的筛选项
|
|
89940
89967
|
|
|
@@ -89945,8 +89972,8 @@
|
|
|
89945
89972
|
|
|
89946
89973
|
|
|
89947
89974
|
var isSearch = React.useMemo(function () {
|
|
89948
|
-
return filters.length > 8;
|
|
89949
|
-
}, [filters.length]); // 自定义节点字段
|
|
89975
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
89976
|
+
}, [filters.length, showSearch]); // 自定义节点字段
|
|
89950
89977
|
|
|
89951
89978
|
var fieldNames = React.useMemo(function () {
|
|
89952
89979
|
return _objectSpread({
|
|
@@ -90105,7 +90132,7 @@
|
|
|
90105
90132
|
filterValues.forEach(function (item) {
|
|
90106
90133
|
if (item.length === 1) {
|
|
90107
90134
|
var findItem = originArr === null || originArr === void 0 ? void 0 : originArr.find(function (v) {
|
|
90108
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90135
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
|
|
90109
90136
|
});
|
|
90110
90137
|
getChildren(findItem);
|
|
90111
90138
|
}
|
|
@@ -90114,11 +90141,11 @@
|
|
|
90114
90141
|
var _originArr$find;
|
|
90115
90142
|
|
|
90116
90143
|
var findArr1 = originArr === null || originArr === void 0 ? void 0 : (_originArr$find = originArr.find(function (v) {
|
|
90117
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90144
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[0]);
|
|
90118
90145
|
})) === null || _originArr$find === void 0 ? void 0 : _originArr$find[fieldNames.children];
|
|
90119
90146
|
|
|
90120
90147
|
var _findItem = findArr1 === null || findArr1 === void 0 ? void 0 : findArr1.find(function (v) {
|
|
90121
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90148
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
|
|
90122
90149
|
});
|
|
90123
90150
|
|
|
90124
90151
|
getChildren(_findItem);
|
|
@@ -90128,15 +90155,15 @@
|
|
|
90128
90155
|
var _originArr$find2, _findArr$find;
|
|
90129
90156
|
|
|
90130
90157
|
var _findArr = originArr === null || originArr === void 0 ? void 0 : (_originArr$find2 = originArr.find(function (v) {
|
|
90131
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90158
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[0]);
|
|
90132
90159
|
})) === null || _originArr$find2 === void 0 ? void 0 : _originArr$find2[fieldNames.children];
|
|
90133
90160
|
|
|
90134
90161
|
var findArr2 = _findArr === null || _findArr === void 0 ? void 0 : (_findArr$find = _findArr.find(function (v) {
|
|
90135
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90162
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[1]);
|
|
90136
90163
|
})) === null || _findArr$find === void 0 ? void 0 : _findArr$find[fieldNames.children];
|
|
90137
90164
|
|
|
90138
90165
|
var _findItem2 = findArr2 === null || findArr2 === void 0 ? void 0 : findArr2.find(function (v) {
|
|
90139
|
-
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]
|
|
90166
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
|
|
90140
90167
|
});
|
|
90141
90168
|
|
|
90142
90169
|
nArr.push(_findItem2);
|
|
@@ -90172,7 +90199,9 @@
|
|
|
90172
90199
|
visible = instance.visible,
|
|
90173
90200
|
setVisible = instance.setVisible;
|
|
90174
90201
|
var _itemProps$data = itemProps.data,
|
|
90175
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data
|
|
90202
|
+
filters = _itemProps$data === void 0 ? [] : _itemProps$data,
|
|
90203
|
+
showSearch = itemProps.showSearch,
|
|
90204
|
+
showAllChecked = itemProps.showAllChecked;
|
|
90176
90205
|
var inputRef = React.useRef(); // 选中的数据项: [key, key, ...];
|
|
90177
90206
|
|
|
90178
90207
|
var _useState = React.useState(filterValue),
|
|
@@ -90191,8 +90220,11 @@
|
|
|
90191
90220
|
var delayedFn = useDelayedFn(); // 是否存在搜索, 当数据大于8时存在搜索
|
|
90192
90221
|
|
|
90193
90222
|
var isSearch = React.useMemo(function () {
|
|
90194
|
-
return filters.length > 8;
|
|
90195
|
-
}, [filters.length]);
|
|
90223
|
+
return filters.length > 8 && !!(showSearch !== null && showSearch !== void 0 ? showSearch : true);
|
|
90224
|
+
}, [filters.length, showSearch]);
|
|
90225
|
+
var isAllCheck = React.useMemo(function () {
|
|
90226
|
+
return !!(showAllChecked !== null && showAllChecked !== void 0 ? showAllChecked : true);
|
|
90227
|
+
}, [showAllChecked]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
90196
90228
|
|
|
90197
90229
|
var checkAll = React.useMemo(function () {
|
|
90198
90230
|
var isAll = checkedValues.length >= options.length;
|
|
@@ -90274,7 +90306,7 @@
|
|
|
90274
90306
|
ref: inputRef,
|
|
90275
90307
|
onSearch: handleFilter,
|
|
90276
90308
|
onChange: handleFilter
|
|
90277
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90309
|
+
}), isAllCheck && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90278
90310
|
className: "filter_header_operate"
|
|
90279
90311
|
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
90280
90312
|
indeterminate: indeterminate,
|
|
@@ -90615,144 +90647,202 @@
|
|
|
90615
90647
|
})
|
|
90616
90648
|
};
|
|
90617
90649
|
return widgets[type] || null;
|
|
90618
|
-
};
|
|
90650
|
+
}; // 提示文字 占位符
|
|
90619
90651
|
|
|
90620
|
-
|
|
90621
|
-
|
|
90622
|
-
|
|
90652
|
+
|
|
90653
|
+
var ItemPlacehodler = /*#__PURE__*/React__default['default'].memo(function (_ref2) {
|
|
90654
|
+
var item = _ref2.item;
|
|
90655
|
+
var type = item.type,
|
|
90656
|
+
itemProps = item.props,
|
|
90657
|
+
dateType = item.dateType,
|
|
90658
|
+
datetype = item.datetype,
|
|
90659
|
+
placeholder = item.placeholder; // 日期显示的处理
|
|
90623
90660
|
|
|
90624
90661
|
if (['date'].includes(type)) {
|
|
90625
|
-
|
|
90626
|
-
|
|
90662
|
+
// 兼容大小写
|
|
90663
|
+
if (['range', 'rangePicker'].includes(dateType || datetype)) {
|
|
90664
|
+
var pls = placeholder !== null && placeholder !== void 0 ? placeholder : ['开始日期', '结束日期'];
|
|
90665
|
+
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, {
|
|
90627
90666
|
type: "lmweb-swap-right",
|
|
90628
90667
|
style: {
|
|
90629
90668
|
fontSize: 14
|
|
90630
90669
|
}
|
|
90631
|
-
}),
|
|
90670
|
+
}), pls === null || pls === void 0 ? void 0 : pls[1], /*#__PURE__*/React__default['default'].createElement(CalendarOutlined$2, {
|
|
90632
90671
|
style: {
|
|
90633
90672
|
fontSize: 12
|
|
90634
90673
|
}
|
|
90635
90674
|
}));
|
|
90636
90675
|
}
|
|
90637
90676
|
|
|
90638
|
-
var
|
|
90677
|
+
var unit = {
|
|
90639
90678
|
week: '周',
|
|
90640
90679
|
month: '月份',
|
|
90641
90680
|
quarter: '季度',
|
|
90642
90681
|
year: '年份'
|
|
90643
90682
|
};
|
|
90644
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u9009\u62E9"
|
|
90683
|
+
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, {
|
|
90645
90684
|
style: {
|
|
90646
90685
|
fontSize: 12
|
|
90647
90686
|
}
|
|
90648
90687
|
}));
|
|
90649
90688
|
}
|
|
90650
90689
|
|
|
90651
|
-
return '全部';
|
|
90652
|
-
}; // 根据不同的类型展示文本内容
|
|
90653
|
-
|
|
90690
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, placeholder !== null && placeholder !== void 0 ? placeholder : '全部');
|
|
90691
|
+
}); // 根据不同的类型展示文本内容
|
|
90654
90692
|
|
|
90655
|
-
var
|
|
90656
|
-
var
|
|
90693
|
+
var ItemLabel = /*#__PURE__*/React__default['default'].memo(function (_ref3) {
|
|
90694
|
+
var instance = _ref3.instance,
|
|
90695
|
+
item = _ref3.item;
|
|
90696
|
+
var filterValue = instance.filterValue;
|
|
90657
90697
|
var type = item.type,
|
|
90658
|
-
data = item.data;
|
|
90659
|
-
|
|
90660
|
-
|
|
90661
|
-
|
|
90662
|
-
|
|
90698
|
+
data = item.data;
|
|
90699
|
+
/*
|
|
90700
|
+
* 是否返回字符串类型
|
|
90701
|
+
* return string | type: 'input', 'select', 'checkbox', 'cascader'
|
|
90702
|
+
* return Jsx | type: 'date'
|
|
90703
|
+
*/
|
|
90663
90704
|
|
|
90705
|
+
var isString = React.useMemo(function () {
|
|
90706
|
+
return ['input', 'select', 'checkbox', 'cascader'].includes(type);
|
|
90707
|
+
}, [type]); // 存在筛选数据时 ⬇️
|
|
90664
90708
|
|
|
90665
|
-
|
|
90666
|
-
|
|
90709
|
+
var String = React.useMemo(function () {
|
|
90710
|
+
try {
|
|
90711
|
+
var _data$find;
|
|
90667
90712
|
|
|
90668
|
-
|
|
90669
|
-
|
|
90670
|
-
|
|
90671
|
-
|
|
90672
|
-
|
|
90713
|
+
// 级联数据转换平级结构
|
|
90714
|
+
if (['cascader'].includes(type)) {
|
|
90715
|
+
var nArr = getFlatItem(item, filterValue);
|
|
90716
|
+
var labels = nArr === null || nArr === void 0 ? void 0 : nArr.map(function (v) {
|
|
90717
|
+
var _item$props, _item$props$fieldName;
|
|
90673
90718
|
|
|
90674
|
-
|
|
90675
|
-
|
|
90719
|
+
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'];
|
|
90720
|
+
});
|
|
90676
90721
|
|
|
90677
|
-
|
|
90678
|
-
|
|
90679
|
-
|
|
90680
|
-
|
|
90722
|
+
switch (labels.length) {
|
|
90723
|
+
case 0:
|
|
90724
|
+
// 数据未查找到时
|
|
90725
|
+
return filterValue;
|
|
90681
90726
|
|
|
90682
|
-
|
|
90683
|
-
|
|
90727
|
+
case 1:
|
|
90728
|
+
return labels[0];
|
|
90684
90729
|
|
|
90685
|
-
|
|
90686
|
-
|
|
90730
|
+
case 2:
|
|
90731
|
+
return "".concat(labels[0], "\u3001").concat(labels[1]);
|
|
90687
90732
|
|
|
90688
|
-
|
|
90689
|
-
|
|
90733
|
+
default:
|
|
90734
|
+
return "".concat(labels[0], "\u3001+").concat(labels.length - 1, "...");
|
|
90735
|
+
}
|
|
90690
90736
|
}
|
|
90691
|
-
}
|
|
90692
90737
|
|
|
90693
|
-
|
|
90694
|
-
|
|
90738
|
+
if (Array.isArray(filterValue)) {
|
|
90739
|
+
var _data$filter;
|
|
90695
90740
|
|
|
90696
|
-
|
|
90697
|
-
|
|
90698
|
-
|
|
90699
|
-
|
|
90700
|
-
|
|
90701
|
-
|
|
90702
|
-
|
|
90703
|
-
|
|
90704
|
-
|
|
90705
|
-
|
|
90741
|
+
// 日期
|
|
90742
|
+
if (['date'].includes(type)) {
|
|
90743
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, filterValue[0], /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
90744
|
+
type: "lmweb-swap-right",
|
|
90745
|
+
style: {
|
|
90746
|
+
fontSize: 14,
|
|
90747
|
+
color: 'var(--text-color)'
|
|
90748
|
+
}
|
|
90749
|
+
}), filterValue[1]);
|
|
90750
|
+
} // 多选
|
|
90706
90751
|
|
|
90707
90752
|
|
|
90708
|
-
|
|
90709
|
-
|
|
90710
|
-
|
|
90711
|
-
|
|
90712
|
-
|
|
90753
|
+
var _labels = data === null || data === void 0 ? void 0 : (_data$filter = data.filter(function (v) {
|
|
90754
|
+
return toStringIsEqual(v.value, filterValue, 'includes');
|
|
90755
|
+
})) === null || _data$filter === void 0 ? void 0 : _data$filter.map(function (v) {
|
|
90756
|
+
return v.label;
|
|
90757
|
+
});
|
|
90713
90758
|
|
|
90714
|
-
|
|
90715
|
-
|
|
90716
|
-
|
|
90759
|
+
if (!_labels.length) {
|
|
90760
|
+
_labels = filterValue;
|
|
90761
|
+
} // 受控模式未查找到显示的内容时展示
|
|
90717
90762
|
|
|
90718
90763
|
|
|
90719
|
-
|
|
90720
|
-
|
|
90721
|
-
|
|
90764
|
+
switch (_labels.length) {
|
|
90765
|
+
case 1:
|
|
90766
|
+
return _labels[0];
|
|
90722
90767
|
|
|
90723
|
-
|
|
90724
|
-
|
|
90768
|
+
case 2:
|
|
90769
|
+
return "".concat(_labels[0], "\u3001").concat(_labels[1]);
|
|
90725
90770
|
|
|
90726
|
-
|
|
90727
|
-
|
|
90728
|
-
|
|
90729
|
-
|
|
90771
|
+
default:
|
|
90772
|
+
return "".concat(_labels[0], "\u3001+").concat(_labels.length - 1, "...");
|
|
90773
|
+
}
|
|
90774
|
+
} // 输入框
|
|
90730
90775
|
|
|
90731
90776
|
|
|
90732
|
-
|
|
90733
|
-
|
|
90734
|
-
|
|
90777
|
+
if (['input', 'date'].includes(type)) {
|
|
90778
|
+
return filterValue;
|
|
90779
|
+
} // 单选框 受控模式未查找到显示的内容时展示filterValue
|
|
90735
90780
|
|
|
90736
90781
|
|
|
90737
|
-
|
|
90738
|
-
|
|
90739
|
-
|
|
90740
|
-
|
|
90741
|
-
|
|
90742
|
-
|
|
90743
|
-
|
|
90782
|
+
var label = (data === null || data === void 0 ? void 0 : (_data$find = data.find(function (v) {
|
|
90783
|
+
return toStringIsEqual(v === null || v === void 0 ? void 0 : v.value, filterValue);
|
|
90784
|
+
})) === null || _data$find === void 0 ? void 0 : _data$find.label) || filterValue;
|
|
90785
|
+
return label;
|
|
90786
|
+
} catch (error) {
|
|
90787
|
+
console.log('报错了!', '报错项:', item, '报错值', filterValue);
|
|
90788
|
+
return filterValue;
|
|
90789
|
+
}
|
|
90790
|
+
}, [type, filterValue]);
|
|
90791
|
+
|
|
90792
|
+
if (isString) {
|
|
90793
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, String);
|
|
90744
90794
|
}
|
|
90745
|
-
|
|
90795
|
+
|
|
90796
|
+
return String;
|
|
90797
|
+
});
|
|
90798
|
+
var FilterItem = /*#__PURE__*/React__default['default'].memo(function (_ref4) {
|
|
90799
|
+
var instance = _ref4.instance,
|
|
90800
|
+
item = _ref4.item;
|
|
90801
|
+
var filterValue = instance.filterValue,
|
|
90802
|
+
setFilterValue = instance.setFilterValue;
|
|
90803
|
+
var title = item.title,
|
|
90804
|
+
colon = item.colon; // 是否有筛选值/是否处于筛选状态
|
|
90805
|
+
|
|
90806
|
+
var active = React.useMemo(function () {
|
|
90807
|
+
return getIsHas(filterValue);
|
|
90808
|
+
}, [filterValue]); // 冒号
|
|
90809
|
+
|
|
90810
|
+
var showColon = React.useMemo(function () {
|
|
90811
|
+
return (colon !== null && colon !== void 0 ? colon : ':') ? ':' : null;
|
|
90812
|
+
}, [colon]);
|
|
90813
|
+
|
|
90814
|
+
var handleClear = function handleClear(e) {
|
|
90815
|
+
if (active) {
|
|
90816
|
+
e.stopPropagation();
|
|
90817
|
+
setFilterValue(getValueForType(item.type));
|
|
90818
|
+
}
|
|
90819
|
+
};
|
|
90820
|
+
|
|
90821
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (title || showColon) && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90822
|
+
className: "filter_item_label"
|
|
90823
|
+
}, title, showColon), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90824
|
+
className: "filter_item_value"
|
|
90825
|
+
}, active ? /*#__PURE__*/React__default['default'].createElement(ItemLabel, {
|
|
90826
|
+
instance: instance,
|
|
90827
|
+
item: item
|
|
90828
|
+
}) : /*#__PURE__*/React__default['default'].createElement(ItemPlacehodler, {
|
|
90829
|
+
item: item
|
|
90830
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90831
|
+
className: "filter_item_icon addon_after"
|
|
90832
|
+
}, item.type !== 'date' || active ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
90833
|
+
type: active ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
90834
|
+
onClick: handleClear
|
|
90835
|
+
}) : null));
|
|
90836
|
+
});
|
|
90746
90837
|
/*
|
|
90747
90838
|
* css样式控制
|
|
90748
90839
|
* expand: 展开样式
|
|
90749
90840
|
* active: 选中样式
|
|
90750
90841
|
*/
|
|
90751
90842
|
|
|
90752
|
-
|
|
90753
|
-
|
|
90754
|
-
|
|
90755
|
-
item = _ref2.item;
|
|
90843
|
+
var DropdownFilter = /*#__PURE__*/React__default['default'].memo(function (_ref5) {
|
|
90844
|
+
var instance = _ref5.instance,
|
|
90845
|
+
item = _ref5.item;
|
|
90756
90846
|
|
|
90757
90847
|
var _useState = React.useState(false),
|
|
90758
90848
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -90760,11 +90850,22 @@
|
|
|
90760
90850
|
setVisible = _useState2[1];
|
|
90761
90851
|
|
|
90762
90852
|
var filterValue = instance.filterValue,
|
|
90763
|
-
size = instance.size;
|
|
90853
|
+
size = instance.size;
|
|
90854
|
+
var popupClassName = item.popupClassName,
|
|
90855
|
+
className = item.className,
|
|
90856
|
+
style = item.style; // 是否有筛选值/是否处于筛选状态
|
|
90857
|
+
|
|
90858
|
+
var active = React.useMemo(function () {
|
|
90859
|
+
return getIsHas(filterValue);
|
|
90860
|
+
}, [filterValue]); // 触发查询时关闭下拉框
|
|
90764
90861
|
|
|
90765
90862
|
var setFilterValue = function setFilterValue(obj) {
|
|
90766
90863
|
instance.setFilterValue(obj);
|
|
90767
90864
|
setVisible(false);
|
|
90865
|
+
};
|
|
90866
|
+
|
|
90867
|
+
var onVisibleChange = function onVisibleChange(v) {
|
|
90868
|
+
return setVisible(v);
|
|
90768
90869
|
}; // 重组Instance 加入下拉关闭控制
|
|
90769
90870
|
|
|
90770
90871
|
|
|
@@ -90773,19 +90874,7 @@
|
|
|
90773
90874
|
setVisible: setVisible
|
|
90774
90875
|
}, instance), {}, {
|
|
90775
90876
|
setFilterValue: setFilterValue
|
|
90776
|
-
});
|
|
90777
|
-
|
|
90778
|
-
|
|
90779
|
-
var active = React.useMemo(function () {
|
|
90780
|
-
return getIsHas(filterValue);
|
|
90781
|
-
}, [filterValue]);
|
|
90782
|
-
|
|
90783
|
-
var handleClear = function handleClear(e) {
|
|
90784
|
-
if (active) {
|
|
90785
|
-
e.stopPropagation();
|
|
90786
|
-
setFilterValue(getValueForType(item.type));
|
|
90787
|
-
}
|
|
90788
|
-
};
|
|
90877
|
+
});
|
|
90789
90878
|
|
|
90790
90879
|
return /*#__PURE__*/React__default['default'].createElement(LMDropdown, {
|
|
90791
90880
|
trigger: ['click'],
|
|
@@ -90795,27 +90884,21 @@
|
|
|
90795
90884
|
instance: resetInstance,
|
|
90796
90885
|
item: item
|
|
90797
90886
|
}),
|
|
90798
|
-
overlayClassName: "filter_dropdown_container_".concat(item.type),
|
|
90799
|
-
onVisibleChange:
|
|
90800
|
-
return setVisible(v);
|
|
90801
|
-
} // 未开启则需手动控制下拉展示组件的初始化
|
|
90887
|
+
overlayClassName: classnames("filter_dropdown_container_".concat(item.type), popupClassName),
|
|
90888
|
+
onVisibleChange: onVisibleChange // 未开启则需手动控制下拉展示组件的初始化
|
|
90802
90889
|
,
|
|
90803
90890
|
destroyPopupOnHide: true
|
|
90804
90891
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
90805
|
-
className: classnames('lm_filter_basic_item', size, {
|
|
90892
|
+
className: classnames('lm_filter_basic_item', className, size, {
|
|
90806
90893
|
expand: visible,
|
|
90807
90894
|
active: active
|
|
90808
|
-
})
|
|
90809
|
-
|
|
90810
|
-
|
|
90811
|
-
|
|
90812
|
-
|
|
90813
|
-
|
|
90814
|
-
|
|
90815
|
-
}, item.type !== 'date' || active ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
90816
|
-
type: active ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
90817
|
-
onClick: handleClear
|
|
90818
|
-
}) : null)));
|
|
90895
|
+
}),
|
|
90896
|
+
style: style
|
|
90897
|
+
}, /*#__PURE__*/React__default['default'].createElement(FilterItem, {
|
|
90898
|
+
key: item.title,
|
|
90899
|
+
instance: resetInstance,
|
|
90900
|
+
item: item
|
|
90901
|
+
})));
|
|
90819
90902
|
});
|
|
90820
90903
|
|
|
90821
90904
|
var _excluded$15 = ["instance", "item", "value", "onChange", "options"],
|
|
@@ -93081,12 +93164,10 @@
|
|
|
93081
93164
|
var field = item.field;
|
|
93082
93165
|
|
|
93083
93166
|
if (field) {
|
|
93084
|
-
// 将结果转换为字符串
|
|
93085
|
-
var isArray = Array.isArray(itemValue);
|
|
93086
|
-
|
|
93167
|
+
// 将结果转换为字符串(级联数据需要递归)
|
|
93087
93168
|
var transformString = function transformString(val) {
|
|
93088
|
-
return isArray ? val.map(function (v) {
|
|
93089
|
-
return
|
|
93169
|
+
return Array.isArray(val) ? val.map(function (v) {
|
|
93170
|
+
return transformString(v);
|
|
93090
93171
|
}) : String(val);
|
|
93091
93172
|
};
|
|
93092
93173
|
|
|
@@ -93099,7 +93180,7 @@
|
|
|
93099
93180
|
fieldName: field,
|
|
93100
93181
|
fieldType: item.valueType || 'string',
|
|
93101
93182
|
type: item.type,
|
|
93102
|
-
value: isArray ? stringValue : [stringValue],
|
|
93183
|
+
value: Array.isArray(itemValue) ? stringValue : [stringValue],
|
|
93103
93184
|
operator: item.operator || 'equal'
|
|
93104
93185
|
})); // 数据清除时不返回结构体
|
|
93105
93186
|
|
|
@@ -93444,8 +93525,7 @@
|
|
|
93444
93525
|
};
|
|
93445
93526
|
|
|
93446
93527
|
var _excluded$1a = ["searchConfig", "localization"];
|
|
93447
|
-
|
|
93448
|
-
var LmFilter$1 = function LmFilter(_ref, ref) {
|
|
93528
|
+
var LmFilter$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
93449
93529
|
var _ref$searchConfig = _ref.searchConfig,
|
|
93450
93530
|
searchConfig = _ref$searchConfig === void 0 ? {} : _ref$searchConfig,
|
|
93451
93531
|
_ref$localization = _ref.localization,
|
|
@@ -93487,11 +93567,8 @@
|
|
|
93487
93567
|
return /*#__PURE__*/React__default['default'].createElement(LmFilterRoot$1, _extends$2({
|
|
93488
93568
|
ref: ref || defaultRef
|
|
93489
93569
|
}, defaultProps, resetProps));
|
|
93490
|
-
};
|
|
93491
|
-
|
|
93492
|
-
var LmFilter$2 = /*#__PURE__*/React.forwardRef(LmFilter$1);
|
|
93493
|
-
|
|
93494
|
-
LmFilter$2.FilterControl = FilterControl$1;
|
|
93570
|
+
});
|
|
93571
|
+
LmFilter$1.FilterControl = FilterControl$1;
|
|
93495
93572
|
|
|
93496
93573
|
// 状态管理操作
|
|
93497
93574
|
var reducer$1 = function reducer(state, action) {
|
|
@@ -181377,16 +181454,21 @@
|
|
|
181377
181454
|
fileAreaSize = props.fileAreaSize,
|
|
181378
181455
|
enabledOss = props.enabledOss,
|
|
181379
181456
|
enableCrop = props.enableCrop,
|
|
181380
|
-
ossConfig = props.ossConfig;
|
|
181457
|
+
ossConfig = props.ossConfig;
|
|
181458
|
+
/* 获取两个对象是否存在指定值相等
|
|
181459
|
+
* 取用户定义的列字段,如果读取不到则取'fileName'对比
|
|
181460
|
+
*/
|
|
181381
181461
|
|
|
181382
181462
|
var getHasEqual = React.useCallback(function (obj1, obj2) {
|
|
181383
181463
|
var extend = [uid, 'fileName'];
|
|
181384
181464
|
var flag = false;
|
|
181385
181465
|
extend.forEach(function (v) {
|
|
181386
|
-
if (!flag
|
|
181466
|
+
if (!flag && obj1[v] && obj2[v]) {
|
|
181467
|
+
flag = obj1[v] === obj2[v];
|
|
181468
|
+
}
|
|
181387
181469
|
});
|
|
181388
181470
|
return flag;
|
|
181389
|
-
}, []); // 从对象中读取存在的指定属性
|
|
181471
|
+
}, [uid]); // 从对象中读取存在的指定属性
|
|
181390
181472
|
|
|
181391
181473
|
var getFileHasValue = React.useCallback(function (obj) {
|
|
181392
181474
|
var extend = [uid, 'fileName'];
|
|
@@ -181966,6 +182048,7 @@
|
|
|
181966
182048
|
instance = _ref.instance;
|
|
181967
182049
|
var readOnly = instance.readOnly,
|
|
181968
182050
|
remove = instance.remove,
|
|
182051
|
+
download = instance.download,
|
|
181969
182052
|
fileNames = instance.fileNames;
|
|
181970
182053
|
return /*#__PURE__*/React.createElement("div", {
|
|
181971
182054
|
className: classnames('lm_upload_item lm_upload_item_text', file[fileNames.status] === 'error' && 'lm_upload_item_error')
|
|
@@ -181976,7 +182059,10 @@
|
|
|
181976
182059
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
181977
182060
|
type: "lmweb-attachment"
|
|
181978
182061
|
})), /*#__PURE__*/React.createElement("div", {
|
|
181979
|
-
className: "lm_upload_item_name"
|
|
182062
|
+
className: "lm_upload_item_name",
|
|
182063
|
+
onClick: function onClick() {
|
|
182064
|
+
return download(file);
|
|
182065
|
+
}
|
|
181980
182066
|
}, file[fileNames.fileName])), !readOnly && /*#__PURE__*/React.createElement("div", {
|
|
181981
182067
|
className: "text_right lm_upload_item_text_action"
|
|
181982
182068
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -188451,19 +188537,26 @@
|
|
|
188451
188537
|
}))));
|
|
188452
188538
|
};
|
|
188453
188539
|
|
|
188454
|
-
var _excluded$1i = ["
|
|
188455
|
-
_excluded2$i = ["allowClear"],
|
|
188456
|
-
_excluded3$5 = ["allowClear"];
|
|
188540
|
+
var _excluded$1i = ["className", "size", "disabled", "allowClear"],
|
|
188541
|
+
_excluded2$i = ["allowClear", "className"],
|
|
188542
|
+
_excluded3$5 = ["allowClear", "className"];
|
|
188457
188543
|
var LmInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
188458
|
-
var
|
|
188544
|
+
var className = props.className,
|
|
188545
|
+
customSize = props.size,
|
|
188546
|
+
customDisabled = props.disabled,
|
|
188547
|
+
_props$allowClear = props.allowClear,
|
|
188459
188548
|
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
|
188460
|
-
|
|
188461
|
-
|
|
188549
|
+
rest = _objectWithoutProperties$1(props, _excluded$1i); // ===================== Size =====================
|
|
188550
|
+
|
|
188462
188551
|
|
|
188463
|
-
var size =
|
|
188552
|
+
var size = customSize || React__default['default'].useContext(SizeContext$1) || 'middle'; // ===================== Disabled =====================
|
|
188553
|
+
|
|
188554
|
+
var disabled = React__default['default'].useContext(DisabledContext$1);
|
|
188555
|
+
var mergedDisabled = customDisabled || disabled;
|
|
188464
188556
|
return /*#__PURE__*/React__default['default'].createElement(Input$3, _objectSpread(_objectSpread({
|
|
188465
188557
|
ref: ref,
|
|
188466
|
-
className:
|
|
188558
|
+
className: classnames('lm_input', className),
|
|
188559
|
+
disabled: mergedDisabled || undefined,
|
|
188467
188560
|
size: size
|
|
188468
188561
|
}, rest), {}, {
|
|
188469
188562
|
allowClear: allowClear
|
|
@@ -188473,6 +188566,7 @@
|
|
|
188473
188566
|
LmInput.Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
188474
188567
|
var _props$allowClear2 = props.allowClear,
|
|
188475
188568
|
allowClear = _props$allowClear2 === void 0 ? true : _props$allowClear2,
|
|
188569
|
+
className = props.className,
|
|
188476
188570
|
rest = _objectWithoutProperties$1(props, _excluded2$i);
|
|
188477
188571
|
|
|
188478
188572
|
return /*#__PURE__*/React__default['default'].createElement(Input$3.Search, _objectSpread(_objectSpread({
|
|
@@ -188482,7 +188576,7 @@
|
|
|
188482
188576
|
}, rest), {}, {
|
|
188483
188577
|
ref: ref,
|
|
188484
188578
|
allowClear: allowClear,
|
|
188485
|
-
className:
|
|
188579
|
+
className: classnames('lm_input_search', className)
|
|
188486
188580
|
}));
|
|
188487
188581
|
});
|
|
188488
188582
|
LmInput.TextArea = Input$3.TextArea;
|
|
@@ -188490,10 +188584,11 @@
|
|
|
188490
188584
|
LmInput.Password = function (props) {
|
|
188491
188585
|
var _props$allowClear3 = props.allowClear,
|
|
188492
188586
|
allowClear = _props$allowClear3 === void 0 ? true : _props$allowClear3,
|
|
188587
|
+
className = props.className,
|
|
188493
188588
|
rest = _objectWithoutProperties$1(props, _excluded3$5);
|
|
188494
188589
|
|
|
188495
188590
|
return /*#__PURE__*/React__default['default'].createElement(Input$3.Password, _objectSpread(_objectSpread({
|
|
188496
|
-
className:
|
|
188591
|
+
className: classnames('lm_input_password', className),
|
|
188497
188592
|
iconRender: function iconRender(visible) {
|
|
188498
188593
|
return visible ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
188499
188594
|
type: "lmweb-eye"
|
|
@@ -188506,18 +188601,23 @@
|
|
|
188506
188601
|
}));
|
|
188507
188602
|
};
|
|
188508
188603
|
|
|
188509
|
-
var _excluded$1j = ["children", "className"];
|
|
188604
|
+
var _excluded$1j = ["children", "className", "disabled"];
|
|
188510
188605
|
var prefixCls$3 = 'lm_input-number';
|
|
188511
188606
|
|
|
188512
188607
|
var LMInputNumber = function LMInputNumber(props) {
|
|
188513
188608
|
var children = props.children,
|
|
188514
188609
|
className = props.className,
|
|
188515
|
-
|
|
188610
|
+
customDisabled = props.disabled,
|
|
188611
|
+
rest = _objectWithoutProperties$1(props, _excluded$1j); // ===================== Disabled =====================
|
|
188516
188612
|
|
|
188613
|
+
|
|
188614
|
+
var disabled = React__default['default'].useContext(DisabledContext$1);
|
|
188615
|
+
var mergedDisabled = customDisabled || disabled;
|
|
188517
188616
|
return /*#__PURE__*/React__default['default'].createElement(InputNumber$1, _objectSpread({
|
|
188518
188617
|
className: classnames(className, prefixCls$3),
|
|
188618
|
+
disabled: mergedDisabled,
|
|
188519
188619
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
188520
|
-
},
|
|
188620
|
+
}, rest));
|
|
188521
188621
|
};
|
|
188522
188622
|
|
|
188523
188623
|
var CInputNumber = LMInputNumber;
|
|
@@ -192687,14 +192787,14 @@
|
|
|
192687
192787
|
'hr-HR': hrHRIntl
|
|
192688
192788
|
};
|
|
192689
192789
|
var intlMapKeys = Object.keys(intlMap);
|
|
192690
|
-
var ConfigContext$
|
|
192790
|
+
var ConfigContext$3 = /*#__PURE__*/React__default['default'].createContext({
|
|
192691
192791
|
intl: _objectSpread2(_objectSpread2({}, zhCNIntl), {}, {
|
|
192692
192792
|
locale: 'default'
|
|
192693
192793
|
}),
|
|
192694
192794
|
valueTypeMap: {}
|
|
192695
192795
|
});
|
|
192696
|
-
var ConfigConsumer$2 = ConfigContext$
|
|
192697
|
-
ConfigProvider$2 = ConfigContext$
|
|
192796
|
+
var ConfigConsumer$2 = ConfigContext$3.Consumer,
|
|
192797
|
+
ConfigProvider$2 = ConfigContext$3.Provider;
|
|
192698
192798
|
/**
|
|
192699
192799
|
* 根据 antd 的 key 来找到的 locale 插件的 key
|
|
192700
192800
|
*
|
|
@@ -192780,7 +192880,7 @@
|
|
|
192780
192880
|
var _useContext2 = React.useContext(ConfigProvider.ConfigContext),
|
|
192781
192881
|
locale = _useContext2.locale;
|
|
192782
192882
|
|
|
192783
|
-
var _useContext3 = React.useContext(ConfigContext$
|
|
192883
|
+
var _useContext3 = React.useContext(ConfigContext$3),
|
|
192784
192884
|
intl = _useContext3.intl;
|
|
192785
192885
|
|
|
192786
192886
|
if (intl && intl.locale !== 'default') {
|
|
@@ -208533,7 +208633,7 @@
|
|
|
208533
208633
|
rest = _objectWithoutProperties(_ref, _excluded$1A);
|
|
208534
208634
|
|
|
208535
208635
|
var intl = useIntl();
|
|
208536
|
-
var context = React.useContext(ConfigContext$
|
|
208636
|
+
var context = React.useContext(ConfigContext$3);
|
|
208537
208637
|
|
|
208538
208638
|
var fieldProps = (value !== undefined || _onChange || (rest === null || rest === void 0 ? void 0 : rest.fieldProps)) && _objectSpread2(_objectSpread2({
|
|
208539
208639
|
value: value
|
|
@@ -284871,10 +284971,10 @@
|
|
|
284871
284971
|
}));
|
|
284872
284972
|
};
|
|
284873
284973
|
|
|
284874
|
-
var ConfigContext$
|
|
284974
|
+
var ConfigContext$4 = ConfigProvider$1.ConfigContext;
|
|
284875
284975
|
|
|
284876
284976
|
var CustomizeRenderEmpty = function CustomizeRenderEmpty() {
|
|
284877
|
-
var _React$useContext = React__default['default'].useContext(ConfigContext$
|
|
284977
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$4),
|
|
284878
284978
|
locale = _React$useContext.locale;
|
|
284879
284979
|
|
|
284880
284980
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -285562,11 +285662,76 @@
|
|
|
285562
285662
|
}), fixedColumns.fixedRight);
|
|
285563
285663
|
});
|
|
285564
285664
|
|
|
285665
|
+
// 分组求和计算
|
|
285666
|
+
function calcExpression(item, needCalcKeys) {
|
|
285667
|
+
var _item$children;
|
|
285668
|
+
|
|
285669
|
+
if (item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) {
|
|
285670
|
+
needCalcKeys.forEach(function (dkey) {
|
|
285671
|
+
var sum = 0;
|
|
285672
|
+
|
|
285673
|
+
var _dkey = _slicedToArray$1(dkey, 2),
|
|
285674
|
+
key = _dkey[0],
|
|
285675
|
+
expression = _dkey[1];
|
|
285676
|
+
|
|
285677
|
+
item.children.forEach(function (subItem) {
|
|
285678
|
+
if (key in subItem) {
|
|
285679
|
+
sum += Number(subItem[key]);
|
|
285680
|
+
}
|
|
285681
|
+
});
|
|
285682
|
+
|
|
285683
|
+
if (!sum) {
|
|
285684
|
+
return;
|
|
285685
|
+
}
|
|
285686
|
+
|
|
285687
|
+
if (expression === 'sum') {
|
|
285688
|
+
item[key] = sum;
|
|
285689
|
+
} else if (expression === 'average') {
|
|
285690
|
+
item[key] = sum / item.children.length;
|
|
285691
|
+
}
|
|
285692
|
+
});
|
|
285693
|
+
}
|
|
285694
|
+
}
|
|
285695
|
+
|
|
285696
|
+
/** 行分组 */
|
|
285697
|
+
|
|
285698
|
+
function useGroupDataSource(_ref) {
|
|
285699
|
+
var groupRowKeys = _ref.groupRowKeys,
|
|
285700
|
+
customizeDataSource = _ref.customizeDataSource,
|
|
285701
|
+
columnsRef = _ref.columnsRef;
|
|
285702
|
+
var groupDataSource = React.useMemo(function () {
|
|
285703
|
+
if (!(groupRowKeys === null || groupRowKeys === void 0 ? void 0 : groupRowKeys.length)) {
|
|
285704
|
+
return customizeDataSource;
|
|
285705
|
+
}
|
|
285706
|
+
|
|
285707
|
+
var source = transformWithRowGroup(customizeDataSource, groupRowKeys); // 获取需要计算的key,生成数组
|
|
285708
|
+
|
|
285709
|
+
var needCalcKeys = columnsRef.current.filter(function (col) {
|
|
285710
|
+
return col.expression;
|
|
285711
|
+
}).map(function (col) {
|
|
285712
|
+
return [col.dataIndex, col.expression];
|
|
285713
|
+
});
|
|
285714
|
+
|
|
285715
|
+
var deepChildren = function deepChildren(arr) {
|
|
285716
|
+
arr === null || arr === void 0 ? void 0 : arr.forEach(function (item) {
|
|
285717
|
+
if (item === null || item === void 0 ? void 0 : item.children) {
|
|
285718
|
+
deepChildren(item === null || item === void 0 ? void 0 : item.children);
|
|
285719
|
+
calcExpression(item, needCalcKeys);
|
|
285720
|
+
}
|
|
285721
|
+
});
|
|
285722
|
+
};
|
|
285723
|
+
|
|
285724
|
+
deepChildren(source);
|
|
285725
|
+
return source;
|
|
285726
|
+
}, [customizeDataSource, groupRowKeys]);
|
|
285727
|
+
return [groupDataSource];
|
|
285728
|
+
}
|
|
285729
|
+
|
|
285565
285730
|
var _excluded$29 = ["columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "groupRowKeys", "groupColKeys", "emptyProps"],
|
|
285566
285731
|
_excluded2$w = ["className", "style"],
|
|
285567
285732
|
_excluded3$7 = ["onResize", "width", "onResizeStop"];
|
|
285568
285733
|
var Summary$1 = ProviderWarp.Summary;
|
|
285569
|
-
var ConfigContext$
|
|
285734
|
+
var ConfigContext$5 = ConfigProvider$1.ConfigContext;
|
|
285570
285735
|
|
|
285571
285736
|
var isEmpty = function isEmpty(obj) {
|
|
285572
285737
|
var _Object$keys;
|
|
@@ -285642,7 +285807,7 @@
|
|
|
285642
285807
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
285643
285808
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
285644
285809
|
|
|
285645
|
-
var _React$useContext = React__default['default'].useContext(ConfigContext$
|
|
285810
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$5),
|
|
285646
285811
|
locale = _React$useContext.locale;
|
|
285647
285812
|
|
|
285648
285813
|
var transformRowClick = function transformRowClick(data) {
|
|
@@ -285698,15 +285863,16 @@
|
|
|
285698
285863
|
}, [customizeColumns]);
|
|
285699
285864
|
/** 行分组 */
|
|
285700
285865
|
|
|
285701
|
-
var
|
|
285702
|
-
|
|
285703
|
-
|
|
285704
|
-
|
|
285705
|
-
|
|
285706
|
-
|
|
285707
|
-
|
|
285866
|
+
var _useGroupDataSource = useGroupDataSource({
|
|
285867
|
+
groupRowKeys: groupRowKeys,
|
|
285868
|
+
customizeDataSource: customizeDataSource,
|
|
285869
|
+
columnsRef: columnsRef
|
|
285870
|
+
}),
|
|
285871
|
+
_useGroupDataSource2 = _slicedToArray$1(_useGroupDataSource, 1),
|
|
285872
|
+
groupDataSource = _useGroupDataSource2[0];
|
|
285708
285873
|
/** 列分组 */
|
|
285709
285874
|
|
|
285875
|
+
|
|
285710
285876
|
var _useMemo = React.useMemo(function () {
|
|
285711
285877
|
if (!(groupColKeys === null || groupColKeys === void 0 ? void 0 : groupColKeys.length)) {
|
|
285712
285878
|
return {
|
|
@@ -288043,7 +288209,7 @@
|
|
|
288043
288209
|
LMModal.config = Modal$1.config;
|
|
288044
288210
|
|
|
288045
288211
|
var _excluded$2f = ["children", "className"];
|
|
288046
|
-
var ConfigContext$
|
|
288212
|
+
var ConfigContext$6 = ConfigProvider$1.ConfigContext;
|
|
288047
288213
|
var prefixCls$6 = 'lm_pagination';
|
|
288048
288214
|
|
|
288049
288215
|
var LMPagination = function LMPagination(props) {
|
|
@@ -288051,7 +288217,7 @@
|
|
|
288051
288217
|
className = props.className,
|
|
288052
288218
|
others = _objectWithoutProperties$1(props, _excluded$2f);
|
|
288053
288219
|
|
|
288054
|
-
var _React$useContext = React__default['default'].useContext(ConfigContext$
|
|
288220
|
+
var _React$useContext = React__default['default'].useContext(ConfigContext$6),
|
|
288055
288221
|
locale = _React$useContext.locale; // 更改中文语言包内容显示
|
|
288056
288222
|
|
|
288057
288223
|
|
|
@@ -288104,19 +288270,24 @@
|
|
|
288104
288270
|
|
|
288105
288271
|
LMRadio.Button = Radio$1.Button;
|
|
288106
288272
|
|
|
288107
|
-
var _excluded$2h = ["children", "className", "size", "dropdownClassName", "options", "value", "defaultLabel"];
|
|
288273
|
+
var _excluded$2h = ["children", "className", "size", "disabled", "dropdownClassName", "options", "value", "defaultLabel"];
|
|
288108
288274
|
var prefixCls$7 = 'lm_select';
|
|
288109
288275
|
var CLMSelect$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
288110
288276
|
var children = props.children,
|
|
288111
288277
|
className = props.className,
|
|
288112
288278
|
customizeSize = props.size,
|
|
288279
|
+
customDisabled = props.disabled,
|
|
288113
288280
|
dropdownClassName = props.dropdownClassName,
|
|
288114
288281
|
options = props.options,
|
|
288115
288282
|
value = props.value,
|
|
288116
288283
|
defaultLabel = props.defaultLabel,
|
|
288117
|
-
|
|
288284
|
+
rest = _objectWithoutProperties$1(props, _excluded$2h); // ===================== Size =====================
|
|
288118
288285
|
|
|
288119
|
-
|
|
288286
|
+
|
|
288287
|
+
var size = customizeSize || React__default['default'].useContext(SizeContext$1) || 'middle'; // ===================== Disabled =====================
|
|
288288
|
+
|
|
288289
|
+
var disabled = React__default['default'].useContext(DisabledContext$1);
|
|
288290
|
+
var mergedDisabled = customDisabled || disabled; // 当前值是否存于选项中
|
|
288120
288291
|
|
|
288121
288292
|
var hasOption = React.useMemo(function () {
|
|
288122
288293
|
var flag = false;
|
|
@@ -288135,24 +288306,27 @@
|
|
|
288135
288306
|
|
|
288136
288307
|
if (options) {
|
|
288137
288308
|
flag = !!options.some(function (v) {
|
|
288138
|
-
|
|
288309
|
+
var _props$fieldNames$val, _props$fieldNames;
|
|
288310
|
+
|
|
288311
|
+
return v[(_props$fieldNames$val = (_props$fieldNames = props.fieldNames) === null || _props$fieldNames === void 0 ? void 0 : _props$fieldNames.value) !== null && _props$fieldNames$val !== void 0 ? _props$fieldNames$val : 'value'] === value;
|
|
288139
288312
|
});
|
|
288140
288313
|
}
|
|
288141
288314
|
|
|
288142
288315
|
return flag;
|
|
288143
|
-
}, [children, value, options]); // 重组value: 传入value但找不到options项时,展示默认label
|
|
288316
|
+
}, [children, value, options, props.fieldNames]); // 重组value: 传入value但找不到options项时,展示默认label
|
|
288144
288317
|
|
|
288145
288318
|
var resetValue = React.useMemo(function () {
|
|
288146
288319
|
if (value && !hasOption) return defaultLabel !== null && defaultLabel !== void 0 ? defaultLabel : value;
|
|
288147
288320
|
return value;
|
|
288148
|
-
}, [value, hasOption]);
|
|
288321
|
+
}, [value, defaultLabel, hasOption]);
|
|
288149
288322
|
return /*#__PURE__*/React__default['default'].createElement(Select$2, _objectSpread(_objectSpread({
|
|
288150
288323
|
className: classnames(className, prefixCls$7),
|
|
288151
288324
|
size: size,
|
|
288152
288325
|
ref: ref,
|
|
288153
288326
|
value: resetValue,
|
|
288154
|
-
options: options
|
|
288155
|
-
|
|
288327
|
+
options: options,
|
|
288328
|
+
disabled: mergedDisabled || undefined
|
|
288329
|
+
}, rest), {}, {
|
|
288156
288330
|
dropdownClassName: classnames('lm_select_dropdown', dropdownClassName)
|
|
288157
288331
|
}), children);
|
|
288158
288332
|
});
|
|
@@ -300388,28 +300562,6 @@
|
|
|
300388
300562
|
var isIllegalName = formItemNameBlackList$1.indexOf(mergedId) >= 0;
|
|
300389
300563
|
return isIllegalName ? "".concat(defaultItemNamePrefixCls$1, "_").concat(mergedId) : mergedId;
|
|
300390
300564
|
}
|
|
300391
|
-
function updateFormResponsiveClass(dom) {
|
|
300392
|
-
var form = dom.tagName.toLocaleLowerCase() === 'form' ? dom : dom.querySelector('form');
|
|
300393
|
-
|
|
300394
|
-
if (form) {
|
|
300395
|
-
var index = 0;
|
|
300396
|
-
Array.prototype.slice.call(form.children).forEach(function (element) {
|
|
300397
|
-
if (element.classList.contains('ant-form-item-responsive')) {
|
|
300398
|
-
index += 1;
|
|
300399
|
-
|
|
300400
|
-
if (index % 3 === 0) {
|
|
300401
|
-
element.classList.add('nth-three');
|
|
300402
|
-
} else if (index % 4 === 0) {
|
|
300403
|
-
element.classList.add('nth-four');
|
|
300404
|
-
} else if (index % 5 === 0) {
|
|
300405
|
-
element.classList.add('nth-five');
|
|
300406
|
-
}
|
|
300407
|
-
} else {
|
|
300408
|
-
index = 0;
|
|
300409
|
-
}
|
|
300410
|
-
});
|
|
300411
|
-
}
|
|
300412
|
-
}
|
|
300413
300565
|
|
|
300414
300566
|
function toNamePathStr$1(name) {
|
|
300415
300567
|
var namePath = toArray$c(name);
|
|
@@ -300459,732 +300611,9 @@
|
|
|
300459
300611
|
return [wrapForm];
|
|
300460
300612
|
}
|
|
300461
300613
|
|
|
300462
|
-
var _excluded$2z = ["children", "className", "responsive"];
|
|
300463
|
-
var prefixCls$a = 'lm_container';
|
|
300464
|
-
|
|
300465
|
-
var LMContainer = function LMContainer(props) {
|
|
300466
|
-
var children = props.children,
|
|
300467
|
-
className = props.className,
|
|
300468
|
-
responsive = props.responsive,
|
|
300469
|
-
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
300470
|
-
|
|
300471
|
-
var _useState = React.useState({
|
|
300472
|
-
width: '100%',
|
|
300473
|
-
height: '100%'
|
|
300474
|
-
}),
|
|
300475
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
300476
|
-
containerSize = _useState2[0],
|
|
300477
|
-
setContainerSize = _useState2[1];
|
|
300478
|
-
|
|
300479
|
-
var containerWrapRef = React.useRef(null);
|
|
300480
|
-
var throttleSize = React.useCallback(function () {
|
|
300481
|
-
var width = containerSize.width,
|
|
300482
|
-
height = containerSize.height;
|
|
300483
|
-
var responsiveCls = responsive && width !== '100%' ? 'responsive' : '';
|
|
300484
|
-
var lm_col = '';
|
|
300485
|
-
|
|
300486
|
-
if (responsiveCls) {
|
|
300487
|
-
if (parseInt(width) < 990) {
|
|
300488
|
-
lm_col = 'lm_col_3';
|
|
300489
|
-
} else if (parseInt(width) < 1390) {
|
|
300490
|
-
lm_col = 'lm_col_4';
|
|
300491
|
-
} else {
|
|
300492
|
-
lm_col = 'lm_col_5';
|
|
300493
|
-
}
|
|
300494
|
-
}
|
|
300495
|
-
|
|
300496
|
-
var classes = classnames(className, prefixCls$a, responsiveCls, lm_col);
|
|
300497
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({
|
|
300498
|
-
className: classes
|
|
300499
|
-
}, others), {}, {
|
|
300500
|
-
style: {
|
|
300501
|
-
width: width,
|
|
300502
|
-
height: height
|
|
300503
|
-
}
|
|
300504
|
-
}), children);
|
|
300505
|
-
}, [containerSize, props]);
|
|
300506
|
-
|
|
300507
|
-
var changeSize = function changeSize() {
|
|
300508
|
-
var _containerWrapRef$cur;
|
|
300509
|
-
|
|
300510
|
-
updateFormResponsiveClass(containerWrapRef.current);
|
|
300511
|
-
|
|
300512
|
-
var _ref = ((_containerWrapRef$cur = containerWrapRef.current) === null || _containerWrapRef$cur === void 0 ? void 0 : _containerWrapRef$cur.getBoundingClientRect()) || {},
|
|
300513
|
-
_ref$width = _ref.width,
|
|
300514
|
-
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
300515
|
-
|
|
300516
|
-
setContainerSize({
|
|
300517
|
-
width: width,
|
|
300518
|
-
height: '100%'
|
|
300519
|
-
});
|
|
300520
|
-
};
|
|
300521
|
-
|
|
300522
|
-
var handResize = lodash.throttle(changeSize, 600);
|
|
300523
|
-
React.useEffect(function () {
|
|
300524
|
-
setTimeout(function () {
|
|
300525
|
-
changeSize();
|
|
300526
|
-
}, 100);
|
|
300527
|
-
window.addEventListener('resize', handResize);
|
|
300528
|
-
return function () {
|
|
300529
|
-
window.removeEventListener('resize', handResize);
|
|
300530
|
-
};
|
|
300531
|
-
}, []);
|
|
300532
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
300533
|
-
className: "lm_container_wrapper",
|
|
300534
|
-
ref: containerWrapRef,
|
|
300535
|
-
style: {
|
|
300536
|
-
width: '100%',
|
|
300537
|
-
height: '100%'
|
|
300538
|
-
}
|
|
300539
|
-
}, throttleSize());
|
|
300540
|
-
};
|
|
300541
|
-
|
|
300542
|
-
var _excluded$2A = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive"];
|
|
300543
|
-
|
|
300544
|
-
var InternalForm$2 = function InternalForm(props, ref) {
|
|
300545
|
-
var _classNames;
|
|
300546
|
-
|
|
300547
|
-
var contextSize = React.useContext(SizeContext$1);
|
|
300548
|
-
var contextDisabled = React.useContext(DisabledContext$1);
|
|
300549
|
-
|
|
300550
|
-
var _React$useContext = React.useContext(ConfigContext$1),
|
|
300551
|
-
getPrefixCls = _React$useContext.getPrefixCls,
|
|
300552
|
-
direction = _React$useContext.direction,
|
|
300553
|
-
contextForm = _React$useContext.form;
|
|
300554
|
-
|
|
300555
|
-
var customizePrefixCls = props.prefixCls,
|
|
300556
|
-
_props$className = props.className,
|
|
300557
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
300558
|
-
_props$size = props.size,
|
|
300559
|
-
size = _props$size === void 0 ? contextSize : _props$size,
|
|
300560
|
-
_props$disabled = props.disabled,
|
|
300561
|
-
disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled,
|
|
300562
|
-
form = props.form,
|
|
300563
|
-
colon = props.colon,
|
|
300564
|
-
labelAlign = props.labelAlign,
|
|
300565
|
-
labelWrap = props.labelWrap,
|
|
300566
|
-
labelCol = props.labelCol,
|
|
300567
|
-
wrapperCol = props.wrapperCol,
|
|
300568
|
-
hideRequiredMark = props.hideRequiredMark,
|
|
300569
|
-
_props$layout = props.layout,
|
|
300570
|
-
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
300571
|
-
scrollToFirstError = props.scrollToFirstError,
|
|
300572
|
-
requiredMark = props.requiredMark,
|
|
300573
|
-
onFinishFailed = props.onFinishFailed,
|
|
300574
|
-
name = props.name,
|
|
300575
|
-
responsive = props.responsive,
|
|
300576
|
-
restFormProps = _objectWithoutProperties$1(props, _excluded$2A);
|
|
300577
|
-
|
|
300578
|
-
var mergedRequiredMark = React.useMemo(function () {
|
|
300579
|
-
if (requiredMark !== undefined) {
|
|
300580
|
-
return requiredMark;
|
|
300581
|
-
}
|
|
300582
|
-
|
|
300583
|
-
if (contextForm && contextForm.requiredMark !== undefined) {
|
|
300584
|
-
return contextForm.requiredMark;
|
|
300585
|
-
}
|
|
300586
|
-
|
|
300587
|
-
if (hideRequiredMark) {
|
|
300588
|
-
return false;
|
|
300589
|
-
}
|
|
300590
|
-
|
|
300591
|
-
return true;
|
|
300592
|
-
}, [hideRequiredMark, requiredMark, contextForm]);
|
|
300593
|
-
var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon;
|
|
300594
|
-
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
|
300595
|
-
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);
|
|
300596
|
-
|
|
300597
|
-
var _useForm = useForm$2(form),
|
|
300598
|
-
_useForm2 = _slicedToArray$1(_useForm, 1),
|
|
300599
|
-
wrapForm = _useForm2[0];
|
|
300600
|
-
|
|
300601
|
-
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
|
300602
|
-
__INTERNAL__.name = name;
|
|
300603
|
-
var formContextValue = React.useMemo(function () {
|
|
300604
|
-
return {
|
|
300605
|
-
name: name,
|
|
300606
|
-
labelAlign: labelAlign,
|
|
300607
|
-
labelCol: labelCol,
|
|
300608
|
-
labelWrap: labelWrap,
|
|
300609
|
-
wrapperCol: wrapperCol,
|
|
300610
|
-
vertical: layout === 'vertical',
|
|
300611
|
-
colon: mergedColon,
|
|
300612
|
-
requiredMark: mergedRequiredMark,
|
|
300613
|
-
itemRef: __INTERNAL__.itemRef,
|
|
300614
|
-
form: wrapForm
|
|
300615
|
-
};
|
|
300616
|
-
}, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]);
|
|
300617
|
-
React.useImperativeHandle(ref, function () {
|
|
300618
|
-
return wrapForm;
|
|
300619
|
-
});
|
|
300620
|
-
|
|
300621
|
-
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
|
300622
|
-
onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo);
|
|
300623
|
-
var defaultScrollToFirstError = {
|
|
300624
|
-
block: 'nearest'
|
|
300625
|
-
};
|
|
300626
|
-
|
|
300627
|
-
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
300628
|
-
if (_typeof$1(scrollToFirstError) === 'object') {
|
|
300629
|
-
defaultScrollToFirstError = scrollToFirstError;
|
|
300630
|
-
}
|
|
300631
|
-
|
|
300632
|
-
wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError);
|
|
300633
|
-
}
|
|
300634
|
-
};
|
|
300635
|
-
|
|
300636
|
-
var formNode = /*#__PURE__*/React.createElement(DisabledContextProvider$1, {
|
|
300637
|
-
disabled: disabled
|
|
300638
|
-
}, /*#__PURE__*/React.createElement(SizeContextProvider$1, {
|
|
300639
|
-
size: size
|
|
300640
|
-
}, /*#__PURE__*/React.createElement(FormContext$2.Provider, {
|
|
300641
|
-
value: formContextValue
|
|
300642
|
-
}, /*#__PURE__*/React.createElement(RefForm, _objectSpread(_objectSpread({
|
|
300643
|
-
id: name
|
|
300644
|
-
}, restFormProps), {}, {
|
|
300645
|
-
name: name,
|
|
300646
|
-
onFinishFailed: onInternalFinishFailed,
|
|
300647
|
-
form: wrapForm,
|
|
300648
|
-
className: formClassName
|
|
300649
|
-
})))));
|
|
300650
|
-
|
|
300651
|
-
if (responsive) {
|
|
300652
|
-
return /*#__PURE__*/React.createElement(LMContainer, {
|
|
300653
|
-
responsive: true
|
|
300654
|
-
}, formNode);
|
|
300655
|
-
}
|
|
300656
|
-
|
|
300657
|
-
return formNode;
|
|
300658
|
-
};
|
|
300659
|
-
|
|
300660
|
-
var Form$3 = /*#__PURE__*/React.forwardRef(InternalForm$2);
|
|
300661
|
-
|
|
300662
|
-
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
300663
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
300664
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
300665
|
-
|
|
300666
|
-
if (!it) {
|
|
300667
|
-
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
300668
|
-
if (it) o = it;
|
|
300669
|
-
var i = 0;
|
|
300670
|
-
|
|
300671
|
-
var F = function F() {};
|
|
300672
|
-
|
|
300673
|
-
return {
|
|
300674
|
-
s: F,
|
|
300675
|
-
n: function n() {
|
|
300676
|
-
if (i >= o.length) return {
|
|
300677
|
-
done: true
|
|
300678
|
-
};
|
|
300679
|
-
return {
|
|
300680
|
-
done: false,
|
|
300681
|
-
value: o[i++]
|
|
300682
|
-
};
|
|
300683
|
-
},
|
|
300684
|
-
e: function e(_e) {
|
|
300685
|
-
throw _e;
|
|
300686
|
-
},
|
|
300687
|
-
f: F
|
|
300688
|
-
};
|
|
300689
|
-
}
|
|
300690
|
-
|
|
300691
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
300692
|
-
}
|
|
300693
|
-
|
|
300694
|
-
var normalCompletion = true,
|
|
300695
|
-
didErr = false,
|
|
300696
|
-
err;
|
|
300697
|
-
return {
|
|
300698
|
-
s: function s() {
|
|
300699
|
-
it = it.call(o);
|
|
300700
|
-
},
|
|
300701
|
-
n: function n() {
|
|
300702
|
-
var step = it.next();
|
|
300703
|
-
normalCompletion = step.done;
|
|
300704
|
-
return step;
|
|
300705
|
-
},
|
|
300706
|
-
e: function e(_e2) {
|
|
300707
|
-
didErr = true;
|
|
300708
|
-
err = _e2;
|
|
300709
|
-
},
|
|
300710
|
-
f: function f() {
|
|
300711
|
-
try {
|
|
300712
|
-
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
300713
|
-
} finally {
|
|
300714
|
-
if (didErr) throw err;
|
|
300715
|
-
}
|
|
300716
|
-
}
|
|
300717
|
-
};
|
|
300718
|
-
}
|
|
300719
|
-
|
|
300720
|
-
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
300721
|
-
});
|
|
300722
|
-
|
|
300723
|
-
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
300724
|
-
|
|
300725
|
-
var ref$1 = createCommonjsModule(function (module, exports) {
|
|
300726
|
-
|
|
300727
|
-
|
|
300728
|
-
|
|
300729
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300730
|
-
value: true
|
|
300731
|
-
});
|
|
300732
|
-
exports.composeRef = composeRef;
|
|
300733
|
-
exports.fillRef = fillRef;
|
|
300734
|
-
exports.supportRef = supportRef;
|
|
300735
|
-
exports.useComposeRef = useComposeRef;
|
|
300736
|
-
|
|
300737
|
-
var _typeof2 = interopRequireDefault(_typeof_1);
|
|
300738
|
-
|
|
300739
|
-
|
|
300740
|
-
|
|
300741
|
-
var _useMemo = interopRequireDefault(useMemo_1);
|
|
300742
|
-
|
|
300743
|
-
function fillRef(ref, node) {
|
|
300744
|
-
if (typeof ref === 'function') {
|
|
300745
|
-
ref(node);
|
|
300746
|
-
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
300747
|
-
ref.current = node;
|
|
300748
|
-
}
|
|
300749
|
-
}
|
|
300750
|
-
/**
|
|
300751
|
-
* Merge refs into one ref function to support ref passing.
|
|
300752
|
-
*/
|
|
300753
|
-
|
|
300754
|
-
|
|
300755
|
-
function composeRef() {
|
|
300756
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
300757
|
-
refs[_key] = arguments[_key];
|
|
300758
|
-
}
|
|
300759
|
-
|
|
300760
|
-
var refList = refs.filter(function (ref) {
|
|
300761
|
-
return ref;
|
|
300762
|
-
});
|
|
300763
|
-
|
|
300764
|
-
if (refList.length <= 1) {
|
|
300765
|
-
return refList[0];
|
|
300766
|
-
}
|
|
300767
|
-
|
|
300768
|
-
return function (node) {
|
|
300769
|
-
refs.forEach(function (ref) {
|
|
300770
|
-
fillRef(ref, node);
|
|
300771
|
-
});
|
|
300772
|
-
};
|
|
300773
|
-
}
|
|
300774
|
-
|
|
300775
|
-
function useComposeRef() {
|
|
300776
|
-
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
300777
|
-
refs[_key2] = arguments[_key2];
|
|
300778
|
-
}
|
|
300779
|
-
|
|
300780
|
-
return (0, _useMemo.default)(function () {
|
|
300781
|
-
return composeRef.apply(void 0, refs);
|
|
300782
|
-
}, refs, function (prev, next) {
|
|
300783
|
-
return prev.length === next.length && prev.every(function (ref, i) {
|
|
300784
|
-
return ref === next[i];
|
|
300785
|
-
});
|
|
300786
|
-
});
|
|
300787
|
-
}
|
|
300788
|
-
|
|
300789
|
-
function supportRef(nodeOrComponent) {
|
|
300790
|
-
var _type$prototype, _nodeOrComponent$prot;
|
|
300791
|
-
|
|
300792
|
-
var type = (0, reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
300793
|
-
|
|
300794
|
-
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
300795
|
-
return false;
|
|
300796
|
-
} // Class component
|
|
300797
|
-
|
|
300798
|
-
|
|
300799
|
-
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
300800
|
-
return false;
|
|
300801
|
-
}
|
|
300802
|
-
|
|
300803
|
-
return true;
|
|
300804
|
-
}
|
|
300805
|
-
/* eslint-enable */
|
|
300806
|
-
});
|
|
300807
|
-
|
|
300808
|
-
var useFormItemStatus$1 = function useFormItemStatus() {
|
|
300809
|
-
var _useContext = React.useContext(FormItemInputContext$1),
|
|
300810
|
-
status = _useContext.status;
|
|
300811
|
-
|
|
300812
|
-
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"));
|
|
300813
|
-
return {
|
|
300814
|
-
status: status
|
|
300815
|
-
};
|
|
300816
|
-
};
|
|
300817
|
-
|
|
300818
|
-
var raf_1 = createCommonjsModule(function (module, exports) {
|
|
300819
|
-
|
|
300820
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300821
|
-
value: true
|
|
300822
|
-
});
|
|
300823
|
-
exports.default = wrapperRaf;
|
|
300824
|
-
|
|
300825
|
-
var raf = function raf(callback) {
|
|
300826
|
-
return +setTimeout(callback, 16);
|
|
300827
|
-
};
|
|
300828
|
-
|
|
300829
|
-
var caf = function caf(num) {
|
|
300830
|
-
return clearTimeout(num);
|
|
300831
|
-
};
|
|
300832
|
-
|
|
300833
|
-
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
300834
|
-
raf = function raf(callback) {
|
|
300835
|
-
return window.requestAnimationFrame(callback);
|
|
300836
|
-
};
|
|
300837
|
-
|
|
300838
|
-
caf = function caf(handle) {
|
|
300839
|
-
return window.cancelAnimationFrame(handle);
|
|
300840
|
-
};
|
|
300841
|
-
}
|
|
300842
|
-
|
|
300843
|
-
var rafUUID = 0;
|
|
300844
|
-
var rafIds = new Map();
|
|
300845
|
-
|
|
300846
|
-
function cleanup(id) {
|
|
300847
|
-
rafIds.delete(id);
|
|
300848
|
-
}
|
|
300849
|
-
|
|
300850
|
-
function wrapperRaf(callback) {
|
|
300851
|
-
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
300852
|
-
rafUUID += 1;
|
|
300853
|
-
var id = rafUUID;
|
|
300854
|
-
|
|
300855
|
-
function callRef(leftTimes) {
|
|
300856
|
-
if (leftTimes === 0) {
|
|
300857
|
-
// Clean up
|
|
300858
|
-
cleanup(id); // Trigger
|
|
300859
|
-
|
|
300860
|
-
callback();
|
|
300861
|
-
} else {
|
|
300862
|
-
// Next raf
|
|
300863
|
-
var realId = raf(function () {
|
|
300864
|
-
callRef(leftTimes - 1);
|
|
300865
|
-
}); // Bind real raf id
|
|
300866
|
-
|
|
300867
|
-
rafIds.set(id, realId);
|
|
300868
|
-
}
|
|
300869
|
-
}
|
|
300870
|
-
|
|
300871
|
-
callRef(times);
|
|
300872
|
-
return id;
|
|
300873
|
-
}
|
|
300874
|
-
|
|
300875
|
-
wrapperRaf.cancel = function (id) {
|
|
300876
|
-
var realId = rafIds.get(id);
|
|
300877
|
-
cleanup(realId);
|
|
300878
|
-
return caf(realId);
|
|
300879
|
-
};
|
|
300880
|
-
});
|
|
300881
|
-
|
|
300882
|
-
var raf$1 = /*@__PURE__*/getDefaultExportFromCjs(raf_1);
|
|
300883
|
-
|
|
300884
|
-
function useFrameState$1(defaultValue) {
|
|
300885
|
-
var _React$useState = React.useState(defaultValue),
|
|
300886
|
-
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
300887
|
-
value = _React$useState2[0],
|
|
300888
|
-
setValue = _React$useState2[1];
|
|
300889
|
-
|
|
300890
|
-
var frameRef = React.useRef(null);
|
|
300891
|
-
var batchRef = React.useRef([]);
|
|
300892
|
-
var destroyRef = React.useRef(false);
|
|
300893
|
-
React.useEffect(function () {
|
|
300894
|
-
destroyRef.current = false;
|
|
300895
|
-
return function () {
|
|
300896
|
-
destroyRef.current = true;
|
|
300897
|
-
raf$1.cancel(frameRef.current);
|
|
300898
|
-
frameRef.current = null;
|
|
300899
|
-
};
|
|
300900
|
-
}, []);
|
|
300901
|
-
|
|
300902
|
-
function setFrameValue(updater) {
|
|
300903
|
-
if (destroyRef.current) {
|
|
300904
|
-
return;
|
|
300905
|
-
}
|
|
300906
|
-
|
|
300907
|
-
if (frameRef.current === null) {
|
|
300908
|
-
batchRef.current = [];
|
|
300909
|
-
frameRef.current = raf$1(function () {
|
|
300910
|
-
frameRef.current = null;
|
|
300911
|
-
setValue(function (prevValue) {
|
|
300912
|
-
var current = prevValue;
|
|
300913
|
-
batchRef.current.forEach(function (func) {
|
|
300914
|
-
current = func(current);
|
|
300915
|
-
});
|
|
300916
|
-
return current;
|
|
300917
|
-
});
|
|
300918
|
-
});
|
|
300919
|
-
}
|
|
300920
|
-
|
|
300921
|
-
batchRef.current.push(updater);
|
|
300922
|
-
}
|
|
300923
|
-
|
|
300924
|
-
return [value, setFrameValue];
|
|
300925
|
-
}
|
|
300926
|
-
|
|
300927
|
-
function useItemRef$1() {
|
|
300928
|
-
var _React$useContext = React.useContext(FormContext$2),
|
|
300929
|
-
itemRef = _React$useContext.itemRef;
|
|
300930
|
-
|
|
300931
|
-
var cacheRef = React.useRef({});
|
|
300932
|
-
|
|
300933
|
-
function getRef(name, children) {
|
|
300934
|
-
var childrenRef = children && _typeof$1(children) === 'object' && children.ref;
|
|
300935
|
-
var nameStr = name.join('_');
|
|
300936
|
-
|
|
300937
|
-
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
|
300938
|
-
cacheRef.current.name = nameStr;
|
|
300939
|
-
cacheRef.current.originRef = childrenRef;
|
|
300940
|
-
cacheRef.current.ref = ref$1.composeRef(itemRef(name), childrenRef);
|
|
300941
|
-
}
|
|
300942
|
-
|
|
300943
|
-
return cacheRef.current.ref;
|
|
300944
|
-
}
|
|
300945
|
-
|
|
300946
|
-
return getRef;
|
|
300947
|
-
}
|
|
300948
|
-
|
|
300949
|
-
var CheckCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
300950
|
-
// This icon file is generated automatically.
|
|
300951
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
300952
|
-
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" };
|
|
300953
|
-
exports.default = CheckCircleFilled;
|
|
300954
|
-
});
|
|
300955
|
-
|
|
300956
|
-
var CheckCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
300957
|
-
|
|
300958
|
-
|
|
300959
|
-
|
|
300960
|
-
|
|
300961
|
-
|
|
300962
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300963
|
-
value: true
|
|
300964
|
-
});
|
|
300965
|
-
exports.default = void 0;
|
|
300966
|
-
|
|
300967
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
300968
|
-
|
|
300969
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
300970
|
-
|
|
300971
|
-
var _CheckCircleFilled = interopRequireDefault(CheckCircleFilled_1);
|
|
300972
|
-
|
|
300973
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
300974
|
-
|
|
300975
|
-
// GENERATE BY ./scripts/generate.ts
|
|
300976
|
-
// DON NOT EDIT IT MANUALLY
|
|
300977
|
-
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
300978
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
300979
|
-
ref: ref,
|
|
300980
|
-
icon: _CheckCircleFilled.default
|
|
300981
|
-
}));
|
|
300982
|
-
};
|
|
300983
|
-
|
|
300984
|
-
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
300985
|
-
|
|
300986
|
-
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
300987
|
-
|
|
300988
|
-
exports.default = _default;
|
|
300989
|
-
});
|
|
300990
|
-
|
|
300991
|
-
var CheckCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
300992
|
-
Object.defineProperty(exports, "__esModule", {
|
|
300993
|
-
value: true
|
|
300994
|
-
});
|
|
300995
|
-
exports.default = void 0;
|
|
300996
|
-
|
|
300997
|
-
var _CheckCircleFilled = _interopRequireDefault(CheckCircleFilled_1$1);
|
|
300998
|
-
|
|
300999
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301000
|
-
|
|
301001
|
-
var _default = _CheckCircleFilled;
|
|
301002
|
-
exports.default = _default;
|
|
301003
|
-
module.exports = _default;
|
|
301004
|
-
});
|
|
301005
|
-
|
|
301006
|
-
var CheckCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CheckCircleFilled$3);
|
|
301007
|
-
|
|
301008
|
-
var CloseCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301009
|
-
// This icon file is generated automatically.
|
|
301010
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301011
|
-
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" };
|
|
301012
|
-
exports.default = CloseCircleFilled;
|
|
301013
|
-
});
|
|
301014
|
-
|
|
301015
|
-
var CloseCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301016
|
-
|
|
301017
|
-
|
|
301018
|
-
|
|
301019
|
-
|
|
301020
|
-
|
|
301021
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301022
|
-
value: true
|
|
301023
|
-
});
|
|
301024
|
-
exports.default = void 0;
|
|
301025
|
-
|
|
301026
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301027
|
-
|
|
301028
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301029
|
-
|
|
301030
|
-
var _CloseCircleFilled = interopRequireDefault(CloseCircleFilled_1);
|
|
301031
|
-
|
|
301032
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301033
|
-
|
|
301034
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301035
|
-
// DON NOT EDIT IT MANUALLY
|
|
301036
|
-
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
301037
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301038
|
-
ref: ref,
|
|
301039
|
-
icon: _CloseCircleFilled.default
|
|
301040
|
-
}));
|
|
301041
|
-
};
|
|
301042
|
-
|
|
301043
|
-
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
301044
|
-
|
|
301045
|
-
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
301046
|
-
|
|
301047
|
-
exports.default = _default;
|
|
301048
|
-
});
|
|
301049
|
-
|
|
301050
|
-
var CloseCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301051
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301052
|
-
value: true
|
|
301053
|
-
});
|
|
301054
|
-
exports.default = void 0;
|
|
301055
|
-
|
|
301056
|
-
var _CloseCircleFilled = _interopRequireDefault(CloseCircleFilled_1$1);
|
|
301057
|
-
|
|
301058
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301059
|
-
|
|
301060
|
-
var _default = _CloseCircleFilled;
|
|
301061
|
-
exports.default = _default;
|
|
301062
|
-
module.exports = _default;
|
|
301063
|
-
});
|
|
301064
|
-
|
|
301065
|
-
var CloseCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CloseCircleFilled$3);
|
|
301066
|
-
|
|
301067
|
-
var ExclamationCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
301068
|
-
// This icon file is generated automatically.
|
|
301069
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301070
|
-
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" };
|
|
301071
|
-
exports.default = ExclamationCircleFilled;
|
|
301072
|
-
});
|
|
301073
|
-
|
|
301074
|
-
var ExclamationCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
301075
|
-
|
|
301076
|
-
|
|
301077
|
-
|
|
301078
|
-
|
|
301079
|
-
|
|
301080
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301081
|
-
value: true
|
|
301082
|
-
});
|
|
301083
|
-
exports.default = void 0;
|
|
301084
|
-
|
|
301085
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301086
|
-
|
|
301087
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301088
|
-
|
|
301089
|
-
var _ExclamationCircleFilled = interopRequireDefault(ExclamationCircleFilled_1);
|
|
301090
|
-
|
|
301091
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301092
|
-
|
|
301093
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301094
|
-
// DON NOT EDIT IT MANUALLY
|
|
301095
|
-
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
301096
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301097
|
-
ref: ref,
|
|
301098
|
-
icon: _ExclamationCircleFilled.default
|
|
301099
|
-
}));
|
|
301100
|
-
};
|
|
301101
|
-
|
|
301102
|
-
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
301103
|
-
|
|
301104
|
-
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
301105
|
-
|
|
301106
|
-
exports.default = _default;
|
|
301107
|
-
});
|
|
301108
|
-
|
|
301109
|
-
var ExclamationCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
301110
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301111
|
-
value: true
|
|
301112
|
-
});
|
|
301113
|
-
exports.default = void 0;
|
|
301114
|
-
|
|
301115
|
-
var _ExclamationCircleFilled = _interopRequireDefault(ExclamationCircleFilled_1$1);
|
|
301116
|
-
|
|
301117
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301118
|
-
|
|
301119
|
-
var _default = _ExclamationCircleFilled;
|
|
301120
|
-
exports.default = _default;
|
|
301121
|
-
module.exports = _default;
|
|
301122
|
-
});
|
|
301123
|
-
|
|
301124
|
-
var ExclamationCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(ExclamationCircleFilled$3);
|
|
301125
|
-
|
|
301126
|
-
var LoadingOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
301127
|
-
// This icon file is generated automatically.
|
|
301128
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
301129
|
-
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" };
|
|
301130
|
-
exports.default = LoadingOutlined;
|
|
301131
|
-
});
|
|
301132
|
-
|
|
301133
|
-
var LoadingOutlined_1$1 = createCommonjsModule(function (module, exports) {
|
|
301134
|
-
|
|
301135
|
-
|
|
301136
|
-
|
|
301137
|
-
|
|
301138
|
-
|
|
301139
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301140
|
-
value: true
|
|
301141
|
-
});
|
|
301142
|
-
exports.default = void 0;
|
|
301143
|
-
|
|
301144
|
-
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
301145
|
-
|
|
301146
|
-
var React = interopRequireWildcard(React__default['default']);
|
|
301147
|
-
|
|
301148
|
-
var _LoadingOutlined = interopRequireDefault(LoadingOutlined_1);
|
|
301149
|
-
|
|
301150
|
-
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
301151
|
-
|
|
301152
|
-
// GENERATE BY ./scripts/generate.ts
|
|
301153
|
-
// DON NOT EDIT IT MANUALLY
|
|
301154
|
-
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
301155
|
-
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
301156
|
-
ref: ref,
|
|
301157
|
-
icon: _LoadingOutlined.default
|
|
301158
|
-
}));
|
|
301159
|
-
};
|
|
301160
|
-
|
|
301161
|
-
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
301162
|
-
|
|
301163
|
-
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
301164
|
-
|
|
301165
|
-
exports.default = _default;
|
|
301166
|
-
});
|
|
301167
|
-
|
|
301168
|
-
var LoadingOutlined$3 = createCommonjsModule(function (module, exports) {
|
|
301169
|
-
Object.defineProperty(exports, "__esModule", {
|
|
301170
|
-
value: true
|
|
301171
|
-
});
|
|
301172
|
-
exports.default = void 0;
|
|
301173
|
-
|
|
301174
|
-
var _LoadingOutlined = _interopRequireDefault(LoadingOutlined_1$1);
|
|
301175
|
-
|
|
301176
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
301177
|
-
|
|
301178
|
-
var _default = _LoadingOutlined;
|
|
301179
|
-
exports.default = _default;
|
|
301180
|
-
module.exports = _default;
|
|
301181
|
-
});
|
|
301182
|
-
|
|
301183
|
-
var LoadingOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(LoadingOutlined$3);
|
|
301184
|
-
|
|
301185
300614
|
var RowContext$1 = /*#__PURE__*/React.createContext({});
|
|
301186
300615
|
|
|
301187
|
-
var _excluded$
|
|
300616
|
+
var _excluded$2z = ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"];
|
|
301188
300617
|
|
|
301189
300618
|
function parseFlex$1(flex) {
|
|
301190
300619
|
if (typeof flex === 'number') {
|
|
@@ -301221,7 +300650,7 @@
|
|
|
301221
300650
|
children = props.children,
|
|
301222
300651
|
flex = props.flex,
|
|
301223
300652
|
style = props.style,
|
|
301224
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300653
|
+
others = _objectWithoutProperties$1(props, _excluded$2z);
|
|
301225
300654
|
|
|
301226
300655
|
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
301227
300656
|
var sizeClassObj = {};
|
|
@@ -301454,7 +300883,7 @@
|
|
|
301454
300883
|
return flexible;
|
|
301455
300884
|
});
|
|
301456
300885
|
|
|
301457
|
-
var _excluded$
|
|
300886
|
+
var _excluded$2A = ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"];
|
|
301458
300887
|
var RowAligns$1 = tuple$2('top', 'middle', 'bottom', 'stretch');
|
|
301459
300888
|
var RowJustify$1 = tuple$2('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
|
|
301460
300889
|
var Row$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -301469,7 +300898,7 @@
|
|
|
301469
300898
|
_props$gutter = props.gutter,
|
|
301470
300899
|
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
301471
300900
|
wrap = props.wrap,
|
|
301472
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
300901
|
+
others = _objectWithoutProperties$1(props, _excluded$2A);
|
|
301473
300902
|
|
|
301474
300903
|
var _React$useContext = React.useContext(ConfigContext),
|
|
301475
300904
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -303320,7 +302749,7 @@
|
|
|
303320
302749
|
return NextArrow;
|
|
303321
302750
|
}(React__default['default'].PureComponent);
|
|
303322
302751
|
|
|
303323
|
-
var _excluded$
|
|
302752
|
+
var _excluded$2B = ["animating"];
|
|
303324
302753
|
var InnerSlider = /*#__PURE__*/function (_React$Component) {
|
|
303325
302754
|
_inherits(InnerSlider, _React$Component);
|
|
303326
302755
|
|
|
@@ -303736,7 +303165,7 @@
|
|
|
303736
303165
|
if (!nextState) return;
|
|
303737
303166
|
_this.animationEndCallback = setTimeout(function () {
|
|
303738
303167
|
var animating = nextState.animating,
|
|
303739
|
-
firstBatch = _objectWithoutProperties(nextState, _excluded$
|
|
303168
|
+
firstBatch = _objectWithoutProperties(nextState, _excluded$2B);
|
|
303740
303169
|
|
|
303741
303170
|
_this.setState(firstBatch, function () {
|
|
303742
303171
|
_this.callbackTimers.push(setTimeout(function () {
|
|
@@ -305724,7 +305153,7 @@
|
|
|
305724
305153
|
Layout$1.Content = Content;
|
|
305725
305154
|
Layout$1.Sider = Sider;
|
|
305726
305155
|
|
|
305727
|
-
var _excluded$
|
|
305156
|
+
var _excluded$2C = ["children", "locked"];
|
|
305728
305157
|
var MenuContext$4 = /*#__PURE__*/React.createContext(null);
|
|
305729
305158
|
|
|
305730
305159
|
function mergeProps$3(origin, target) {
|
|
@@ -305743,7 +305172,7 @@
|
|
|
305743
305172
|
function InheritableContextProvider$3(_ref) {
|
|
305744
305173
|
var children = _ref.children,
|
|
305745
305174
|
locked = _ref.locked,
|
|
305746
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305175
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2C);
|
|
305747
305176
|
|
|
305748
305177
|
var context = React.useContext(MenuContext$4);
|
|
305749
305178
|
var inheritableContext = useMemo(function () {
|
|
@@ -305787,7 +305216,7 @@
|
|
|
305787
305216
|
return ret;
|
|
305788
305217
|
}
|
|
305789
305218
|
|
|
305790
|
-
var _excluded$
|
|
305219
|
+
var _excluded$2D = ["item"];
|
|
305791
305220
|
/**
|
|
305792
305221
|
* `onClick` event return `info.item` which point to react node directly.
|
|
305793
305222
|
* We should warning this since it will not work on FC.
|
|
@@ -305795,7 +305224,7 @@
|
|
|
305795
305224
|
|
|
305796
305225
|
function warnItemProp$3(_ref) {
|
|
305797
305226
|
var item = _ref.item,
|
|
305798
|
-
restInfo = _objectWithoutProperties(_ref, _excluded$
|
|
305227
|
+
restInfo = _objectWithoutProperties(_ref, _excluded$2D);
|
|
305799
305228
|
|
|
305800
305229
|
Object.defineProperty(restInfo, 'item', {
|
|
305801
305230
|
get: function get() {
|
|
@@ -305874,7 +305303,7 @@
|
|
|
305874
305303
|
|
|
305875
305304
|
var PrivateContext$3 = /*#__PURE__*/React.createContext({});
|
|
305876
305305
|
|
|
305877
|
-
var _excluded$
|
|
305306
|
+
var _excluded$2E = ["title", "attribute", "elementRef"],
|
|
305878
305307
|
_excluded2$F = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"],
|
|
305879
305308
|
_excluded3$a = ["active"];
|
|
305880
305309
|
// We have to use class component here.
|
|
@@ -305898,7 +305327,7 @@
|
|
|
305898
305327
|
title = _this$props.title,
|
|
305899
305328
|
attribute = _this$props.attribute,
|
|
305900
305329
|
elementRef = _this$props.elementRef,
|
|
305901
|
-
restProps = _objectWithoutProperties(_this$props, _excluded$
|
|
305330
|
+
restProps = _objectWithoutProperties(_this$props, _excluded$2E);
|
|
305902
305331
|
|
|
305903
305332
|
var passedProps = omit(restProps, ['eventKey']);
|
|
305904
305333
|
warningOnce(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
@@ -306073,7 +305502,7 @@
|
|
|
306073
305502
|
return /*#__PURE__*/React.createElement(InternalMenuItem$3, props);
|
|
306074
305503
|
}
|
|
306075
305504
|
|
|
306076
|
-
var _excluded$
|
|
305505
|
+
var _excluded$2F = ["label", "children", "key", "type"];
|
|
306077
305506
|
function parseChildren$3(children, keyPath) {
|
|
306078
305507
|
return toArray(children).map(function (child, index) {
|
|
306079
305508
|
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -306110,7 +305539,7 @@
|
|
|
306110
305539
|
children = opt.children,
|
|
306111
305540
|
key = opt.key,
|
|
306112
305541
|
type = opt.type,
|
|
306113
|
-
restProps = _objectWithoutProperties(opt, _excluded$
|
|
305542
|
+
restProps = _objectWithoutProperties(opt, _excluded$2F);
|
|
306114
305543
|
|
|
306115
305544
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index); // MenuItemGroup & SubMenuItem
|
|
306116
305545
|
|
|
@@ -306180,12 +305609,12 @@
|
|
|
306180
305609
|
return func ? callback : undefined;
|
|
306181
305610
|
}
|
|
306182
305611
|
|
|
306183
|
-
var _excluded$
|
|
305612
|
+
var _excluded$2G = ["className", "children"];
|
|
306184
305613
|
|
|
306185
305614
|
var InternalSubMenuList$3 = function InternalSubMenuList(_ref, ref) {
|
|
306186
305615
|
var className = _ref.className,
|
|
306187
305616
|
children = _ref.children,
|
|
306188
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
305617
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2G);
|
|
306189
305618
|
|
|
306190
305619
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
306191
305620
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -307014,7 +306443,7 @@
|
|
|
307014
306443
|
}));
|
|
307015
306444
|
}
|
|
307016
306445
|
|
|
307017
|
-
var _excluded$
|
|
306446
|
+
var _excluded$2H = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"],
|
|
307018
306447
|
_excluded2$G = ["active"];
|
|
307019
306448
|
|
|
307020
306449
|
var InternalSubMenu$3 = function InternalSubMenu(props) {
|
|
@@ -307038,7 +306467,7 @@
|
|
|
307038
306467
|
onTitleClick = props.onTitleClick,
|
|
307039
306468
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
307040
306469
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
307041
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
306470
|
+
restProps = _objectWithoutProperties(props, _excluded$2H);
|
|
307042
306471
|
|
|
307043
306472
|
var domDataId = useMenuId$3(eventKey);
|
|
307044
306473
|
|
|
@@ -307709,7 +307138,7 @@
|
|
|
307709
307138
|
};
|
|
307710
307139
|
}
|
|
307711
307140
|
|
|
307712
|
-
var _excluded$
|
|
307141
|
+
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"];
|
|
307713
307142
|
/**
|
|
307714
307143
|
* Menu modify after refactor:
|
|
307715
307144
|
* ## Add
|
|
@@ -307781,7 +307210,7 @@
|
|
|
307781
307210
|
openTransitionName = props.openTransitionName,
|
|
307782
307211
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
307783
307212
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
307784
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
307213
|
+
restProps = _objectWithoutProperties(props, _excluded$2I);
|
|
307785
307214
|
|
|
307786
307215
|
var childList = React.useMemo(function () {
|
|
307787
307216
|
return parseItems$3(children, items, EMPTY_LIST$7);
|
|
@@ -308126,7 +307555,7 @@
|
|
|
308126
307555
|
}, childList)))));
|
|
308127
307556
|
});
|
|
308128
307557
|
|
|
308129
|
-
var _excluded$
|
|
307558
|
+
var _excluded$2J = ["className", "title", "eventKey", "children"],
|
|
308130
307559
|
_excluded2$H = ["children"];
|
|
308131
307560
|
|
|
308132
307561
|
var InternalMenuItemGroup$3 = function InternalMenuItemGroup(_ref) {
|
|
@@ -308134,7 +307563,7 @@
|
|
|
308134
307563
|
title = _ref.title,
|
|
308135
307564
|
eventKey = _ref.eventKey,
|
|
308136
307565
|
children = _ref.children,
|
|
308137
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
307566
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2J);
|
|
308138
307567
|
|
|
308139
307568
|
var _React$useContext = React.useContext(MenuContext$4),
|
|
308140
307569
|
prefixCls = _React$useContext.prefixCls;
|
|
@@ -309758,7 +309187,7 @@
|
|
|
309758
309187
|
});
|
|
309759
309188
|
}
|
|
309760
309189
|
|
|
309761
|
-
var _excluded$
|
|
309190
|
+
var _excluded$2K = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
|
|
309762
309191
|
|
|
309763
309192
|
function getValidTitle(option) {
|
|
309764
309193
|
if (typeof option.title !== 'undefined') {
|
|
@@ -309837,7 +309266,7 @@
|
|
|
309837
309266
|
className = _props$className === void 0 ? '' : _props$className,
|
|
309838
309267
|
_props$motionName = props.motionName,
|
|
309839
309268
|
motionName = _props$motionName === void 0 ? 'thumb-motion' : _props$motionName,
|
|
309840
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
309269
|
+
restProps = _objectWithoutProperties(props, _excluded$2K);
|
|
309841
309270
|
|
|
309842
309271
|
var containerRef = React.useRef(null);
|
|
309843
309272
|
var mergedRef = React.useMemo(function () {
|
|
@@ -311219,6 +310648,867 @@
|
|
|
311219
310648
|
useBreakpoint: useBreakpoint$4
|
|
311220
310649
|
};
|
|
311221
310650
|
|
|
310651
|
+
var icon = require('./images/icon_collapse.svg'); // 行个数 => 在24份中占用的分数
|
|
310652
|
+
|
|
310653
|
+
|
|
310654
|
+
var rowMap = new Map([[5, [4, 1]], [4, [5, 1]], [3, [7, 1]]]);
|
|
310655
|
+
|
|
310656
|
+
var Title$3 = function Title(props) {
|
|
310657
|
+
var title = props.title,
|
|
310658
|
+
onToggle = props.onToggle;
|
|
310659
|
+
|
|
310660
|
+
var _useState = React.useState(true),
|
|
310661
|
+
_useState2 = _slicedToArray$1(_useState, 2),
|
|
310662
|
+
visible = _useState2[0],
|
|
310663
|
+
setVisible = _useState2[1];
|
|
310664
|
+
|
|
310665
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310666
|
+
className: "form_responsive_group_title",
|
|
310667
|
+
onClick: function onClick() {
|
|
310668
|
+
setVisible(!visible);
|
|
310669
|
+
onToggle && onToggle(!visible);
|
|
310670
|
+
}
|
|
310671
|
+
}, /*#__PURE__*/React__default['default'].createElement("h3", null, title), /*#__PURE__*/React__default['default'].createElement("img", {
|
|
310672
|
+
src: icon,
|
|
310673
|
+
className: !visible ? 'open' : '',
|
|
310674
|
+
alt: ""
|
|
310675
|
+
}));
|
|
310676
|
+
};
|
|
310677
|
+
|
|
310678
|
+
var List$3 = function List(props) {
|
|
310679
|
+
var customizeChildren = props.children,
|
|
310680
|
+
countPerRow = props.countPerRow,
|
|
310681
|
+
title = props.title,
|
|
310682
|
+
user = props.user;
|
|
310683
|
+
|
|
310684
|
+
var _rowMap$get = rowMap.get(countPerRow),
|
|
310685
|
+
_rowMap$get2 = _slicedToArray$1(_rowMap$get, 2),
|
|
310686
|
+
colSpan = _rowMap$get2[0],
|
|
310687
|
+
colSpace = _rowMap$get2[1];
|
|
310688
|
+
|
|
310689
|
+
var _useState3 = React.useState(true),
|
|
310690
|
+
_useState4 = _slicedToArray$1(_useState3, 2),
|
|
310691
|
+
visible = _useState4[0],
|
|
310692
|
+
setVisible = _useState4[1]; // 最终的结果
|
|
310693
|
+
|
|
310694
|
+
|
|
310695
|
+
var rowlist = React.useMemo(function () {
|
|
310696
|
+
var children = []; // 收集(满了就重置)
|
|
310697
|
+
|
|
310698
|
+
var collection = [];
|
|
310699
|
+
var result = [];
|
|
310700
|
+
|
|
310701
|
+
if (!Array.isArray(customizeChildren)) {
|
|
310702
|
+
children = [customizeChildren];
|
|
310703
|
+
}
|
|
310704
|
+
|
|
310705
|
+
children = Array.prototype.slice.call(customizeChildren).flat();
|
|
310706
|
+
|
|
310707
|
+
if (user) {
|
|
310708
|
+
result.push( /*#__PURE__*/React__default['default'].createElement(Title$3, {
|
|
310709
|
+
title: title,
|
|
310710
|
+
onToggle: function onToggle(value) {
|
|
310711
|
+
setVisible(value);
|
|
310712
|
+
}
|
|
310713
|
+
}));
|
|
310714
|
+
} // 一行
|
|
310715
|
+
|
|
310716
|
+
|
|
310717
|
+
function generatorRow() {
|
|
310718
|
+
var node = /*#__PURE__*/React__default['default'].createElement(Row$1, null, collection.map(function (child, index) {
|
|
310719
|
+
if (index !== collection.length - 1) {
|
|
310720
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, {
|
|
310721
|
+
key: index
|
|
310722
|
+
}, /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310723
|
+
span: colSpan
|
|
310724
|
+
}, child), /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310725
|
+
span: colSpace
|
|
310726
|
+
}));
|
|
310727
|
+
}
|
|
310728
|
+
|
|
310729
|
+
return /*#__PURE__*/React__default['default'].createElement(Col$1, {
|
|
310730
|
+
span: colSpan,
|
|
310731
|
+
key: index
|
|
310732
|
+
}, child);
|
|
310733
|
+
}));
|
|
310734
|
+
result.push(node);
|
|
310735
|
+
collection.length = 0;
|
|
310736
|
+
}
|
|
310737
|
+
|
|
310738
|
+
for (var i = 0; i < children.length; i += 1) {
|
|
310739
|
+
var child = children[i]; // 过滤掉React.Fragment
|
|
310740
|
+
|
|
310741
|
+
while (child.type === Symbol.for('react.fragment')) {
|
|
310742
|
+
if (Array.isArray(child.props.children)) {
|
|
310743
|
+
var _children;
|
|
310744
|
+
|
|
310745
|
+
(_children = children).splice.apply(_children, [i, 1].concat(_toConsumableArray$1(child.props.children)));
|
|
310746
|
+
|
|
310747
|
+
child = children[i];
|
|
310748
|
+
} else {
|
|
310749
|
+
child = child.props.children;
|
|
310750
|
+
}
|
|
310751
|
+
}
|
|
310752
|
+
|
|
310753
|
+
if (child) {
|
|
310754
|
+
var _child, _child$props;
|
|
310755
|
+
|
|
310756
|
+
if ((_child = child) === null || _child === void 0 ? void 0 : (_child$props = _child.props) === null || _child$props === void 0 ? void 0 : _child$props.responsive) {
|
|
310757
|
+
collection.push(child);
|
|
310758
|
+
|
|
310759
|
+
if (collection.length && collection.length === countPerRow) {
|
|
310760
|
+
generatorRow();
|
|
310761
|
+
}
|
|
310762
|
+
} else if (collection.length) {
|
|
310763
|
+
generatorRow();
|
|
310764
|
+
result.push(child);
|
|
310765
|
+
} else {
|
|
310766
|
+
result.push(child);
|
|
310767
|
+
}
|
|
310768
|
+
}
|
|
310769
|
+
}
|
|
310770
|
+
|
|
310771
|
+
if (collection.length) {
|
|
310772
|
+
generatorRow();
|
|
310773
|
+
}
|
|
310774
|
+
|
|
310775
|
+
return result;
|
|
310776
|
+
}, [customizeChildren, countPerRow, user, title]);
|
|
310777
|
+
var needRenderList = rowlist;
|
|
310778
|
+
|
|
310779
|
+
if (!visible && needRenderList.length) {
|
|
310780
|
+
needRenderList = [needRenderList[0]];
|
|
310781
|
+
}
|
|
310782
|
+
|
|
310783
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, needRenderList.map(function (child, index) {
|
|
310784
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, {
|
|
310785
|
+
key: index
|
|
310786
|
+
}, child);
|
|
310787
|
+
}));
|
|
310788
|
+
};
|
|
310789
|
+
|
|
310790
|
+
var WrapperItem = function WrapperItem(props) {
|
|
310791
|
+
var user = props.user;
|
|
310792
|
+
var targetRef = React.useRef(null);
|
|
310793
|
+
|
|
310794
|
+
var _useState5 = React.useState({
|
|
310795
|
+
width: '100%',
|
|
310796
|
+
height: '100%'
|
|
310797
|
+
}),
|
|
310798
|
+
_useState6 = _slicedToArray$1(_useState5, 2),
|
|
310799
|
+
containerSize = _useState6[0],
|
|
310800
|
+
setContainerSize = _useState6[1]; // 每行的个数
|
|
310801
|
+
|
|
310802
|
+
|
|
310803
|
+
var _useState7 = React.useState(5),
|
|
310804
|
+
_useState8 = _slicedToArray$1(_useState7, 2),
|
|
310805
|
+
countPerRow = _useState8[0],
|
|
310806
|
+
setCountPerRow = _useState8[1];
|
|
310807
|
+
|
|
310808
|
+
var changeSize = function changeSize() {
|
|
310809
|
+
var _targetRef$current;
|
|
310810
|
+
|
|
310811
|
+
var maxWidth = 1824;
|
|
310812
|
+
|
|
310813
|
+
var _ref = ((_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.getBoundingClientRect()) || {},
|
|
310814
|
+
_ref$width = _ref.width,
|
|
310815
|
+
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
310816
|
+
|
|
310817
|
+
if (width < 990) {
|
|
310818
|
+
setCountPerRow(3);
|
|
310819
|
+
} else if (width < 1390) {
|
|
310820
|
+
setCountPerRow(4);
|
|
310821
|
+
} else {
|
|
310822
|
+
setCountPerRow(5);
|
|
310823
|
+
}
|
|
310824
|
+
|
|
310825
|
+
if (width !== '100%') {
|
|
310826
|
+
width -= 32;
|
|
310827
|
+
|
|
310828
|
+
if (width > maxWidth) {
|
|
310829
|
+
if (user) {
|
|
310830
|
+
width = maxWidth - 64;
|
|
310831
|
+
}
|
|
310832
|
+
}
|
|
310833
|
+
}
|
|
310834
|
+
|
|
310835
|
+
setContainerSize({
|
|
310836
|
+
width: width
|
|
310837
|
+
});
|
|
310838
|
+
};
|
|
310839
|
+
|
|
310840
|
+
var handResize = lodash.throttle(changeSize, 600);
|
|
310841
|
+
React.useEffect(function () {
|
|
310842
|
+
changeSize();
|
|
310843
|
+
window.addEventListener('resize', handResize);
|
|
310844
|
+
return function () {
|
|
310845
|
+
window.removeEventListener('resize', handResize);
|
|
310846
|
+
};
|
|
310847
|
+
}, []);
|
|
310848
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310849
|
+
className: "lm_container_wrapper",
|
|
310850
|
+
ref: targetRef
|
|
310851
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310852
|
+
style: _objectSpread(_objectSpread({}, containerSize), {}, {
|
|
310853
|
+
margin: '0 auto'
|
|
310854
|
+
})
|
|
310855
|
+
}, /*#__PURE__*/React__default['default'].createElement(List$3, _objectSpread(_objectSpread({}, props), {}, {
|
|
310856
|
+
countPerRow: countPerRow
|
|
310857
|
+
})))));
|
|
310858
|
+
};
|
|
310859
|
+
|
|
310860
|
+
var _excluded$2L = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive", "children"];
|
|
310861
|
+
|
|
310862
|
+
var InternalForm$2 = function InternalForm(props, ref) {
|
|
310863
|
+
var _classNames;
|
|
310864
|
+
|
|
310865
|
+
var contextSize = React.useContext(SizeContext$1);
|
|
310866
|
+
var contextDisabled = React.useContext(DisabledContext$1);
|
|
310867
|
+
|
|
310868
|
+
var _React$useContext = React.useContext(ConfigContext$1),
|
|
310869
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
310870
|
+
direction = _React$useContext.direction,
|
|
310871
|
+
contextForm = _React$useContext.form;
|
|
310872
|
+
|
|
310873
|
+
var customizePrefixCls = props.prefixCls,
|
|
310874
|
+
_props$className = props.className,
|
|
310875
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
310876
|
+
_props$size = props.size,
|
|
310877
|
+
size = _props$size === void 0 ? contextSize : _props$size,
|
|
310878
|
+
_props$disabled = props.disabled,
|
|
310879
|
+
disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled,
|
|
310880
|
+
form = props.form,
|
|
310881
|
+
colon = props.colon,
|
|
310882
|
+
labelAlign = props.labelAlign,
|
|
310883
|
+
labelWrap = props.labelWrap,
|
|
310884
|
+
labelCol = props.labelCol,
|
|
310885
|
+
wrapperCol = props.wrapperCol,
|
|
310886
|
+
hideRequiredMark = props.hideRequiredMark,
|
|
310887
|
+
_props$layout = props.layout,
|
|
310888
|
+
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
310889
|
+
scrollToFirstError = props.scrollToFirstError,
|
|
310890
|
+
requiredMark = props.requiredMark,
|
|
310891
|
+
onFinishFailed = props.onFinishFailed,
|
|
310892
|
+
name = props.name,
|
|
310893
|
+
responsive = props.responsive,
|
|
310894
|
+
customizeChildren = props.children,
|
|
310895
|
+
restFormProps = _objectWithoutProperties$1(props, _excluded$2L);
|
|
310896
|
+
|
|
310897
|
+
var children = customizeChildren;
|
|
310898
|
+
var mergedRequiredMark = React.useMemo(function () {
|
|
310899
|
+
if (requiredMark !== undefined) {
|
|
310900
|
+
return requiredMark;
|
|
310901
|
+
}
|
|
310902
|
+
|
|
310903
|
+
if (contextForm && contextForm.requiredMark !== undefined) {
|
|
310904
|
+
return contextForm.requiredMark;
|
|
310905
|
+
}
|
|
310906
|
+
|
|
310907
|
+
if (hideRequiredMark) {
|
|
310908
|
+
return false;
|
|
310909
|
+
}
|
|
310910
|
+
|
|
310911
|
+
return true;
|
|
310912
|
+
}, [hideRequiredMark, requiredMark, contextForm]);
|
|
310913
|
+
var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon;
|
|
310914
|
+
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
|
310915
|
+
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);
|
|
310916
|
+
|
|
310917
|
+
var _useForm = useForm$2(form),
|
|
310918
|
+
_useForm2 = _slicedToArray$1(_useForm, 1),
|
|
310919
|
+
wrapForm = _useForm2[0];
|
|
310920
|
+
|
|
310921
|
+
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
|
310922
|
+
__INTERNAL__.name = name;
|
|
310923
|
+
var formContextValue = React.useMemo(function () {
|
|
310924
|
+
return {
|
|
310925
|
+
name: name,
|
|
310926
|
+
labelAlign: labelAlign,
|
|
310927
|
+
labelCol: labelCol,
|
|
310928
|
+
labelWrap: labelWrap,
|
|
310929
|
+
wrapperCol: wrapperCol,
|
|
310930
|
+
vertical: layout === 'vertical',
|
|
310931
|
+
colon: mergedColon,
|
|
310932
|
+
requiredMark: mergedRequiredMark,
|
|
310933
|
+
itemRef: __INTERNAL__.itemRef,
|
|
310934
|
+
form: wrapForm
|
|
310935
|
+
};
|
|
310936
|
+
}, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]);
|
|
310937
|
+
React.useImperativeHandle(ref, function () {
|
|
310938
|
+
return wrapForm;
|
|
310939
|
+
});
|
|
310940
|
+
|
|
310941
|
+
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
|
310942
|
+
onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo);
|
|
310943
|
+
var defaultScrollToFirstError = {
|
|
310944
|
+
block: 'nearest'
|
|
310945
|
+
};
|
|
310946
|
+
|
|
310947
|
+
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
310948
|
+
if (_typeof$1(scrollToFirstError) === 'object') {
|
|
310949
|
+
defaultScrollToFirstError = scrollToFirstError;
|
|
310950
|
+
}
|
|
310951
|
+
|
|
310952
|
+
wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError);
|
|
310953
|
+
}
|
|
310954
|
+
};
|
|
310955
|
+
|
|
310956
|
+
if (responsive) {
|
|
310957
|
+
children = /*#__PURE__*/React.createElement(WrapperItem, {
|
|
310958
|
+
children: children
|
|
310959
|
+
});
|
|
310960
|
+
}
|
|
310961
|
+
|
|
310962
|
+
var formNode = /*#__PURE__*/React.createElement(DisabledContextProvider$1, {
|
|
310963
|
+
disabled: disabled
|
|
310964
|
+
}, /*#__PURE__*/React.createElement(SizeContextProvider$1, {
|
|
310965
|
+
size: size
|
|
310966
|
+
}, /*#__PURE__*/React.createElement(FormContext$2.Provider, {
|
|
310967
|
+
value: formContextValue
|
|
310968
|
+
}, /*#__PURE__*/React.createElement(RefForm, _objectSpread(_objectSpread({
|
|
310969
|
+
id: name
|
|
310970
|
+
}, restFormProps), {}, {
|
|
310971
|
+
children: children,
|
|
310972
|
+
name: name,
|
|
310973
|
+
onFinishFailed: onInternalFinishFailed,
|
|
310974
|
+
form: wrapForm,
|
|
310975
|
+
className: formClassName
|
|
310976
|
+
})))));
|
|
310977
|
+
|
|
310978
|
+
if (responsive) {
|
|
310979
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
310980
|
+
className: "lm_form_responsive_box"
|
|
310981
|
+
}, formNode);
|
|
310982
|
+
}
|
|
310983
|
+
|
|
310984
|
+
return formNode;
|
|
310985
|
+
};
|
|
310986
|
+
|
|
310987
|
+
var Form$3 = /*#__PURE__*/React.forwardRef(InternalForm$2);
|
|
310988
|
+
|
|
310989
|
+
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
310990
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
310991
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
310992
|
+
|
|
310993
|
+
if (!it) {
|
|
310994
|
+
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
310995
|
+
if (it) o = it;
|
|
310996
|
+
var i = 0;
|
|
310997
|
+
|
|
310998
|
+
var F = function F() {};
|
|
310999
|
+
|
|
311000
|
+
return {
|
|
311001
|
+
s: F,
|
|
311002
|
+
n: function n() {
|
|
311003
|
+
if (i >= o.length) return {
|
|
311004
|
+
done: true
|
|
311005
|
+
};
|
|
311006
|
+
return {
|
|
311007
|
+
done: false,
|
|
311008
|
+
value: o[i++]
|
|
311009
|
+
};
|
|
311010
|
+
},
|
|
311011
|
+
e: function e(_e) {
|
|
311012
|
+
throw _e;
|
|
311013
|
+
},
|
|
311014
|
+
f: F
|
|
311015
|
+
};
|
|
311016
|
+
}
|
|
311017
|
+
|
|
311018
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
311019
|
+
}
|
|
311020
|
+
|
|
311021
|
+
var normalCompletion = true,
|
|
311022
|
+
didErr = false,
|
|
311023
|
+
err;
|
|
311024
|
+
return {
|
|
311025
|
+
s: function s() {
|
|
311026
|
+
it = it.call(o);
|
|
311027
|
+
},
|
|
311028
|
+
n: function n() {
|
|
311029
|
+
var step = it.next();
|
|
311030
|
+
normalCompletion = step.done;
|
|
311031
|
+
return step;
|
|
311032
|
+
},
|
|
311033
|
+
e: function e(_e2) {
|
|
311034
|
+
didErr = true;
|
|
311035
|
+
err = _e2;
|
|
311036
|
+
},
|
|
311037
|
+
f: function f() {
|
|
311038
|
+
try {
|
|
311039
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
311040
|
+
} finally {
|
|
311041
|
+
if (didErr) throw err;
|
|
311042
|
+
}
|
|
311043
|
+
}
|
|
311044
|
+
};
|
|
311045
|
+
}
|
|
311046
|
+
|
|
311047
|
+
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
311048
|
+
});
|
|
311049
|
+
|
|
311050
|
+
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
311051
|
+
|
|
311052
|
+
var ref$1 = createCommonjsModule(function (module, exports) {
|
|
311053
|
+
|
|
311054
|
+
|
|
311055
|
+
|
|
311056
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311057
|
+
value: true
|
|
311058
|
+
});
|
|
311059
|
+
exports.composeRef = composeRef;
|
|
311060
|
+
exports.fillRef = fillRef;
|
|
311061
|
+
exports.supportRef = supportRef;
|
|
311062
|
+
exports.useComposeRef = useComposeRef;
|
|
311063
|
+
|
|
311064
|
+
var _typeof2 = interopRequireDefault(_typeof_1);
|
|
311065
|
+
|
|
311066
|
+
|
|
311067
|
+
|
|
311068
|
+
var _useMemo = interopRequireDefault(useMemo_1);
|
|
311069
|
+
|
|
311070
|
+
function fillRef(ref, node) {
|
|
311071
|
+
if (typeof ref === 'function') {
|
|
311072
|
+
ref(node);
|
|
311073
|
+
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
311074
|
+
ref.current = node;
|
|
311075
|
+
}
|
|
311076
|
+
}
|
|
311077
|
+
/**
|
|
311078
|
+
* Merge refs into one ref function to support ref passing.
|
|
311079
|
+
*/
|
|
311080
|
+
|
|
311081
|
+
|
|
311082
|
+
function composeRef() {
|
|
311083
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
311084
|
+
refs[_key] = arguments[_key];
|
|
311085
|
+
}
|
|
311086
|
+
|
|
311087
|
+
var refList = refs.filter(function (ref) {
|
|
311088
|
+
return ref;
|
|
311089
|
+
});
|
|
311090
|
+
|
|
311091
|
+
if (refList.length <= 1) {
|
|
311092
|
+
return refList[0];
|
|
311093
|
+
}
|
|
311094
|
+
|
|
311095
|
+
return function (node) {
|
|
311096
|
+
refs.forEach(function (ref) {
|
|
311097
|
+
fillRef(ref, node);
|
|
311098
|
+
});
|
|
311099
|
+
};
|
|
311100
|
+
}
|
|
311101
|
+
|
|
311102
|
+
function useComposeRef() {
|
|
311103
|
+
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
311104
|
+
refs[_key2] = arguments[_key2];
|
|
311105
|
+
}
|
|
311106
|
+
|
|
311107
|
+
return (0, _useMemo.default)(function () {
|
|
311108
|
+
return composeRef.apply(void 0, refs);
|
|
311109
|
+
}, refs, function (prev, next) {
|
|
311110
|
+
return prev.length === next.length && prev.every(function (ref, i) {
|
|
311111
|
+
return ref === next[i];
|
|
311112
|
+
});
|
|
311113
|
+
});
|
|
311114
|
+
}
|
|
311115
|
+
|
|
311116
|
+
function supportRef(nodeOrComponent) {
|
|
311117
|
+
var _type$prototype, _nodeOrComponent$prot;
|
|
311118
|
+
|
|
311119
|
+
var type = (0, reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
311120
|
+
|
|
311121
|
+
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
311122
|
+
return false;
|
|
311123
|
+
} // Class component
|
|
311124
|
+
|
|
311125
|
+
|
|
311126
|
+
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
311127
|
+
return false;
|
|
311128
|
+
}
|
|
311129
|
+
|
|
311130
|
+
return true;
|
|
311131
|
+
}
|
|
311132
|
+
/* eslint-enable */
|
|
311133
|
+
});
|
|
311134
|
+
|
|
311135
|
+
var useFormItemStatus$1 = function useFormItemStatus() {
|
|
311136
|
+
var _useContext = React.useContext(FormItemInputContext$1),
|
|
311137
|
+
status = _useContext.status;
|
|
311138
|
+
|
|
311139
|
+
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"));
|
|
311140
|
+
return {
|
|
311141
|
+
status: status
|
|
311142
|
+
};
|
|
311143
|
+
};
|
|
311144
|
+
|
|
311145
|
+
var raf_1 = createCommonjsModule(function (module, exports) {
|
|
311146
|
+
|
|
311147
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311148
|
+
value: true
|
|
311149
|
+
});
|
|
311150
|
+
exports.default = wrapperRaf;
|
|
311151
|
+
|
|
311152
|
+
var raf = function raf(callback) {
|
|
311153
|
+
return +setTimeout(callback, 16);
|
|
311154
|
+
};
|
|
311155
|
+
|
|
311156
|
+
var caf = function caf(num) {
|
|
311157
|
+
return clearTimeout(num);
|
|
311158
|
+
};
|
|
311159
|
+
|
|
311160
|
+
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
311161
|
+
raf = function raf(callback) {
|
|
311162
|
+
return window.requestAnimationFrame(callback);
|
|
311163
|
+
};
|
|
311164
|
+
|
|
311165
|
+
caf = function caf(handle) {
|
|
311166
|
+
return window.cancelAnimationFrame(handle);
|
|
311167
|
+
};
|
|
311168
|
+
}
|
|
311169
|
+
|
|
311170
|
+
var rafUUID = 0;
|
|
311171
|
+
var rafIds = new Map();
|
|
311172
|
+
|
|
311173
|
+
function cleanup(id) {
|
|
311174
|
+
rafIds.delete(id);
|
|
311175
|
+
}
|
|
311176
|
+
|
|
311177
|
+
function wrapperRaf(callback) {
|
|
311178
|
+
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
311179
|
+
rafUUID += 1;
|
|
311180
|
+
var id = rafUUID;
|
|
311181
|
+
|
|
311182
|
+
function callRef(leftTimes) {
|
|
311183
|
+
if (leftTimes === 0) {
|
|
311184
|
+
// Clean up
|
|
311185
|
+
cleanup(id); // Trigger
|
|
311186
|
+
|
|
311187
|
+
callback();
|
|
311188
|
+
} else {
|
|
311189
|
+
// Next raf
|
|
311190
|
+
var realId = raf(function () {
|
|
311191
|
+
callRef(leftTimes - 1);
|
|
311192
|
+
}); // Bind real raf id
|
|
311193
|
+
|
|
311194
|
+
rafIds.set(id, realId);
|
|
311195
|
+
}
|
|
311196
|
+
}
|
|
311197
|
+
|
|
311198
|
+
callRef(times);
|
|
311199
|
+
return id;
|
|
311200
|
+
}
|
|
311201
|
+
|
|
311202
|
+
wrapperRaf.cancel = function (id) {
|
|
311203
|
+
var realId = rafIds.get(id);
|
|
311204
|
+
cleanup(realId);
|
|
311205
|
+
return caf(realId);
|
|
311206
|
+
};
|
|
311207
|
+
});
|
|
311208
|
+
|
|
311209
|
+
var raf$1 = /*@__PURE__*/getDefaultExportFromCjs(raf_1);
|
|
311210
|
+
|
|
311211
|
+
function useFrameState$1(defaultValue) {
|
|
311212
|
+
var _React$useState = React.useState(defaultValue),
|
|
311213
|
+
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
311214
|
+
value = _React$useState2[0],
|
|
311215
|
+
setValue = _React$useState2[1];
|
|
311216
|
+
|
|
311217
|
+
var frameRef = React.useRef(null);
|
|
311218
|
+
var batchRef = React.useRef([]);
|
|
311219
|
+
var destroyRef = React.useRef(false);
|
|
311220
|
+
React.useEffect(function () {
|
|
311221
|
+
destroyRef.current = false;
|
|
311222
|
+
return function () {
|
|
311223
|
+
destroyRef.current = true;
|
|
311224
|
+
raf$1.cancel(frameRef.current);
|
|
311225
|
+
frameRef.current = null;
|
|
311226
|
+
};
|
|
311227
|
+
}, []);
|
|
311228
|
+
|
|
311229
|
+
function setFrameValue(updater) {
|
|
311230
|
+
if (destroyRef.current) {
|
|
311231
|
+
return;
|
|
311232
|
+
}
|
|
311233
|
+
|
|
311234
|
+
if (frameRef.current === null) {
|
|
311235
|
+
batchRef.current = [];
|
|
311236
|
+
frameRef.current = raf$1(function () {
|
|
311237
|
+
frameRef.current = null;
|
|
311238
|
+
setValue(function (prevValue) {
|
|
311239
|
+
var current = prevValue;
|
|
311240
|
+
batchRef.current.forEach(function (func) {
|
|
311241
|
+
current = func(current);
|
|
311242
|
+
});
|
|
311243
|
+
return current;
|
|
311244
|
+
});
|
|
311245
|
+
});
|
|
311246
|
+
}
|
|
311247
|
+
|
|
311248
|
+
batchRef.current.push(updater);
|
|
311249
|
+
}
|
|
311250
|
+
|
|
311251
|
+
return [value, setFrameValue];
|
|
311252
|
+
}
|
|
311253
|
+
|
|
311254
|
+
function useItemRef$1() {
|
|
311255
|
+
var _React$useContext = React.useContext(FormContext$2),
|
|
311256
|
+
itemRef = _React$useContext.itemRef;
|
|
311257
|
+
|
|
311258
|
+
var cacheRef = React.useRef({});
|
|
311259
|
+
|
|
311260
|
+
function getRef(name, children) {
|
|
311261
|
+
var childrenRef = children && _typeof$1(children) === 'object' && children.ref;
|
|
311262
|
+
var nameStr = name.join('_');
|
|
311263
|
+
|
|
311264
|
+
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
|
311265
|
+
cacheRef.current.name = nameStr;
|
|
311266
|
+
cacheRef.current.originRef = childrenRef;
|
|
311267
|
+
cacheRef.current.ref = ref$1.composeRef(itemRef(name), childrenRef);
|
|
311268
|
+
}
|
|
311269
|
+
|
|
311270
|
+
return cacheRef.current.ref;
|
|
311271
|
+
}
|
|
311272
|
+
|
|
311273
|
+
return getRef;
|
|
311274
|
+
}
|
|
311275
|
+
|
|
311276
|
+
var CheckCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311277
|
+
// This icon file is generated automatically.
|
|
311278
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311279
|
+
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" };
|
|
311280
|
+
exports.default = CheckCircleFilled;
|
|
311281
|
+
});
|
|
311282
|
+
|
|
311283
|
+
var CheckCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311284
|
+
|
|
311285
|
+
|
|
311286
|
+
|
|
311287
|
+
|
|
311288
|
+
|
|
311289
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311290
|
+
value: true
|
|
311291
|
+
});
|
|
311292
|
+
exports.default = void 0;
|
|
311293
|
+
|
|
311294
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311295
|
+
|
|
311296
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311297
|
+
|
|
311298
|
+
var _CheckCircleFilled = interopRequireDefault(CheckCircleFilled_1);
|
|
311299
|
+
|
|
311300
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311301
|
+
|
|
311302
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311303
|
+
// DON NOT EDIT IT MANUALLY
|
|
311304
|
+
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
311305
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311306
|
+
ref: ref,
|
|
311307
|
+
icon: _CheckCircleFilled.default
|
|
311308
|
+
}));
|
|
311309
|
+
};
|
|
311310
|
+
|
|
311311
|
+
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
311312
|
+
|
|
311313
|
+
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
311314
|
+
|
|
311315
|
+
exports.default = _default;
|
|
311316
|
+
});
|
|
311317
|
+
|
|
311318
|
+
var CheckCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311319
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311320
|
+
value: true
|
|
311321
|
+
});
|
|
311322
|
+
exports.default = void 0;
|
|
311323
|
+
|
|
311324
|
+
var _CheckCircleFilled = _interopRequireDefault(CheckCircleFilled_1$1);
|
|
311325
|
+
|
|
311326
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311327
|
+
|
|
311328
|
+
var _default = _CheckCircleFilled;
|
|
311329
|
+
exports.default = _default;
|
|
311330
|
+
module.exports = _default;
|
|
311331
|
+
});
|
|
311332
|
+
|
|
311333
|
+
var CheckCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CheckCircleFilled$3);
|
|
311334
|
+
|
|
311335
|
+
var CloseCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311336
|
+
// This icon file is generated automatically.
|
|
311337
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311338
|
+
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" };
|
|
311339
|
+
exports.default = CloseCircleFilled;
|
|
311340
|
+
});
|
|
311341
|
+
|
|
311342
|
+
var CloseCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311343
|
+
|
|
311344
|
+
|
|
311345
|
+
|
|
311346
|
+
|
|
311347
|
+
|
|
311348
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311349
|
+
value: true
|
|
311350
|
+
});
|
|
311351
|
+
exports.default = void 0;
|
|
311352
|
+
|
|
311353
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311354
|
+
|
|
311355
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311356
|
+
|
|
311357
|
+
var _CloseCircleFilled = interopRequireDefault(CloseCircleFilled_1);
|
|
311358
|
+
|
|
311359
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311360
|
+
|
|
311361
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311362
|
+
// DON NOT EDIT IT MANUALLY
|
|
311363
|
+
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
311364
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311365
|
+
ref: ref,
|
|
311366
|
+
icon: _CloseCircleFilled.default
|
|
311367
|
+
}));
|
|
311368
|
+
};
|
|
311369
|
+
|
|
311370
|
+
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
311371
|
+
|
|
311372
|
+
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
311373
|
+
|
|
311374
|
+
exports.default = _default;
|
|
311375
|
+
});
|
|
311376
|
+
|
|
311377
|
+
var CloseCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311378
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311379
|
+
value: true
|
|
311380
|
+
});
|
|
311381
|
+
exports.default = void 0;
|
|
311382
|
+
|
|
311383
|
+
var _CloseCircleFilled = _interopRequireDefault(CloseCircleFilled_1$1);
|
|
311384
|
+
|
|
311385
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311386
|
+
|
|
311387
|
+
var _default = _CloseCircleFilled;
|
|
311388
|
+
exports.default = _default;
|
|
311389
|
+
module.exports = _default;
|
|
311390
|
+
});
|
|
311391
|
+
|
|
311392
|
+
var CloseCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(CloseCircleFilled$3);
|
|
311393
|
+
|
|
311394
|
+
var ExclamationCircleFilled_1 = createCommonjsModule(function (module, exports) {
|
|
311395
|
+
// This icon file is generated automatically.
|
|
311396
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311397
|
+
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" };
|
|
311398
|
+
exports.default = ExclamationCircleFilled;
|
|
311399
|
+
});
|
|
311400
|
+
|
|
311401
|
+
var ExclamationCircleFilled_1$1 = createCommonjsModule(function (module, exports) {
|
|
311402
|
+
|
|
311403
|
+
|
|
311404
|
+
|
|
311405
|
+
|
|
311406
|
+
|
|
311407
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311408
|
+
value: true
|
|
311409
|
+
});
|
|
311410
|
+
exports.default = void 0;
|
|
311411
|
+
|
|
311412
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311413
|
+
|
|
311414
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311415
|
+
|
|
311416
|
+
var _ExclamationCircleFilled = interopRequireDefault(ExclamationCircleFilled_1);
|
|
311417
|
+
|
|
311418
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311419
|
+
|
|
311420
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311421
|
+
// DON NOT EDIT IT MANUALLY
|
|
311422
|
+
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
311423
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311424
|
+
ref: ref,
|
|
311425
|
+
icon: _ExclamationCircleFilled.default
|
|
311426
|
+
}));
|
|
311427
|
+
};
|
|
311428
|
+
|
|
311429
|
+
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
311430
|
+
|
|
311431
|
+
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
311432
|
+
|
|
311433
|
+
exports.default = _default;
|
|
311434
|
+
});
|
|
311435
|
+
|
|
311436
|
+
var ExclamationCircleFilled$3 = createCommonjsModule(function (module, exports) {
|
|
311437
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311438
|
+
value: true
|
|
311439
|
+
});
|
|
311440
|
+
exports.default = void 0;
|
|
311441
|
+
|
|
311442
|
+
var _ExclamationCircleFilled = _interopRequireDefault(ExclamationCircleFilled_1$1);
|
|
311443
|
+
|
|
311444
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311445
|
+
|
|
311446
|
+
var _default = _ExclamationCircleFilled;
|
|
311447
|
+
exports.default = _default;
|
|
311448
|
+
module.exports = _default;
|
|
311449
|
+
});
|
|
311450
|
+
|
|
311451
|
+
var ExclamationCircleFilled$4 = /*@__PURE__*/getDefaultExportFromCjs(ExclamationCircleFilled$3);
|
|
311452
|
+
|
|
311453
|
+
var LoadingOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
311454
|
+
// This icon file is generated automatically.
|
|
311455
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311456
|
+
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" };
|
|
311457
|
+
exports.default = LoadingOutlined;
|
|
311458
|
+
});
|
|
311459
|
+
|
|
311460
|
+
var LoadingOutlined_1$1 = createCommonjsModule(function (module, exports) {
|
|
311461
|
+
|
|
311462
|
+
|
|
311463
|
+
|
|
311464
|
+
|
|
311465
|
+
|
|
311466
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311467
|
+
value: true
|
|
311468
|
+
});
|
|
311469
|
+
exports.default = void 0;
|
|
311470
|
+
|
|
311471
|
+
var _objectSpread2 = interopRequireDefault(objectSpread2);
|
|
311472
|
+
|
|
311473
|
+
var React = interopRequireWildcard(React__default['default']);
|
|
311474
|
+
|
|
311475
|
+
var _LoadingOutlined = interopRequireDefault(LoadingOutlined_1);
|
|
311476
|
+
|
|
311477
|
+
var _AntdIcon = interopRequireDefault(AntdIcon);
|
|
311478
|
+
|
|
311479
|
+
// GENERATE BY ./scripts/generate.ts
|
|
311480
|
+
// DON NOT EDIT IT MANUALLY
|
|
311481
|
+
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
311482
|
+
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
311483
|
+
ref: ref,
|
|
311484
|
+
icon: _LoadingOutlined.default
|
|
311485
|
+
}));
|
|
311486
|
+
};
|
|
311487
|
+
|
|
311488
|
+
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
311489
|
+
|
|
311490
|
+
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
311491
|
+
|
|
311492
|
+
exports.default = _default;
|
|
311493
|
+
});
|
|
311494
|
+
|
|
311495
|
+
var LoadingOutlined$3 = createCommonjsModule(function (module, exports) {
|
|
311496
|
+
Object.defineProperty(exports, "__esModule", {
|
|
311497
|
+
value: true
|
|
311498
|
+
});
|
|
311499
|
+
exports.default = void 0;
|
|
311500
|
+
|
|
311501
|
+
var _LoadingOutlined = _interopRequireDefault(LoadingOutlined_1$1);
|
|
311502
|
+
|
|
311503
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
311504
|
+
|
|
311505
|
+
var _default = _LoadingOutlined;
|
|
311506
|
+
exports.default = _default;
|
|
311507
|
+
module.exports = _default;
|
|
311508
|
+
});
|
|
311509
|
+
|
|
311510
|
+
var LoadingOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(LoadingOutlined$3);
|
|
311511
|
+
|
|
311222
311512
|
var QuestionCircleOutlined_1 = createCommonjsModule(function (module, exports) {
|
|
311223
311513
|
// This icon file is generated automatically.
|
|
311224
311514
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -311278,7 +311568,7 @@
|
|
|
311278
311568
|
|
|
311279
311569
|
var QuestionCircleOutlined$4 = /*@__PURE__*/getDefaultExportFromCjs(QuestionCircleOutlined$3);
|
|
311280
311570
|
|
|
311281
|
-
var _excluded$
|
|
311571
|
+
var _excluded$2M = ["icon"];
|
|
311282
311572
|
|
|
311283
311573
|
function toTooltipProps$1(tooltip) {
|
|
311284
311574
|
if (!tooltip) {
|
|
@@ -311339,7 +311629,7 @@
|
|
|
311339
311629
|
if (tooltipProps) {
|
|
311340
311630
|
var _tooltipProps$icon = tooltipProps.icon,
|
|
311341
311631
|
icon = _tooltipProps$icon === void 0 ? /*#__PURE__*/React.createElement(QuestionCircleOutlined$4, null) : _tooltipProps$icon,
|
|
311342
|
-
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$
|
|
311632
|
+
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$2M);
|
|
311343
311633
|
|
|
311344
311634
|
var tooltipNode = /*#__PURE__*/React.createElement(Tooltip$4, _objectSpread({}, restTooltipProps), /*#__PURE__*/React.cloneElement(icon, {
|
|
311345
311635
|
className: "".concat(prefixCls, "-item-tooltip"),
|
|
@@ -311439,7 +311729,7 @@
|
|
|
311439
311729
|
}), dom));
|
|
311440
311730
|
};
|
|
311441
311731
|
|
|
311442
|
-
var _excluded$
|
|
311732
|
+
var _excluded$2N = ["prefixCls", "className", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "isRequired", "responsive", "errorPlacement", "onSubItemMetaChange"];
|
|
311443
311733
|
var iconMap$1 = {
|
|
311444
311734
|
success: CheckCircleFilled$4,
|
|
311445
311735
|
warning: ExclamationCircleFilled$4,
|
|
@@ -311466,7 +311756,7 @@
|
|
|
311466
311756
|
_props$errorPlacement = props.errorPlacement,
|
|
311467
311757
|
errorPlacement = _props$errorPlacement === void 0 ? 'default' : _props$errorPlacement,
|
|
311468
311758
|
onSubItemMetaChange = props.onSubItemMetaChange,
|
|
311469
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
311759
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2N);
|
|
311470
311760
|
|
|
311471
311761
|
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
311472
311762
|
|
|
@@ -311532,17 +311822,8 @@
|
|
|
311532
311822
|
}, [mergedValidateStatus, hasFeedback]); // ======================== Render ========================
|
|
311533
311823
|
|
|
311534
311824
|
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);
|
|
311535
|
-
var nthCls = '';
|
|
311536
|
-
|
|
311537
|
-
if (itemRef.current && itemRef.current.classList) {
|
|
311538
|
-
var list = itemRef.current.classList;
|
|
311539
|
-
if (list.contains('nth-three')) nthCls = 'nth-three';
|
|
311540
|
-
if (list.contains('nth-four')) nthCls = 'nth-four';
|
|
311541
|
-
if (list.contains('nth-five')) nthCls = 'nth-five';
|
|
311542
|
-
}
|
|
311543
|
-
|
|
311544
311825
|
return /*#__PURE__*/React.createElement("div", {
|
|
311545
|
-
className: classnames(itemClassName
|
|
311826
|
+
className: classnames(itemClassName),
|
|
311546
311827
|
style: style,
|
|
311547
311828
|
ref: itemRef
|
|
311548
311829
|
}, /*#__PURE__*/React.createElement(Row$1, _objectSpread({
|
|
@@ -311876,12 +312157,12 @@
|
|
|
311876
312157
|
var FormItem$1 = InternalFormItem$2;
|
|
311877
312158
|
FormItem$1.useStatus = useFormItemStatus$1;
|
|
311878
312159
|
|
|
311879
|
-
var _excluded$
|
|
312160
|
+
var _excluded$2O = ["prefixCls", "children"];
|
|
311880
312161
|
|
|
311881
312162
|
var FormList$1 = function FormList(_ref) {
|
|
311882
312163
|
var customizePrefixCls = _ref.prefixCls,
|
|
311883
312164
|
children = _ref.children,
|
|
311884
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312165
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2O);
|
|
311885
312166
|
|
|
311886
312167
|
warning$6(!!props.name, 'Form.List', 'Miss `name` prop.');
|
|
311887
312168
|
|
|
@@ -311916,6 +312197,26 @@
|
|
|
311916
312197
|
return form;
|
|
311917
312198
|
}
|
|
311918
312199
|
|
|
312200
|
+
function withComponent(WrappedComponent) {
|
|
312201
|
+
var WithComponent = function WithComponent(props) {
|
|
312202
|
+
return /*#__PURE__*/React__default['default'].createElement(WrappedComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
312203
|
+
with: true
|
|
312204
|
+
}));
|
|
312205
|
+
};
|
|
312206
|
+
|
|
312207
|
+
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
312208
|
+
WithComponent.displayName = "withComponent(".concat(wrappedComponentName, ")");
|
|
312209
|
+
return WithComponent;
|
|
312210
|
+
}
|
|
312211
|
+
|
|
312212
|
+
var FormWrapper = function FormWrapper(props) {
|
|
312213
|
+
return /*#__PURE__*/React__default['default'].createElement(WrapperItem, _objectSpread(_objectSpread({}, props), {}, {
|
|
312214
|
+
user: true
|
|
312215
|
+
}));
|
|
312216
|
+
};
|
|
312217
|
+
|
|
312218
|
+
var Wrapper = withComponent(FormWrapper);
|
|
312219
|
+
|
|
311919
312220
|
var Form$4 = Form$3;
|
|
311920
312221
|
Form$4.Item = FormItem$1;
|
|
311921
312222
|
Form$4.List = FormList$1;
|
|
@@ -311929,6 +312230,8 @@
|
|
|
311929
312230
|
warning$6(false, 'Form', 'antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.');
|
|
311930
312231
|
};
|
|
311931
312232
|
|
|
312233
|
+
Form$4.Wrapper = Wrapper;
|
|
312234
|
+
|
|
311932
312235
|
var DndContainer$1 = function DndContainer(_ref) {
|
|
311933
312236
|
var children = _ref.children,
|
|
311934
312237
|
move = _ref.move;
|
|
@@ -312070,12 +312373,12 @@
|
|
|
312070
312373
|
}, tableProps)));
|
|
312071
312374
|
});
|
|
312072
312375
|
|
|
312073
|
-
var _excluded$
|
|
312376
|
+
var _excluded$2P = ["children"];
|
|
312074
312377
|
var VirtualWrapper$1 = /*#__PURE__*/React__default['default'].memo(function (wrapperProps) {
|
|
312075
312378
|
var _virtualItems$, _virtualItems;
|
|
312076
312379
|
|
|
312077
312380
|
var children = wrapperProps.children,
|
|
312078
|
-
resetProps = _objectWithoutProperties$1(wrapperProps, _excluded$
|
|
312381
|
+
resetProps = _objectWithoutProperties$1(wrapperProps, _excluded$2P);
|
|
312079
312382
|
|
|
312080
312383
|
var _useStore = useStore$1(),
|
|
312081
312384
|
state = _useStore.state,
|
|
@@ -312116,10 +312419,10 @@
|
|
|
312116
312419
|
})));
|
|
312117
312420
|
});
|
|
312118
312421
|
|
|
312119
|
-
var _excluded$
|
|
312422
|
+
var _excluded$2Q = ["children"];
|
|
312120
312423
|
var VirtualRow$1 = /*#__PURE__*/React__default['default'].memo(function (_ref, ref) {
|
|
312121
312424
|
var children = _ref.children,
|
|
312122
|
-
resetProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
312425
|
+
resetProps = _objectWithoutProperties$1(_ref, _excluded$2Q);
|
|
312123
312426
|
|
|
312124
312427
|
var _useStore = useStore$1(),
|
|
312125
312428
|
state = _useStore.state,
|
|
@@ -312164,14 +312467,14 @@
|
|
|
312164
312467
|
}), children);
|
|
312165
312468
|
});
|
|
312166
312469
|
|
|
312167
|
-
var _excluded$
|
|
312470
|
+
var _excluded$2R = ["data-row-key", "children", "className", "virtual"];
|
|
312168
312471
|
|
|
312169
312472
|
var SortableItem$1 = function SortableItem(props) {
|
|
312170
312473
|
var key = props['data-row-key'],
|
|
312171
312474
|
children = props.children,
|
|
312172
312475
|
className = props.className,
|
|
312173
312476
|
virtual = props.virtual,
|
|
312174
|
-
resetField = _objectWithoutProperties$1(props, _excluded$
|
|
312477
|
+
resetField = _objectWithoutProperties$1(props, _excluded$2R);
|
|
312175
312478
|
|
|
312176
312479
|
var _useSortable = useSortable({
|
|
312177
312480
|
id: key
|
|
@@ -312203,16 +312506,17 @@
|
|
|
312203
312506
|
|
|
312204
312507
|
var SortableItem$2 = /*#__PURE__*/React.memo(SortableItem$1);
|
|
312205
312508
|
|
|
312206
|
-
var _excluded$
|
|
312509
|
+
var _excluded$2S = ["children"];
|
|
312207
312510
|
var Item$5 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
312208
|
-
var _children$props;
|
|
312209
|
-
|
|
312210
312511
|
var children = _ref.children,
|
|
312211
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312512
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2S);
|
|
312212
312513
|
|
|
312213
|
-
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread({}, props), {}, {
|
|
312514
|
+
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread(_objectSpread({}, props), children.props), {}, {
|
|
312214
312515
|
ref: ref
|
|
312215
|
-
})
|
|
312516
|
+
})); // <th {...props} ref={ref as any}>
|
|
312517
|
+
// {/* {(children as any)?.props?.children || children} */}
|
|
312518
|
+
// { children }
|
|
312519
|
+
// </th>
|
|
312216
312520
|
});
|
|
312217
312521
|
function SortableItem$3(props) {
|
|
312218
312522
|
var _useSortable = useSortable({
|
|
@@ -312226,7 +312530,9 @@
|
|
|
312226
312530
|
|
|
312227
312531
|
var style = {
|
|
312228
312532
|
position: 'relative',
|
|
312229
|
-
transform: CSS.Translate.toString(transform),
|
|
312533
|
+
transform: CSS.Translate.toString(transform ? _objectSpread(_objectSpread({}, transform), {}, {
|
|
312534
|
+
y: 0
|
|
312535
|
+
}) : transform),
|
|
312230
312536
|
transition: transition,
|
|
312231
312537
|
touchAction: 'none',
|
|
312232
312538
|
height: '40px',
|
|
@@ -312320,7 +312626,7 @@
|
|
|
312320
312626
|
return isExpandRow(children) ? children === null || children === void 0 ? void 0 : (_children$2 = children[0]) === null || _children$2 === void 0 ? void 0 : (_children$2$props = _children$2.props) === null || _children$2$props === void 0 ? void 0 : (_children$2$props$chi = _children$2$props.children) === null || _children$2$props$chi === void 0 ? void 0 : (_children$2$props$chi2 = _children$2$props$chi[1]) === null || _children$2$props$chi2 === void 0 ? void 0 : (_children$2$props$chi3 = _children$2$props$chi2.props) === null || _children$2$props$chi3 === void 0 ? void 0 : _children$2$props$chi3['aria-label'] : '';
|
|
312321
312627
|
}
|
|
312322
312628
|
function checkMemoShouldUploadSpecialFun(prev, next) {
|
|
312323
|
-
var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro2, _nextCol$componentPro2, _prevCol$componentPro3, _nextCol$componentPro3;
|
|
312629
|
+
var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro2, _nextCol$componentPro2, _prevCol$componentPro3, _nextCol$componentPro3, _prevCol$componentPro4, _nextCol$componentPro4;
|
|
312324
312630
|
|
|
312325
312631
|
var checkExpandStatus = getExpandStatus(prev.children) === getExpandStatus(next.children);
|
|
312326
312632
|
|
|
@@ -312330,12 +312636,21 @@
|
|
|
312330
312636
|
|
|
312331
312637
|
var prevCol = prev === null || prev === void 0 ? void 0 : prev.col;
|
|
312332
312638
|
var nextCol = next === null || next === void 0 ? void 0 : next.col;
|
|
312639
|
+
/** TODO: 使用了自定义render, 是否要判断rowIndex? 这样排序之后,渲染的性能就会变差 */
|
|
312640
|
+
|
|
312641
|
+
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.render) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.render)) && !lodash.isEqual(lodash.pick(prev, ['colIndex', 'record', 'children']), lodash.pick(next, ['colIndex', 'record', 'children']))) {
|
|
312642
|
+
return false;
|
|
312643
|
+
}
|
|
312644
|
+
|
|
312645
|
+
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.editable) === 'render' || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.editable) === 'render') && ((prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro = prevCol.componentProps) === null || _prevCol$componentPro === void 0 ? void 0 : _prevCol$componentPro.render) || (nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro = nextCol.componentProps) === null || _nextCol$componentPro === void 0 ? void 0 : _nextCol$componentPro.render)) && !lodash.isEqual(lodash.pick(prev, ['colIndex', 'record', 'rowIndex']), lodash.pick(next, ['colIndex', 'record', 'rowIndex']))) {
|
|
312646
|
+
return false;
|
|
312647
|
+
}
|
|
312333
312648
|
|
|
312334
312649
|
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.fixed) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.fixed)) && !lodash.isEqual(prev === null || prev === void 0 ? void 0 : prev.style, next === null || next === void 0 ? void 0 : next.style)) {
|
|
312335
312650
|
return false;
|
|
312336
312651
|
}
|
|
312337
312652
|
|
|
312338
|
-
if (((prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$
|
|
312653
|
+
if (((prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro2 = prevCol.componentProps) === null || _prevCol$componentPro2 === void 0 ? void 0 : _prevCol$componentPro2.optionOnly) || (nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro2 = nextCol.componentProps) === null || _nextCol$componentPro2 === void 0 ? void 0 : _nextCol$componentPro2.optionOnly)) && !lodash.isEqual(prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro3 = prevCol.componentProps) === null || _prevCol$componentPro3 === void 0 ? void 0 : _prevCol$componentPro3.options, nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro3 = nextCol.componentProps) === null || _nextCol$componentPro3 === void 0 ? void 0 : _nextCol$componentPro3.options)) {
|
|
312339
312654
|
// return isEqual(prevCol?.componentProps?.options, nextCol?.componentProps?.options)
|
|
312340
312655
|
return false;
|
|
312341
312656
|
}
|
|
@@ -312353,7 +312668,7 @@
|
|
|
312353
312668
|
/** 如果启用了快速复制功能,需要实时判断rowIndex与getLength */
|
|
312354
312669
|
|
|
312355
312670
|
|
|
312356
|
-
if ((prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$
|
|
312671
|
+
if ((prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro4 = prevCol.componentProps) === null || _prevCol$componentPro4 === void 0 ? void 0 : _prevCol$componentPro4.quickcopy) || (nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro4 = nextCol.componentProps) === null || _nextCol$componentPro4 === void 0 ? void 0 : _nextCol$componentPro4.quickcopy)) {
|
|
312357
312672
|
var pickProps = ['record', 'colIndex', 'rowIndex', 'getLength'];
|
|
312358
312673
|
var p = lodash.pick(prev, pickProps);
|
|
312359
312674
|
var n = lodash.pick(next, pickProps);
|
|
@@ -312372,13 +312687,13 @@
|
|
|
312372
312687
|
}, children);
|
|
312373
312688
|
};
|
|
312374
312689
|
|
|
312375
|
-
var _excluded$
|
|
312690
|
+
var _excluded$2T = ["keys", "onSortEnd", "virtual"];
|
|
312376
312691
|
|
|
312377
312692
|
var DraggableContainer = function DraggableContainer(_ref) {
|
|
312378
312693
|
var keys = _ref.keys,
|
|
312379
312694
|
onSortEnd = _ref.onSortEnd,
|
|
312380
312695
|
virtual = _ref.virtual,
|
|
312381
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312696
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2T);
|
|
312382
312697
|
|
|
312383
312698
|
return /*#__PURE__*/React__default['default'].createElement(DndContainer$2, {
|
|
312384
312699
|
move: onSortEnd
|
|
@@ -312387,19 +312702,19 @@
|
|
|
312387
312702
|
}, virtual ? /*#__PURE__*/React__default['default'].createElement(VirtualWrapper$1, _objectSpread({}, props)) : /*#__PURE__*/React__default['default'].createElement("tbody", _objectSpread({}, props))));
|
|
312388
312703
|
};
|
|
312389
312704
|
|
|
312390
|
-
var _excluded$
|
|
312705
|
+
var _excluded$2U = ["index", "virtual"],
|
|
312391
312706
|
_excluded2$I = ["index"],
|
|
312392
312707
|
_excluded3$b = ["value", "onChange", "record", "rowIndex", "colIndex", "validator"],
|
|
312393
312708
|
_excluded4$1 = ["record", "rowKey", "isEdit", "col", "rowIndex", "colIndex", "handleTableRowDelete", "handleTableRowAdd", "quickOpetateClearAll", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
312394
312709
|
_excluded5 = ["onMouseEnter", "onMouseLeave"],
|
|
312395
|
-
_excluded6 = ["value", "columns", "isEdit", "isAdd", "onChange", "rowKey", "rowHoverEdit", "isUseForm", "isHoverEdit", "useQuickOpetate", "quickOpetateClearAll", "rowSelection", "virtual", "sortOpen", "colSortOpen", "filterChange", "size", "recordCreatorProps", "shouldUpdate"];
|
|
312710
|
+
_excluded6 = ["value", "columns", "isEdit", "isAdd", "onChange", "rowKey", "rowHoverEdit", "isUseForm", "isHoverEdit", "useQuickOpetate", "quickOpetateClearAll", "rowSelection", "virtual", "sortOpen", "colSortOpen", "indexCol", "filterChange", "size", "recordCreatorProps", "shouldUpdate"];
|
|
312396
312711
|
var UploadBtn$1 = UploadOss.UploadBtn;
|
|
312397
312712
|
var EditableContext$1 = /*#__PURE__*/React__default['default'].createContext(null); // 表格行
|
|
312398
312713
|
|
|
312399
312714
|
var EditableRow$1 = function EditableRow(_ref) {
|
|
312400
312715
|
var index = _ref.index,
|
|
312401
312716
|
virtual = _ref.virtual,
|
|
312402
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
312717
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2U);
|
|
312403
312718
|
|
|
312404
312719
|
var _Form$useForm = Form$4.useForm(),
|
|
312405
312720
|
_Form$useForm2 = _slicedToArray$1(_Form$useForm, 1),
|
|
@@ -312614,7 +312929,7 @@
|
|
|
312614
312929
|
fontSize: 16
|
|
312615
312930
|
}
|
|
312616
312931
|
})
|
|
312617
|
-
})) : /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
312932
|
+
})) : (options === null || options === void 0 ? void 0 : options.includes('add')) || (options === null || options === void 0 ? void 0 : options.includes('addInChildren')) ? /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
312618
312933
|
type: "link",
|
|
312619
312934
|
size: "small",
|
|
312620
312935
|
icon: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
@@ -312626,7 +312941,7 @@
|
|
|
312626
312941
|
onClick: function onClick() {
|
|
312627
312942
|
return handleAdd(record, (options === null || options === void 0 ? void 0 : options.includes('addInChildren')) ? true : false);
|
|
312628
312943
|
}
|
|
312629
|
-
}));
|
|
312944
|
+
}) : null);
|
|
312630
312945
|
};
|
|
312631
312946
|
/*
|
|
312632
312947
|
表格单元格
|
|
@@ -312923,7 +313238,7 @@
|
|
|
312923
313238
|
var fromData = form.getFieldsValue();
|
|
312924
313239
|
return render === null || render === void 0 ? void 0 : render(_objectSpread(_objectSpread({}, !isObjEmpty(fromData) ? _objectSpread(_objectSpread({}, record), {}, _defineProperty$1({}, dataIndex, fromData[dataIndex])) : record), {}, {
|
|
312925
313240
|
onChange: save
|
|
312926
|
-
}));
|
|
313241
|
+
}), rowIndex);
|
|
312927
313242
|
}
|
|
312928
313243
|
|
|
312929
313244
|
default:
|
|
@@ -313057,6 +313372,8 @@
|
|
|
313057
313372
|
virtual = props.virtual,
|
|
313058
313373
|
sortOpen = props.sortOpen,
|
|
313059
313374
|
colSortOpen = props.colSortOpen,
|
|
313375
|
+
_props$indexCol = props.indexCol,
|
|
313376
|
+
indexCol = _props$indexCol === void 0 ? false : _props$indexCol,
|
|
313060
313377
|
filterChange = props.filterChange,
|
|
313061
313378
|
_props$size = props.size,
|
|
313062
313379
|
size = _props$size === void 0 ? 'small' : _props$size,
|
|
@@ -313413,7 +313730,7 @@
|
|
|
313413
313730
|
var rColumns = hasDisableOptions ? DisableOptions : columns;
|
|
313414
313731
|
var localColumns = [sortOpen ? {
|
|
313415
313732
|
title: '排序',
|
|
313416
|
-
dataIndex: '
|
|
313733
|
+
dataIndex: '_sort',
|
|
313417
313734
|
width: 48,
|
|
313418
313735
|
maxWidth: 48,
|
|
313419
313736
|
className: 'drag-visible',
|
|
@@ -313423,7 +313740,25 @@
|
|
|
313423
313740
|
id: record[_rowKey] || record.id
|
|
313424
313741
|
});
|
|
313425
313742
|
}
|
|
313426
|
-
} : null
|
|
313743
|
+
} : null, indexCol ? lodash.isBoolean(indexCol) ? {
|
|
313744
|
+
title: '',
|
|
313745
|
+
dataIndex: '_index',
|
|
313746
|
+
width: 48,
|
|
313747
|
+
maxWidth: 48,
|
|
313748
|
+
fixed: 'left',
|
|
313749
|
+
render: function render(_, record, index) {
|
|
313750
|
+
return "".concat(index + 1);
|
|
313751
|
+
}
|
|
313752
|
+
} : _objectSpread({
|
|
313753
|
+
title: '',
|
|
313754
|
+
dataIndex: '_index',
|
|
313755
|
+
width: 48,
|
|
313756
|
+
maxWidth: 48,
|
|
313757
|
+
fixed: 'left',
|
|
313758
|
+
render: function render(_, record, index) {
|
|
313759
|
+
return "".concat(index + 1);
|
|
313760
|
+
}
|
|
313761
|
+
}, indexCol || {}) : null].concat(_toConsumableArray$1(rColumns), [useQuickOpetate ? {
|
|
313427
313762
|
title: '操作',
|
|
313428
313763
|
dataIndex: 'lm_edit_opetate',
|
|
313429
313764
|
width: 68,
|
|
@@ -313461,8 +313796,15 @@
|
|
|
313461
313796
|
var mapColumns = function mapColumns(col, index) {
|
|
313462
313797
|
var _col$children;
|
|
313463
313798
|
|
|
313464
|
-
if (!col.editable && !((_col$children = col.children) === null || _col$children === void 0 ? void 0 : _col$children.length)) {
|
|
313465
|
-
|
|
313799
|
+
if (!col.editable && !((_col$children = col.children) === null || _col$children === void 0 ? void 0 : _col$children.length) && (col === null || col === void 0 ? void 0 : col.dataIndex) === '_sort') {
|
|
313800
|
+
var fn = col === null || col === void 0 ? void 0 : col.render;
|
|
313801
|
+
return _objectSpread(_objectSpread({}, col), {}, {
|
|
313802
|
+
render: function render(text, record, i) {
|
|
313803
|
+
var _dataSource$i;
|
|
313804
|
+
|
|
313805
|
+
return fn === null || fn === void 0 ? void 0 : fn((_dataSource$i = dataSource[i]) === null || _dataSource$i === void 0 ? void 0 : _dataSource$i[col.dataIndex], dataSource[i], i);
|
|
313806
|
+
}
|
|
313807
|
+
});
|
|
313466
313808
|
}
|
|
313467
313809
|
|
|
313468
313810
|
var newCol = _objectSpread(_objectSpread({}, col), {}, {
|
|
@@ -313693,7 +314035,7 @@
|
|
|
313693
314035
|
return targetElement;
|
|
313694
314036
|
}
|
|
313695
314037
|
|
|
313696
|
-
var prefixCls$
|
|
314038
|
+
var prefixCls$a = 'lm_quick_menu';
|
|
313697
314039
|
|
|
313698
314040
|
var LMQuickMenu = function LMQuickMenu(props) {
|
|
313699
314041
|
var className = props.className,
|
|
@@ -313827,7 +314169,7 @@
|
|
|
313827
314169
|
};
|
|
313828
314170
|
}, []);
|
|
313829
314171
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
313830
|
-
className: classnames(prefixCls$
|
|
314172
|
+
className: classnames(prefixCls$a),
|
|
313831
314173
|
onMouseEnter: function onMouseEnter() {
|
|
313832
314174
|
if (scrollTimeOut.current) {
|
|
313833
314175
|
clearTimeout(scrollTimeOut.current);
|
|
@@ -314341,7 +314683,7 @@
|
|
|
314341
314683
|
}
|
|
314342
314684
|
}
|
|
314343
314685
|
|
|
314344
|
-
var _excluded$
|
|
314686
|
+
var _excluded$2V = ["prefixCls", "getPopupContainer", "className", "placement", "size", "disabled", "bordered", "placeholder", "status"];
|
|
314345
314687
|
function generateRangePicker$1(generateConfig) {
|
|
314346
314688
|
var RangePicker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
314347
314689
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -314354,7 +314696,7 @@
|
|
|
314354
314696
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
314355
314697
|
placeholder = props.placeholder,
|
|
314356
314698
|
customStatus = props.status,
|
|
314357
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314699
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2V);
|
|
314358
314700
|
|
|
314359
314701
|
var innerRef = React.useRef(null);
|
|
314360
314702
|
|
|
@@ -314454,7 +314796,7 @@
|
|
|
314454
314796
|
return RangePicker$1;
|
|
314455
314797
|
}
|
|
314456
314798
|
|
|
314457
|
-
var _excluded$
|
|
314799
|
+
var _excluded$2W = ["prefixCls", "getPopupContainer", "className", "size", "bordered", "placement", "placeholder", "disabled", "status"];
|
|
314458
314800
|
function generatePicker$2(generateConfig) {
|
|
314459
314801
|
function getPicker(picker, displayName) {
|
|
314460
314802
|
var Picker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -314468,7 +314810,7 @@
|
|
|
314468
314810
|
placeholder = props.placeholder,
|
|
314469
314811
|
customDisabled = props.disabled,
|
|
314470
314812
|
customStatus = props.status,
|
|
314471
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
314813
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2W);
|
|
314472
314814
|
|
|
314473
314815
|
warning$6(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
|
|
314474
314816
|
|
|
@@ -314690,13 +315032,13 @@
|
|
|
314690
315032
|
return propValue;
|
|
314691
315033
|
};
|
|
314692
315034
|
|
|
314693
|
-
var _excluded$
|
|
315035
|
+
var _excluded$2X = ["prefixCls", "title", "content", "_overlay"];
|
|
314694
315036
|
var Popover$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
314695
315037
|
var customizePrefixCls = _ref.prefixCls,
|
|
314696
315038
|
title = _ref.title,
|
|
314697
315039
|
content = _ref.content,
|
|
314698
315040
|
_overlay = _ref._overlay,
|
|
314699
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
315041
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$2X);
|
|
314700
315042
|
|
|
314701
315043
|
var _React$useContext = React.useContext(ConfigContext),
|
|
314702
315044
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -315545,7 +315887,7 @@
|
|
|
315545
315887
|
|
|
315546
315888
|
var KeyCode$1 = /*@__PURE__*/getDefaultExportFromCjs(KeyCode_1);
|
|
315547
315889
|
|
|
315548
|
-
var _excluded$
|
|
315890
|
+
var _excluded$2Y = ["style", "noStyle", "disabled"];
|
|
315549
315891
|
var inlineStyle$1 = {
|
|
315550
315892
|
border: 0,
|
|
315551
315893
|
background: 'transparent',
|
|
@@ -315574,7 +315916,7 @@
|
|
|
315574
315916
|
var style = props.style,
|
|
315575
315917
|
noStyle = props.noStyle,
|
|
315576
315918
|
disabled = props.disabled,
|
|
315577
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
315919
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2Y);
|
|
315578
315920
|
|
|
315579
315921
|
var mergedStyle = {};
|
|
315580
315922
|
|
|
@@ -315785,7 +316127,7 @@
|
|
|
315785
316127
|
}, conditions);
|
|
315786
316128
|
});
|
|
315787
316129
|
|
|
315788
|
-
var _excluded$
|
|
316130
|
+
var _excluded$2Z = ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"];
|
|
315789
316131
|
|
|
315790
316132
|
var Typography$2 = function Typography(_ref, ref) {
|
|
315791
316133
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -315795,7 +316137,7 @@
|
|
|
315795
316137
|
ariaLabel = _ref['aria-label'],
|
|
315796
316138
|
setContentRef = _ref.setContentRef,
|
|
315797
316139
|
children = _ref.children,
|
|
315798
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316140
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2Z);
|
|
315799
316141
|
|
|
315800
316142
|
var _React$useContext = React.useContext(ConfigContext),
|
|
315801
316143
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -316038,7 +316380,7 @@
|
|
|
316038
316380
|
EllipsisTooltip$1.displayName = 'EllipsisTooltip';
|
|
316039
316381
|
}
|
|
316040
316382
|
|
|
316041
|
-
var _excluded$
|
|
316383
|
+
var _excluded$2_ = ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"];
|
|
316042
316384
|
|
|
316043
316385
|
function wrapperDecorations$1(_ref, content) {
|
|
316044
316386
|
var mark = _ref.mark,
|
|
@@ -316090,7 +316432,7 @@
|
|
|
316090
316432
|
copyable = props.copyable,
|
|
316091
316433
|
component = props.component,
|
|
316092
316434
|
title = props.title,
|
|
316093
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316435
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2_);
|
|
316094
316436
|
|
|
316095
316437
|
var _React$useContext = React.useContext(ConfigContext),
|
|
316096
316438
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -316508,12 +316850,12 @@
|
|
|
316508
316850
|
});
|
|
316509
316851
|
});
|
|
316510
316852
|
|
|
316511
|
-
var _excluded$
|
|
316853
|
+
var _excluded$2$ = ["ellipsis", "rel"];
|
|
316512
316854
|
|
|
316513
316855
|
var Link$2 = function Link(_ref, ref) {
|
|
316514
316856
|
var ellipsis = _ref.ellipsis,
|
|
316515
316857
|
rel = _ref.rel,
|
|
316516
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316858
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2$);
|
|
316517
316859
|
|
|
316518
316860
|
warning$6(_typeof$1(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
|
|
316519
316861
|
var baseRef = React.useRef(null);
|
|
@@ -316547,11 +316889,11 @@
|
|
|
316547
316889
|
|
|
316548
316890
|
var Paragraph$7 = /*#__PURE__*/React.forwardRef(Paragraph$6);
|
|
316549
316891
|
|
|
316550
|
-
var _excluded$
|
|
316892
|
+
var _excluded$30 = ["ellipsis"];
|
|
316551
316893
|
|
|
316552
316894
|
var Text$2 = function Text(_ref, ref) {
|
|
316553
316895
|
var ellipsis = _ref.ellipsis,
|
|
316554
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
316896
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$30);
|
|
316555
316897
|
|
|
316556
316898
|
var mergedEllipsis = React.useMemo(function () {
|
|
316557
316899
|
if (ellipsis && _typeof$1(ellipsis) === 'object') {
|
|
@@ -316571,13 +316913,13 @@
|
|
|
316571
316913
|
|
|
316572
316914
|
var Text$3 = /*#__PURE__*/React.forwardRef(Text$2);
|
|
316573
316915
|
|
|
316574
|
-
var _excluded$
|
|
316916
|
+
var _excluded$31 = ["level"];
|
|
316575
316917
|
var TITLE_ELE_LIST$1 = tupleNum$1(1, 2, 3, 4, 5);
|
|
316576
316918
|
|
|
316577
|
-
var Title$
|
|
316919
|
+
var Title$4 = function Title(props, ref) {
|
|
316578
316920
|
var _props$level = props.level,
|
|
316579
316921
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
316580
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
316922
|
+
restProps = _objectWithoutProperties$1(props, _excluded$31);
|
|
316581
316923
|
|
|
316582
316924
|
var component;
|
|
316583
316925
|
|
|
@@ -316595,12 +316937,12 @@
|
|
|
316595
316937
|
}));
|
|
316596
316938
|
};
|
|
316597
316939
|
|
|
316598
|
-
var Title$
|
|
316940
|
+
var Title$5 = /*#__PURE__*/React.forwardRef(Title$4);
|
|
316599
316941
|
|
|
316600
316942
|
var Typography$3 = ExportTypography$1;
|
|
316601
316943
|
Typography$3.Text = Text$3;
|
|
316602
316944
|
Typography$3.Link = Link$3;
|
|
316603
|
-
Typography$3.Title = Title$
|
|
316945
|
+
Typography$3.Title = Title$5;
|
|
316604
316946
|
Typography$3.Paragraph = Paragraph$7;
|
|
316605
316947
|
Typography$3.AntdTypography = Typography$1;
|
|
316606
316948
|
|
|
@@ -316682,13 +317024,13 @@
|
|
|
316682
317024
|
RefAutoComplete$1.Option = Option;
|
|
316683
317025
|
RefAutoComplete$1.AntdAutoComplete = RefAutoComplete;
|
|
316684
317026
|
|
|
316685
|
-
var _excluded$
|
|
317027
|
+
var _excluded$32 = ["children", "treeData", "value", "defaultLabel"];
|
|
316686
317028
|
var CLMTreeSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
316687
317029
|
var children = props.children,
|
|
316688
317030
|
treeData = props.treeData,
|
|
316689
317031
|
value = props.value,
|
|
316690
317032
|
defaultLabel = props.defaultLabel,
|
|
316691
|
-
resetProps = _objectWithoutProperties$1(props, _excluded$
|
|
317033
|
+
resetProps = _objectWithoutProperties$1(props, _excluded$32);
|
|
316692
317034
|
|
|
316693
317035
|
var deepChildren = React.useCallback(function (arr) {
|
|
316694
317036
|
var flag = false;
|
|
@@ -316813,7 +317155,7 @@
|
|
|
316813
317155
|
return ErrorBoundary;
|
|
316814
317156
|
}(React.Component);
|
|
316815
317157
|
|
|
316816
|
-
var _excluded$
|
|
317158
|
+
var _excluded$33 = ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "duration"];
|
|
316817
317159
|
var iconMapFilled$1 = {
|
|
316818
317160
|
success: CheckCircleFilled$2,
|
|
316819
317161
|
info: InfoCircleFilled$2,
|
|
@@ -316886,7 +317228,7 @@
|
|
|
316886
317228
|
closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined$2, null) : _ref$closeIcon,
|
|
316887
317229
|
action = _ref.action,
|
|
316888
317230
|
duration = _ref.duration,
|
|
316889
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
317231
|
+
props = _objectWithoutProperties$1(_ref, _excluded$33);
|
|
316890
317232
|
|
|
316891
317233
|
var _React$useState = React.useState(false),
|
|
316892
317234
|
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
@@ -317316,8 +317658,8 @@
|
|
|
317316
317658
|
};
|
|
317317
317659
|
};
|
|
317318
317660
|
|
|
317319
|
-
var _excluded$
|
|
317320
|
-
var prefixCls$
|
|
317661
|
+
var _excluded$34 = ["className", "onUrge", "onDeleteComment"];
|
|
317662
|
+
var prefixCls$b = 'lm_approval';
|
|
317321
317663
|
var colors = ['#36BCF1', '#AE86DC', '#8BD248', '#F5A173'];
|
|
317322
317664
|
var cacheColorMap = new Map();
|
|
317323
317665
|
|
|
@@ -317355,8 +317697,8 @@
|
|
|
317355
317697
|
_props$onAgree = props.onAgree,
|
|
317356
317698
|
onAgree = _props$onAgree === void 0 ? function () {} : _props$onAgree;
|
|
317357
317699
|
var status = getStatus(steps);
|
|
317358
|
-
var currentStatusCls = classnames(prefixCls$
|
|
317359
|
-
var drawerCls = classnames(prefixCls$
|
|
317700
|
+
var currentStatusCls = classnames(prefixCls$b + '_title_status');
|
|
317701
|
+
var drawerCls = classnames(prefixCls$b + '_drawer');
|
|
317360
317702
|
var statusText = ApprovalType.toText(ApprovalType.APPROVAL, status);
|
|
317361
317703
|
|
|
317362
317704
|
var handleClose = function handleClose() {
|
|
@@ -317423,7 +317765,7 @@
|
|
|
317423
317765
|
_user = props._user,
|
|
317424
317766
|
onUrge = props.onUrge,
|
|
317425
317767
|
onDeleteComment = props.onDeleteComment;
|
|
317426
|
-
var itemCls = classnames(prefixCls$
|
|
317768
|
+
var itemCls = classnames(prefixCls$b + '_item');
|
|
317427
317769
|
var itemHeaderCls = classnames(itemCls + '_header');
|
|
317428
317770
|
var itemBodyCls = classnames(itemCls + '_body', ApprovalType.isPending(type, approvalStatus) ? 'small' : '');
|
|
317429
317771
|
|
|
@@ -317724,7 +318066,7 @@
|
|
|
317724
318066
|
onUrge = _props$onUrge === void 0 ? function () {} : _props$onUrge,
|
|
317725
318067
|
_props$onDeleteCommen2 = props.onDeleteComment,
|
|
317726
318068
|
onDeleteComment = _props$onDeleteCommen2 === void 0 ? function () {} : _props$onDeleteCommen2,
|
|
317727
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
318069
|
+
others = _objectWithoutProperties$1(props, _excluded$34);
|
|
317728
318070
|
|
|
317729
318071
|
var _useState = React.useState(false),
|
|
317730
318072
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -317749,7 +318091,7 @@
|
|
|
317749
318091
|
};
|
|
317750
318092
|
|
|
317751
318093
|
return /*#__PURE__*/React__default['default'].createElement(LMDrawer$1, _objectSpread({
|
|
317752
|
-
className: classnames(className, prefixCls$
|
|
318094
|
+
className: classnames(className, prefixCls$b)
|
|
317753
318095
|
}, others), /*#__PURE__*/React__default['default'].createElement(Approval, _objectSpread(_objectSpread({}, others), {}, {
|
|
317754
318096
|
onUrge: _onUrge,
|
|
317755
318097
|
onDeleteComment: onDeleteComment,
|
|
@@ -319515,9 +319857,9 @@
|
|
|
319515
319857
|
return nodes;
|
|
319516
319858
|
}
|
|
319517
319859
|
|
|
319518
|
-
var _excluded$
|
|
319860
|
+
var _excluded$35 = ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"],
|
|
319519
319861
|
_excluded2$J = ["prefixCls", "className"];
|
|
319520
|
-
var ConfigContext$
|
|
319862
|
+
var ConfigContext$7 = ConfigProvider$1.ConfigContext;
|
|
319521
319863
|
|
|
319522
319864
|
function getIcon$1(props) {
|
|
319523
319865
|
var isLeaf = props.isLeaf,
|
|
@@ -319540,7 +319882,7 @@
|
|
|
319540
319882
|
var defaultExpandAll = _ref2.defaultExpandAll,
|
|
319541
319883
|
defaultExpandParent = _ref2.defaultExpandParent,
|
|
319542
319884
|
defaultExpandedKeys = _ref2.defaultExpandedKeys,
|
|
319543
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
319885
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$35);
|
|
319544
319886
|
|
|
319545
319887
|
// Shift click usage
|
|
319546
319888
|
var lastSelectedKey = React.useRef();
|
|
@@ -319651,7 +319993,7 @@
|
|
|
319651
319993
|
}
|
|
319652
319994
|
};
|
|
319653
319995
|
|
|
319654
|
-
var _React$useContext = React.useContext(ConfigContext$
|
|
319996
|
+
var _React$useContext = React.useContext(ConfigContext$7),
|
|
319655
319997
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
319656
319998
|
direction = _React$useContext.direction;
|
|
319657
319999
|
|
|
@@ -319958,11 +320300,11 @@
|
|
|
319958
320300
|
});
|
|
319959
320301
|
}
|
|
319960
320302
|
|
|
319961
|
-
var ConfigContext$
|
|
320303
|
+
var ConfigContext$8 = ConfigProvider$1.ConfigContext;
|
|
319962
320304
|
var Tree$2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
319963
320305
|
var _classNames;
|
|
319964
320306
|
|
|
319965
|
-
var _React$useContext = React.useContext(ConfigContext$
|
|
320307
|
+
var _React$useContext = React.useContext(ConfigContext$8),
|
|
319966
320308
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
319967
320309
|
direction = _React$useContext.direction,
|
|
319968
320310
|
virtual = _React$useContext.virtual;
|
|
@@ -320038,16 +320380,16 @@
|
|
|
320038
320380
|
blockNode: false
|
|
320039
320381
|
};
|
|
320040
320382
|
|
|
320041
|
-
var _excluded$
|
|
320042
|
-
var prefixCls$
|
|
320383
|
+
var _excluded$36 = ["className"];
|
|
320384
|
+
var prefixCls$c = 'lm_tree';
|
|
320043
320385
|
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
320044
320386
|
var className = props.className,
|
|
320045
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
320387
|
+
rest = _objectWithoutProperties$1(props, _excluded$36);
|
|
320046
320388
|
|
|
320047
320389
|
return /*#__PURE__*/React__default['default'].createElement(Tree$2, _objectSpread(_objectSpread({
|
|
320048
320390
|
ref: ref
|
|
320049
320391
|
}, rest), {}, {
|
|
320050
|
-
className: classnames(prefixCls$
|
|
320392
|
+
className: classnames(prefixCls$c, className)
|
|
320051
320393
|
}));
|
|
320052
320394
|
});
|
|
320053
320395
|
LmTree.TreeNode = Tree$2.TreeNode;
|
|
@@ -321101,7 +321443,7 @@
|
|
|
321101
321443
|
}, unitNodes);
|
|
321102
321444
|
}
|
|
321103
321445
|
|
|
321104
|
-
var _excluded$
|
|
321446
|
+
var _excluded$37 = ["prefixCls", "count", "className", "motionClassName", "style", "title", "show", "component", "children"];
|
|
321105
321447
|
|
|
321106
321448
|
var ScrollNumber$1 = function ScrollNumber(_ref) {
|
|
321107
321449
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -321114,7 +321456,7 @@
|
|
|
321114
321456
|
_ref$component = _ref.component,
|
|
321115
321457
|
component = _ref$component === void 0 ? 'sup' : _ref$component,
|
|
321116
321458
|
children = _ref.children,
|
|
321117
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321459
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$37);
|
|
321118
321460
|
|
|
321119
321461
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
321120
321462
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -321164,7 +321506,7 @@
|
|
|
321164
321506
|
return /*#__PURE__*/React.createElement(component, newProps, numberNodes);
|
|
321165
321507
|
};
|
|
321166
321508
|
|
|
321167
|
-
var _excluded$
|
|
321509
|
+
var _excluded$38 = ["prefixCls", "scrollNumberPrefixCls", "children", "status", "text", "color", "count", "overflowCount", "dot", "size", "title", "offset", "style", "className", "showZero"];
|
|
321168
321510
|
|
|
321169
321511
|
var Badge$1 = function Badge(_ref) {
|
|
321170
321512
|
var _classNames, _classNames2;
|
|
@@ -321189,7 +321531,7 @@
|
|
|
321189
321531
|
className = _ref.className,
|
|
321190
321532
|
_ref$showZero = _ref.showZero,
|
|
321191
321533
|
showZero = _ref$showZero === void 0 ? false : _ref$showZero,
|
|
321192
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
321534
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$38);
|
|
321193
321535
|
|
|
321194
321536
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
321195
321537
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -321324,7 +321666,7 @@
|
|
|
321324
321666
|
|
|
321325
321667
|
Badge$1.Ribbon = Ribbon$1;
|
|
321326
321668
|
|
|
321327
|
-
var _excluded$
|
|
321669
|
+
var _excluded$39 = ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"];
|
|
321328
321670
|
|
|
321329
321671
|
var Divider$5 = function Divider(props) {
|
|
321330
321672
|
var _classNames;
|
|
@@ -321343,7 +321685,7 @@
|
|
|
321343
321685
|
children = props.children,
|
|
321344
321686
|
dashed = props.dashed,
|
|
321345
321687
|
plain = props.plain,
|
|
321346
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
321688
|
+
restProps = _objectWithoutProperties$1(props, _excluded$39);
|
|
321347
321689
|
|
|
321348
321690
|
var prefixCls = getPrefixCls('divider', customizePrefixCls);
|
|
321349
321691
|
var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
|
|
@@ -323859,14 +324201,14 @@
|
|
|
323859
324201
|
|
|
323860
324202
|
var Body$1 = /*#__PURE__*/React__default['default'].memo(Index$b);
|
|
323861
324203
|
|
|
323862
|
-
var _excluded$
|
|
324204
|
+
var _excluded$3a = ["value", "onChange", "leftIcon", "rightIcon"];
|
|
323863
324205
|
|
|
323864
324206
|
var ResetSlider = function ResetSlider(_ref) {
|
|
323865
324207
|
var value = _ref.value,
|
|
323866
324208
|
_onChange = _ref.onChange,
|
|
323867
324209
|
leftIcon = _ref.leftIcon,
|
|
323868
324210
|
rightIcon = _ref.rightIcon,
|
|
323869
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
324211
|
+
props = _objectWithoutProperties$1(_ref, _excluded$3a);
|
|
323870
324212
|
|
|
323871
324213
|
// 减
|
|
323872
324214
|
var decrement = function decrement() {
|
|
@@ -324009,14 +324351,14 @@
|
|
|
324009
324351
|
|
|
324010
324352
|
var Container$2 = /*#__PURE__*/React__default['default'].memo(LmBoxContainer);
|
|
324011
324353
|
|
|
324012
|
-
var Wrapper = function Wrapper(_ref) {
|
|
324354
|
+
var Wrapper$1 = function Wrapper(_ref) {
|
|
324013
324355
|
var instance = _ref.instance;
|
|
324014
324356
|
return /*#__PURE__*/React__default['default'].createElement(Container$2, {
|
|
324015
324357
|
instance: instance
|
|
324016
324358
|
});
|
|
324017
324359
|
};
|
|
324018
324360
|
|
|
324019
|
-
var Wrapper$
|
|
324361
|
+
var Wrapper$2 = /*#__PURE__*/React__default['default'].memo(Wrapper$1);
|
|
324020
324362
|
|
|
324021
324363
|
var LmBox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
324022
324364
|
var initialState = React.useMemo(function () {
|
|
@@ -324052,7 +324394,7 @@
|
|
|
324052
324394
|
}
|
|
324053
324395
|
}, RefMethods);
|
|
324054
324396
|
});
|
|
324055
|
-
return /*#__PURE__*/React__default['default'].createElement(Wrapper$
|
|
324397
|
+
return /*#__PURE__*/React__default['default'].createElement(Wrapper$2, {
|
|
324056
324398
|
instance: instance
|
|
324057
324399
|
});
|
|
324058
324400
|
});
|
|
@@ -324400,20 +324742,18 @@
|
|
|
324400
324742
|
onClick: function onClick(e) {
|
|
324401
324743
|
return handleTranform(e, 'zoomIn');
|
|
324402
324744
|
}
|
|
324403
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
|
324745
|
+
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
324746
|
+
type: "lmweb-icon_m_narrow",
|
|
324404
324747
|
onClick: function onClick(e) {
|
|
324405
324748
|
return handleTranform(e, 'zoomOut');
|
|
324406
|
-
},
|
|
324407
|
-
style: {
|
|
324408
|
-
fontSize: 22
|
|
324409
324749
|
}
|
|
324410
324750
|
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
324411
|
-
type: "lmweb-
|
|
324751
|
+
type: "lmweb-icon_m_turnleft-01",
|
|
324412
324752
|
onClick: function onClick(e) {
|
|
324413
324753
|
return handleTranform(e, 'rotateLeft');
|
|
324414
324754
|
}
|
|
324415
324755
|
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
324416
|
-
type: "lmweb-
|
|
324756
|
+
type: "lmweb-reload",
|
|
324417
324757
|
onClick: function onClick(e) {
|
|
324418
324758
|
return handleTranform(e, 'rotateRight');
|
|
324419
324759
|
}
|
|
@@ -324612,7 +324952,7 @@
|
|
|
324612
324952
|
exports.LeftTable = LeftSide;
|
|
324613
324953
|
exports.List = List$2;
|
|
324614
324954
|
exports.LmEditTable = LmEditTable;
|
|
324615
|
-
exports.LmFilter = LmFilter$
|
|
324955
|
+
exports.LmFilter = LmFilter$1;
|
|
324616
324956
|
exports.LmImgList = LmImgList;
|
|
324617
324957
|
exports.LmSelect = LMSelect;
|
|
324618
324958
|
exports.LmTable = Table$2;
|