123456789101112131415161718192021222324252627 |
- import { PageListController } from "@queenjs/controllers";
- import { ModuleRoot } from "queenjs";
- import { designAction } from "./module/actions/design";
- import { initAction } from "./module/actions/init";
- import { sourceAction } from "./module/actions/source";
- import { helper } from "./module/helper";
- import { https } from "./module/http";
- import { sourceStore } from "./module/stores/source";
- export class CollocationModule extends ModuleRoot {
- config = this.setConfig({});
- https = this.createHttps([https]);
- store = this.createStore(sourceStore);
- helper = this.createHelper(helper);
- actions = this.createActions([initAction, sourceAction, designAction]);
- controls = {
- listCtrl: new PageListController(this.config?.httpConfig),
- };
- onReady() {
- this.controls.listCtrl.setCrudPrefix("/match/style");
- }
- }
- export const { initCollocation, useCollocation } =
- CollocationModule.hook("Collocation");
|