dist/wx/common/vendor.js
/**
 * Ensure all props option syntax are normalized into the
 * Object-based format.
 */
Ensure all props option syntax are normalized into the
Object-based format.
Ensure all props option syntax are normalized into the Object - based format .
function normalizeProps (options) {
  var props = options.props;
  if (!props) { return }
  var res = {};
  var i, val, name;
  if (Array.isArray(props)) {
    i = props.length;
    while (i--) {
      val = props[i];
      if (typeof val === 'string') {
        name = camelize(val);
        res[name] = { type: null };
      } else {}
    }
  } else if (isPlainObject(props)) {
    for (var key in props) {
      val = props[key];
      name = camelize(key);
      res[name] = isPlainObject(val)
        ? val
        : { type: val };
    }
  }
  options.props = res;
}
function normalizeProps ( options ) { var props = options . props ; if ( ! props ) { return } var res = { } ; var i , val , name ; if ( Array . isArray ( props ) ) { i = props . length ; while ( i -- ) { val = props [ i ] ; if ( typeof val === 'string' ) { name = camelize ( val ) ; res [ name ] = { type : null } ; } else { } } } else if ( isPlainObject ( props ) ) { for ( var key in props ) { val = props [ key ] ; name = camelize ( key ) ; res [ name ] = isPlainObject ( val ) ? val : { type : val } ; } } options . props = res ; }
Ensure all props option syntax are normalized into the
 Object-based format.
Ensure all props option syntax are normalized into the Object - based format .