💄 Fix lgtm alerts

https://lgtm.com/projects/g/ant-design/ant-design/alerts/?mode=list
This commit is contained in:
afc163 2018-12-22 17:40:25 +08:00
parent 4378454495
commit 3a25ef8d14
No known key found for this signature in database
GPG Key ID: 5F00908D72002306
7 changed files with 42 additions and 130 deletions

View File

@ -131,8 +131,8 @@ export default class Select<T = SelectValue> extends React.Component<SelectProps
warning(
props.mode !== 'combobox',
'The combobox mode of Select is deprecated,' +
'it will be removed in next major version,' +
'The combobox mode of Select is deprecated, ' +
'it will be removed in next major version, ' +
'please use AutoComplete instead',
);
}

View File

@ -19,7 +19,7 @@
<![endif]-->
<script>
if (!window.Intl) {
document.writeln('<script src="https://as.alipayobjects.com/g/component/intl/1.0.1/??Intl.js,locale-data/jsonp/en.js,locale-data/jsonp/zh.js">' + '<' + '/script>');
document.writeln('<script src="https://as.alipayobjects.com/g/component/intl/1.0.1/??Intl.js,locale-data/jsonp/en.js,locale-data/jsonp/zh.js"\>\<\/script>');
}
</script>
<script>

View File

@ -39,15 +39,7 @@ class Banner extends React.PureComponent {
<div className="banner-bg-wrapper">
<svg width="400px" height="576px" viewBox="0 0 400 576" fill="none">
<TweenOne component="g" animation={[{ opacity: 0, type: 'from' }, { ...loop, y: 15 }]}>
<ellipse
id="Oval-9-Copy-4"
cx="100"
cy="100"
rx="6"
ry="6"
stroke="#2F54EB"
strokeWidth="1.6"
/>
<ellipse cx="100" cy="100" rx="6" ry="6" stroke="#2F54EB" strokeWidth="1.6" />
</TweenOne>
<TweenOne component="g" animation={[{ opacity: 0, type: 'from' }, { ...loop, y: -15 }]}>
<g transform="translate(200 450)">

View File

@ -107,7 +107,6 @@ export default function BannerImage() {
<g id="Group-13" transform="translate(0.000000, 41.000000)">
<TweenOneG animation={animate.y}>
<ellipse
id="Oval-9-Copy-4"
fillOpacity="0.4"
fill="#2F54EB"
opacity="0.3"
@ -118,19 +117,10 @@ export default function BannerImage() {
/>
</TweenOneG>
<TweenOneG animation={{ ...animate.yR, delay: 100 }}>
<circle
id="Oval-9-Copy-4"
fillOpacity="0.4"
fill="#2F54EB"
opacity="0.3"
cx="402"
cy="3"
r="3"
/>
<circle fillOpacity="0.4" fill="#2F54EB" opacity="0.3" cx="402" cy="3" r="3" />
</TweenOneG>
<TweenOneG animation={{ ...animate.y, delay: 100 }}>
<ellipse
id="Oval-9-Copy-4"
stroke="#13C2C2"
strokeWidth="1.6"
cx="419"
@ -141,7 +131,6 @@ export default function BannerImage() {
</TweenOneG>
<TweenOneG animation={{ ...animate.yR, delay: 150 }}>
<rect
id="Rectangle-22"
fill="#FFE600"
opacity="0.6"
transform="translate(285.224453, 179.218136) rotate(-340.000000) translate(-285.224453, -179.218136) "
@ -154,7 +143,6 @@ export default function BannerImage() {
</TweenOneG>
<TweenOneG animation={{ ...animate.y, delay: 200 }}>
<rect
id="Rectangle-22"
stroke="#F5222D"
strokeWidth="1.6"
transform="translate(184.000000, 18.000000) rotate(8.000000) translate(-184.000000, -18.000000) "
@ -168,7 +156,6 @@ export default function BannerImage() {
<TweenOneG animation={{ ...animate.yR, delay: 200 }}>
<path
d="M11.6005591,127.582431 L14.1769733,132.010943 C15.1767883,133.729492 14.5941396,135.933161 12.8755911,136.932976 C12.325874,137.25279 11.7012453,137.421269 11.0652659,137.421269 L5.91243747,137.421269 C3.92421237,137.421269 2.31243747,135.809494 2.31243747,133.821269 C2.31243747,133.185289 2.48091636,132.560661 2.80073009,132.010943 L5.37714432,127.582431 C6.37695929,125.863883 8.58062832,125.281234 10.2991769,126.281049 C10.8384011,126.594758 11.2868499,127.043207 11.6005591,127.582431 Z"
id="Triangle-2"
stroke="#13C2C2"
strokeWidth="1.6"
transform="translate(8.489147, 131.606717) rotate(18.000000) translate(-8.489147, -131.606717) "
@ -177,7 +164,6 @@ export default function BannerImage() {
<TweenOneG animation={{ ...animate.y, delay: 300 }}>
<path
d="M168.708021,336.081114 L171.995111,342.213024 C172.516977,343.186539 172.150843,344.398784 171.177328,344.920649 C170.88673,345.076428 170.562126,345.157945 170.232408,345.157945 L163.658227,345.157945 C162.553657,345.157945 161.658227,344.262514 161.658227,343.157945 C161.658227,342.828226 161.739744,342.503622 161.895523,342.213024 L165.182613,336.081114 C165.704478,335.1076 166.916723,334.741466 167.890238,335.263331 C168.237419,335.449442 168.52191,335.733933 168.708021,336.081114 Z"
id="Triangle-2"
stroke="#2F54EB"
strokeWidth="1.6"
transform="translate(166.945513, 340.091794) rotate(18.000000) translate(-166.945513, -340.091794) "

View File

@ -25,31 +25,19 @@ const page1Data = [
>
<circle id="Oval-12-Copy-6" fill="#1D39C4" opacity="0.45" cx="60" cy="157" r="25" />
<circle id="Oval-12-Copy" fill="#1D39C4" opacity="0.35" cx="167.5" cy="65.5" r="11.5" />
<rect
id="Rectangle-14"
stroke="#1D39C4"
opacity="0.7"
x="0.5"
y="54.5"
width="14"
height="14"
rx="1"
/>
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="195.5" cy="117.5" r="3.5" />
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="117" cy="2" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="82" cy="36" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="26.5" cy="102.5" r="1.5" />
<circle id="Oval-8" stroke="#1D39C4" opacity="0.65" cx="180.5" cy="8.5" r="4.5" />
<rect stroke="#1D39C4" opacity="0.7" x="0.5" y="54.5" width="14" height="14" rx="1" />
<circle fill="#1D39C4" opacity="0.5" cx="195.5" cy="117.5" r="3.5" />
<circle fill="#1D39C4" opacity="0.5" cx="117" cy="2" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="82" cy="36" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="26.5" cy="102.5" r="1.5" />
<circle stroke="#1D39C4" opacity="0.65" cx="180.5" cy="8.5" r="4.5" />
<g
id="Group-18"
transform="translate(197.000000, 157.000000)"
opacity="0.7"
stroke="#1D39C4"
>
<path
d="M10.7320508,3 L15.0621778,10.5 C15.6144626,11.4565852 15.2867123,12.6797661 14.330127,13.2320508 C14.0260886,13.4075875 13.6812003,13.5 13.330127,13.5 L4.66987298,13.5 C3.56530348,13.5 2.66987298,12.6045695 2.66987298,11.5 C2.66987298,11.1489267 2.76228551,10.8040384 2.93782217,10.5 L7.26794919,3 C7.82023394,2.04341475 9.04341475,1.71566444 10,2.26794919 C10.3040384,2.44348586 10.5565141,2.69596158 10.7320508,3 Z"
id="Polygon-2"
/>
<path d="M10.7320508,3 L15.0621778,10.5 C15.6144626,11.4565852 15.2867123,12.6797661 14.330127,13.2320508 C14.0260886,13.4075875 13.6812003,13.5 13.330127,13.5 L4.66987298,13.5 C3.56530348,13.5 2.66987298,12.6045695 2.66987298,11.5 C2.66987298,11.1489267 2.76228551,10.8040384 2.93782217,10.5 L7.26794919,3 C7.82023394,2.04341475 9.04341475,1.71566444 10,2.26794919 C10.3040384,2.44348586 10.5565141,2.69596158 10.7320508,3 Z" />
</g>
<g
id="Group-17"
@ -59,7 +47,6 @@ const page1Data = [
>
<path
d="M13.7320508,6 L18.0621778,13.5 C18.6144626,14.4565852 18.2867123,15.6797661 17.330127,16.2320508 C17.0260886,16.4075875 16.6812003,16.5 16.330127,16.5 L7.66987298,16.5 C6.56530348,16.5 5.66987298,15.6045695 5.66987298,14.5 C5.66987298,14.1489267 5.76228551,13.8040384 5.93782217,13.5 L10.2679492,6 C10.8202339,5.04341475 12.0434148,4.71566444 13,5.26794919 C13.3040384,5.44348586 13.5565141,5.69596158 13.7320508,6 Z"
id="Polygon-2"
transform="translate(12.000000, 11.140576) rotate(25.000000) translate(-12.000000, -11.140576) "
/>
</g>
@ -81,20 +68,10 @@ const page1Data = [
fill="none"
fillRule="evenodd"
>
<rect
id="Rectangle-14"
stroke="#1D39C4"
opacity="0.7"
x="192.5"
y="62.5"
width="14"
height="14"
rx="1"
/>
<rect stroke="#1D39C4" opacity="0.7" x="192.5" y="62.5" width="14" height="14" rx="1" />
<circle id="Oval-12-Copy-2" fill="#1D39C4" opacity="0.45" cx="21.5" cy="90.5" r="21.5" />
<circle id="Oval-12-Copy-3" fill="#1D39C4" opacity="0.35" cx="162.5" cy="163.5" r="14.5" />
<rect
id="Rectangle-14"
stroke="#1D39C4"
opacity="0.7"
transform="translate(77.500000, 287.500000) rotate(30.000000) translate(-77.500000, -287.500000) "
@ -104,11 +81,11 @@ const page1Data = [
height="10"
rx="1"
/>
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="164.5" cy="117.5" r="3.5" />
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="96" cy="2" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="141" cy="36" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="34.5" cy="142.5" r="1.5" />
<circle id="Oval-8" stroke="#1D39C4" opacity="0.65" cx="24.5" cy="30.5" r="4.5" />
<circle fill="#1D39C4" opacity="0.5" cx="164.5" cy="117.5" r="3.5" />
<circle fill="#1D39C4" opacity="0.5" cx="96" cy="2" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="141" cy="36" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="34.5" cy="142.5" r="1.5" />
<circle stroke="#1D39C4" opacity="0.65" cx="24.5" cy="30.5" r="4.5" />
<g
id="Group-19"
transform="translate(12.000000, 173.000000)"
@ -117,7 +94,6 @@ const page1Data = [
>
<path
d="M13.5216765,6.597413 L17.8518036,14.097413 C18.4040883,15.0539982 18.076338,16.2771791 17.1197527,16.8294638 C16.8157143,17.0050005 16.4708261,17.097413 16.1197527,17.097413 L7.45949871,17.097413 C6.35492921,17.097413 5.45949871,16.2019825 5.45949871,15.097413 C5.45949871,14.7463397 5.55191124,14.4014514 5.7274479,14.097413 L10.0575749,6.597413 C10.6098597,5.64082775 11.8330405,5.31307744 12.7896257,5.86536219 C13.0936641,6.04089886 13.3461399,6.29337458 13.5216765,6.597413 Z"
id="Polygon-2"
transform="translate(11.789626, 11.737989) rotate(40.000000) translate(-11.789626, -11.737989) "
/>
</g>
@ -142,26 +118,16 @@ const page1Data = [
>
<circle id="Oval-12-Copy-4" fill="#1D39C4" opacity="0.35" cx="77" cy="152" r="10" />
<circle id="Oval-12-Copy-5" fill="#1D39C4" opacity="0.45" cx="194.5" cy="74.5" r="20.5" />
<rect
id="Rectangle-14"
stroke="#1D39C4"
opacity="0.7"
x="0.5"
y="99.5"
width="13"
height="13"
rx="1"
/>
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="44.5" cy="117.5" r="3.5" />
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="132" cy="2" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="177" cy="36" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="147.5" cy="182.5" r="1.5" />
<circle id="Oval-8" stroke="#1D39C4" opacity="0.65" cx="172" cy="182" r="7" />
<circle id="Oval-8" stroke="#1D39C4" opacity="0.65" cx="110" cy="280" r="5" />
<rect stroke="#1D39C4" opacity="0.7" x="0.5" y="99.5" width="13" height="13" rx="1" />
<circle fill="#1D39C4" opacity="0.5" cx="44.5" cy="117.5" r="3.5" />
<circle fill="#1D39C4" opacity="0.5" cx="132" cy="2" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="177" cy="36" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="147.5" cy="182.5" r="1.5" />
<circle stroke="#1D39C4" opacity="0.65" cx="172" cy="182" r="7" />
<circle stroke="#1D39C4" opacity="0.65" cx="110" cy="280" r="5" />
<g id="Group-20" transform="translate(70.000000, 23.000000)" opacity="0.7" stroke="#1D39C4">
<path
d="M13.0221683,6.597413 L16.8974466,13.309592 C17.4497314,14.2661772 17.1219811,15.489358 16.1653958,16.0416428 C15.8613574,16.2171794 15.5164692,16.309592 15.1653958,16.309592 L7.41483918,16.309592 C6.31026968,16.309592 5.41483918,15.4141615 5.41483918,14.309592 C5.41483918,13.9585186 5.5072517,13.6136304 5.68278837,13.309592 L9.55806669,6.597413 C10.1103514,5.64082775 11.3335323,5.31307744 12.2901175,5.86536219 C12.5941559,6.04089886 12.8466316,6.29337458 13.0221683,6.597413 Z"
id="Polygon-2"
transform="translate(11.290118, 11.262929) rotate(40.000000) translate(-11.290118, -11.262929) "
/>
</g>
@ -186,22 +152,13 @@ const page1Data = [
>
<circle id="Oval-12-Copy-4" fill="#1D39C4" opacity="0.35" cx="71" cy="65" r="10" />
<circle id="Oval-12-Copy-5" fill="#1D39C4" opacity="0.45" cx="172.5" cy="154.5" r="20.5" />
<rect
id="Rectangle-14"
stroke="#1D39C4"
opacity="0.7"
x="0.5"
y="99.5"
width="13"
height="13"
rx="1"
/>
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="44.5" cy="117.5" r="3.5" />
<circle id="Path" fill="#1D39C4" opacity="0.5" cx="132" cy="2" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="39" cy="34" r="2" />
<circle id="Path" fill="#1D39C4" opacity="0.6" cx="147.5" cy="182.5" r="1.5" />
<circle id="Oval-8" stroke="#1D39C4" opacity="0.65" cx="55" cy="177" r="7" />
<circle id="Oval-8" stroke="#1D39C4" opacity="0.65" cx="110" cy="280" r="5" />
<rect stroke="#1D39C4" opacity="0.7" x="0.5" y="99.5" width="13" height="13" rx="1" />
<circle fill="#1D39C4" opacity="0.5" cx="44.5" cy="117.5" r="3.5" />
<circle fill="#1D39C4" opacity="0.5" cx="132" cy="2" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="39" cy="34" r="2" />
<circle fill="#1D39C4" opacity="0.6" cx="147.5" cy="182.5" r="1.5" />
<circle stroke="#1D39C4" opacity="0.65" cx="55" cy="177" r="7" />
<circle stroke="#1D39C4" opacity="0.65" cx="110" cy="280" r="5" />
<g
id="Group-21"
transform="translate(171.000000, 25.000000)"
@ -210,7 +167,6 @@ const page1Data = [
>
<path
d="M12.833668,6.38747836 L16.7089463,13.0996573 C17.2612311,14.0562426 16.9334808,15.2794234 15.9768955,15.8317081 C15.6728571,16.0072448 15.3279688,16.0996573 14.9768955,16.0996573 L7.22633886,16.0996573 C6.12176936,16.0996573 5.22633886,15.2042268 5.22633886,14.0996573 C5.22633886,13.748584 5.31875139,13.4036957 5.49428806,13.0996573 L9.36956638,6.38747836 C9.92185113,5.43089311 11.1450319,5.1031428 12.1016172,5.65542755 C12.4056556,5.83096421 12.6581313,6.08343994 12.833668,6.38747836 Z"
id="Polygon-2"
transform="translate(11.101617, 11.052994) rotate(40.000000) translate(-11.101617, -11.052994) "
/>
</g>

View File

@ -51,15 +51,7 @@ const svgBgChild = [
preserveAspectRatio="xMidYMid slice"
>
<g transform="translate(-79.000000, -21.000000)">
<circle
id="Oval-13"
stroke="none"
fill="#EBEDF0"
fillRule="evenodd"
cx="98.5"
cy="98.5"
r="98.5"
/>
<circle stroke="none" fill="#EBEDF0" fillRule="evenodd" cx="98.5" cy="98.5" r="98.5" />
<rect
id="Rectangle-33"
stroke="none"
@ -72,18 +64,9 @@ const svgBgChild = [
height="300"
rx="1"
/>
<circle
id="Oval-13"
stroke="#EBEDF0"
strokeWidth="16"
fill="none"
cx="1402"
cy="151"
r="70"
/>
<circle stroke="#EBEDF0" strokeWidth="16" fill="none" cx="1402" cy="151" r="70" />
<path
d="M385.032144,960.394832 L394.316344,976.475539 C394.868629,977.432124 394.540879,978.655305 393.584293,979.20759 C393.280255,979.383126 392.935367,979.475539 392.584293,979.475539 L374.015893,979.475539 C372.911323,979.475539 372.015893,978.580108 372.015893,977.475539 C372.015893,977.124466 372.108305,976.779577 372.283842,976.475539 L381.568042,960.394832 C382.120327,959.438247 383.343508,959.110497 384.300093,959.662781 C384.604131,959.838318 384.856607,960.090794 385.032144,960.394832 Z"
id="Polygon-2"
stroke="none"
fill="#A3B1BF"
fillRule="evenodd"
@ -91,7 +74,6 @@ const svgBgChild = [
/>
<path
d="M545.537489,211.431472 L552.545207,223.569196 C553.097492,224.525781 552.769741,225.748962 551.813156,226.301246 C551.509118,226.476783 551.164229,226.569196 550.813156,226.569196 L536.79772,226.569196 C535.693151,226.569196 534.79772,225.673765 534.79772,224.569196 C534.79772,224.218122 534.890133,223.873234 535.06567,223.569196 L542.073387,211.431472 C542.625672,210.474887 543.848853,210.147137 544.805438,210.699421 C545.109477,210.874958 545.361952,211.127434 545.537489,211.431472 Z"
id="Polygon-2"
stroke="none"
fill="#A3B1BF"
fillRule="evenodd"
@ -114,8 +96,8 @@ const svgBgChild = [
<g id="Group-29" transform="translate(283.000000, 920.000000)" fill="#2F54EB">
<image xlinkHref="https://gw.alipayobjects.com/zos/rmsportal/VrADJaRPMnFjmtmIhObV.svg" />
</g>
<circle id="Oval-8" stroke="#13C2C2" strokeWidth="4" opacity="0.95" cx="1096" cy="11" r="11" />
<circle id="Oval-8" stroke="#13C2C2" strokeWidth="4" cx="11" cy="667" r="11" />
<circle stroke="#13C2C2" strokeWidth="4" opacity="0.95" cx="1096" cy="11" r="11" />
<circle stroke="#13C2C2" strokeWidth="4" cx="11" cy="667" r="11" />
<g id="Group-11" transform="translate(1207.000000, 419.000000)" fill="#13C2C2">
<image xlinkHref="https://gw.alipayobjects.com/zos/rmsportal/MnLEmwjipfhzPUmBJnJE.svg" />
</g>

View File

@ -30,16 +30,15 @@ const page3Data = [
];
const svgBg = [
<circle id="Oval-8" stroke="#13C2C2" cx="530" cy="195" r="5" />,
<circle id="Oval-8" fillOpacity="0.4" fill="#9EE6E6" cx="606" cy="76" r="3" />,
<circle id="Oval-8" stroke="#13C2C2" cx="165" cy="540" r="5" />,
<circle id="Oval-8" stroke="#CED4D9" cx="701.5" cy="650" r="3.5" />,
<circle id="Oval-8" stroke="#F5222D" cx="526.5" cy="381.5" r="3.5" />,
<circle id="Oval-8" fillOpacity="0.4" fill="#9EE6E6" cx="944" cy="251" r="5" />,
<circle stroke="#13C2C2" cx="530" cy="195" r="5" />,
<circle fillOpacity="0.4" fill="#9EE6E6" cx="606" cy="76" r="3" />,
<circle stroke="#13C2C2" cx="165" cy="540" r="5" />,
<circle stroke="#CED4D9" cx="701.5" cy="650" r="3.5" />,
<circle stroke="#F5222D" cx="526.5" cy="381.5" r="3.5" />,
<circle fillOpacity="0.4" fill="#9EE6E6" cx="944" cy="251" r="5" />,
<g transform="translate(0, 180)">
<path
d="M1182.79367,448.230356 L1186.00213,453.787581 C1186.55442,454.744166 1186.22667,455.967347 1185.27008,456.519632 C1184.96604,456.695168 1184.62116,456.787581 1184.27008,456.787581 L1177.85315,456.787581 C1176.74858,456.787581 1175.85315,455.89215 1175.85315,454.787581 C1175.85315,454.436507 1175.94556,454.091619 1176.1211,453.787581 L1179.32957,448.230356 C1179.88185,447.273771 1181.10503,446.946021 1182.06162,447.498305 C1182.36566,447.673842 1182.61813,447.926318 1182.79367,448.230356 Z"
id="Polygon-2"
stroke="#CED4D9"
transform="translate(1181.061784, 452.008801) rotate(40.000000) translate(-1181.061784, -452.008801) "
/>
@ -47,13 +46,11 @@ const svgBg = [
<g transform="translate(0, 100)">
<path
d="M1376.79367,204.230356 L1380.00213,209.787581 C1380.55442,210.744166 1380.22667,211.967347 1379.27008,212.519632 C1378.96604,212.695168 1378.62116,212.787581 1378.27008,212.787581 L1371.85315,212.787581 C1370.74858,212.787581 1369.85315,211.89215 1369.85315,210.787581 C1369.85315,210.436507 1369.94556,210.091619 1370.1211,209.787581 L1373.32957,204.230356 C1373.88185,203.273771 1375.10503,202.946021 1376.06162,203.498305 C1376.36566,203.673842 1376.61813,203.926318 1376.79367,204.230356 Z"
id="Polygon-2"
stroke="#2F54EB"
transform="translate(1375.061784, 208.008801) rotate(40.000000) translate(-1375.061784, -208.008801) "
/>
</g>,
<rect
id="Rectangle-14"
strokeOpacity="0.4"
stroke="#1D39C4"
transform="translate(949.801502, 129.801502) rotate(30.000000) translate(-949.801502, -129.801502) "
@ -64,7 +61,6 @@ const svgBg = [
rx="1"
/>,
<rect
id="Rectangle-14"
stroke="#CED4D9"
transform="translate(111.673081, 158.673081) rotate(30.000000) translate(-111.673081, -158.673081) "
x="107.288047"