疯狂的狮子li
2021-01-11 684eadbcc63b369c9ae2e494fb5890fc62245e82
ruoyi-ui/src/components/Editor/index.vue
@@ -71,9 +71,9 @@
    value: {
      handler(val) {
        if (val !== this.currentValue) {
          this.currentValue = val;
          this.currentValue = val === null ? "" : val;
          if (this.Quill) {
            this.Quill.pasteHTML(this.value);
            this.Quill.pasteHTML(this.currentValue);
          }
        }
      },
@@ -114,7 +114,7 @@
</script>
<style>
.editor {
.editor, .ql-toolbar {
  white-space: pre-wrap!important;
  line-height: normal !important;
}
@@ -192,4 +192,4 @@
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
  content: "等宽字体";
}
</style>
</style>