packages/weex-vue-framework/factory.js
function updateComponentData (
  componentId,
  newData,
  callback
) {
  if (!document || !document.taskCenter) {
    warn("Can't find available \"document\" or \"taskCenter\".");
    return
  }
  if (typeof document.taskCenter.updateData === 'function') {
    return document.taskCenter.updateData(componentId, newData, callback)
  }
  warn(("Failed to update component data (" + componentId + ")."));
}
function updateComponentData (
  componentId,
  newData,
  callback
) {
  if (!document || !document.taskCenter) {
    warn("Can't find available \"document\" or \"taskCenter\".");
    return
  }
  if (typeof document.taskCenter.updateData === 'function') {
    return document.taskCenter.updateData(componentId, newData, callback)
  }
  warn(("Failed to update component data (" + componentId + ")."));
}
function updateComponentData ( componentId , newData , callback ) { if ( ! document || ! document . taskCenter ) { warn ( "Can't find available \"document\" or \"taskCenter\"." ) ; return } if ( typeof document . taskCenter . updateData === 'function' ) { return document . taskCenter . updateData ( componentId , newData , callback ) } warn ( ( "Failed to update component data (" + componentId + ")." ) ) ; }
Updates the state of the component to weex native render engine.
Updates the state of the component to weex native render engine .