浏览代码

chore: fix debounce of markdown example (#525) [ci skip]

CodinCat 6 年之前
父节点
当前提交
9b5c4a2ec1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/vue/examples/composition/markdown.html

+ 1 - 1
packages/vue/examples/composition/markdown.html

@@ -14,7 +14,7 @@ const App = {
   setup() {
     const input = ref('# hello')
     const output = computed(() => marked(input.value, { sanitize: true }))
-    const update = _.debounce(e => { input.value = e.target.value })
+    const update = _.debounce(e => { input.value = e.target.value }, 300)
 
     return {
       input,