fix: 一些基本功能
This commit is contained in:
@@ -36,6 +36,8 @@ import {
|
||||
Upload,
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { registerComponent } from '#/components/form/component-map';
|
||||
|
||||
const withDefaultPlaceholder = <T extends Component>(
|
||||
component: T,
|
||||
type: 'input' | 'select',
|
||||
@@ -149,6 +151,8 @@ async function initComponentAdapter() {
|
||||
Upload,
|
||||
};
|
||||
|
||||
// 自动注册自定义组件
|
||||
registerComponent(components);
|
||||
// 将组件注册到全局共享状态中
|
||||
globalShareState.setComponents(components);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user