@tplc/business
Version:
118 lines (117 loc) • 2.68 kB
TypeScript
import { PopupType } from '@tplc/wot/types/components/wd-popup/types'
import { StyleValue } from 'vue'
export type LcbActionViewProps = {
/** 跳转路径 */
jumpUrl?: string
urlParams?: string
customClass?: string
customStyle?: StyleValue
renderMode?: 'view' | 'button' | 'noClick'
shareInfo?: {
title?: string
path?: string
imageUrl?: string
imgUrl?: string
query?: object
shareParams?: string
}
autoJumpSecond?: number
/** 弹窗位置 */
position?: PopupType
jumpInterceptor?: (action: LcbActionViewProps) => boolean
/** 弹窗文案 */
content?: string
/** 弹窗标题 */
defaultSelectedDates?: number[]
title?: string
requestParam?: Record<string, any>
requestInfo?: {
requestUrl: string
requestParams: Record<string, any>
/** 请求之后刷新schemapage */
refreshSchemaPage?: boolean
/** 绑定的表单 keys,请求时会将对应表单数据合并到 requestParams */
formKeys?: string[]
}
submitRequestInfo?: {
requestUrl: string
requestParams: Record<string, any>
}
} & (
| {
/**
* 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
* 13: 退出登录 14: 小程序弹框 16: 小程序锚点 17 网络请求 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话
* 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
* 105 查看地图 106 查看地图 141 二维码 241 返回并刷新上个页面 142 模板消息
* 107 图片预览
* 143 下载图片
*/
jumpType?:
| 1
| 2
| 10
| 11
| 12
| 13
| 14
| 17
| 21
| 22
| 23
| 24
| 25
| 26
| 88
| 101
| 102
| 103
| 104
| 241
| 143
| 146
| 147
| 148
| 149
/** 小程序appid */
jumpAppid?: string
}
| {
jumpType: 30
phoneNumber?: string
}
| {
jumpType: 16
offsetTopNavbar?: boolean
}
| {
jumpType: 144
}
| {
jumpType: 105
addressInfo?: {
address: string
latitude: number
longitude: number
name: string
}
}
| {
jumpType: 106
}
| {
jumpType: 141
}
| {
jumpType: 107
content: {
imgUrl: string
typeName: string
}[]
}
| {
jumpType: 142
events: string
}
)