Giter VIP home page Giter VIP logo

Comments (6)

jaywcjlove avatar jaywcjlove commented on May 18, 2024

@NsNe 可否给出实例我调试一哈?

from react-codemirror.

NsNe avatar NsNe commented on May 18, 2024

@NsNe 可否给出实例我调试一哈?

https://codesandbox.io/s/competent-wilbur-eevp1

from react-codemirror.

jaywcjlove avatar jaywcjlove commented on May 18, 2024

@NsNe 删除下面配置选项即可,实例预览:https://codesandbox.io/s/react-codemirror-demo-20-o8ike

  const codeOptions = {
    theme: "monokai",
    mode: "text/x-sql",
    lineNumbers: true,
    autoRefresh: true,
    tabSize: 2,
    // 当前行背景高亮
    styleActiveLine: true,
    // 代码折叠
    lineWrapping: true,
    foldGutter: true,
-    gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
  };

from react-codemirror.

NsNe avatar NsNe commented on May 18, 2024

@NsNe 删除下面配置选项即可,实例预览:https://codesandbox.io/s/react-codemirror-demo-20-o8ike

  const codeOptions = {
    theme: "monokai",
    mode: "text/x-sql",
    lineNumbers: true,
    autoRefresh: true,
    tabSize: 2,
    // 当前行背景高亮
    styleActiveLine: true,
    // 代码折叠
    lineWrapping: true,
    foldGutter: true,
-    gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
  };

是的,最开始是这个问题,我去掉了fold相关的。然后还会偶现下面这样的问题。
image

那我先close了,后续如果遇到,再来反馈!

from react-codemirror.

jaywcjlove avatar jaywcjlove commented on May 18, 2024

@NsNe 如果你定义了 gutters 参数,你是要写对应的样式的。

from react-codemirror.

NsNe avatar NsNe commented on May 18, 2024

@NsNe 如果你定义了 gutters 参数,你是要写对应的样式的。
没有定义gutters参数,这个待我能完全复现再来反馈,感谢您的解答 💯

from react-codemirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.