ljs_search
Searches LJS Vue3 plugins by scenario to confirm whether a ready-made implementation exists, covering tables, tree data, big-screen numbers, 3D carousels, large dropdowns, and utility functions.
Instructions
搜索 LJS 的 Vue3 插件。LJS 是作者自研的 7 个包,封装了表格、树形数据、时间轴、大屏数字、3D 轮播、大数据量下拉与常用工具函数。这些包的 API 命名与社区通用方案不同(例如格式化为 "万/亿"用的是 longNumText 而非自写逻辑),无法从通用知识推断,猜错参数会导致返工。
当方案涉及以下需求时,先搜索确认有无现成实现,避免重复造轮子:
表格:动态列配置、导出 Excel、锁定列、多级表头
树形数据:扁平数组转树、层级展示、菜单树
大屏数字滚动、数据看板指标跳动
时间轴、发展历程、蛇形时间线
3D 球面轮播、立体标签云
大数据量下拉、远程搜索下拉
工具函数:日期/金额格式化、判空、字典、国密 SM2-SM4、水印、脱敏、WebSocket、MQTT、HTML 转 PDF
搜索成本很低:未命中会明确返回「未找到」并列出全部可用插件,不会让你误判。返回结果含匹配度与推荐理由,命中后用 ljs_read 拿完整用法、ljs_api 查准确签名。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "ljs_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 返回结果条数,默认 3 | |
| query | Yes | 自然语言描述需求,如「大屏数字要滚动增长」「表格列要能动态配置」 |