npm install vue2-npy-viewerbash
npm install vue2-npy-viewer --save
`
基本使用
$3
`vue
:path-url="npyFilePath"
:width="800"
:height="600"
:options="customOptions"
/>
`
$3
`js
import Vue from 'vue';
import NpyViewer from 'vue2-npy-viewer';
Vue.use(NpyViewer);
`
API文档
$3
| 参数名 | 类型 | 默认值 | 描述 |
|-------|------|-------|------|
| pathUrl | String | "" | NPY文件的路径或URL |
| width | String/Number | "100%" | 组件宽度 |
| height | String/Number | "100%" | 组件高度 |
| options | Object | {} | 自定义ECharts配置,将与默认配置合并 |
高级用法
$3
`vue
:path-url="npyFilePath"
:options="customOptions"
/>
``