Przeglądaj źródła

chore(playground): add vapor flag

三咲智子 Kevin Deng 2 lat temu
rodzic
commit
83641f709b
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      playground/src/no-script.js

+ 5 - 2
playground/src/no-script.js

@@ -1,5 +1,8 @@
 import { template } from '@vue/runtime-vapor'
 
-export default () => {
-  return template('<div>')()
+const comp = () => {
+  return template('<div><h1>Hello')()
 }
+comp.vapor = true
+
+export default comp