Skip to content

Price Target Fan ​

Vue 已实现 · 还原验收 0/1 · 上游演示 · 固定版本源码

原设计:Savva

预览 ​

Mean target$205.00+14.8%

用法 ​

vue
<script setup lang="ts">
import { PriceTargetFan } from 'beui-vue'

const history = [158.4, 164.2, 160.8, 173.1, 170.6, 181.3, 175.8, 183.7, 178.2, 184.1, 180.5, 177.3, 178.52].map((price, month) => ({
  date: new Date(Date.UTC(2025, 8 + month, 14)).toISOString().slice(0, 10), price,
}))
const targets = [{ key: 'High', price: 232, analysts: 9 }, { key: 'Mean', price: 205, analysts: 34 }, { key: 'Low', price: 168, analysts: 6 }] as const
</script>

<template><PriceTargetFan :current="178.52" :history="history" :targets="targets" :dates="{ horizon: 'Sep 2027' }" /></template>

API ​

current、targets、history 提供当前价、三个目标和历史价格,dates 定制轴标签,v-model:active 同步目标或历史读数。

还原验收 ​

基于 beUI 的独立 Vue 移植,依 MIT 许可证分发。