forked from Cecilxx/echarts-taro3-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add line-chart and pie-chart components
- Loading branch information
0 parents
commit 11e04ed
Showing
63 changed files
with
101,948 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
'extends': ['taro/react'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
dist/ | ||
deploy_versions/ | ||
.temp/ | ||
.rn_temp/ | ||
node_modules/ | ||
.DS_Store | ||
resource/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
registry=https://registry.npm.taobao.org | ||
disturl=https://npm.taobao.org/dist | ||
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ | ||
phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ | ||
electron_mirror=https://npm.taobao.org/mirrors/electron/ | ||
chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver | ||
operadriver_cdnurl=https://npm.taobao.org/mirrors/operadriver | ||
selenium_cdnurl=https://npm.taobao.org/mirrors/selenium | ||
node_inspector_cdnurl=https://npm.taobao.org/mirrors/node-inspector | ||
fsevents_binary_host_mirror=http://npm.taobao.org/mirrors/fsevents/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Cecilxx | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# multi-mini-echarts | ||
基于taro3.x版本构建的多端小程序+H5 echarts组件 | ||
|
||
## 特性 | ||
+ taro3.0 | ||
+ react | ||
+ typescript | ||
|
||
## 功能 | ||
+ [ ] 柱状图 | ||
+ [x] 折线图 | ||
+ [x] 饼图 | ||
+ [ ] 散点图 | ||
+ [ ] K线图 | ||
+ [ ] 雷达图 | ||
+ [ ] 热力图 | ||
+ [ ] 树图 | ||
+ [ ] 矩形树图 | ||
+ [ ] 旭日图 | ||
+ [ ] 地图 | ||
|
||
## 使用 | ||
|
||
+ [ ] 小程序原生组件安装 | ||
|
||
+ [ ] taro3.0组件安装 | ||
|
||
+ [ ] h5组件安装 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// babel-preset-taro 更多选项和默认值: | ||
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md | ||
module.exports = { | ||
presets: [ | ||
['taro', { | ||
framework: 'react', | ||
ts: true | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
env: { | ||
NODE_ENV: '"development"' | ||
}, | ||
defineConstants: { | ||
}, | ||
mini: {}, | ||
h5: {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
const config = { | ||
projectName: 'echarts-for-taro3', | ||
date: '2020-9-10', | ||
designWidth: 750, | ||
deviceRatio: { | ||
640: 2.34 / 2, | ||
750: 1, | ||
828: 1.81 / 2 | ||
}, | ||
sourceRoot: 'src', | ||
outputRoot: 'dist', | ||
plugins: [], | ||
defineConstants: { | ||
}, | ||
copy: { | ||
patterns: [ | ||
], | ||
options: { | ||
} | ||
}, | ||
framework: 'react', | ||
mini: { | ||
postcss: { | ||
pxtransform: { | ||
enable: true, | ||
config: { | ||
|
||
} | ||
}, | ||
url: { | ||
enable: true, | ||
config: { | ||
limit: 1024 // 设定转换尺寸上限 | ||
} | ||
}, | ||
cssModules: { | ||
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true | ||
config: { | ||
namingPattern: 'module', // 转换模式,取值为 global/module | ||
generateScopedName: '[name]__[local]___[hash:base64:5]' | ||
} | ||
} | ||
} | ||
}, | ||
h5: { | ||
publicPath: '/', | ||
staticDirectory: 'static', | ||
postcss: { | ||
autoprefixer: { | ||
enable: true, | ||
config: { | ||
} | ||
}, | ||
cssModules: { | ||
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true | ||
config: { | ||
namingPattern: 'module', // 转换模式,取值为 global/module | ||
generateScopedName: '[name]__[local]___[hash:base64:5]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
module.exports = function (merge) { | ||
if (process.env.NODE_ENV === 'development') { | ||
return merge({}, config, require('./dev')) | ||
} | ||
return merge({}, config, require('./prod')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
env: { | ||
NODE_ENV: '"production"' | ||
}, | ||
defineConstants: { | ||
}, | ||
mini: {}, | ||
h5: { | ||
/** | ||
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。 | ||
* 参考代码如下: | ||
* webpackChain (chain) { | ||
* chain.plugin('analyzer') | ||
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, []) | ||
* } | ||
*/ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
declare module '*.png'; | ||
declare module '*.gif'; | ||
declare module '*.jpg'; | ||
declare module '*.jpeg'; | ||
declare module '*.svg'; | ||
declare module '*.css'; | ||
declare module '*.less'; | ||
declare module '*.scss'; | ||
declare module '*.sass'; | ||
declare module '*.styl'; | ||
|
||
// @ts-ignore | ||
declare const process: { | ||
env: { | ||
TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq'; | ||
[key: string]: any; | ||
} | ||
} |
Oops, something went wrong.