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

Commit 0b152bc

Browse files
committed
💥 breaking: not support v-model integration for v3
1 parent 5324a56 commit 0b152bc

File tree

15 files changed

+2
-1377
lines changed

15 files changed

+2
-1377
lines changed

examples/model/checkbox/index.html

Lines changed: 0 additions & 70 deletions
This file was deleted.

examples/model/component/index.html

Lines changed: 0 additions & 95 deletions
This file was deleted.

examples/model/radio/index.html

Lines changed: 0 additions & 62 deletions
This file was deleted.

examples/model/select/index.html

Lines changed: 0 additions & 57 deletions
This file was deleted.

examples/model/text/index.html

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/components/validity/lifecycles.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ export default function (Vue: GlobalAPI): Object {
5050
// for event control flags
5151
this._modified = false
5252

53-
// for v-model integration flag
54-
this._modelIntegrationMode = 'NONE'
55-
5653
// watch validation raw results
5754
this._watchValidationRawResults()
5855

@@ -96,26 +93,10 @@ export default function (Vue: GlobalAPI): Object {
9693
toggleClasses(this.$el, this.classes.pristine, addClass)
9794
}
9895

99-
function updated () {
100-
if (this._modelIntegrationMode === 'MODEL_AND_USER') {
101-
const maybeChangeModel: ?boolean = this._elementable.modelValueEqual(this._vnode)
102-
if (!this._applyWithUserHandler && maybeChangeModel !== null && !maybeChangeModel) {
103-
this._elementable.fireInputableEvent()
104-
}
105-
delete this._applyWithUserHandler
106-
} else if (this._modelIntegrationMode === 'MODEL') {
107-
const maybeChangeModel: ?boolean = this._elementable.modelValueEqual(this._vnode)
108-
if (maybeChangeModel !== null && !maybeChangeModel) {
109-
this._elementable.fireInputableEvent()
110-
}
111-
}
112-
}
113-
11496
return {
11597
created,
11698
destroyed,
117-
mounted,
118-
updated
99+
mounted
119100
}
120101
}
121102

0 commit comments

Comments
 (0)