Vue ComposablesSAFE
蓝鲸智云容器管理平台(BlueKing Container Service)
Overview
蓝鲸智云容器管理平台(BlueKing Container Service)
87a6fdb6f4b4OBSERVED · 2026-10-12What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
id: eng-vue-composables
name: Vue 3 组合式函数最佳实践 (Composables)
category: engineering
description: 提供标准化的 useTable, useRequest 等 Hooks,用于简化列表页和异步请求的逻辑复用。
tags: [vue3, composables, hooks, useTable]
updated_at: 2026-01-09
---
# Vue 3 组合式函数最佳实践
为了避免在每个页面重复编写分页、Loading 和请求逻辑,我们推荐使用 Composables。
## 1. useTable (列表页神器)
封装了分页、加载状态、数据获取的通用逻辑。**一行代码搞定所有表格逻辑**。
**使用方式:**
```typescript
const { loading, data, pagination, handlePageChange, handleLimitChange } = useTable(getHostList);
```
**配合 bk-table:**
```html
<bk-table
:data="data"
:pagination="pagination"
v-bkloading="{ isLoading: loading }"
remote-pagination
@page-change="handlePageChange"
@page-limit-change="handleLimitChange"
>
<bk-table-column prop="name" label="名称" />
</bk-table>
```
> 📦 获取完整 Hook 实现:`skill://vue-composables/assets/useTable.ts`
---
## 📦 可用资源
- `skill://vue-composables/assets/useTable.ts`
> 根据 SKILL.md 中的 IF-THEN 规则判断是否需要加载Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
.codebuddy
Gates applied: no_behavioural_pass.
87a6fdb6f4b4full audit observations/trust-audit/skill/tencentblueking__vue-composables.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-12 | 87a6fdb6f4b4 | SAFE | B | 89 | first audit |
Questions
What does the Vue Composables skill do?
蓝鲸智云容器管理平台(BlueKing Container Service)
Is Vue Composables safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Vue Composables access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (87a6fdb6f4b4), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.