|
@@ -81,9 +81,7 @@ export default function () {
|
|
|
initComponent() {
|
|
|
const that = this
|
|
|
const toggle = function (e) {
|
|
|
- // @ts-ignore
|
|
|
- const config = this.config
|
|
|
- const {readOnly, disabled} = config
|
|
|
+ const {readOnly, disabled} = that
|
|
|
if (readOnly || disabled) {
|
|
|
return
|
|
|
}
|
|
@@ -150,4 +148,4 @@ export default function () {
|
|
|
})
|
|
|
)
|
|
|
|
|
|
-}
|
|
|
+}
|