feat: update
This commit is contained in:
@@ -17,9 +17,7 @@ const HomeIndex: React.FC = () => {
|
|||||||
r: -8,
|
r: -8,
|
||||||
h: 160,
|
h: 160,
|
||||||
w: (el: any) => {
|
w: (el: any) => {
|
||||||
if (el) {
|
|
||||||
return Math.max(320, el.parentNode.offsetWidth * 0.55)
|
return Math.max(320, el.parentNode.offsetWidth * 0.55)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -31,9 +29,7 @@ const HomeIndex: React.FC = () => {
|
|||||||
r: 15,
|
r: 15,
|
||||||
h: 360,
|
h: 360,
|
||||||
w: (el: any) => {
|
w: (el: any) => {
|
||||||
if (el) {
|
|
||||||
return Math.max(220, el.parentNode.offsetWidth * 0.3)
|
return Math.max(220, el.parentNode.offsetWidth * 0.3)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -45,9 +41,7 @@ const HomeIndex: React.FC = () => {
|
|||||||
r: 6,
|
r: 6,
|
||||||
h: 300,
|
h: 300,
|
||||||
w: (el: any) => {
|
w: (el: any) => {
|
||||||
if (el) {
|
|
||||||
return Math.max(330, el.parentNode.offsetWidth * 0.55)
|
return Math.max(330, el.parentNode.offsetWidth * 0.55)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -59,9 +53,7 @@ const HomeIndex: React.FC = () => {
|
|||||||
r: -5,
|
r: -5,
|
||||||
h: 400,
|
h: 400,
|
||||||
w: (el: any) => {
|
w: (el: any) => {
|
||||||
if (el) {
|
|
||||||
return Math.max(305, el.parentNode.offsetWidth * 0.45)
|
return Math.max(305, el.parentNode.offsetWidth * 0.45)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -73,9 +65,7 @@ const HomeIndex: React.FC = () => {
|
|||||||
r: -20,
|
r: -20,
|
||||||
h: 525,
|
h: 525,
|
||||||
w: (el: any) => {
|
w: (el: any) => {
|
||||||
if (el) {
|
|
||||||
return Math.max(160, el.parentNode.offsetWidth * 0.3)
|
return Math.max(160, el.parentNode.offsetWidth * 0.3)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -87,9 +77,7 @@ const HomeIndex: React.FC = () => {
|
|||||||
r: 10,
|
r: 10,
|
||||||
h: 160,
|
h: 160,
|
||||||
w: (el: any) => {
|
w: (el: any) => {
|
||||||
if (el) {
|
|
||||||
return Math.max(320, el.parentNode.offsetWidth * 0.55)
|
return Math.max(320, el.parentNode.offsetWidth * 0.55)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user