feat(NumberKeyboard): add get-container prop (#6870)

This commit is contained in:
neverland
2020-07-25 10:47:47 +08:00
committed by GitHub
parent 08a554c5a2
commit 2328983afa
4 changed files with 5 additions and 1 deletions
+2
View File
@@ -1,5 +1,6 @@
import { createNamespace } from '../utils';
import { stopPropagation } from '../utils/dom/event';
import { PortalMixin } from '../mixins/portal';
import { BindEventMixin } from '../mixins/bind-event';
import Key from './Key';
@@ -7,6 +8,7 @@ const [createComponent, bem] = createNamespace('number-keyboard');
export default createComponent({
mixins: [
PortalMixin(),
BindEventMixin(function (bind) {
if (this.hideOnClickOutside) {
bind(document.body, 'touchstart', this.onBlur);