Element-Plus-X
Element-Plus-X copied to clipboard
MarkdownRenderer 的样式问题
问题描述
按照官网提供的引入,这里一直报错
复现步骤
import { MarkdownRenderer } from 'x-markdown-vue' import 'x-markdown-vue/style'
找不到模块“x-markdown-vue/style”或其相应的类型声明。
期望行为
不报错
实际行为
报错
组件库版本
"vue-element-plus-x": "^2.0.3",
环境信息
No response
截图或演示
No response
这玩意写到css里面去
当前包的 exports["./style"] 只指向 dist/style.css,没有对应 types;所以运行时能加载,部分 TypeScript/moduleResolution 配置仍会对 import "x-markdown-vue/style" 报找不到声明。写进 CSS 是 workaround,不代表导出没问题。这条先保留,应该在 x-markdown-vue 的 style export/type declaration 处理。