djledda.de main
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 个月前
12345678910111213141516171819
  1. import { defineComponent, computed, ref } from "vue";
  2. import Test from '@/test.tsx';
  3. export default defineComponent({
  4. name: "app-root",
  5. setup() {
  6. const count = ref(0);
  7. const countDouble = computed(() => count.value * 2);
  8. count.value++;
  9. return () => (
  10. <div class="app-main">
  11. <button class="test" onClick={() => count.value++}>Click me!</button>
  12. <div>Count: {count.value}</div>
  13. <div>Count Double: {countDouble.value}</div>
  14. <Test />
  15. </div>
  16. );
  17. },
  18. });