diff --git a/src/assets/img/view/fire.png b/src/assets/img/view/fire.png new file mode 100644 index 0000000..1e28f9f Binary files /dev/null and b/src/assets/img/view/fire.png differ diff --git a/src/assets/img/view/fire2.png b/src/assets/img/view/fire2.png new file mode 100644 index 0000000..8ef599f Binary files /dev/null and b/src/assets/img/view/fire2.png differ diff --git a/src/assets/img/view/play.png b/src/assets/img/view/play.png new file mode 100644 index 0000000..25a71ff Binary files /dev/null and b/src/assets/img/view/play.png differ diff --git a/src/assets/img/view/tree-icon.png b/src/assets/img/view/tree-icon.png new file mode 100644 index 0000000..46fb1f0 Binary files /dev/null and b/src/assets/img/view/tree-icon.png differ diff --git a/src/assets/img/view/view.png b/src/assets/img/view/view.png new file mode 100644 index 0000000..cb3ab5b Binary files /dev/null and b/src/assets/img/view/view.png differ diff --git a/src/assets/style/pageCommon.component.scss b/src/assets/style/pageCommon.component.scss index 3f5539c..54a3d4b 100644 --- a/src/assets/style/pageCommon.component.scss +++ b/src/assets/style/pageCommon.component.scss @@ -2780,6 +2780,7 @@ svg.loading-icon { .tree-box{ width: 330px; height: 300px; + padding: 14px; background: rgba(0,0,0,0.5); box-shadow: 0 10px 20px -10px #000000; border-radius: 6px; @@ -2788,15 +2789,123 @@ svg.loading-icon { } .tree-line{ + &.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{ + background: rgba(125, 174, 255, 0.7); + } + &::before{ + content: ""; + height: 79%; + width: 1px; + position: absolute; + left: 23px; + top: 14px; + border-width: 1px; + border-left: 1px solid #ffffff; + } + & > div[role="treeitem"] { + padding-bottom: 10px; + } .white{ color: #FFFFFF; + font-size: 14px; } + .custom-tree-node{ + position: relative; + left: 8px; + width: 100%; + .doc-style{ + width: 5px; + height: 5px; + border-radius: 50%; + background-color: #FFFFFF; + position: absolute; + left: -11px; + } + } + .right-icon{ + transition: all .3s linear; + position: relative; + left: -10px; + } + .sub-item{ + padding-left: 16px; + &::before{ + content: ''; + width: 12px; + height: 20px; + position: absolute; + left: -3px; + top: 9px; + border-width: 1px; + //border-top: 1px solid #ffffff; + } + &::after{ + content: ""; + height: 130%; + width: 1px; + position: absolute; + left: -1px; + top: 0px; + border: none; + } + } + .is-expanded{ + .sub-item{ + padding-left: 8px; + &::before{ + content: ''; + width: 3px; + height: 20px; + position: absolute; + left: -3px; + top: 9px; + border-width: 1px; + //border-top: 1px solid #ffffff; + } + &::after{ + content: ""; + height: 100%; + width: 1px; + position: absolute; + left: -1px; + top: 10px; + border-width: 1px; + border-left: 1px solid #ffffff; + } + } + .sub-item-border-none{ + &::after{ + content: ""; + height: 130%; + width: 1px; + position: absolute; + left: -1px; + top: 0px; + border: none; + + } + } + + } + div[role="treeitem"].is-expanded > div.el-tree-node__content > div > span:nth-child(2), + div[role="group"] div[role="treeitem"].is-expanded, + { + .right-icon{ + transform: rotate(90deg); + transition: all .3s linear; + } + } + &.el-tree,.el-tree-node__content, .el-upload-list__item{ background: transparent; &:hover,&:focus,&:active,&:visited{ background: transparent; + } } + .el-tree-node:focus>.el-tree-node__content{ + background: transparent; + } .tree-level-1-icon{ width: 24px; @@ -2804,11 +2913,16 @@ svg.loading-icon { background: #FFFFFF; border-radius: 2px; position: relative; - left: -4px; + left: -12px; } + + + margin-top:10px; .el-tree-node { position: relative; - padding-left: 16px; // 缩进量 + color: black; + padding: 0; + padding-left: 10px; // 缩进量 } .el-tree-node__children { padding-left: 16px; // 缩进量 @@ -2821,27 +2935,29 @@ svg.loading-icon { width: 1px; position: absolute; left: -3px; - top: 0; + top: -13px; border-width: 1px; border-left: 1px solid #ffffff; } // 当前层最后一个节点的竖线高度固定 .el-tree-node:last-child::before { - height: 38px; // 可以自己调节到合适数值 + height: 34px; // 可以自己调节到合适数值 } // 横线 .el-tree-node::after { content: ""; - width: 24px; + width: 27px; + //width: 16px; height: 20px; position: absolute; left: -3px; - top: 12px; + top: 20px; border-width: 1px; - border-top: 1px solid #ffffff; - } + border-top: 1px solid #ffffff; + content: ""; + } // 去掉最顶层的虚线,放最下面样式才不会被上面的覆盖了 & > .el-tree-node::after { border-top: none; @@ -2850,6 +2966,66 @@ svg.loading-icon { border-left: none; } + .el-tree-node__content{ + padding-left:0 !important; + color:#444; + height: 40px; + // 树缩进样式 + .el-icon-caret-right::before{ + content: ""; + width:14px; + height:14px; + background-size: 100% 100%; + border-radius: 3px; + display: inline-block; + } + .el-tree-node__expand-icon.expanded{ + transform: rotate(0); + } + // 树展开样式 + .el-tree-node__expand-icon.expanded::before{ + content: ""; + width:0; + height:0; + background-size: 100% 100%; + border-radius: 3px; + display: inline-block; + } + .el-tree-node__expand-icon.is-leaf::before{ + content: ""; + } + .el-icon-caret-right.is-leaf::before{ + content: ""; + display: none; + } + .custom-tree-node .file_class{ + color: #ffb400; + } + .custom-tree-node .label{ + margin-left:5px; + } + .custom-tree-node .no_children{ + color: #aaa; + } + } + // 使用flex布局对custom-tree-node_body盒子进行排版 + .custom-tree-node_body{ + width:100%; + display: flex; + justify-content: space-between; + // margin-top:-3px; + } + .tree_form_left_tree_icon{ + padding:0 3px; + font-size:16px; + color:#666; + i{ + margin:0 4px; + } + } + .tree_form_left_tree_icon:hover{ + cursor: pointer; + } // 展开关闭的icon .el-tree-node__expand-icon{ font-size: 16px; @@ -2862,3 +3038,89 @@ svg.loading-icon { } } +.view-list{ + &-item{ + width: 330px; + height: 186px; + border-radius: 8px; + background-color: #1B6BEB; + position: relative; + margin-bottom: 20px; + &:last-child{ + margin-bottom: 0; + } + &-title{ + position: absolute; + bottom: 0; + border-radius: 0 0 8px 8px; + background: rgba(0,0,0,0.7); + height: 34px; + line-height: 34px; + width: 100%; + } + + .cover { + top: 0; + width: 100%; + height: 100%; + text-align: center; + position: absolute; + background-color: rgba(0, 0, 0, 0.5); + opacity: 0; + cursor: pointer; + } + + /* 鼠标hover,显示遮罩,设置过渡时间 */ + .cover:hover { + transition: all .4s; + opacity: 1; + } + } +} +.view-right-title{ + font-size: 20px; + color: #FFFFFF; + padding: 20px 0; + border-bottom: 1px solid rgba(216,216,216,0.4);; +} +.sub-title{ + font-size: 16px; + margin-bottom: 16px; + margin-top: 16px; +} +.text-con{ + color: rgba(255, 255, 255, 0.6); + font-size: 14px; +} +.right-view-list{ + height: 1px; + flex: 1; + overflow-y: auto; + @include scrollStyle(2px); +} +.right-view-item{ + width: 350px; + height: 98px; + background: rgba(0,0,0,0.3); + border-radius: 8px; + border: 1px solid rgba(255,255,255,0.15); + padding-left: 3px; + margin-bottom: 10px; + cursor: pointer; + &:last-child{ + margin-bottom: 0; + } + img{ + margin-right: 12px; + } + p{ + font-size: 16px; + padding: 0 0 10px 0; + } + .right-sub-text{ + font-size: 12px; + } + .el-rate__icon{ + margin-right: 0; + } +} diff --git a/src/components/title.component.vue b/src/components/title.component.vue index c039363..645c342 100644 --- a/src/components/title.component.vue +++ b/src/components/title.component.vue @@ -8,18 +8,14 @@ 查看更多 -
{{item.title}}
+