mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-19 02:12:50 +00:00
31 lines
648 B
TypeScript
31 lines
648 B
TypeScript
import { type App } from "vue";
|
|
import { useComponent } from "./components";
|
|
import { useProvide } from "./provide";
|
|
import global from "./utils/global";
|
|
import "./static/index.scss";
|
|
|
|
const Crud = {
|
|
install(app: App, options?: any) {
|
|
global.set("__CrudApp__", app);
|
|
|
|
// 穿透值
|
|
useProvide(app, options);
|
|
|
|
// 设置组件
|
|
useComponent(app);
|
|
|
|
return {
|
|
name: "cl-crud"
|
|
};
|
|
}
|
|
};
|
|
|
|
export { Crud };
|
|
|
|
export * from "./emitter";
|
|
export * from "./hooks";
|
|
export * from "./locale";
|
|
export { registerFormHook } from "./utils/form-hook";
|
|
export { renderNode } from "./utils/vnode";
|
|
export { ContextMenu } from "./components/context-menu";
|