Lines Matching refs:value
21 * 4. compile events, the value of event Cannot be enclosed in double quotes;
84 match: function(key, value) {
87 action: function(staticStyle, key, value) {
88 staticStyle += `'${key}' : ${JSON.stringify(value)},`;
93 match: function(key, value) {
96 action: function(staticStyle, key, value) {
97 if (value === -1) {
98 value = 'infinite';
100 staticStyle += `'${key}' : ${JSON.stringify(value)},`;
105 match: function(key, value) {
108 action: function(staticStyle, key, value) {
109 staticStyle += `'${key}' : ${checkType(value.replace(REGXP_QUOTES, ''))},`;
114 match: function(key, value) {
117 action: function(staticStyle, key, value) {
118 staticStyle += `'${key}' : ${checkType(value)},`;
135 * @param {Object} value template object compiled ast.
138 function transformTemplate(value) {
139 const ast = Function(`return ${value}`)();
178 * Compile node all key-value data.
212 const value = checkType(classList);
215 classStr += `'${DYNAMIC_CLASS}' : ${formatForFunc(value)},`;
217 classStr += `'${STATIC_CLASS}' : ${value},`;
233 const value = props[key];
235 if (isFunction(value) && !REGXP_LANGUAGE.test(value)) {
236 dynamicStyle += `'${key}' : ${formatForFunc(value)},`;
239 if (styleRules[i].match(key, value)) {
240 staticStyle = styleRules[i].action(staticStyle, key, value);
258 * @param {*} value Value to be formatted.
259 * @return {*} Formatted value.
261 function checkType(value) {
262 if (isFunction(value) || isUndefined(value)) {
263 return formatForFunc(value);
265 } else if (isObject(value)) {
266 return transformProps(value);
268 } else if (!isNaN(Number(value))) {
269 return Number(value);
270 } else if (REGEXP_NUMBER_PX.test(value)) {
271 return parseInt(value.replace(REGEXP_UNIT, ''), 10);
273 } else if (REGEXP_COLOR.test(value)) {
274 return parseInt(value.slice(1), 16);
276 } else if (value === 'true') {
278 } else if (value === 'false') {
281 return JSON.stringify(value);
287 * apart from The case where key is "value".
289 * @return {String} Formatted value.
293 const VALUE = 'value';
296 // value is used to display, except for method types, no conversion is required
322 * such as: onclick = "test(value)" => "click": function(evt){this.test(this.value, evt)}
340 * @param {Object} value string type of events to be formatted.
343 function formatForString(value) {
350 if (itRE.test(value)) {
355 const res = forCompiled ? value : '_vm.' + value;
367 parameterArray.push(node.repeat.value ? node.repeat.value : '$item');
393 * there will be no value in parameterArray
394 * @param {Object} value Value of function to be formatted.
397 function formatForFunc(value) {
398 let func = value.toString();
405 * such as: {"value": function () {return this.$item.name}} => {"value": function () {return $item.name}}
418 * @param {String} i18nExpression match the value of $t in the internationalization method.
441 * @param {Array} i18nExpressions match the value of $t in the internationalization method.
443 * @param {String} funcExpression return value in the internationalization method.
476 // For the last $t, replace the func value
522 * @param {String} value string for globalization method.
525 function isUseForInstrucParam(value) {
531 if (itRE.test(value)) {