Skip to content

Commit 944f48d

Browse files
【示例网站】【产品和开发指南】
1 parent fb65cf7 commit 944f48d

File tree

8 files changed

+347
-62
lines changed

8 files changed

+347
-62
lines changed
116 Bytes
Loading

website/public/static/demo/config/config-headers.json

Lines changed: 109 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@
3131
"icon": "iconapp_mw_cluster",
3232
"menus": [
3333
{
34-
"title": "产品介绍",
35-
"icon": "iconapp_mw_cluster",
34+
"title": "组件",
35+
"icon": "iconhome",
3636
"links": [["产品介绍", "资源下载", "开发环境", "开发授权", "模块介绍", "相关产品", "三方产品", "新特性", "开始开发"]],
3737
"hightlights": [[true, false, false, false, false, false, false, false, false]],
3838
"routes": [
3939
[
40-
"/component/product#introduction",
41-
"/component/product#download",
42-
"/component/product#developEnvironment",
43-
"/component/product#authorization",
44-
"/component/product#moduleIntroduction",
45-
"/component/product#relatedProduct",
46-
"/component/product#thirdPartyProducts",
47-
"/component/product#newFeatures",
48-
"/component/product#startDevelop"
40+
"/component/product/component/introduction",
41+
"/component/product/component/download",
42+
"/component/product/component/developEnvironment",
43+
"/component/product/component/authorization",
44+
"/component/product/component/moduleIntroduction",
45+
"/component/product/component/relatedProduct",
46+
"/component/product/component/thirdPartyProducts",
47+
"/component/product/component/newFeatures",
48+
"/component/product/component/startDevelop"
4949
]
5050
]
5151
},
5252
{
5353
"title": "开发指南",
54-
"icon": "iconapp_mw_cluster",
54+
"icon": "iconhome",
5555
"links": [
5656
[
5757
"准备",
@@ -69,52 +69,75 @@
6969
]
7070
],
7171
"hightlights": [[false, false, false, false, false, false, false, false, false, false, false, false]],
72-
"routes": [["", "", "", "", "", "", "", "", "", "", "", ""]]
72+
"routes": [["/guide/component/development_mapboxgl", "", "", "", "", "", "", "", "", "", "", ""]]
7373
},
7474
{
7575
"title": "在线示例",
76-
"icon": "iconapp_mw_cluster",
76+
"icon": "iconhome",
7777
"links": [
7878
[
79-
"图层M3D",
80-
"互联网地图",
81-
"OGC服务",
82-
"MapGIS地图服务",
83-
"场景",
84-
"三维空间分析",
85-
"轨迹模拟",
86-
"图形绘制",
87-
"常用工具",
88-
"数据查询",
89-
"客户端可视化",
90-
"客户端空间分析",
91-
"Echarts",
92-
"MapV"
79+
"Cesium示例",
80+
"MapboxGL示例",
81+
"StoryBook-MapboxGL"
9382
]
9483
],
95-
"hightlights": [[false, false, false, false, false, false, false, false, false, false, false, false, false, false]],
96-
"routes": [["", "", "", "", "", "", "", "", "", "", "", "", "", ""]]
84+
"hightlights": [[false, false, false]],
85+
"routes": [["/gallery/vue-cesium#raster", "/gallery/vue-mapboxgl#vue-layer", "/storybook/index.html"]]
9786
},
9887
{
9988
"title": "在线API",
100-
"icon": "iconapp_mw_cluster",
101-
"links": [["客户端数据服务", "客户端可视化", "客户端渲染", "客户端事件管理", "客户端公共方法", "客户端视图管理", "客户端可视化分析"]],
102-
"hightlights": [[false, false, false, false, false, false, false]],
103-
"routes": [["", "", "", "", "", "", ""]]
104-
},
105-
{
106-
"title": "故事",
107-
"icon": "iconapp_mw_cluster",
108-
"links": [["StoryBook-MapboxGL"]],
109-
"hightlights": [[false]],
110-
"routes": [["/storybook/index.html"]]
89+
"icon": "iconhome",
90+
"links": [["Cesium-API", "MapboxGL-API"]],
91+
"hightlights": [[false, false]],
92+
"routes": [["http://120.78.200.128:8891/#/", "http://120.78.200.128:8891/#/"]]
11193
}
11294
]
11395
},
11496
{
11597
"title": "Cesium",
11698
"icon": "iconsatellite",
11799
"menus": [
100+
{
101+
"title": "组件",
102+
"icon": "iconhome",
103+
"links": [["产品介绍", "资源下载", "开发环境", "开发授权", "模块介绍", "相关产品", "三方产品", "新特性", "开始开发"]],
104+
"hightlights": [[true, false, false, false, false, false, false, false, false]],
105+
"routes": [
106+
[
107+
"/component/product/cesium/produce_cesium",
108+
"/component/product/cesium/download",
109+
"/component/product/cesium/developEnvironment",
110+
"/component/product/cesium/authorization",
111+
"/component/product/cesium/moduleIntroduction",
112+
"/component/product/cesium/relatedProduct",
113+
"/component/product/cesium/thirdPartyProducts",
114+
"/component/product/cesium/newFeatures",
115+
"/component/product/cesium/startDevelop"
116+
]
117+
]
118+
},
119+
{
120+
"title": "开发指南",
121+
"icon": "iconhome",
122+
"links": [
123+
[
124+
"准备",
125+
"数据准备",
126+
"数据处理",
127+
"数据发布",
128+
"新建网站",
129+
"引入开发包",
130+
"数据可视化",
131+
"视图设置",
132+
"标题添加",
133+
"量算分析",
134+
"数据查询",
135+
"可视化效果"
136+
]
137+
],
138+
"hightlights": [[false, false, false, false, false, false, false, false, false, false, false, false]],
139+
"routes": [["/guide/cesium/development_cesium", "", "", "", "", "", "", "", "", "", "", ""]]
140+
},
118141
{
119142
"title": "常见问题",
120143
"icon": "iconhome",
@@ -127,7 +150,8 @@
127150
"/helper/cesium/vue/memery/index",
128151
"/helper/cesium/vue/route/index"
129152
]
130-
]
153+
],
154+
"type":"helper"
131155
},
132156
{
133157
"title": "Js开发示例",
@@ -209,6 +233,47 @@
209233
"title": "MapboxGL",
210234
"icon": "iconmapbox",
211235
"menus": [
236+
{
237+
"title": "组件",
238+
"icon": "iconhome",
239+
"links": [["产品介绍", "资源下载", "开发环境", "开发授权", "模块介绍", "相关产品", "三方产品", "新特性", "开始开发"]],
240+
"hightlights": [[true, false, false, false, false, false, false, false, false]],
241+
"routes": [
242+
[
243+
"/component/product/mapboxgl/produce_mapboxgl",
244+
"/component/product/mapboxgl/download",
245+
"/component/product/mapboxgl/developEnvironment",
246+
"/component/product/mapboxgl/authorization",
247+
"/component/product/mapboxgl/moduleIntroduction",
248+
"/component/product/mapboxgl/relatedProduct",
249+
"/component/product/mapboxgl/thirdPartyProducts",
250+
"/component/product/mapboxgl/newFeatures",
251+
"/component/product/mapboxgl/startDevelop"
252+
]
253+
]
254+
},
255+
{
256+
"title": "开发指南",
257+
"icon": "iconhome",
258+
"links": [
259+
[
260+
"准备",
261+
"数据准备",
262+
"数据处理",
263+
"数据发布",
264+
"新建网站",
265+
"引入开发包",
266+
"数据可视化",
267+
"视图设置",
268+
"标题添加",
269+
"量算分析",
270+
"数据查询",
271+
"可视化效果"
272+
]
273+
],
274+
"hightlights": [[false, false, false, false, false, false, false, false, false, false, false, false]],
275+
"routes": [["/guide/mapboxgl/development_mapboxgl", "", "", "", "", "", "", "", "", "", "", ""]]
276+
},
212277
{
213278
"title": "常见问题",
214279
"icon": "iconhome",
@@ -226,7 +291,8 @@
226291
"/helper/mapboxgl/vectortile/style",
227292
"/helper/mapboxgl/vue/import"
228293
]
229-
]
294+
],
295+
"type":"helper"
230296
},
231297
{
232298
"title": "JS开发示例",

website/src/components/CardGroup/index.vue

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<el-col :span="24" class="card-backgroud">
44
<el-col :span="24" class="col-divider-style gallery-divider">
55
<el-divider :id="folder" :key="title" content-position="left">
6-
<a aria-hidden="true" class="header-anchor">¶ </a>
7-
<span v-if="secondname">{{ secondname }}</span>
8-
<span>{{ title }}</span>
6+
<a aria-hidden="true" class="header-anchor">
7+
<img :src="imgUrl" class="img-css"/>
8+
</a>
9+
<span class="divider-span" v-if="secondname">{{ secondname }}</span>
10+
<span :class="{'divider-span':hasSecondName}">{{ title }}</span>
911
</el-divider>
1012
</el-col>
1113
<el-col :xs="12" :sm="8" :md="6" :lg="4" :xl="4" v-for="item in cards" :key="item.name">
@@ -36,7 +38,9 @@ export default {
3638
data() {
3739
return {
3840
nullImg: './static/assets/components/CardGroup/null-img.png',
39-
cards: this.cardList
41+
cards: this.cardList,
42+
imgUrl: './static/assets/components/CardGroup/decorate.png',
43+
hasSecondName: false
4044
};
4145
},
4246
watch: {
@@ -74,7 +78,12 @@ export default {
7478
required: true
7579
}
7680
},
77-
computed: {}
81+
computed: {},
82+
mounted() {
83+
if (!this.secondname){
84+
this.hasSecondName = true
85+
}
86+
}
7887
};
7988
</script>
8089

@@ -93,15 +102,19 @@ export default {
93102
94103
.el-divider__text {
95104
height: 19px;
105+
line-height: 19px;
96106
font-size: 18px;
97107
font-family: Microsoft YaHei;
98108
font-weight: bold;
99109
color: #3c4858;
100-
line-height: 18px;
101110
}
102111
.el-divider__text.is-left {
103112
left: 0px;
104113
}
114+
.divider-span{
115+
margin-left: 6px;
116+
height: 19px;
117+
}
105118
.el-divider {
106119
background-color: transparent;
107120
}
@@ -175,5 +188,8 @@ export default {
175188
height: 100%;
176189
width: 300px;
177190
}
191+
192+
.img-css{
193+
}
178194
}
179195
</style>

website/src/components/IconFont/iconfont.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/src/router/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ export const routes = [
154154
name: '*'
155155
},
156156
{
157-
path: '/component/product',
157+
path: '/component/product/:mapmode/:file',
158158
component: Product,
159159
name: 'product'
160160
},
161161
{
162-
path: '/guide/DevelopGuide',
162+
path: '/guide/:mapmpde/:file',
163163
component: Guide,
164164
name: 'guide'
165165
}

0 commit comments

Comments
 (0)