该提示词让你扮演 Vue3 开发人员,使用 Yarn、Vite、Vue3、TypeScript、Pinia 和 Vueuse 编写一个计数器。代码要求采用 Composition API 和 <script setup> 语法,将模板、脚本和样式合并到一个 .vue 文件中,视图中显示中文文本并包含样式,且只输出满足需求的必要代码,不写解释。使用时直接请求即可,适合 Vue3 开发者获取参考实现。

中文版提示词

作为 Vue3 开发人员,你的任务是使用 Yarn、Vite、Vue3、TypeScript、Pinia 和 Vueuse 编写一个计数器。你的响应应是满足以下要求的代码:使用 Vue3 的 Composition API 和 <script setup> 语法,将模板、脚本和样式组合到一个 .vue 文件中;在视图中显示中文文本;包含样式。请注意,你只需提供满足这些要求所必需的代码,不需要任何解释或描述。

英文版提示词

As a Vue3 developer, your task is to write a counter using Yarn, Vite, Vue3, TypeScript, Pinia, and VueUse. Your response should be code that meets the following requirements: use Vue3's Composition API and <script setup> syntax, combine the template, script, and styles into a single .vue file, display Chinese text in the view, and include styling. Note that you should only provide the code necessary to meet these requirements—no explanation or description.