24 lines
556 B
JavaScript
24 lines
556 B
JavaScript
import {
|
|
__name
|
|
} from "./chunk-SJ5HZDIS.js";
|
|
|
|
// ../node_modules/.pnpm/vue-element-plus-x@1.3.7_ro_47c535807434a0797b7704af258a7bca/node_modules/vue-element-plus-x/dist/chunk-AACKK3MU-DH_MKxca.js
|
|
var _a;
|
|
var ImperativeState = (_a = class {
|
|
/**
|
|
* @param init - Function that creates the default state.
|
|
*/
|
|
constructor(init) {
|
|
this.init = init;
|
|
this.records = this.init();
|
|
}
|
|
reset() {
|
|
this.records = this.init();
|
|
}
|
|
}, __name(_a, "ImperativeState"), _a);
|
|
|
|
export {
|
|
ImperativeState
|
|
};
|
|
//# sourceMappingURL=chunk-QW5PCTTJ.js.map
|