shenrui1

Results 6 issues of shenrui1

```vue // 你的答案 import { defineComponent, h } from 'vue'; export default defineComponent({ name: 'MyButton', render({ $emit, $slots, $props }) { const { disabled } = $props; return h( 'button',...

answer
zh-CN

```vue // 你的答案 import { ref, h } from 'vue'; /** * Implement a functional component : * 1. Render the list elements (ul/li) with the list data * 2....

answer
zh-CN

```vue // 你的答案 /** * Implement the custom directive * Make sure the `onClick` method only gets triggered once when clicked many times quickly * And you also need to...

answer
zh-CN

```vue // 你的答案 import { ref } from 'vue'; const state = ref(false); /** * Implement the custom directive * Make sure the input element focuses/blurs when the 'state' is...

answer
zh-CN

```vue // 你的答案 import { ref, customRef } from "vue" /** * Implement the composable function * Make sure the function works correctly */ function useLocalStorage(key: string, initialValue: any) {...

answer
zh-CN

```vue // 你的答案 import { ref } from 'vue'; interface UseCounterOptions { min?: number; max?: number; } /** * Implement the composable function * Make sure the function works correctly...

answer
zh-CN