-
@@ -68,7 +88,8 @@ export default {
return {
fullscreenElement: null,
fullscreenState: false,
- barActive: false
+ barActive: false,
+ fullWidth: this.$route.query.fromLink === 'true' ? 126 : 94
}
},
computed: {
@@ -76,9 +97,9 @@ export default {
return this.terminal === 'pc'
},
functionClass() {
- let result = 'function-light'
+ let result = 'link-bar-main-light'
if (this.canvasStyleData?.panel?.themeColor === 'dark') {
- result = 'function-dark'
+ result = 'link-bar-main-dark'
}
return result
},
@@ -158,16 +179,14 @@ export default {
}
},
exportPDF() {
- this.$refs['widget-div'].style.display = ''
+ this.$refs['widget-div'].style.display = 'none'
this.$emit('link-export-pdf')
},
setWidgetStatus() {
if (!this.isPublicLink || !this.$refs['widget-div']) {
return
}
- const val = this.$refs['widget-div'].style.display
-
- this.$refs['widget-div'].style.display = val ? '' : 'block'
+ this.$refs['widget-div'].style.display = 'flex'
},
backToTop() {
this.$emit('back-to-top')
@@ -182,19 +201,62 @@ export default {
display: flex;
z-index: 10;
height: 30px;
- width: 130px;
+ width: var(--fullWidth);
bottom: 24px;
- right: -102px;
+ right: var(--fullContent);
border-top-left-radius: 50%;
border-bottom-left-radius: 50%;
&:hover {
- right: -96px;
+ right: var(--firstHoveMove);
}
transition: 0.2s; /* 添加过渡动画 */
}
+.link-bar-main-light {
+ color: rgba(31, 35, 41, 1);
+
+ .bar-first {
+ border-left: 1px solid rgba(222, 224, 227, 1);
+ border-top: 1px solid rgba(222, 224, 227, 1);
+ border-bottom: 1px solid rgba(222, 224, 227, 1);
+ background-color: rgba(255, 255, 255, 1);
+ }
+
+ .bar-content {
+ border-top: 1px solid rgba(222, 224, 227, 1);
+ border-bottom: 1px solid rgba(222, 224, 227, 1);
+ background-color: rgba(255, 255, 255, 1);
+
+ .bar-diver {
+ background: rgba(187, 191, 196, 1);
+ }
+
+ }
+}
+
+.link-bar-main-dark {
+ color: rgba(255, 255, 255, 1);
+
+ .bar-first {
+ border-left: 1px solid rgba(67, 67, 67, 1);
+ border-top: 1px solid rgba(67, 67, 67, 1);
+ border-bottom: 1px solid rgba(67, 67, 67, 1);
+ background-color: rgba(26, 26, 26, 1);
+ }
+
+ .bar-content {
+ border-top: 1px solid rgba(67, 67, 67, 1);
+ border-bottom: 1px solid rgba(67, 67, 67, 1);
+ background-color: rgba(26, 26, 26, 1);
+
+ .bar-diver {
+ background: rgba(95, 95, 95, 1);
+ }
+ }
+}
+
.link-bar-main-active {
right: 0px !important;
transition: 0.2s; /* 添加过渡动画 */
@@ -202,10 +264,6 @@ export default {
.bar-first {
width: 36px;
- border-left: 1px solid rgba(222, 224, 227, 1);
- border-top: 1px solid rgba(222, 224, 227, 1);
- border-bottom: 1px solid rgba(222, 224, 227, 1);
- background-color: rgba(255, 255, 255, 1);
border-top-left-radius: 50%;
border-bottom-left-radius: 50%;
padding: 3px 0px 4px 8px;
@@ -219,15 +277,12 @@ export default {
.bar-diver {
width: 1px;
height: 18px;
- background: rgba(187, 191, 196, 1);
}
.bar-content {
display: flex;
align-items: center;
- border-top: 1px solid rgba(222, 224, 227, 1);
- border-bottom: 1px solid rgba(222, 224, 227, 1);
- background-color: rgba(255, 255, 255, 1);
+ padding-right: 4px;
}
.link-icon-active {
diff --git a/core/frontend/src/components/canvas/components/editor/Preview.vue b/core/frontend/src/components/canvas/components/editor/Preview.vue
index 4a5e3879c3..c5a38a57cf 100644
--- a/core/frontend/src/components/canvas/components/editor/Preview.vue
+++ b/core/frontend/src/components/canvas/components/editor/Preview.vue
@@ -17,7 +17,9 @@
/>
@@ -852,9 +854,6 @@ export default {
deselectCurComponent(e) {
if (!this.isClickComponent) {
this.$store.commit('setCurComponent', { component: null, index: null })
- if (this.$refs?.['canvas-opt-bar']) {
- this.$refs['canvas-opt-bar'].setWidgetStatus()
- }
}
},
handleMouseDown() {
@@ -920,6 +919,9 @@ export default {
this.snapshotInfo = snapshot
this.pdfExportShow = true
}
+ if (this.$refs?.['link-opt-bar']) {
+ this.$refs['link-opt-bar'].setWidgetStatus()
+ }
})
}, 2500)
}, 500)
diff --git a/core/frontend/src/icons/svg/icon_down-right_outlined.svg b/core/frontend/src/icons/svg/icon_down-right_outlined.svg
index 97b63a06b5..aea7c5f4f4 100644
--- a/core/frontend/src/icons/svg/icon_down-right_outlined.svg
+++ b/core/frontend/src/icons/svg/icon_down-right_outlined.svg
@@ -1,4 +1,4 @@
-