
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@ks-dbdev/template-react-db-record
Advanced tools
多维表格记录插件开发模板
# 使用 dbdev CLI 工具
npx @ks-dbdev/cli create template
# 或全局安装后使用
npm install -g @ks-dbdev/cli
dbdev create template
选择 "记录插件" 模板
本模板提供了 5 个示例功能,展示记录插件的常用能力:
点击第一个按钮,可以查看当前单元格的基础信息。
点击第二个按钮,可以查看当前 Sheet 下的字段列表。
点击第三个按钮,可以查看所有 Sheet 的信息。
点击第四个按钮,可以查看当前 Sheet 下的 View 列表信息。
第五个按钮为一个 Demo 组件,展示如何绑定多个字段进行任务管理。当点击某一行的单元格时,可以对该行的任务进行管理。
⚠️ 注意:任务管理器需要绑定三个特定字段,字段 ID 必须与代码中要求的一致,否则不生效。
代码中的字段配置:
// 任务管理器绑定三个字段:任务描述、任务执行人、任务状态
const taskDescription = 'B' // 绑定任务描述字段
const taskUserFieldId = 'O' // 绑定执行人
const taskFieldId = 'F' // 绑定是否完成字段
npm install
启动本地开发服务
打开项目目录终端,执行以下命令启动本地开发服务:
npm dev
命令执行后,终端会显示本地服务端口号(PORT),例如:5173
打开目标多维表页面
打开需要调试的多维表页面,并在 URL 后增加查询参数:?plugin_debug=PORT
示例如下:
https://www.kdocs.cn/l/XXXXXXXXX?plugin_debug=5173https://www.kdocs.cn/l/XXXXXXXXX?R=XXXXXXXX&plugin_debug=5173验证本地调试效果
页面刷新后,点击任意单元格打开记录插件面板,即可查看本地开发的插件效果。
💡 请确保本地开发服务(npm dev)处于运行状态,否则无法加载本地插件。
执行以下命令打包插件:
npm build
打包完成后,将 dist 文件夹压缩为 zip 包,即可上传到 WPS 开放平台。
FAQs
The npm package @ks-dbdev/template-react-db-record receives a total of 36 weekly downloads. As such, @ks-dbdev/template-react-db-record popularity was classified as not popular.
We found that @ks-dbdev/template-react-db-record demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.