FunctionPage.vue 964 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!--
  2. * @Author: your name
  3. * @Date: 2021-03-22 10:54:32
  4. * @LastEditTime: 2022-04-28 16:28:09
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \vue3-element-admin\src\components\FunctionPage.vue
  8. -->
  9. <template>
  10. <div>
  11. <el-page-header
  12. @back="$router.back()"
  13. :content="title"
  14. ></el-page-header>
  15. <el-alert
  16. style="margin-top: 20px"
  17. type="info"
  18. description="当前为动态权限页面!离开后将无法访问!刷新页面请使用本系统自带刷新按钮!!!"
  19. show-icon
  20. close-text="知道了"
  21. ></el-alert>
  22. <el-divider></el-divider>
  23. <slot />
  24. </div>
  25. </template>
  26. <script setup>
  27. import { toRefs } from "vue";
  28. const props = defineProps({
  29. title: {
  30. type: String,
  31. require: true,
  32. },
  33. });
  34. const { title } = toRefs(props);
  35. </script>
  36. <style lang="scss" scoped></style>