| 14048 | |
| 14049 | //检查指令的命名值 不能为for 或者 for中的遍历的item |
| 14050 | function checkForAliasModel(el, value) { |
| 14051 | var _el = el; |
| 14052 | while (_el) { |
| 14053 | if (_el.for && _el.alias === value) { |
| 14054 | warn$2( |
| 14055 | "<" + (el.tag) + " v-model=\"" + value + "\">: " + |
| 14056 | "You are binding v-model directly to a v-for iteration alias. " + |
| 14057 | "This will not be able to modify the v-for source array because " + |
| 14058 | "writing to the alias is like modifying a function local variable. " + |
| 14059 | "Consider using an array of objects and use v-model on an object property instead." |
| 14060 | ); |
| 14061 | } |
| 14062 | _el = _el.parent; |
| 14063 | } |
| 14064 | } |
| 14065 | |
| 14066 | /* */ |
| 14067 | |