Giter Site home page Giter Site logo

Comments (6)

Issues-translate-bot avatar Issues-translate-bot commented on June 24, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: A draggable area appears in the TinyDivider divider, but it is actually impossible to drag elements to this area.

from tiny-engine.

chilingling avatar chilingling commented on June 24, 2024

问题原因:物料配置问题。
新版当物料配置为 isContainer: true 且 children 为空时,会默认渲染辅助拖拽的 placeholder。
解决方案:配置 isContainer: false

PS:如果需要配置 TinyDivider 分割线文字。应该增加 default 插槽。

{
  "schema": {
    "slots": {
      "default": {
        "label": {
          "zh_CN": "default"
        },
        "description": {
          "zh_CN": "自定义默认内容"
        }
      }
    }
  }
}

image

from tiny-engine.

Issues-translate-bot avatar Issues-translate-bot commented on June 24, 2024

Bot detected the issue body's language is not English, translate it automatically.


Cause of the problem: Material configuration problem.
In the new version, when the material configuration is isContainer: true and children is empty, the drag-assisted placeholder will be rendered by default.
Solution: configure isContainer: false.

PS: If you need to configure the TinyDivider dividing line text. The default slot should be added.

{
  "schema": {
    "slots": {
      "default": {
        "label": {
          "zh_CN": "default"
        },
        "description": {
          "zh_CN": "Customize default content"
        }
      }
    }
  }
}

image

from tiny-engine.

stwflyfox avatar stwflyfox commented on June 24, 2024

OK,修改物料配置,问题已解决。

from tiny-engine.

Issues-translate-bot avatar Issues-translate-bot commented on June 24, 2024

Bot detected the issue body's language is not English, translate it automatically.


OK, modify the material configuration and the problem has been solved.

from tiny-engine.

chilingling avatar chilingling commented on June 24, 2024

resolved.

from tiny-engine.

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.