button.vue 743 B

1234567891011121314151617181920212223242526272829
  1. <script setup lang="ts">
  2. import { ref } from "vue";
  3. defineOptions({
  4. name: "ButtonPage"
  5. });
  6. const { VITE_PUBLIC_PATH } = import.meta.env;
  7. const url = ref(`${VITE_PUBLIC_PATH}html/button.html`);
  8. </script>
  9. <template>
  10. <el-card shadow="never">
  11. <template #header>
  12. <div class="card-header">
  13. <span class="font-medium">通过 iframe 引入按钮页面</span>
  14. </div>
  15. <el-link
  16. class="mt-2"
  17. href="https://github.com/pure-admin/vue-pure-admin/blob/main/src/views/components/button.vue"
  18. target="_blank"
  19. >
  20. 代码位置 src/views/components/button.vue
  21. </el-link>
  22. </template>
  23. <iframe :src="url" frameborder="0" class="iframe w-full h-[60vh]" />
  24. </el-card>
  25. </template>