Skip to content

Commit

Permalink
fix: 修改图表文档以及样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Davont committed Oct 25, 2024
1 parent 36fa423 commit 3529c65
Show file tree
Hide file tree
Showing 22 changed files with 644 additions and 1,051 deletions.
20 changes: 10 additions & 10 deletions examples/sites/demos/apis/chart-baidu-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
{
name: 'BMap',
type: 'interface',
code: `<tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">格式示例:</p>
code: `<div class="tiny-huicharts"><tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">格式示例:</p>
<div data-v-md-line="3"><div class="v-md-pre-wrapper v-md-pre-wrapper-d extra-class"><pre class="v-md-hljs-d"><code>bmap: {
center: [<span class="hljs-number">118.775859</span>, <span class="hljs-number">31.985021</span>],
zoom: <span class="hljs-number">17</span>,
Expand All @@ -131,19 +131,19 @@ export default {
<code>roam</code>:是否开启拖拽缩放,可选值为:<code>'scale'</code>, <code>'move'</code>, <code>'true'</code>,默认true关闭。<br><br>
<code>mapStyle</code>:百度地图的自定义样式。<br><br>
其他更多属性配置可见Echarts百度地图扩展的git网址:<a href="https://github.com/apache/echarts/tree/release/extension-src/bmap" target="_blank">https://github.com/apache/echarts/tree/release/extension-src/bmap</a>。</p>
</div></div></div></td></tr>`
</div></div></div></td></tr></div>`
},
{
name: 'Key',
type: 'interface',
code: `<tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">说明:通过配置<code>key</code>属性,修改百度地图api的密钥。<br><br>
code: `<div class="tiny-huicharts"><tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">说明:通过配置<code>key</code>属性,修改百度地图api的密钥。<br><br>
需要用户获取在百度地图开发者平台申请的密钥,申请网站:https://lbsyun.baidu.com/</p>
</div></div></div></td></tr>`
</div></div></div></td></tr></div>`
},
{
name: 'Series',
type: 'interface',
code: `<tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">格式示例:</p>
code: `<div class="tiny-huicharts"><tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">格式示例:</p>
<div data-v-md-line="3"><div class="v-md-pre-wrapper v-md-pre-wrapper-d extra-class"><pre class="v-md-hljs-d"><code>series: [{
type: <span class="hljs-string">'scatter'</span>,
coordinateSystem: <span class="hljs-string">'bmap'</span>,
Expand All @@ -159,19 +159,19 @@ export default {
<code>roam</code>:是否开启拖拽缩放,可以只设置 ‘scale’ 或者 ‘move’。默认关闭。<br><br>
<code>mapStyle</code>:百度地图的自定义样式。<br><br>
其他更多属性配置可见Echarts百度地图扩展的git网址:<a href="https://github.com/apache/echarts/tree/release/extension-src/bmap" target="_blank">https://github.com/apache/echarts/tree/release/extension-src/bmap</a>。</p>
</div></div></div></td></tr>`
</div></div></div></td></tr></div>`
},
{
name: 'V',
type: 'interface',
code: `<tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">说明:通过配置<code>v</code>属性,修改百度地图api的版本号,默认2.0。<br></p>
</div></div></div></td></tr>`
code: `<div class="tiny-huicharts"><tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">说明:通过配置<code>v</code>属性,修改百度地图api的版本号,默认2.0。<br></p>
</div></div></div></td></tr></div>`
},
{
name: 'Url',
type: 'interface',
code: `<tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">说明:通过配置<code>url</code>属性,修改百度地图api的前缀地址。<br></p>
</div></div></div></td></tr>`
code: `<div class="tiny-huicharts"><tr class="tiny-grid-body__expanded-row"><td class="tiny-grid-body__expanded-column" colspan="5"><div class="tiny-grid-body__expanded-cell"><div class="v-md-editor-preview main-editor api-table" style="tab-size: 2;"><div class="github-markdown-body"><p data-v-md-line="1">说明:通过配置<code>url</code>属性,修改百度地图api的前缀地址。<br></p>
</div></div></div></td></tr></div>`
}
]
}
Loading

0 comments on commit 3529c65

Please sign in to comment.