mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-13 22:12:11 +08:00
feat: 地图组件新增下级进入、飞行轨迹运动,图标组件修复点击卡顿问题
This commit is contained in:
parent
67e2e52ff5
commit
146855a6da
@ -11,7 +11,10 @@ export const option = {
|
|||||||
dataset: dataJson,
|
dataset: dataJson,
|
||||||
mapRegion: {
|
mapRegion: {
|
||||||
adcode: 'china',
|
adcode: 'china',
|
||||||
showHainanIsLands: true
|
enter: false,
|
||||||
|
showHainanIsLands: false,
|
||||||
|
backSize: 50,
|
||||||
|
backColor: '#ffffff'
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
show: true,
|
show: true,
|
||||||
@ -145,6 +148,26 @@ export const option = {
|
|||||||
shadowOffsetY: 2,
|
shadowOffsetY: 2,
|
||||||
shadowBlur: 10
|
shadowBlur: 10
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'lines',
|
||||||
|
zlevel: 2,
|
||||||
|
effect: {
|
||||||
|
show: true,
|
||||||
|
period: 4, //箭头指向速度,值越小速度越快
|
||||||
|
trailLength: 0.4, //特效尾迹长度[0,1]值越大,尾迹越长重
|
||||||
|
symbol: 'arrow', //箭头图标
|
||||||
|
symbolSize: 7, //图标大小
|
||||||
|
},
|
||||||
|
lineStyle: {
|
||||||
|
normal: {
|
||||||
|
color:'#4fb6d2',
|
||||||
|
width: 1, //线条宽度
|
||||||
|
opacity: 0.1, //尾迹线条透明度
|
||||||
|
curveness: .3 //尾迹线条曲直度
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data: []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- Echarts 全局设置 -->
|
<!-- Echarts 全局设置 -->
|
||||||
<global-setting :optionData="optionData"></global-setting>
|
<global-setting :optionData="optionData"></global-setting>
|
||||||
<CollapseItem name="地图" :expanded="true">
|
<CollapseItem name="地图" :expanded="false">
|
||||||
<SettingItemBox name="地图区域">
|
<SettingItemBox name="地图区域">
|
||||||
<SettingItem name="默认中国">
|
<SettingItem name="默认中国">
|
||||||
<n-select
|
<n-select
|
||||||
@ -180,9 +180,25 @@
|
|||||||
<SettingItem>
|
<SettingItem>
|
||||||
<n-checkbox v-model:checked="mapRegion.showHainanIsLands" size="small">显示南海群岛</n-checkbox>
|
<n-checkbox v-model:checked="mapRegion.showHainanIsLands" size="small">显示南海群岛</n-checkbox>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
<SettingItem>
|
||||||
|
<n-checkbox v-model:checked="mapRegion.enter" size="small">点击进入下级</n-checkbox>
|
||||||
|
</SettingItem>
|
||||||
|
</SettingItemBox>
|
||||||
|
<SettingItemBox name="返回图标" v-if="mapRegion.enter">
|
||||||
|
<SettingItem name="颜色">
|
||||||
|
<n-color-picker size="small" :modes="['hex']" v-model:value="mapRegion.backColor"></n-color-picker>
|
||||||
|
</SettingItem>
|
||||||
|
<SettingItem name="大小">
|
||||||
|
<n-input-number
|
||||||
|
v-model:value="mapRegion.backSize"
|
||||||
|
:min="1"
|
||||||
|
size="small"
|
||||||
|
placeholder="请输入字体大小"
|
||||||
|
></n-input-number>
|
||||||
|
</SettingItem>
|
||||||
</SettingItemBox>
|
</SettingItemBox>
|
||||||
</CollapseItem>
|
</CollapseItem>
|
||||||
<CollapseItem name="标记" :expanded="true">
|
<CollapseItem name="标记" :expanded="false">
|
||||||
<SettingItemBox name="样式">
|
<SettingItemBox name="样式">
|
||||||
<SettingItem name="大小">
|
<SettingItem name="大小">
|
||||||
<n-input-number v-model:value="seriesList[0].symbolSize" size="small" :min="0"></n-input-number>
|
<n-input-number v-model:value="seriesList[0].symbolSize" size="small" :min="0"></n-input-number>
|
||||||
@ -223,6 +239,38 @@
|
|||||||
</SettingItem>
|
</SettingItem>
|
||||||
</SettingItemBox>
|
</SettingItemBox>
|
||||||
</CollapseItem>
|
</CollapseItem>
|
||||||
|
|
||||||
|
<CollapseItem name="线条" :expanded="true">
|
||||||
|
<SettingItemBox name="箭头">
|
||||||
|
<SettingItem name="速度">
|
||||||
|
<n-tooltip trigger="hover">
|
||||||
|
<template #trigger>
|
||||||
|
<n-input-number v-model:value="seriesList[2].effect.period" size="small" :min="0"></n-input-number>
|
||||||
|
</template>
|
||||||
|
值越小速度越快
|
||||||
|
</n-tooltip>
|
||||||
|
</SettingItem>
|
||||||
|
<SettingItem name="尾迹">
|
||||||
|
<n-tooltip trigger="hover">
|
||||||
|
<template #trigger>
|
||||||
|
<n-input-number v-model:value="seriesList[2].effect.trailLength" size="small" :min="0" :max="1"></n-input-number>
|
||||||
|
</template>
|
||||||
|
特效尾迹长度[0,1]值越大,尾迹越长重
|
||||||
|
</n-tooltip>
|
||||||
|
</SettingItem>
|
||||||
|
<SettingItem name="大小">
|
||||||
|
<n-input-number v-model:value="seriesList[2].effect.symbolSize" size="small" :min="0"></n-input-number>
|
||||||
|
</SettingItem>
|
||||||
|
</SettingItemBox>
|
||||||
|
<SettingItemBox name="配置">
|
||||||
|
<SettingItem name="颜色">
|
||||||
|
<n-color-picker size="small" :modes="['hex']" v-model:value="seriesList[2].lineStyle.normal.color"></n-color-picker>
|
||||||
|
</SettingItem>
|
||||||
|
<SettingItem name="宽度">
|
||||||
|
<n-input-number v-model:value="seriesList[2].lineStyle.normal.width" size="small" :min="1"></n-input-number>
|
||||||
|
</SettingItem>
|
||||||
|
</SettingItemBox>
|
||||||
|
</CollapseItem>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
@ -2,23 +2,93 @@
|
|||||||
"point": [
|
"point": [
|
||||||
{
|
{
|
||||||
"name": "北京",
|
"name": "北京",
|
||||||
"value": [116.405285, 39.904989, 200]
|
"value": [
|
||||||
|
116.405285,
|
||||||
|
39.904989,
|
||||||
|
200
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "郑州",
|
"name": "郑州",
|
||||||
"value": [113.665412, 34.757975, 888]
|
"value": [
|
||||||
|
113.665412,
|
||||||
|
34.757975,
|
||||||
|
888
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "青海",
|
"name": "青海",
|
||||||
"value": [101.778916, 36.623178, 666]
|
"value": [
|
||||||
|
101.778916,
|
||||||
|
36.623178,
|
||||||
|
666
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "宁夏回族自治区",
|
"name": "宁夏回族自治区",
|
||||||
"value": [106.278179, 38.46637, 66]
|
"value": [
|
||||||
|
106.278179,
|
||||||
|
38.46637,
|
||||||
|
66
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "哈尔滨市",
|
"name": "哈尔滨市",
|
||||||
"value": [126.642464, 45.756967, 101]
|
"value": [
|
||||||
|
126.642464,
|
||||||
|
45.756967,
|
||||||
|
101
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"line": [
|
||||||
|
{
|
||||||
|
"coords": [
|
||||||
|
[
|
||||||
|
113.665412,
|
||||||
|
34.757975
|
||||||
|
],
|
||||||
|
[
|
||||||
|
116.405285,
|
||||||
|
39.904989
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coords": [
|
||||||
|
[
|
||||||
|
101.778916,
|
||||||
|
36.623178
|
||||||
|
],
|
||||||
|
[
|
||||||
|
116.405285,
|
||||||
|
39.904989
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coords": [
|
||||||
|
[
|
||||||
|
106.278179,
|
||||||
|
38.46637
|
||||||
|
],
|
||||||
|
[
|
||||||
|
116.405285,
|
||||||
|
39.904989
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coords": [
|
||||||
|
[
|
||||||
|
126.642464,
|
||||||
|
45.756967
|
||||||
|
],
|
||||||
|
[
|
||||||
|
116.405285,
|
||||||
|
39.904989
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"map": [
|
"map": [
|
||||||
@ -30,7 +100,6 @@
|
|||||||
"name": "河北省",
|
"name": "河北省",
|
||||||
"value": 98
|
"value": 98
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "江苏省",
|
"name": "江苏省",
|
||||||
"value": 300
|
"value": 300
|
||||||
@ -69,11 +138,33 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"pieces": [
|
"pieces": [
|
||||||
{ "gte": 1000, "label": ">1000" },
|
{
|
||||||
{ "gte": 600, "lte": 999, "label": "600-999" },
|
"gte": 1000,
|
||||||
{ "gte": 200, "lte": 599, "label": "200-599" },
|
"label": ">1000"
|
||||||
{ "gte": 50, "lte": 199, "label": "49-199" },
|
},
|
||||||
{ "gte": 10, "lte": 49, "label": "10-49" },
|
{
|
||||||
{ "lte": 9, "label": "<9" }
|
"gte": 600,
|
||||||
|
"lte": 999,
|
||||||
|
"label": "600-999"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gte": 200,
|
||||||
|
"lte": 599,
|
||||||
|
"label": "200-599"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gte": 50,
|
||||||
|
"lte": 199,
|
||||||
|
"label": "49-199"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gte": 10,
|
||||||
|
"lte": 49,
|
||||||
|
"label": "10-49"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lte": 9,
|
||||||
|
"label": "<9"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -1,12 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-chart ref="vChartRef" :init-options="initOptions" :theme="themeColor" :option="option.value" :manual-update="isPreview()" autoresize>
|
<div>
|
||||||
|
<n-icon
|
||||||
|
v-if="(enter && levelHistory.length !== 0) || (enter && !isPreview())"
|
||||||
|
:color="backColor"
|
||||||
|
@click="backLevel"
|
||||||
|
:size="backSize" class="back-icon">
|
||||||
|
<ArrowBackIcon />
|
||||||
|
</n-icon>
|
||||||
|
<v-chart ref="vChartRef" :init-options="initOptions" :theme="themeColor" :option="option.value" :manual-update="isPreview()" autoresize @click="chartPEvents">
|
||||||
</v-chart>
|
</v-chart>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PropType, reactive, watch, ref, nextTick } from 'vue'
|
|
||||||
|
import { PropType, reactive, watch, ref, nextTick, toRefs } from 'vue'
|
||||||
import config, { includes } from './config'
|
import config, { includes } from './config'
|
||||||
import VChart from 'vue-echarts'
|
import VChart from 'vue-echarts'
|
||||||
|
import { icon } from '@/plugins'
|
||||||
import { useCanvasInitOptions } from '@/hooks/useCanvasInitOptions.hook'
|
import { useCanvasInitOptions } from '@/hooks/useCanvasInitOptions.hook'
|
||||||
import { use, registerMap } from 'echarts/core'
|
import { use, registerMap } from 'echarts/core'
|
||||||
import { EffectScatterChart, MapChart } from 'echarts/charts'
|
import { EffectScatterChart, MapChart } from 'echarts/charts'
|
||||||
@ -16,8 +27,12 @@ import { mergeTheme, setOption } from '@/packages/public/chart'
|
|||||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||||
import { isPreview } from '@/utils'
|
import { isPreview } from '@/utils'
|
||||||
import mapJsonWithoutHainanIsLands from './mapWithoutHainanIsLands.json'
|
import mapJsonWithoutHainanIsLands from './mapWithoutHainanIsLands.json'
|
||||||
|
import mapChinaJson from './mapGeojson/china.json'
|
||||||
import { DatasetComponent, GridComponent, TooltipComponent, GeoComponent, VisualMapComponent } from 'echarts/components'
|
import { DatasetComponent, GridComponent, TooltipComponent, GeoComponent, VisualMapComponent } from 'echarts/components'
|
||||||
|
|
||||||
|
const { ArrowBackIcon } = icon.ionicons5
|
||||||
|
let levelHistory: any = ref([])
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
themeSetting: {
|
themeSetting: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@ -33,6 +48,8 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const { backColor, backSize, enter } = toRefs(props.chartConfig.option.mapRegion)
|
||||||
|
|
||||||
const initOptions = useCanvasInitOptions(props.chartConfig.option, props.themeSetting)
|
const initOptions = useCanvasInitOptions(props.chartConfig.option, props.themeSetting)
|
||||||
|
|
||||||
use([
|
use([
|
||||||
@ -87,6 +104,16 @@ const vEchartsSetOption = () => {
|
|||||||
const dataSetHandle = async (dataset: any) => {
|
const dataSetHandle = async (dataset: any) => {
|
||||||
props.chartConfig.option.series.forEach((item: any) => {
|
props.chartConfig.option.series.forEach((item: any) => {
|
||||||
if (item.type === 'effectScatter' && dataset.point) item.data = dataset.point
|
if (item.type === 'effectScatter' && dataset.point) item.data = dataset.point
|
||||||
|
else if (item.type === 'lines' && dataset.line) {
|
||||||
|
item.data = dataset.line.map((it: any) => {
|
||||||
|
return {
|
||||||
|
...it,
|
||||||
|
lineStyle: {
|
||||||
|
color: props.chartConfig.option.series[2].lineStyle.normal.color
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
else if (item.type === 'map' && dataset.map) item.data = dataset.map
|
else if (item.type === 'map' && dataset.map) item.data = dataset.map
|
||||||
})
|
})
|
||||||
if (dataset.pieces) props.chartConfig.option.visualMap.pieces = dataset.pieces
|
if (dataset.pieces) props.chartConfig.option.visualMap.pieces = dataset.pieces
|
||||||
@ -101,6 +128,44 @@ const hainanLandsHandle = async (newData: boolean) => {
|
|||||||
registerMap('china', { geoJSON: mapJsonWithoutHainanIsLands as any, specialAreas: {} })
|
registerMap('china', { geoJSON: mapJsonWithoutHainanIsLands as any, specialAreas: {} })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 点击区域
|
||||||
|
const chartPEvents = (e: any) => {
|
||||||
|
if (!props.chartConfig.option.mapRegion.enter) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
mapChinaJson.features.forEach((item) => {
|
||||||
|
var pattern = new RegExp(e.name);
|
||||||
|
if (pattern.test(item.properties.name)) {
|
||||||
|
let code = String(item.properties.adcode)
|
||||||
|
levelHistory.value.push(code)
|
||||||
|
checkOrMap(code)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 返回上一级
|
||||||
|
const backLevel = () => {
|
||||||
|
levelHistory.value = []
|
||||||
|
if (levelHistory.value.length > 1) {
|
||||||
|
levelHistory.value.pop()
|
||||||
|
const code = levelHistory[levelHistory.value.length -1]
|
||||||
|
checkOrMap(code)
|
||||||
|
} else {
|
||||||
|
checkOrMap('china')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 切换地图
|
||||||
|
const checkOrMap = async (newData: string) => {
|
||||||
|
await getGeojson(newData)
|
||||||
|
props.chartConfig.option.geo.map = newData
|
||||||
|
props.chartConfig.option.series.forEach((item: any) => {
|
||||||
|
if (item.type === 'map') item.map = newData
|
||||||
|
})
|
||||||
|
vEchartsSetOption()
|
||||||
|
}
|
||||||
|
|
||||||
//监听 dataset 数据发生变化
|
//监听 dataset 数据发生变化
|
||||||
watch(
|
watch(
|
||||||
() => props.chartConfig.option.dataset,
|
() => props.chartConfig.option.dataset,
|
||||||
@ -113,6 +178,17 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// 监听线的颜色
|
||||||
|
watch(
|
||||||
|
() => props.chartConfig.option.series[2].lineStyle.normal.color,
|
||||||
|
() => {
|
||||||
|
dataSetHandle(props.chartConfig.option.dataset)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
deep: false
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
//监听是否显示南海群岛
|
//监听是否显示南海群岛
|
||||||
watch(
|
watch(
|
||||||
() => props.chartConfig.option.mapRegion.showHainanIsLands,
|
() => props.chartConfig.option.mapRegion.showHainanIsLands,
|
||||||
@ -132,14 +208,9 @@ watch(
|
|||||||
//监听地图展示区域发生变化
|
//监听地图展示区域发生变化
|
||||||
watch(
|
watch(
|
||||||
() => `${props.chartConfig.option.mapRegion.adcode}`,
|
() => `${props.chartConfig.option.mapRegion.adcode}`,
|
||||||
async newData => {
|
newData => {
|
||||||
try {
|
try {
|
||||||
await getGeojson(newData)
|
checkOrMap(newData)
|
||||||
props.chartConfig.option.geo.map = newData
|
|
||||||
props.chartConfig.option.series.forEach((item: any) => {
|
|
||||||
if (item.type === 'map') item.map = newData
|
|
||||||
})
|
|
||||||
vEchartsSetOption()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
@ -154,3 +225,13 @@ useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {
|
|||||||
dataSetHandle(newData)
|
dataSetHandle(newData)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scope lang="scss">
|
||||||
|
.back-icon {
|
||||||
|
cursor: pointer;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 50;
|
||||||
|
}
|
||||||
|
</style>
|
@ -18,18 +18,14 @@
|
|||||||
>
|
>
|
||||||
<div class="list-header">
|
<div class="list-header">
|
||||||
<mac-os-control-btn class="list-header-control-btn" :mini="true" :disabled="true"></mac-os-control-btn>
|
<mac-os-control-btn class="list-header-control-btn" :mini="true" :disabled="true"></mac-os-control-btn>
|
||||||
<n-text class="list-header-text" depth="3">
|
<span class="list-header-text">{{ item.title }}</span>
|
||||||
<n-ellipsis>{{ item.title }}</n-ellipsis>
|
|
||||||
</n-text>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="list-center go-flex-center go-transition" draggable="true">
|
<div class="list-center go-flex-center go-transition" draggable="true">
|
||||||
<Icon v-if="item.icon" class="list-img" :icon="item.icon" color="#999" width="48" />
|
<Icon v-if="item.icon" class="list-img" :icon="item.icon" color="#999" width="48" />
|
||||||
<chart-glob-image v-else class="list-img" :chartConfig="item" />
|
<chart-glob-image v-else class="list-img" :chartConfig="item" />
|
||||||
</div>
|
</div>
|
||||||
<div class="list-bottom">
|
<div class="list-bottom">
|
||||||
<n-text class="list-bottom-text" depth="3">
|
<span class="list-bottom-text">{{ item.title }}</span>
|
||||||
<n-ellipsis style="max-width: 90%">{{ item.title }}</n-ellipsis>
|
|
||||||
</n-text>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 遮罩 -->
|
<!-- 遮罩 -->
|
||||||
<div v-if="item.disabled" class="list-model"></div>
|
<div v-if="item.disabled" class="list-model"></div>
|
||||||
@ -206,12 +202,21 @@ $halfCenterHeight: 50px;
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 2px 15px;
|
padding: 2px 6px 2px 15px;
|
||||||
@include fetch-bg-color('background-color3');
|
@include fetch-bg-color('background-color3');
|
||||||
&-text {
|
&-text {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex: 1;
|
||||||
|
width: 0;
|
||||||
|
text-align: right;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: inline-block;
|
||||||
|
transition: color .3s var(--n-bezier);
|
||||||
|
color: #99999a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list-center {
|
.list-center {
|
||||||
@ -231,6 +236,13 @@ $halfCenterHeight: 50px;
|
|||||||
.list-bottom-text {
|
.list-bottom-text {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
display: inline-block;
|
||||||
|
transition: color .3s var(--n-bezier);
|
||||||
|
color: #99999a;
|
||||||
|
max-width: 90%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list-model {
|
.list-model {
|
||||||
@ -294,7 +306,8 @@ $halfCenterHeight: 50px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list-bottom {
|
.list-bottom {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 缩小展示 */
|
/* 缩小展示 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user