Skip to content

Repository files navigation

目标完成率仪表盘插件

飞书多维表格仪表盘自定义图表插件。图表和图标采用统一的蓝色半圆仪表盘风格,适合展示目标达成、减亏、降成本等场景。

项目地址

https://github.com/jahnli/test

完成率公式

目标 >= 0:完成率 = 当前 / 目标
目标 < 0:完成率 = 2 - 当前 / 目标

例如当前 -900,000,目标 -1,300,000

完成率 = 2 - (-900000 / -1300000) = 131%

图表弧线视觉进度会在 100% 封顶,中心数字展示真实完成率。

开发

npm install
npm run dev

在多维表格仪表盘中打开插件市场,选择“添加自定义插件”,填入本地或部署后的页面地址。

本地调试地址:

http://localhost:5173/

构建

npm run build

构建产物位于 dist。项目已按飞书文档要求配置 vite.config.ts 中的 base: './',并在 package.json 中声明 "output": "dist"

发布信息

插件中心提交信息整理在 MARKETPLACE.md

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages