Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite项目展示amis的diff-editor组件时,不会显示差异样式 #11375

Open
zbl400 opened this issue Dec 16, 2024 · 0 comments
Open

vite项目展示amis的diff-editor组件时,不会显示差异样式 #11375

zbl400 opened this issue Dec 16, 2024 · 0 comments

Comments

@zbl400
Copy link

zbl400 commented Dec 16, 2024

描述问题:

使用vite创建的项目,用到diff-editor组件,但是不会显示差异样式

截图或视频:

image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    利用 vite, npm 使用 amis
    vite配置中已经使用默认 vite-plugin-monaco-editor 配置。

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.10.0, 已经是最新

  3. 粘贴有问题的完整 amis schema 代码:

{
    "type": "page",
    "title": "aaa",
    "body": [
      {
        "type": "diff-editor",
        "label": "diff编辑器",
        "name": "diff",
        "id": "u:3d3004153260",
        "language": "javascript",
        "diffValue": "aa",
        "value": "bb"
      }
    ],
    "id": "u:4de9f83dc95f",
    "asideResizor": false,
    "pullRefresh": {
      "disabled": true
    }
  }
  1. 操作步骤
    参见(https://codesandbox.io/p/devbox/vite-amis-diff-editor-crhzzd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant