11<template >
22 <el-table
3- height =" 100%"
43 :data =" data"
54 border
6- style =" wfuncth : 100% ; margin-top : 20px "
5+ style =" margin-top : 20px "
6+ header-cell-style =" background-color: #F5F7FA;font-size: 14px;font-family: Microsoft YaHei;font-weight: bold;color: #606266;"
77 >
88 <el-table-column
99 prop =" func"
1414 prop =" leaflet"
1515 :label =" mobile? 'leaf':'leaflet'"
1616 :filters =" [
17- { text: '支持', value: '支持' },
18- { text: '后续支持', value: '后续支持'},
19- { text: '支持', value: '支持'},
20- { text: '无计划', value: '无计划'}]"
17+ { text: '支持', value: '支持' },
18+ { text: '不支持', value: '不支持'}]"
2119 :filter-method =" filterLeafletTag"
2220 filter-placement =" bottom-end"
2321 >
2422 <template slot-scope="scope">
25- <el-tag
26- :type =" scope.row.leaflet === '支持' ? 'success' : scope.row.leaflet === '支持' ? 'primary' : scope.row.leaflet === '后续支持' ? 'warning' : 'danger'"
27- disable-transitions
28- >{{scope.row.leaflet}}</el-tag >
23+ <div :class =" ['default',{'support': scope.row.leaflet === '支持'}, {'not-support': scope.row.leaflet === '不支持'}]" >{{scope.row.leaflet === '支持'? '√': scope.row.leaflet === '不支持'? '×': '-'}}</div >
2924 </template >
3025 </el-table-column >
3126 <el-table-column
3227 prop =" mapboxgl"
3328 :label =" mobile? 'map':'MapboxGL'"
3429 :filters =" [
35- { text: '支持', value: '支持' },
36- { text: '后续支持', value: '后续支持'},
37- { text: '支持', value: '支持'},
38- { text: '无计划', value: '无计划'}]"
30+ { text: '支持', value: '支持' },
31+ { text: '不支持', value: '不支持'}]"
3932 :filter-method =" filterMapboxTag"
4033 filter-placement =" bottom-end"
4134 >
4235 <template slot-scope="scope">
43- <el-tag
44- :type =" scope.row.mapboxgl === '支持' ? 'success' : scope.row.mapboxgl === '支持' ? 'primary' : scope.row.mapboxgl === '后续支持' ? 'warning' : 'danger'"
45- disable-transitions
46- >{{scope.row.mapboxgl}}</el-tag >
36+ <div :class =" ['default',{'support': scope.row.leaflet === '支持'}, {'not-support': scope.row.leaflet === '不支持'}]" >{{scope.row.leaflet === '支持'? '√': scope.row.leaflet === '不支持'? '×': '-'}}</div >
4737 </template >
4838 </el-table-column >
4939 <el-table-column
5040 prop =" openlayers"
5141 :label =" mobile? 'ol':'OpenLayers'"
5242 :filters =" [
53- { text: '支持', value: '支持' },
54- { text: '后续支持', value: '后续支持'},
55- { text: '支持', value: '支持'},
56- { text: '无计划', value: '无计划'}]"
43+ { text: '支持', value: '支持' },
44+ { text: '不支持', value: '不支持'}]"
5745 :filter-method =" filterOpenlayerTag"
5846 filter-placement =" bottom-end"
5947 >
6048 <template slot-scope="scope">
61- <el-tag
62- :type =" scope.row.openlayers === '支持' ? 'success' : scope.row.openlayers === '支持' ? 'primary' : scope.row.openlayers === '后续支持' ? 'warning' : 'danger'"
63- disable-transitions
64- >{{scope.row.openlayers}}</el-tag >
49+ <div :class =" ['default',{'support': scope.row.leaflet === '支持'}, {'not-support': scope.row.leaflet === '不支持'}]" >{{scope.row.leaflet === '支持'? '√': scope.row.leaflet === '不支持'? '×': '-'}}</div >
6550 </template >
6651 </el-table-column >
6752 <el-table-column
6853 prop =" cesium"
6954 :label =" mobile? 'ce':'Cesium'"
7055 :filters =" [
71- { text: '支持', value: '支持' },
72- { text: '后续支持', value: '后续支持'},
73- { text: '支持', value: '支持'},
74- { text: '无计划', value: '无计划'}]"
56+ { text: '支持', value: '支持' },
57+ { text: '不支持', value: '不支持'}]"
7558 :filter-method =" filterCesiumTag"
7659 filter-placement =" bottom-end"
7760 >
7861 <template slot-scope="scope">
79- <el-tag
80- :type =" scope.row.cesium === '支持' ? 'success' : scope.row.cesium === '支持' ? 'primary' : scope.row.cesium === '后续支持' ? 'warning' : 'danger'"
81- disable-transitions
82- >{{scope.row.cesium}}</el-tag >
62+ <div :class =" ['default',{'support': scope.row.leaflet === '支持'}, {'not-support': scope.row.leaflet === '不支持'}]" >{{scope.row.leaflet === '支持'? '√': scope.row.leaflet === '不支持'? '×': '-'}}</div >
8363 </template >
8464 </el-table-column >
8565 </el-table >
@@ -114,4 +94,20 @@ export default {
11494 }
11595 }
11696}
117- </script >
97+ </script >
98+
99+ <style rel="stylesheet/scss" lang="scss" scoped>
100+ .default {
101+ font-size : 18px ;
102+ font-family : Microsoft YaHei;
103+ font-weight : 400 ;
104+ }
105+
106+ .support {
107+ color : #45AC50 ;
108+ }
109+
110+ .not-support {
111+ color : #EA4614 ;
112+ }
113+ </style >
0 commit comments