base_el.html 643 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. {include file="public/meta_header_el"/}
  5. {block name="meta"}{/block}
  6. {block name="css"}{/block}
  7. </head>
  8. <body>
  9. <div id="app">
  10. {block name="body"}{/block}
  11. </div>
  12. {block name="script"}{/block}
  13. <script>
  14. const vue3 = {
  15. setup() {
  16. return v_setup();
  17. }
  18. };
  19. const {createApp} = Vue;
  20. const app = createApp(vue3);
  21. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  22. app.component(key, component);
  23. }
  24. app.use(ElementPlus)
  25. </script>
  26. {block name="vue"}{/block}
  27. <script>
  28. app.mount('#app');
  29. </script>
  30. </body>
  31. </html>