mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
feat: withInstall (#275)
This commit is contained in:
@@ -1,28 +1,16 @@
|
||||
import { App } from "vue";
|
||||
import { withInstall } from "/@/utils";
|
||||
import control from "./src/Control.vue";
|
||||
import nodePanel from "./src/NodePanel.vue";
|
||||
import dataDialog from "./src/DataDialog.vue";
|
||||
|
||||
/** LogicFlow流程图-控制面板 */
|
||||
const Control = Object.assign(control, {
|
||||
install(app: App) {
|
||||
app.component(control.name, control);
|
||||
}
|
||||
});
|
||||
const Control = withInstall(control);
|
||||
|
||||
/** LogicFlow流程图-拖拽面板 */
|
||||
const NodePanel = Object.assign(nodePanel, {
|
||||
install(app: App) {
|
||||
app.component(nodePanel.name, nodePanel);
|
||||
}
|
||||
});
|
||||
const NodePanel = withInstall(nodePanel);
|
||||
|
||||
/** LogicFlow流程图-查看数据 */
|
||||
const DataDialog = Object.assign(dataDialog, {
|
||||
install(app: App) {
|
||||
app.component(dataDialog.name, dataDialog);
|
||||
}
|
||||
});
|
||||
const DataDialog = withInstall(dataDialog);
|
||||
|
||||
export { Control, NodePanel, DataDialog };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user