提交 8c86ddce 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 更新引入switch组件

上级 7e379691
...@@ -47,6 +47,7 @@ import { ...@@ -47,6 +47,7 @@ import {
Progress, Progress,
Poptip, Poptip,
Alert, Alert,
Switch,
} from 'view-design'; } from 'view-design';
const components = [ const components = [
...@@ -93,6 +94,7 @@ const components = [ ...@@ -93,6 +94,7 @@ const components = [
Badge, Badge,
Progress, Progress,
Poptip, Poptip,
Switch,
]; ];
export const IViewRegister = { export const IViewRegister = {
...@@ -104,7 +106,7 @@ export const IViewRegister = { ...@@ -104,7 +106,7 @@ export const IViewRegister = {
Vue.prototype.$Spin = Spin; Vue.prototype.$Spin = Spin;
// 需要重命名的 // 需要重命名的
components.forEach(component => { components.forEach(component => {
if (component.name) { if (component?.name) {
if (component.name.startsWith('i')) { if (component.name.startsWith('i')) {
v.component(component.name, component); v.component(component.name, component);
} else { } else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册