jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/es/_util/assert-component2.js
2024-11-15 11:51:28 +08:00

14 lines
556 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export function assertComponent2() {
if (typeof my === 'undefined') {
return;
}
var component2 = my.canIUse('component2');
if (!component2) {
console.log('项目未开启 component2无法使用 Ant Design Mini 组件库');
console.log('请在 IDE 中的 详情 > 项目配置 中,勾选 启用 component2 编译 。');
console.log('参考文档 https://mini.ant.design/guide/migration-v2');
throw new Error('Ant Design Mini 组件库需要依赖 component2 特性');
}
}
assertComponent2();