vue-tiny-model.es.js
/**
 * turn a normal class to reactive class.
 * all defined fields without accessor (getter/setter)  will be auto tracking.
 * for getter , you can use `@getter` for it;
 * @param constructor
 */
turn a normal class to reactive class.
all defined fields without accessor (getter/setter)  will be auto tracking.
for getter , you can use `@getter` for it;
@param constructor
turn a normal class to reactive class . all defined fields without accessor ( getter / setter ) will be auto tracking . for getter you can use ` @getter ` for it ; @param constructor
function model(constructor) {
    const Base = function (props) {
        const proxy = instance(constructor, props);
        return proxy;
    };
    Base.prototype.constructor = constructor;
    return Base;
}
function model ( constructor ) { const Base = function ( props ) { const proxy = instance ( constructor , props ) ; return proxy ; } ; Base . prototype . constructor = constructor ; return Base ; }
turn a normal class to reactive class.
turn a normal class to reactive class .