drawerPage.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template name="drawerPage">
  2. <view class="DrawerPage" :class="show">
  3. <slot name="links"></slot>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name: "drawerPage",
  9. props: {
  10. show : '',
  11. },
  12. methods:{
  13. }
  14. }
  15. </script>
  16. <style>
  17. .DrawerPage {
  18. position: fixed;
  19. width: 100vw;
  20. height: 100vh;
  21. left: 0vw;
  22. background-color: #f1f1f1;
  23. transition: all 0.4s;
  24. }
  25. .DrawerPage.left {
  26. transform: scale(0.9, 0.9);
  27. left: 85vw;
  28. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  29. transform-origin: 0;
  30. }
  31. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  32. width: 64upx;
  33. height: 64upx;
  34. line-height: 64upx;
  35. margin: 0;
  36. display: inline-block;
  37. }
  38. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  39. margin: 0;
  40. }
  41. .DrawerPage .nav {
  42. flex: 1;
  43. }
  44. .DrawerPage .nav .cu-item.cur {
  45. border-bottom: 0;
  46. position: relative;
  47. }
  48. .DrawerPage .nav .cu-item.cur::after {
  49. content: "";
  50. width: 10upx;
  51. height: 10upx;
  52. background-color: currentColor;
  53. position: absolute;
  54. bottom: 10upx;
  55. border-radius: 10upx;
  56. left: 0;
  57. right: 0;
  58. margin: auto;
  59. }
  60. .DrawerPage .cu-bar.tabbar .action {
  61. flex: initial;
  62. }
  63. </style>