We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dev_ui中的代码编辑器代码展示使用的是highlight.js,但是通过了父级类dp-md-view 强行覆盖了很多样式。希望可以支持高亮颜色可配置不受到写死的样式影响。
建议方案:将dp-md-view类根据参数赋予,配置可选参数,如果传入参数则代表用户使用默认的highlight或者自定义的highlight的样式。不被dev_ui中写死的颜色影响。
preview-style-class: default | string default的值取 'dp-md-view'
default | string
The text was updated successfully, but these errors were encountered:
本周内会提交PR
Sorry, something went wrong.
feat: 代码编辑器中增加新属性previewStyleClass用于实现自定义高亮代码主题。DevCloudFE#1861
87eb570
feat: 优化官方文档示例。DevCloudFE#1861
9986669
单纯的md可以通过 .myclass.dp-md-view覆盖。 如果是要覆盖编辑器中的预览样式可以通过.myclass .dp-md-view来覆盖。其实还是想覆盖的时候直接把.dp-md-view干掉的。算了 先留着这个类吧。 其实准确来说是 dp-md-view要做一个拆分,把颜色样式和其他地下的子组件样式拆成两个类。传入class的时候干掉与颜色有关的类。
目前暂时先通过选择器优先级的方式覆盖样式解决
No branches or pull requests
What problem does this feature solve
dev_ui中的代码编辑器代码展示使用的是highlight.js,但是通过了父级类dp-md-view 强行覆盖了很多样式。希望可以支持高亮颜色可配置不受到写死的样式影响。
建议方案:将dp-md-view类根据参数赋予,配置可选参数,如果传入参数则代表用户使用默认的highlight或者自定义的highlight的样式。不被dev_ui中写死的颜色影响。
What does the proposed API look like
preview-style-class:
default | string
default的值取 'dp-md-view'
The text was updated successfully, but these errors were encountered: