@bifrostui/utils 1.4.0-beta.0 → 1.4.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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) {
|