优化组件库显示样式。

master
vdpAdmin 2023-04-22 10:57:27 +08:00
parent 0b9ea86050
commit f104313c1b
2 changed files with 16 additions and 9 deletions

View File

@ -96,8 +96,7 @@
}, },
methods: { methods: {
onTabClick(evt) { onTabClick(evt) {
console.log('onTabClick', evt) let paneName = evt.paneName
let paneName = evt.name
this.widget.tabs.forEach((tp) => { this.widget.tabs.forEach((tp) => {
tp.options.active = tp.options.name === paneName; tp.options.active = tp.options.name === paneName;
}) })

View File

@ -265,7 +265,8 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.color-svg-icon { .color-svg-icon {
color: $--color-primary; -webkit-font-smoothing: antialiased;
color: #7c7d82;
} }
.side-scroll-bar { .side-scroll-bar {
@ -319,21 +320,28 @@
.container-widget-item, .field-widget-item { .container-widget-item, .field-widget-item {
display: inline-block; display: inline-block;
height: 28px; height: 32px;
line-height: 28px; line-height: 32px;
width: 115px; width: 98px;
float: left; float: left;
margin: 2px 6px 6px 0; margin: 2px 6px 6px 0;
cursor: move; cursor: move;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
background: #f1f2f3; background: #fff;
border: 1px solid #e8e9eb;
border-radius: 4px;
padding: 0 8px;
} }
.container-widget-item:hover, .field-widget-item:hover { .container-widget-item:hover, .field-widget-item:hover {
background: #EBEEF5; background: #F1F2F3;
outline: 1px solid $--color-primary; border-color: $--color-primary;
.color-svg-icon {
color: $--color-primary;
}
} }
.drag-handler { .drag-handler {