Skip to content

Commit f328cc1

Browse files
authored
docs: update Chinese description of q20 (#826)
1 parent e60d2d5 commit f328cc1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.zh-CN.md

+1-1
Large diffs are not rendered by default.

docs/meta/challenges.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
"no": 20,
382382
"readme": {
383383
"en": "For this challenge, we're going to implement a debounced-click-directive. Lets go 👇: \n\n```vue\n<script setup lang='ts'>\n\n/**\n * Implement the custom directive\n * Make sure the `onClick` method only gets triggered once when clicked many times quickly\n * And you also need to support the debounce delay time option. e.g `v-debounce-click:ms`\n *\n*/\n\nconst VDebounceClick = {\n\n}\n\nfunction onClick() {\n console.log(\"Only triggered once when clicked many times quickly\")\n}\n\n</script>\n\n<template>\n <button v-debounce-click:200=\"onClick\">\n Click on it many times quickly\n </button>\n</template>\n\n```",
384-
"zh-CN": "在这个挑战中,我们将尝试实现一个节流点击指令,让我们开始吧 👇:\n\n```vue\n<script setup lang='ts'>\n\n/**\n * 实现以下自定义指令\n * 确保在一定时间内当快速点击按钮多次时只触发一次点击事件\n * 你需要支持节流延迟时间选项, 用法如 `v-debounce-click:ms`\n *\n*/\n\nconst VDebounceClick = {\n\n}\n\nfunction onClick() {\n console.log(\"Only triggered once when clicked many times quicky\")\n}\n\n</script>\n\n<template>\n <button v-debounce-click:200=\"onClick\">\n Click on it many times quickly\n </button>\n</template>\n\n```"
384+
"zh-CN": "在这个挑战中,我们将尝试实现一个防抖点击指令,让我们开始吧 👇:\n\n```vue\n<script setup lang='ts'>\n\n/**\n * 实现以下自定义指令\n * 确保在一定时间内当快速点击按钮多次时只触发一次点击事件\n * 你需要支持防抖延迟时间选项, 用法如 `v-debounce-click:ms`\n *\n*/\n\nconst VDebounceClick = {\n\n}\n\nfunction onClick() {\n console.log(\"Only triggered once when clicked many times quicky\")\n}\n\n</script>\n\n<template>\n <button v-debounce-click:200=\"onClick\">\n Click on it many times quickly\n </button>\n</template>\n\n```"
385385
},
386386
"info": {
387387
"en": {
@@ -394,7 +394,7 @@
394394
"tags": "Directives"
395395
},
396396
"zh-CN": {
397-
"title": "节流点击指令",
397+
"title": "防抖点击指令",
398398
"author": {
399399
"name": "webfansplz",
400400
"github": "webfansplz"
@@ -1676,7 +1676,7 @@
16761676
"no": 20,
16771677
"readme": {
16781678
"en": "For this challenge, we're going to implement a debounced-click-directive. Lets go 👇: \n\n```vue\n<script setup lang='ts'>\n\n/**\n * Implement the custom directive\n * Make sure the `onClick` method only gets triggered once when clicked many times quickly\n * And you also need to support the debounce delay time option. e.g `v-debounce-click:ms`\n *\n*/\n\nconst VDebounceClick = {\n\n}\n\nfunction onClick() {\n console.log(\"Only triggered once when clicked many times quickly\")\n}\n\n</script>\n\n<template>\n <button v-debounce-click:200=\"onClick\">\n Click on it many times quickly\n </button>\n</template>\n\n```",
1679-
"zh-CN": "在这个挑战中,我们将尝试实现一个节流点击指令,让我们开始吧 👇:\n\n```vue\n<script setup lang='ts'>\n\n/**\n * 实现以下自定义指令\n * 确保在一定时间内当快速点击按钮多次时只触发一次点击事件\n * 你需要支持节流延迟时间选项, 用法如 `v-debounce-click:ms`\n *\n*/\n\nconst VDebounceClick = {\n\n}\n\nfunction onClick() {\n console.log(\"Only triggered once when clicked many times quicky\")\n}\n\n</script>\n\n<template>\n <button v-debounce-click:200=\"onClick\">\n Click on it many times quickly\n </button>\n</template>\n\n```"
1679+
"zh-CN": "在这个挑战中,我们将尝试实现一个防抖点击指令,让我们开始吧 👇:\n\n```vue\n<script setup lang='ts'>\n\n/**\n * 实现以下自定义指令\n * 确保在一定时间内当快速点击按钮多次时只触发一次点击事件\n * 你需要支持防抖延迟时间选项, 用法如 `v-debounce-click:ms`\n *\n*/\n\nconst VDebounceClick = {\n\n}\n\nfunction onClick() {\n console.log(\"Only triggered once when clicked many times quicky\")\n}\n\n</script>\n\n<template>\n <button v-debounce-click:200=\"onClick\">\n Click on it many times quickly\n </button>\n</template>\n\n```"
16801680
},
16811681
"info": {
16821682
"en": {
@@ -1689,7 +1689,7 @@
16891689
"tags": "Directives"
16901690
},
16911691
"zh-CN": {
1692-
"title": "节流点击指令",
1692+
"title": "防抖点击指令",
16931693
"author": {
16941694
"name": "webfansplz",
16951695
"github": "webfansplz"

questions/20-v-debounce-click/README.zh-CN.md

+3-3
Large diffs are not rendered by default.

questions/20-v-debounce-click/info.zh-CN.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: 节流点击指令
1+
title: 防抖点击指令
22

33
author:
44
name: webfansplz

0 commit comments

Comments
 (0)