@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
7
7
var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ;
8
8
9
+ var _watch ;
10
+
9
11
var _utils = require ( './utils' ) ;
10
12
11
13
var _utils2 = _interopRequireDefault ( _utils ) ;
@@ -260,20 +262,16 @@ exports.default = {
260
262
return this . multiple ? this . searchable ? '' : this . placeholder : this . internalValue [ 0 ] ? this . getOptionLabel ( this . internalValue [ 0 ] ) : this . searchable ? '' : this . placeholder ;
261
263
}
262
264
} ,
263
- watch : {
264
- 'internalValue' : function internalValue ( newVal , oldVal ) {
265
- if ( this . resetAfter && this . internalValue . length ) {
266
- this . search = '' ;
267
- this . internalValue = [ ] ;
268
- }
269
- } ,
270
- 'search' : function search ( ) {
271
- this . $emit ( 'search-change' , this . search , this . id ) ;
272
- } ,
273
- 'value' : function value ( _value ) {
274
- this . internalValue = this . getInternalValue ( _value ) ;
265
+ watch : ( _watch = { } , _defineProperty ( _watch , 'internalValue' , function internalValue ( newVal , oldVal ) {
266
+ if ( this . resetAfter && this . internalValue . length ) {
267
+ this . search = '' ;
268
+ this . internalValue = [ ] ;
275
269
}
276
- } ,
270
+ } ) , _defineProperty ( _watch , 'search' , function search ( ) {
271
+ this . $emit ( 'search-change' , this . search , this . id ) ;
272
+ } ) , _defineProperty ( _watch , 'value' , function value ( _value ) {
273
+ this . internalValue = this . getInternalValue ( _value ) ;
274
+ } ) , _watch ) ,
277
275
methods : {
278
276
getValue : function getValue ( ) {
279
277
return this . multiple ? ( 0 , _utils2 . default ) ( this . internalValue ) : this . internalValue . length === 0 ? null : ( 0 , _utils2 . default ) ( this . internalValue [ 0 ] ) ;
0 commit comments