|
|
|
@ -1,11 +1,6 @@
|
|
|
|
|
// export * from "../../typescript/core/decorator/decorator.ts";
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
shortcut as biShortcut, |
|
|
|
|
provider as biProvider, |
|
|
|
|
model as biModel, |
|
|
|
|
Models |
|
|
|
|
} from "./5.inject"; |
|
|
|
|
import { shortcut as biShortcut, provider as biProvider, model as biModel, Models } from "./5.inject"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 注册widget |
|
|
|
@ -39,7 +34,7 @@ export function model() {
|
|
|
|
|
* @param Model model类 |
|
|
|
|
* @param opts 额外条件 |
|
|
|
|
*/ |
|
|
|
|
export function store(Model, opts) { |
|
|
|
|
export function store(Model, opts = {}) { |
|
|
|
|
return function classDecorator(constructor) { |
|
|
|
|
return class extends constructor { |
|
|
|
|
_store() { |
|
|
|
|