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
function initComponentData(instance, options, isPage) {
    let data = instance.data;
    if (isFunction(data)) {
        instance.data = instance.data();
    }

    instance.$init && instance.$init(isPage, options);
}