Skip to content

Commit

Permalink
style: format code with Prettier and StandardJS
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in c459f27 according to the output
from Prettier and StandardJS.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Sep 2, 2024
1 parent c459f27 commit 4446eeb
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 62 deletions.
32 changes: 16 additions & 16 deletions src/pages/geoChart/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ const GeoChart = () => {
map: geoName,
label: {
show: true,
color: '#fff',
color: '#fff'
},
layoutCenter: ['30%', '30%'],
roam: true,
zoom: 1,
scaleLimit: {
min: 1,
max: 5,
max: 5
},
tooltip: {
show: true, // 是否显示提示框组件,包括提示框浮层和 axisPointer。
Expand All @@ -47,15 +47,15 @@ const GeoChart = () => {
showDelay: 0, // 浮层显示的延迟,单位为 ms,默认没有延迟,也不建议设置。在 triggerOn 为 'mousemove' 时有效。
textStyle: {
color: '#000',
fontSize: 14,
fontSize: 14
},
padding: [8, 8],
hideDelay: 10, // 浮层隐藏的延迟
backgroundColor: 'white', // 提示框浮层的背景颜色。
borderColor: 'green', // 图形的描边颜色
borderWidth: 2,
alwaysShowContent: true,
transitionDuration: 1, // 提示框浮层的移动动画过渡时间,单位是 s,设置为 0 的时候会紧跟着鼠标移动。
transitionDuration: 1 // 提示框浮层的移动动画过渡时间,单位是 s,设置为 0 的时候会紧跟着鼠标移动。
},
// regions: [{
// name: '上海市奉贤区海湾旅游区',
Expand All @@ -69,33 +69,33 @@ const GeoChart = () => {
borderColor: 'rgba(6, 93, 255, .5)',
borderWidth: 1,
shadowColor: 'rgba(6, 93, 255, .5)',
shadowBlur: 20,
shadowBlur: 20
},
emphasis: {
disabled: false, // 是否关闭高亮状态
label: {
fontWeight: 'bold',
fontSize: '14px',
color: '#fff',
color: '#fff'
},
itemStyle: {
areaColor: 'rgba(58, 172, 226, .5)',
},
areaColor: 'rgba(58, 172, 226, .5)'
}
},
select: {
itemStyle: {
areaColor: 'rgba(58, 172, 226, .5)',
},
},
areaColor: 'rgba(58, 172, 226, .5)'
}
}
},
series: [
{
name: geoName,
type: 'scatter',
coordinateSystem: 'geo',
data: [],
},
],
data: []
}
]
}

myChart.clear()
Expand All @@ -109,7 +109,7 @@ const GeoChart = () => {
const features = fengxianGeo.features.filter((item) => item.properties.name === newName)
const newGeoJSON = {
type: 'FeatureCollection',
features,
features
}
setName(newName)
setGeoJson(newGeoJSON)
Expand All @@ -131,7 +131,7 @@ const GeoChart = () => {
return (
<>
<FixTabPanel style={{ backgroundColor: 'rgba(0, 0, 0, .8)' }}>
<div id="geoChart" style={{ height: '500px', width: '100%', margin: '0 auto' }}></div>
<div id='geoChart' style={{ height: '500px', width: '100%', margin: '0 auto' }} />
</FixTabPanel>
</>
)
Expand Down
24 changes: 12 additions & 12 deletions src/pages/layout/proSecNav/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
QuestionCircleOutlined,
FireOutlined,
GlobalOutlined,
QrcodeOutlined,
QrcodeOutlined
} from '@ant-design/icons'

import styles from './index.module.less'
Expand All @@ -19,7 +19,7 @@ const pathSubmenu = {
'/home': ['home'],
'/coupons/add': ['/sub-act', '/sub-coupons'],
'/coupons/edit': ['/sub-act', '/sub-coupons'],
'/product': ['/sub-act', '/sub-coupons'],
'/product': ['/sub-act', '/sub-coupons']
}

const ProSecNav = () => {
Expand Down Expand Up @@ -93,37 +93,37 @@ const ProSecNav = () => {
icon: <FireOutlined />,
children: [
{ label: 'Vue', key: '/coupons/add' },
{ label: 'Angular', key: '/coupons/edit' },
],
{ label: 'Angular', key: '/coupons/edit' }
]
},
{ label: '后端技术栈', key: '/product', icon: <DeploymentUnitOutlined /> },
],
{ label: '后端技术栈', key: '/product', icon: <DeploymentUnitOutlined /> }
]
},
{
label: '构建工具',
key: '/sub-list',
icon: <ApartmentOutlined />,
children: [
{ label: 'Webpack', key: '/coupons/list' },
{ label: 'Vite', key: '/order/list' },
],
{ label: 'Vite', key: '/order/list' }
]
},
{
label: 'Error',
key: '/sub-error',
icon: <QuestionCircleOutlined />,
children: [{ label: 'ErrorBoundary', key: '/error' }],
},
children: [{ label: 'ErrorBoundary', key: '/error' }]
}
]

return (
<Menu
mode="inline"
mode='inline'
defaultSelectedKeys={selectedKeys}
defaultOpenKeys={openKeys}
selectedKeys={selectedKeys}
openKeys={openKeys}
theme="light"
theme='light'
className={styles.menu}
onOpenChange={onOpenChange}
onSelect={onSelect}
Expand Down
Loading

0 comments on commit 4446eeb

Please sign in to comment.