vue-ssr/dist/bundle-client.js
/**
   * Cross-platform code generation for component v-model
   */
Cross-platform code generation for component v-model
Cross - platform code generation for component v - model
function genComponentModel(el, value, modifiers) {
    var ref = modifiers || {};
    var number = ref.number;
    var trim = ref.trim;
    var baseValueExpression = '$$v';
    var valueExpression = baseValueExpression;
    if (trim) {
      valueExpression = "(typeof " + baseValueExpression + " === 'string'" + "? " + baseValueExpression + ".trim()" + ": " + baseValueExpression + ")";
    }
    if (number) {
      valueExpression = "_n(" + valueExpression + ")";
    }
    var assignment = genAssignmentCode(value, valueExpression);
    el.model = {
      value: "(" + value + ")",
      expression: JSON.stringify(value),
      callback: "function (" + baseValueExpression + ") {" + assignment + "}"
    };
  }
function genComponentModel ( el , value , modifiers ) { var ref = modifiers || { } ; var number = ref . number ; var trim = ref . trim ; var baseValueExpression = '$$v' ; var valueExpression = baseValueExpression ; if ( trim ) { valueExpression = "(typeof " + baseValueExpression + " === 'string'" + "? " + baseValueExpression + ".trim()" + ": " + baseValueExpression + ")" ; } if ( number ) { valueExpression = "_n(" + valueExpression + ")" ; } var assignment = genAssignmentCode ( value , valueExpression ) ; el . model = { value : "(" + value + ")" , expression : JSON . stringify ( value ) , callback : "function (" + baseValueExpression + ") {" + assignment + "}" } ; }
Cross-platform code generation for component v-model
Cross - platform code generation for component v - model