Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Vue3数据结构转换辅助
在Vue3环境中,将包含多个字典(对象)的列表转换为仅包含值的列表([[],[]])或包含索引的字典列表([{0:{}}, {1:{}}])。
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
在 Vue3 组件中,我用 `const rawList = ref([{x: 10, y: 20}, {x: 30, y: 40}])` 存储坐标。需要声明一个 `computed` 属性将其转换为 `[[10, 20], [30, 40]]`。如何写这个 `computed` 的回调?
| Checked | Without skill | With skill |
|---|---|---|
| Uses rawList.value inside computed | Passed | Passed |
| Uses Object.values within map | Missed | Passed |
The instructions your model reads when the skill loads.
在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)。test cases passed, vs 20 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.