packages/okam-core/src/helper/factory.js
function initComponentData(instance, options, isPage) {
    let data = instance.data;
    if (isFunction(data)) {
        instance.data = instance.data();
    }

    instance.$init && instance.$init(isPage, options);
}
function initComponentData(instance, options, isPage) {
    let data = instance.data;
    if (isFunction(data)) {
        instance.data = instance.data();
    }

    instance.$init && instance.$init(isPage, options);
}
Initialize the component data

@inner
@param {Object} instance the instance to init
@param {?Object} options the component init extra options information
@param {boolean} isPage whether is page component