quark-core icon indicating copy to clipboard operation
quark-core copied to clipboard

customElements.get/define 未兜底

Open xiongying1012 opened this issue 7 months ago • 0 comments

if (!customElements.get(tag)) { customElements.define(tag, getWrapperClass(target, style)); } 不支持 customElements 的浏览器引入组件直接白屏阻塞了... 前提: 不想加载pollyfills 判断支持性之后再引入也可以解决,但不想失去按需的写法

xiongying1012 avatar Apr 28 '25 10:04 xiongying1012