|
|
@@ -228,10 +228,13 @@ class DrawerComponent {
|
|
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
|
this.overlayElement.classList.add(overlayClassOption.toString())
|
|
|
}
|
|
|
- this.overlayElement.addEventListener("click", (e) => {
|
|
|
- e.preventDefault()
|
|
|
- this._hide()
|
|
|
- })
|
|
|
+ //点击Drawer Overlay时防止Drawer关闭
|
|
|
+ if (!this._getOption("permanent")) {
|
|
|
+ this.overlayElement.addEventListener("click", (e) => {
|
|
|
+ e.preventDefault()
|
|
|
+ this._hide()
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|