|
@@ -149,81 +149,131 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
<style scoped lang="less">
|
|
|
- .preview-wrapper {
|
|
|
|
|
- position: fixed;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- right: 0;
|
|
|
|
|
- bottom: 0;
|
|
|
|
|
- .title {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 16px;
|
|
|
|
|
- left: 30px;
|
|
|
|
|
- z-index: 2;
|
|
|
|
|
- height: 36px;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- color: #FFFFFF;
|
|
|
|
|
- background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
- border-radius: 18px;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- padding-left: 16px;
|
|
|
|
|
- padding-right: 16px;
|
|
|
|
|
- }
|
|
|
|
|
- .close-btn {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 16px;
|
|
|
|
|
- right: 30px;
|
|
|
|
|
- width: 36px;
|
|
|
|
|
- height: 36px;
|
|
|
|
|
- z-index: 2;
|
|
|
|
|
|
|
+.preview-wrapper {
|
|
|
|
|
+ position: fixed;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ .title {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 16px;
|
|
|
|
|
+ left: 30px;
|
|
|
|
|
+ z-index: 2;
|
|
|
|
|
+ height: 36px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
|
+ background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
+ border-radius: 18px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding-left: 16px;
|
|
|
|
|
+ padding-right: 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .close-btn {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 16px;
|
|
|
|
|
+ right: 30px;
|
|
|
|
|
+ width: 36px;
|
|
|
|
|
+ height: 36px;
|
|
|
|
|
+ z-index: 2;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ }
|
|
|
|
|
+ .toolbar {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ bottom: 110px;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ height: 60px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding: 0 43px;
|
|
|
|
|
+ background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ z-index: 2;
|
|
|
|
|
+ .iconfont {
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
- }
|
|
|
|
|
- .toolbar {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- bottom: 110px;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- transform: translateX(-50%);
|
|
|
|
|
- height: 60px;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- padding: 0 43px;
|
|
|
|
|
- background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
- border-radius: 8px;
|
|
|
|
|
- z-index: 2;
|
|
|
|
|
- .iconfont {
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- color: white;
|
|
|
|
|
- margin-right: 36px;
|
|
|
|
|
- font-size: 22px;
|
|
|
|
|
- &.disabled {
|
|
|
|
|
- opacity: 0.5;
|
|
|
|
|
- pointer-events: none;
|
|
|
|
|
- }
|
|
|
|
|
- &:last-child {
|
|
|
|
|
- margin-right: 0;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ color: white;
|
|
|
|
|
+ margin-right: 36px;
|
|
|
|
|
+ font-size: 22px;
|
|
|
|
|
+ &.disabled {
|
|
|
|
|
+ opacity: 0.5;
|
|
|
|
|
+ pointer-events: none;
|
|
|
}
|
|
}
|
|
|
- .append-splitter {
|
|
|
|
|
- &::after {
|
|
|
|
|
- pointer-events: none;
|
|
|
|
|
- content: "|";
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- right: -18px;
|
|
|
|
|
- top: -4px;
|
|
|
|
|
- font-size: 20px;
|
|
|
|
|
- color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ &:last-child {
|
|
|
|
|
+ margin-right: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .append-splitter {
|
|
|
|
|
+ &::after {
|
|
|
|
|
+ pointer-events: none;
|
|
|
|
|
+ content: "|";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: -18px;
|
|
|
|
|
+ top: -4px;
|
|
|
|
|
+ font-size: 20px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .iframe {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ .iframe {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
|
+ z-index: 1;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.hover-tips, .hover-tips-warn {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ > div {
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // tip的方框
|
|
|
|
|
+ > div {
|
|
|
|
|
+ background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ cursor: default;
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ z-index: 10000;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ top: -60px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ pointer-events: none;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ word-break: keep-all;
|
|
|
|
|
+ padding: 0 8px;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+ // tip的箭头
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ border: 7px solid transparent;
|
|
|
|
|
+ border-top: 7px solid rgba(0, 0, 0, 0.6);
|
|
|
|
|
+ width: 0;
|
|
|
|
|
+ height: 0px;
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ display: inline-block;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
|
|
+ bottom: -14px;
|
|
|
left: 50%;
|
|
left: 50%;
|
|
|
- top: 50%;
|
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
|
- z-index: 1;
|
|
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // tip的文字
|
|
|
|
|
+ .remark {
|
|
|
|
|
+ line-height: 2.5;
|
|
|
|
|
+ color: #fff;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|