├── type.d.ts ├── .editorconfig ├── dist ├── uniAreaPlugin.umd.js.LICENSE.txt ├── uniAreaRenderer.umd.js.LICENSE.txt ├── uniAreaRenderer.css ├── uniAreaPlugin.umd.js └── uniAreaRenderer.umd.js ├── .gitignore ├── src ├── uni-area-chart │ ├── renderer.ts │ ├── plugin.ts │ └── uni-area-chart.vue └── preview.js ├── commitlint.config.js ├── README.md ├── package.json ├── amis.config.js └── tsconfig.json /type.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | const component: any; 3 | export default component; 4 | } 5 | 6 | declare module '*.svg' { 7 | const content: any; 8 | export default content; 9 | } 10 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /dist/uniAreaPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-amis-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 14 2023 10:23:37 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /dist/uniAreaRenderer.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-amis-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 14 2023 10:23:37 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | package-lock.json 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .hg 10 | .svn 11 | .CVS 12 | .idea 13 | .vscode 14 | .DS_Store 15 | *.suo 16 | *.ntvs* 17 | *.njsproj 18 | *.sln 19 | -------------------------------------------------------------------------------- /src/uni-area-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRendererByType } from 'vue3-amis-widget'; 4 | // @ts-ignore 5 | import uniAreaChart from './uni-area-chart'; 6 | 7 | registerRendererByType(uniAreaChart, { 8 | type: 'uni-area-chart', 9 | framework: 'vue3' 10 | }); 11 | -------------------------------------------------------------------------------- /src/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import VueUniArea from './uni-area-chart/uni-area-chart.vue'; 4 | import { createVue3Component } from 'vue3-amis-widget'; 5 | const UniArea = createVue3Component(VueUniArea); 6 | 7 | ReactDOM.render( 8 | <> 9 | 10 | , 11 | document.getElementById('root') 12 | ); 13 | -------------------------------------------------------------------------------- /dist/uniAreaRenderer.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-amis-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 14 2023 10:23:37 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */.u-charts-container[data-v-51273cb3]{-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.u-charts-container .u-charts[data-v-51273cb3]{height:280px;margin:10px auto;width:370px} -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * https://www.npmjs.com/package/@commitlint/config-conventional\ 3 | * 4 | * Git提交规范-配置文件 5 | * Commit message 由Header、Body 和 Footer三个部分组成,其格式如下: 6 | * (): 7 | * 8 | * 9 | * 10 | *