demo/bundle.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, vm) {
              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 if (process.env.NODE_ENV !== 'production') {
                    warn('props must be strings when using array syntax.');
                  }
                }
              } else if (isPlainObject(props)) {
                for (var key in props) {
                  val = props[key];
                  name = camelize(key);
                  res[name] = isPlainObject(val)
                    ? val
                    : { type: val };
                }
              } else if (process.env.NODE_ENV !== 'production') {
                warn(
                  "Invalid value for option \"props\": expected an Array or an Object, " +
                  "but got " + (toRawType(props)) + ".",
                  vm
                );
              }
              options.props = res;
            }
function normalizeProps ( options , vm ) { 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 if ( process . env . NODE_ENV !== 'production' ) { warn ( 'props must be strings when using array syntax.' ) ; } } } else if ( isPlainObject ( props ) ) { for ( var key in props ) { val = props [ key ] ; name = camelize ( key ) ; res [ name ] = isPlainObject ( val ) ? val : { type : val } ; } } else if ( process . env . NODE_ENV !== 'production' ) { warn ( "Invalid value for option \"props\": expected an Array or an Object, " + "but got " + ( toRawType ( props ) ) + "." , vm ) ; } 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 .