@bifrostui/utils 1.4.0-beta.0 → 1.4.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -217,7 +217,7 @@ const triggerEventTransform = ({ trigger, click, show, hide }) => {
|
|
217
217
|
}
|
218
218
|
const option = {};
|
219
219
|
triggers.forEach((item) => {
|
220
|
-
const eventNames = TriggerEvent[item];
|
220
|
+
const eventNames = TriggerEvent[item] || [];
|
221
221
|
eventNames.forEach((eventName) => {
|
222
222
|
let cbk;
|
223
223
|
if (eventName === onMouseEnter) {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import type { TaroElement } from '@tarojs/runtime';
|
2
|
-
declare const getRootElement: (rootEle?: TaroElement | (() => TaroElement)) =>
|
2
|
+
declare const getRootElement: (rootEle?: TaroElement | (() => TaroElement)) => HTMLElement | TaroElement;
|
3
3
|
export default getRootElement;
|
@@ -192,7 +192,7 @@ const triggerEventTransform = ({ trigger, click, show, hide }) => {
|
|
192
192
|
}
|
193
193
|
const option = {};
|
194
194
|
triggers.forEach((item) => {
|
195
|
-
const eventNames = TriggerEvent[item];
|
195
|
+
const eventNames = TriggerEvent[item] || [];
|
196
196
|
eventNames.forEach((eventName) => {
|
197
197
|
let cbk;
|
198
198
|
if (eventName === onMouseEnter) {
|