Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.

Commit 1548eac

Browse files
committed
release v2.0.0-alpha.11
1 parent efd72b0 commit 1548eac

5 files changed

+19
-9
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="2.0.0-alpha.11"></a>
2+
# [2.0.0-alpha.11](https://github.com/vuejs/vue-validator/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2016-01-14)
3+
4+
5+
### Features
6+
7+
* **validate:** support field attribute ([4fbaf3a](https://github.com/vuejs/vue-validator/commit/4fbaf3a)), closes [#46](https://github.com/vuejs/vue-validator/issues/46) [#129](https://github.com/vuejs/vue-validator/issues/129)
8+
9+
10+
111
<a name="2.0.0-alpha.10"></a>
212
# [2.0.0-alpha.10](https://github.com/vuejs/vue-validator/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2016-01-13)
313

dist/vue-validator.common.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-validator v2.0.0-alpha.10
2+
* vue-validator v2.0.0-alpha.11
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -389,7 +389,7 @@ function Validate (Vue) {
389389

390390
Vue.directive('validate', {
391391
priority: vModel.priority + 1,
392-
params: ['group'],
392+
params: ['group', 'field'],
393393

394394
bind: function bind() {
395395
var vm = this.vm;
@@ -402,7 +402,7 @@ function Validate (Vue) {
402402

403403
var validator = this.validator = this.vm._validatorMaps[validatorName];
404404

405-
var field = this.field = _.camelize(this.arg);
405+
var field = this.field = _.camelize(this.arg ? this.arg : this.params.field);
406406
var validation = this.validation = validator.manageValidation(field, vm, this.el);
407407

408408
if (this.params.group) {

dist/vue-validator.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-validator v2.0.0-alpha.10
2+
* vue-validator v2.0.0-alpha.11
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -393,7 +393,7 @@
393393

394394
Vue.directive('validate', {
395395
priority: vModel.priority + 1,
396-
params: ['group'],
396+
params: ['group', 'field'],
397397

398398
bind: function bind() {
399399
var vm = this.vm;
@@ -406,7 +406,7 @@
406406

407407
var validator = this.validator = this.vm._validatorMaps[validatorName];
408408

409-
var field = this.field = _.camelize(this.arg);
409+
var field = this.field = _.camelize(this.arg ? this.arg : this.params.field);
410410
var validation = this.validation = validator.manageValidation(field, vm, this.el);
411411

412412
if (this.params.group) {

dist/vue-validator.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-validator",
33
"description": "Validator component for Vue.js",
4-
"version": "2.0.0-alpha.10",
4+
"version": "2.0.0-alpha.11",
55
"author": {
66
"name": "kazuya kawaguchi",
77
"email": "[email protected]"

0 commit comments

Comments
 (0)