File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ export default {
106
106
// }
107
107
// },
108
108
computed: {
109
+ listeners () {
110
+ const { input , change , ... listeners } = this .$listeners // eslint-disable-line no-unused-vars
111
+ return listeners
112
+ }
109
113
// classesComputedProps mixin
110
114
// haveCustomSize () {
111
115
// return ['sm','lg'].includes(this.size)
Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ export default {
100
100
// }
101
101
// },
102
102
computed: {
103
+ listeners () {
104
+ const { input , change , ... listeners } = this .$listeners // eslint-disable-line no-unused-vars
105
+ return listeners
106
+ }
103
107
// classesComputedProps mixin
104
108
// haveCustomSize () {
105
109
// return ['sm','lg'].includes(this.size)
Original file line number Diff line number Diff line change @@ -2,26 +2,22 @@ import { makeUid } from '@coreui/utils/src'
2
2
3
3
export const sharedComputedProps = {
4
4
computed : {
5
- computedIsValid ( ) {
5
+ computedIsValid ( ) {
6
6
if ( typeof this . isValid === 'function' ) {
7
7
return this . isValid ( this . state )
8
8
}
9
9
return this . isValid
10
10
} ,
11
- validationClass ( ) {
11
+ validationClass ( ) {
12
12
if ( typeof this . computedIsValid === 'boolean' ) {
13
13
return this . computedIsValid ? 'is-valid' : 'is-invalid'
14
14
}
15
15
} ,
16
- safeId ( ) {
16
+ safeId ( ) {
17
17
if ( this . id || this . $attrs . id ) {
18
18
return this . id || this . $attrs . id
19
19
}
20
20
return makeUid ( )
21
- } ,
22
- listeners ( ) {
23
- const { input, change, ...listeners } = this . $listeners // eslint-disable-line no-unused-vars
24
- return listeners
25
21
}
26
22
}
27
23
}
You can’t perform that action at this time.
0 commit comments