alibaba / alibaba/lowcode-engine

物料样式被覆盖

Open
#2,688 0 comments 0 reactions 1 assignee Claimed by @hujiulong View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**

大佬好,我们开发了一些自定义组件,将生成的物料描述加入资产包文件assets.json后,发现antd组件的样式被覆盖了
antd的样式本应该是蓝色主题,选中文字的背景是蓝色的,如下图:
![image](https://github.com/alibaba/lowcode-engine/assets/75791730/57fa7258-0a17-4d0d-8da4-6200ba9dbb0f)
但由于我们自定义组件的样式是红色主题,导致antd组件中的文字被选中后成了红色背景,如下图:
![image](https://github.com/alibaba/lowcode-engine/assets/75791730/5d69cf0f-07ae-4a7d-a58b-3404a935cd92)

---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**
1.开发非蓝色主题的物料
2.将物料描述文件加入antd组件的demo中(在线地址为:https://lowcode-engine.cn/demo/demo-basic-antd/index.html)
3.使用antd组件,将文字选中,观察颜色

## **Expected behavior (required)** / **预期行为(必填,非常重要)**

避免不同的组件库之间相互干扰样式
---

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.