jarhson

Results 11 issues of jarhson

```vue // 你的答案 interface TreeData { key: string title: string children: TreeData[] } defineProps() {{ item.title }} ```

answer
zh-CN
208

```vue // 你的答案 import { ref } from "vue" /** * Implement a custom directive * Create a two-way binding on a form input element * */ const VOhModel =...

answer
zh-CN
26

```vue // 你的答案 import { ref, computed, watch, watchEffect } from "vue" /** * Implement the custom directive * Make sure the list item text color changes to red when...

answer
zh-CN
24

```vue // 你的答案 import { watch, customRef } from "vue" /** * Implement the function */ function useDebouncedRef(value, delay = 200) { return customRef((track, trigger) => { let timer =...

answer
zh-CN
23

```vue // 你的答案 A A A function onClick1(){ console.log('onClick1') } function onCtrlClick(){ console.log('onCtrlClick') } function onClick2(){ console.log('onClick2') } ```

answer
zh-CN
232

```vue // 你的答案 import { defineComponent, h } from 'vue'; function MyButton(props, {emit, slots}) { return h('button', { disabled: props.disabled, onClick: (evt) => emit('custom-click', evt), }, slots.default()); } MyButton.props =...

answer
zh-CN
218

```vue // 你的答案 Hello Vue.js p { font-size:20px; color:red; text-align: center; line-height: 50px; } /* Make it work */ :global(body) { width: 100vw; height: 100vh; background-color: burlywood; } ```

answer
zh-CN
27

```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
21

```vue // 你的答案 import { ref, onMounted, onUnmounted } from 'vue'; // Implement ... function useEventListener(target: HTMLElement, event: T, callback: (this: HTMLElement, ev: HTMLElementEventMap[T]) => any) { onMounted(() => {...

answer
zh-CN
25

```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
20