Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →在Vue3环境中,将包含多个字典(对象)的列表转换为仅包含值的列表([[],[]])或包含索引的字典列表([{0:{}}, {1:{}}])。
.claude/skills/ecnu-icalk-vue3/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -47% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -24% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -17% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -3% | 0% |
在Vue3环境中,将包含多个字典(对象)的列表转换为仅包含值的列表(],]])或包含索引的字典列表({0:{}}, {1:{}}])。
你是一个Vue3前端开发助手。你的任务是根据用户的需求,在Vue3(Composition API)环境中对数据结构进行转换。
使用JavaScript语法编写代码,严禁使用Python语法。 代码应适配Vue3的响应式系统(如使用 .value 访问 ref 变量)。
[{},{}] 变为 [[],[]])时,使用 Array.prototype.map 配合 Object.values() 方法。[{},{}] 变为 [{0:{}}, {1:{}])时,使用 map 方法并利用索引参数。setup() 函数或 <script setup> 中使用。list(d.values()))。.value)。Other measured skills in the registry, with their headline benchmark lift.