//#region src/components/pisellLookup/utils/trigger.ts
/**
* 触发器相关工具函数
*/
/**
* 根据触发器类型获取默认的展示类型
* @param triggerType 触发器类型
* @param hasTrigger 是否有自定义触发器
* @returns 默认的展示类型
*/
const getDefaultDisplayType = (triggerType, hasTrigger) => {
	if (hasTrigger) return "modal";
	if (triggerType === "input") return "inline";
	if (triggerType === "button" || triggerType === "icon" || triggerType === "text") return "modal";
	return "detached";
};
/**
* 判断是否为输入框触发器
* @param triggerType 触发器类型
* @returns 是否为输入框触发器
*/
const isInputTrigger = (triggerType) => {
	return triggerType === "input";
};
//#endregion
export { getDefaultDisplayType, isInputTrigger };
