@real2sport/depth-chart
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@real2sport/depth-chart

交易平台自定义深度图表组件,使用vue3和vue-konva开发

功能

1、自适应屏幕分辨率,宽度、高度自适应

2、支持价格、数量、小数位精度控制

3、支持所有元素的颜色、样式控制

预览

详见 预览.

示意图

image

使用方式

1. 安装

npm i @real2sport/depth-chart

2. 引用

import { createApp } from 'vue'
import App from './App.vue'
import depthChart from '@real2sport/depth-chart'
// vue3 全局引用
const app = createApp(App)
app.use(depthChart)
app.mount('#app')
<!-- 组件引用 -->
<script setup lang="ts">
import { depthChart } from '@real2sport/depth-chart'
</script>

3.调用

示例:example/App.vue

<depthChart :options="options" :symbolData="symbolData" :depthData="depthData"></depthChart>

/@real2sport/depth-chart/

    Package Sidebar

    Install

    npm i @real2sport/depth-chart

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.22 MB

    Total Files

    25

    Last publish

    Collaborators

    • real2sport