packages/okam-core/src/extend/ref/quick/index.js
function initRefs() {
    this.$refs = {};

    let refs = this.$rawRefData;
    if (typeof refs === 'function') {
        refs = refs();
    }

    if (!refs) {
        return;
    }

    let result = {};
    Object.keys(refs).forEach(id => {
        result[id] = {
            get: queryComponentInstance.bind(null, this, refs[id]),
            enumerable: true
        };
    });

    Object.defineProperties(this.$refs, result);
}
function initRefs() {
    this.$refs = {};

    let refs = this.$rawRefData;
    if (typeof refs === 'function') {
        refs = refs();
    }

    if (!refs) {
        return;
    }

    let result = {};
    Object.keys(refs).forEach(id => {
        result[id] = {
            get: queryComponentInstance.bind(null, this, refs[id]),
            enumerable: true
        };
    });

    Object.defineProperties(this.$refs, result);
}
Initialize the `$refs` value

@inner