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

21 行
686 B

  1. import { computed, defineComponent, ref } from "vue";
  2. export default defineComponent({
  3. name: "app-root",
  4. setup() {
  5. const count = ref(0);
  6. const countDouble = computed(() => count.value * 2);
  7. count.value++;
  8. return () => (
  9. <div class="app-main">
  10. <button class="test" onClick={() => count.value++}>Click me!</button>
  11. <div>Count: {count.value}</div>
  12. <div>Count Double: {countDouble.value}</div>
  13. <p>
  14. <a href="/generative-energy/">Go to this other site hosted here but a different Vue app!</a>
  15. </p>
  16. </div>
  17. );
  18. },
  19. });