commentList.vue 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <div class="parent">
  8. <span class="text"></span>
  9. <div class="triangle-topleft">
  10. </div>
  11. <div class="title">
  12. 已使用
  13. </div>
  14. <img src="/static/images/a.jpg" style="width:100%;height:100%">
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import BreadCrumb from '../components/bread-crumb'
  21. export default {
  22. name: 'commentList',
  23. components:{
  24. BreadCrumb
  25. },
  26. data(){
  27. return{
  28. crumbs: [
  29. { path: false, name: '文章管理' },
  30. { path: '/articles/commentList', name: '评论列表' }
  31. ],
  32. }
  33. },
  34. methods:{
  35. }
  36. }
  37. </script>
  38. <style scoped>
  39. .parent{
  40. position: relative;
  41. width: 200px;
  42. height: 200px;
  43. background: yellow;
  44. font-size: 6px;
  45. }
  46. .parent .text{
  47. display: inline-block;
  48. transform: rotate(-45deg);
  49. padding: 20px;
  50. color: #fff;
  51. position: relative;
  52. }
  53. .triangle-topleft{
  54. width: 0;
  55. height: 0;
  56. border-top: 100px solid red;
  57. border-right: 100px solid transparent;
  58. position: relative;
  59. margin-top: -42px;
  60. top: 0px;
  61. z-index: 0;
  62. }
  63. .title{
  64. transform: rotate(-45deg);
  65. position: relative;
  66. margin-top: -115px;
  67. margin-left: -8px;
  68. }
  69. </style>