diff --git a/frontend/src/components/elVisualSelect/index.vue b/frontend/src/components/elVisualSelect/index.vue index 682115ecca..299c20ad56 100644 --- a/frontend/src/components/elVisualSelect/index.vue +++ b/frontend/src/components/elVisualSelect/index.vue @@ -171,7 +171,7 @@ export default { this.options = this.newList.slice(0, this.maxLength) }, customInputStyle() { - if (!this.$parent.$parent.handlerInputStyle) return + if (!this.$parent.$parent.handlerInputStyle || !this.$refs.visualSelect) return handlerInputStyle(this.$refs.visualSelect.$el.querySelector('.el-input__inner'), this.$parent.element.style) handlerInputStyle(this.$refs.visualSelect.$el.querySelector('.el-select__input'), { wordColor: this.$parent.element.style.wordColor }) }, diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index c7cf1088bc..47ba9071c1 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -1657,4 +1657,35 @@ div:focus { right: 12px; top: 9px; } +} + +.de-center-dialog { + .el-dialog { + margin: 0 !important; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } +} +.calcu-field { + .calcu-cont { + display: flex; + justify-content: space-between; + } + .codemirror { + height: 250px; + overflow-y: auto; + width: 100%; + border: 1px solid #bbbfc4; + border-radius: 4px; + } + .codemirror .CodeMirror-scroll { + height: 250px; + overflow-y: auto; + } + + .mb8 { + margin-bottom: 8px; + display: inline-block; + } } \ No newline at end of file diff --git a/frontend/src/views/chart/view/CalcChartFieldEdit.vue b/frontend/src/views/chart/view/CalcChartFieldEdit.vue index 6f8af6562a..b4fd101f40 100644 --- a/frontend/src/views/chart/view/CalcChartFieldEdit.vue +++ b/frontend/src/views/chart/view/CalcChartFieldEdit.vue @@ -1,29 +1,29 @@