12345678910111213141516171819202122232425 |
- import { PageListController } from "@queenjs/controllers";
- import { ModuleRoot } from "queenjs";
- import actions from "./actions";
- import { https } from "./http";
- import { stores } from "./stores";
- export default class ListModule extends ModuleRoot {
- config = this.setConfig({
- httpConfig: {
- baseURL: "./",
- },
- });
- store = this.createStore([stores]);
- actions = this.createActions(actions);
- https = this.createHttps([https]);
- controls = {
- backendList: new PageListController(this.config.httpConfig),
- };
- onReady() {
- this.controls.backendList.setCrudPrefix("/antique");
- this.actions.initAnimateAttr();
- }
- }
- export const { useList, initList, setList } = ListModule.hook("List");
|