export function fmt(value: unknown) {
  if (value === undefined || value === null || value === "") return "--";
  return String(value);
}

export function statusText(status?: number) {
  return status === 1 ? "禁用" : "开启";
}

export function statusClass(status?: number) {
  return status === 1 ? "tag-off" : "tag-on";
}

export function formTypeText(type?: number) {
  if (type === 20) return "业务表单";
  return "流程表单";
}

export function toast(title: string) {
  uni.showToast({ title, icon: "none" });
}
