1 Star 8 Fork 2

唯知为之/vite-vue3-charts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

weiz-vue3-charts

简介

vite5 + vue3 + ts + datav-vue3 + echarts + 百度地图 大屏展示

预览地址 https://weizwz.com/vite-vue3-charts/

image

本项目数据重属虚构,请勿商用

运行

安装依赖

npm i

运行

npm run dev

打包

npm run build

地图

由于对百度地图api加了白名单,请自行替换为你的api地址。修改根目录下的 index.html

<script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=你的ak"></script>

百度地图API设置白名单后,本地仍可调用方法:

  1. 假设百度白名单为 *haha.com*
  2. 本地修改hosts文件:
  • windows文件位置 C:\Windows\System32\drivers\etc
  • mac 下使用 sudo vi /etc/hosts 编辑,输入 i 进入编辑模式,修改完,按 ESC 后输入:号,然后输入 wq 回车保存。
127.0.0.1         haha.com
  1. 本地访问地址,使用 haha.com:8000,即可正常访问百度地图API

文档

1. vite+vue3 配合 echarts 使用文档

vue3+ts打开echarts的正确方式

MIT License Copyright (c) 2023 唯之为之 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

vite5+vue3+ts+datav-vue3+echarts 大屏展示 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/weizwz/vite-vue3-charts.git
git@gitee.com:weizwz/vite-vue3-charts.git
weizwz
vite-vue3-charts
vite-vue3-charts
master

搜索帮助