Commit 6d9a05be authored by 邓晓峰's avatar 邓晓峰

fix: 修复less引用

parent 05a325c1
Pipeline #47494 skipped with stages
...@@ -16,7 +16,7 @@ import { WEB_GIS_TYPE } from '../constants'; ...@@ -16,7 +16,7 @@ import { WEB_GIS_TYPE } from '../constants';
// eslint-disable-next-line import/no-duplicates // eslint-disable-next-line import/no-duplicates
import SecurityLayout from './SecurityLayout'; import SecurityLayout from './SecurityLayout';
import Site from './Site'; import Site from './Site';
import styles from './UserLayout.less'; // import styles from './UserLayout.less';
import layoutStyles from './BasicLayout.less'; import layoutStyles from './BasicLayout.less';
const ArcgisMap = React.lazy(() => import('../pages/map/arcgis')); const ArcgisMap = React.lazy(() => import('../pages/map/arcgis'));
const AMap = React.lazy(() => import('../pages/map/amap')); const AMap = React.lazy(() => import('../pages/map/amap'));
...@@ -59,7 +59,7 @@ const StationsItem = (item, action) => { ...@@ -59,7 +59,7 @@ const StationsItem = (item, action) => {
style={{ marginRight: `${item.style.marginRight}px` }} style={{ marginRight: `${item.style.marginRight}px` }}
> >
<a <a
className={classNames(styles.city_select, styles.showTip)} className={classNames(layoutStyles.city_select, layoutStyles.showTip)}
title={item.city} title={item.city}
index={item.promoteIndex} index={item.promoteIndex}
style={{ fontSize: '13px' }} style={{ fontSize: '13px' }}
...@@ -93,7 +93,7 @@ const Stations = props => { ...@@ -93,7 +93,7 @@ const Stations = props => {
}; };
return ( return (
<> <>
<div className={styles.focusStations}> <div className={layoutStyles.focusStations}>
<ul> <ul>
{Array.isArray(data) {Array.isArray(data)
? data.map(item => StationsItem(item, props.action)) ? data.map(item => StationsItem(item, props.action))
...@@ -112,7 +112,7 @@ const Stations = props => { ...@@ -112,7 +112,7 @@ const Stations = props => {
<div style={{ maxWidth: '520px', position: 'relative' }}> <div style={{ maxWidth: '520px', position: 'relative' }}>
{defaultTab === 'site' ? ( {defaultTab === 'site' ? (
<div <div
className={classNames(styles.city_pane, styles.station_container)} className={classNames(layoutStyles.city_pane, layoutStyles.station_container)}
ref={cityPane} ref={cityPane}
> >
<Anchor <Anchor
...@@ -121,13 +121,13 @@ const Stations = props => { ...@@ -121,13 +121,13 @@ const Stations = props => {
targetOffset={targetOffset} targetOffset={targetOffset}
getContainer={() => cityContent.current} getContainer={() => cityContent.current}
> >
<ul className={styles.py}> <ul className={layoutStyles.py}>
{props.data && {props.data &&
props.data.siteCityList && props.data.siteCityList &&
props.data.siteCityList.letters} props.data.siteCityList.letters}
</ul> </ul>
<div <div
className={styles.cityContent} className={layoutStyles.cityContent}
style={{ height: '335px' }} style={{ height: '335px' }}
ref={cityContent} ref={cityContent}
> >
...@@ -162,7 +162,7 @@ const renderSite = ({ data, config, loading, setLoading, action }) => { ...@@ -162,7 +162,7 @@ const renderSite = ({ data, config, loading, setLoading, action }) => {
size="small" size="small"
style={{ marginLeft: '10px' }} style={{ marginLeft: '10px' }}
tip="" tip=""
wrapperClassName={styles.spinLoadding}> wrapperClassName={layoutStyles.spinLoadding}>
<> <>
<Popover <Popover
placement="bottomLeft" placement="bottomLeft"
...@@ -176,7 +176,7 @@ const renderSite = ({ data, config, loading, setLoading, action }) => { ...@@ -176,7 +176,7 @@ const renderSite = ({ data, config, loading, setLoading, action }) => {
/> />
} }
arrowPointAtCenter arrowPointAtCenter
overlayClassName={classNames(styles.stationsWrapper, styles.stationsTop)} overlayClassName={classNames(layoutStyles.stationsWrapper, layoutStyles.stationsTop)}
onVisibleChange={visible => setVisible(visible)} onVisibleChange={visible => setVisible(visible)}
> >
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment