@uni-helper/uni-ui-types
Version:
为 uni-ui 组件提供 TypeScript 类型
2,142 lines (2,140 loc) • 483 kB
text/typescript
import { DefineComponent, StyleValue } from "vue";
//#region src/uni-badge.d.ts
/**
* 角标颜色类型
*
* default 灰色
*
* primary 蓝色
*
* success 绿色
*
* warning 黄色
*
* error 红色
*/
type _UniBadgeType = "default" | "primary" | "success" | "warning" | "error";
/**
* 角标大小
*
* normal 正常
*
* small 小
*/
type _UniBadgeSize = "normal" | "small";
/** 自定义样式 */
type _UniBadgeCustomStyle = Record<string, any>;
/**
* 开启绝对定位,角标将定位到其包裹的标签的四个角上
*
* rightTop 右上角
*
* rightBottom 右下角
*
* leftBottom 左下角
*
* leftTop 左上角
*/
type _UniBadgeAbsolute = "rightTop" | "rightBottom" | "leftBottom" | "leftTop";
/** 点击事件 */
type _UniBadgeOnClick = () => void;
/** 数字角标属性 */
type _UniBadgeProps = Partial<{
/** 角标内容 */
text: string;
/**
* 角标颜色类型
*
* default 灰色
*
* primary 蓝色
*
* success 绿色
*
* warning 黄色
*
* error 红色
*
* 默认为 error
*/
type: _UniBadgeType;
/**
* 角标大小
*
* normal 正常
*
* small 小
*
* 默认为 normal
*/
size: _UniBadgeSize;
/**
* 是否只展示一个点不展示内容
*
* 默认为 false
*/
isDot: boolean;
/**
* 展示封顶的数字值,超过后显示 封顶数字+
*
* 默认为 99
*/
maxNum: number;
/** 自定义样式 */
customStyle: _UniBadgeCustomStyle;
/**
* 是否无需背景颜色
*
* true 背景颜色将变为文字的字体颜色
*
* false 正常显示
*
* 默认为 false
*/
inverted: boolean;
/**
* 开启绝对定位,角标将定位到其包裹的标签的四个角上
*
* rightTop 右上角
*
* rightBottom 右下角
*
* leftBottom 左下角
*
* leftTop 左上角
*/
absolute: _UniBadgeAbsolute;
/**
* 距定位角中心点的偏移量
*
* -10, -10 表示向 absolute 指定的方向偏移 10px
*
* 10, 10 表示向 absolute 指定的反方向偏移 10px
*
* 与 absolute 一一对应
*
* 存在 absolute 属性时有效
*
* 单位为 px
*
* 默认为 [0, 0]
*/
offset: [number, number];
/** 点击事件 */
onClick: _UniBadgeOnClick;
}>;
/**
* 数字角标
*
* 一般和其它控件(列表、九宫格等)配合使用,用于进行数量提示,默认为实心灰色背景
*/
type _UniBadge = DefineComponent<_UniBadgeProps>;
/** 数字角标实例 */
type _UniBadgeInstance = InstanceType<_UniBadge>;
declare global {
namespace UniHelper {
/**
* 角标颜色类型
*
* default 灰色
*
* primary 蓝色
*
* success 绿色
*
* warning 黄色
*
* error 红色
*/
type UniBadgeType = _UniBadgeType;
/**
* 角标大小
*
* normal 正常
*
* small 小
*/
type UniBadgeSize = _UniBadgeSize;
/** 自定义样式 */
type UniBadgeCustomStyle = _UniBadgeCustomStyle;
/**
* 开启绝对定位,角标将定位到其包裹的标签的四个角上
*
* rightTop 右上角
*
* rightBottom 右下角
*
* leftBottom 左下角
*
* leftTop 左上角
*/
type UniBadgeAbsolute = _UniBadgeAbsolute;
/** 点击事件 */
interface UniBadgeOnClick extends _UniBadgeOnClick {}
/** 数字角标属性 */
type UniBadgeProps = _UniBadgeProps;
/**
* 数字角标
*
* 一般和其它控件(列表、九宫格等)配合使用,用于进行数量提示,默认为实心灰色背景
*/
type UniBadge = _UniBadge;
/** 数字角标实例 */
type UniBadgeInstance = _UniBadgeInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 数字角标
*
* 一般和其它控件(列表、九宫格等)配合使用,用于进行数量提示,默认为实心灰色背景
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-badge.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniBadge: _UniBadge;
}
}
//#endregion
//#region src/uni-breadcrumb.d.ts
/** 面包屑属性 */
type _UniBreadcrumbProps = Partial<{
/**
* 分隔符
*
* 默认为 /
*/
separator: string;
/** 分隔符类名 */
separatorClass: string;
}>;
/**
* 面包屑
*
* 显示当前页面的路径,快速返回之前的任意页面
*/
type _UniBreadcrumb = DefineComponent<_UniBreadcrumbProps>;
/** 面包屑实例 */
type _UniBreadcrumbInstance = InstanceType<_UniBreadcrumb>;
declare global {
namespace UniHelper {
/** 面包屑属性 */
type UniBreadcrumbProps = _UniBreadcrumbProps;
/**
* 面包屑
*
* 显示当前页面的路径,快速返回之前的任意页面
*/
type UniBreadcrumb = _UniBreadcrumb;
/** 面包屑实例 */
type UniBreadcrumbInstance = _UniBreadcrumbInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 面包屑
*
* 显示当前页面的路径,快速返回之前的任意页面
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-breadcrumb.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniBreadcrumb: _UniBreadcrumb;
}
}
//#endregion
//#region src/uni-breadcrumb-item.d.ts
type _UniBreadcrumbItemProps = Partial<{
/** 路由跳转页面路径 */
to: string;
/**
* 在使用 to 进行路由跳转时,启用 replace 将不会向 history 添加新记录
*
* 默认为 false
*/
replace: boolean;
}>;
type _UniBreadcrumbItem = DefineComponent<_UniBreadcrumbItemProps>;
type _UniBreadcrumbItemInstance = InstanceType<_UniBreadcrumbItem>;
declare global {
namespace UniHelper {
type UniBreadcrumbItemProps = _UniBreadcrumbItemProps;
type UniBreadcrumbItem = _UniBreadcrumbItem;
type UniBreadcrumbItemInstance = _UniBreadcrumbItemInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* `<uni-breadcrumb />`子组件,用于展示面包屑的每一项
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-breadcrumb.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniBreadcrumbItem: _UniBreadcrumbItem;
}
}
//#endregion
//#region src/uni-calendar.d.ts
/**
* 日期
*
* 格式为 YYYY-MM-DD
*/
type _UniCalendarDate = string;
/** 打点项 */
interface _UniCalendarSelectedElement {
/** 日期 */
date: _UniCalendarDate;
/** 信息 */
info: string;
/** 自定义数据 */
data?: Record<string, any>;
}
/** 打点 */
type _UniCalendarSelected = _UniCalendarSelectedElement[];
/**
* 弹出日历组件
*
* insert 为 true 时有效
*/
type _UniCalendarOpen = () => void;
interface _UniCalendarBaseEvent {
/** 选择的范围 */
range: {
/** 范围开始日期 */
before: _UniCalendarDate;
after: _UniCalendarDate;
data: _UniCalendarDate[];
};
/** 当前年 */
year: number;
/** 当前月 */
month: number;
/** 当前日 */
date: number;
/** 农历信息 */
lunar: {
/** 农历当前年 */
lYear: number;
/** 农历当前月 */
lMonth: number;
/** 农历当前日 */
lDay: number;
/** 生肖 */
Animal: string;
/** 农历当前月中文表示 */
IMonthCn: string;
/** 农历当前日中文表示 */
IDayCn: string;
/** 公历当前年 */
cYear: number;
/** 公历当前月 */
cMonth: number;
/** 公历当前日 */
cDay: number;
/** 农历当前年中文天干地支表示 */
gzYear: string;
/** 农历当前月中文天干地支表示 */
gzMonth: string;
/** 农历当前日中文天干地支表示 */
gzDay: string;
/** 是否今天 */
isToday: boolean;
/** 是否闰年 */
isLeap: boolean;
/** 周几 */
nWeek: number;
/** 周几中文表示 */
ncWeek: string;
/** 是否节气 */
isTerm: boolean;
/** 节气名 */
term: string | null | undefined;
/** 星座 */
astro: string;
};
/** 打点信息 */
extraInfo: _UniCalendarSelectedElement;
/** 当前完整日期 */
fulldate: _UniCalendarDate;
}
type _UniCalendarOnChangeEvent = _UniCalendarBaseEvent;
/**
* 日期改变时触发
*
* insert 为 true 时有效
*/
type _UniCalendarOnChange = (event: _UniCalendarOnChangeEvent) => void;
type _UniCalendarOnConfirmEvent = _UniCalendarBaseEvent;
/**
* 确认选择时触发
*
* insert 为 false 时有效
*/
type _UniCalendarOnConfirm = (event: _UniCalendarOnConfirmEvent) => void;
interface _UniCalendarOnMonthSwitchEvent {
/** 当前年 */
year: number;
/** 当前月 */
month: number;
}
/** 切换月份时触发 */
type _UniCalendarOnMonthSwitch = (event: _UniCalendarOnMonthSwitchEvent) => void;
/** 关闭日历组件时触发 */
type _UniCalendarOnClose = () => void;
/** 日历组件属性 */
type _UniCalendarProps = Partial<{
/**
* 自定义当前时间
*
* 格式为 YYYY-MM-DD
*
* 默认为 今天
*/
date: _UniCalendarDate;
/**
* 是否显示农历
*
* 默认为 false
*/
lunar: boolean;
/**
* 日期范围的开始日期
*
* 格式为 YYYY-MM-DD
*/
startDate: _UniCalendarDate;
/**
* 日期范围的结束日期
*
* 格式为 YYYY-MM-DD
*/
endDate: _UniCalendarDate;
/**
* 是否为范围选择
*
* 默认为 false
*/
range: boolean;
/**
* 插入模式
*
* true 插入模式
*
* false 弹窗模式
*
* 默认为 true
*/
insert: boolean;
/**
* 弹窗模式下是否清空上次选择内容
*
* insert 为 true 时有效
*
* 默认为 true
*/
clearDate: boolean;
/**
* 是否显示月份为背景
*
* 默认为 true
*/
showMonth: boolean;
/** 打点 */
selected: _UniCalendarSelected;
/**
* 弹出日历组件
*
* insert 为 true 时有效
*/
open: _UniCalendarOpen;
/**
* 日期改变时触发
*
* insert 为 true 时有效
*/
onChange: _UniCalendarOnChange;
/**
* 确认选择时触发
*
* insert 为 false 时有效
*/
onConfirm: _UniCalendarOnConfirm;
/** 切换月份时触发 */
onMonthSwitch: _UniCalendarOnMonthSwitch;
/** 关闭日历组件时触发 */
onClose: _UniCalendarOnClose;
}>;
/**
* 日历组件可以查看日期,选择任意范围内的日期,打点操作
*
* 常用场景如:酒店日期预订、火车机票选择购买日期、上下班打卡等
*/
type _UniCalendar = DefineComponent<_UniCalendarProps>;
/** 日历组件实例 */
type _UniCalendarInstance = InstanceType<_UniCalendar>;
declare global {
namespace UniHelper {
/**
* 日期
*
* 格式为 YYYY-MM-DD
*/
type UniCalendarDate = _UniCalendarDate;
/** 打点项 */
interface UniCalendarSelectedElement extends _UniCalendarSelectedElement {}
/** 打点 */
interface UniCalendarSelected extends _UniCalendarSelected {}
/**
* 弹出日历组件
*
* insert 为 true 时有效
*/
interface UniCalendarOpen extends _UniCalendarOpen {}
interface UniCalendarBaseEvent extends _UniCalendarBaseEvent {}
interface UniCalendarOnChangeEvent extends _UniCalendarOnChangeEvent {}
/**
* 日期改变时触发
*
* insert 为 true 时有效
*/
interface UniCalendarOnChange extends _UniCalendarOnChange {}
interface UniCalendarOnConfirmEvent extends _UniCalendarOnConfirmEvent {}
/**
* 确认选择时触发
*
* insert 为 false 时有效
*/
interface UniCalendarOnConfirm extends _UniCalendarOnConfirm {}
interface UniCalendarOnMonthSwitchEvent extends _UniCalendarOnMonthSwitchEvent {}
/** 切换月份时触发 */
interface UniCalendarOnMonthSwitch extends _UniCalendarOnMonthSwitch {}
/** 关闭日历组件时触发 */
interface UniCalendarOnClose extends _UniCalendarOnClose {}
/** 日历组件属性 */
type UniCalendarProps = _UniCalendarProps;
/**
* 日历组件可以查看日期,选择任意范围内的日期,打点操作
*
* 常用场景如:酒店日期预订、火车机票选择购买日期、上下班打卡等
*/
type UniCalendar = _UniCalendar;
/** 日历组件实例 */
type UniCalendarInstance = _UniCalendarInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 日历组件可以查看日期,选择任意范围内的日期,打点操作
*
* 常用场景如:酒店日期预订、火车机票选择购买日期、上下班打卡等
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-calendar.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniCalendar: _UniCalendar;
}
}
//#endregion
//#region src/uni-card.d.ts
type _UniCardOnClickType = "cover" | "title" | "extra" | "content" | "actions";
/** 点击事件 */
type _UniCardOnClick = (type: _UniCardOnClickType) => void;
/** 卡片组件属性 */
type _UniCardProps = Partial<{
/** 标题文字 */
title: string;
/** 副标题文字 */
subTitle: string;
/** 标题额外信息 */
extra: string;
/**
* 标题左侧缩略图,支持网络图片和本地图片
*
* 本地图片需要传入绝对路径
*/
thumbnail: string;
/**
* 封面图,支持网络图片和本地图片
*
* 本图片需要传入绝对路径
*/
cover: string;
/**
* 卡片内容是否通栏
*
* true 去除 padding
*
* false 保留 padding
*
* 默认为 false
*/
isFull: boolean;
/**
* 是否开启阴影
*
* 默认为 true
*/
isShadow: boolean;
/**
* 卡片阴影
*
* 默认为 0px 0px 3px 1px rgba(0, 0, 0, 0.08)
*/
shadow: string;
/**
* 是否显示卡片边框
*
* 默认为 true
*/
border: boolean;
/**
* 卡片外边距
*
* 默认为 15px
*/
margin: string;
/**
* 卡片内边距
*
* 默认为 0 10px
*/
spacing: string;
/**
* 卡片内容内边距
*
* 默认为 10px
*/
padding: string;
/** 点击事件 */
onClick: _UniCardOnClick;
}>;
/**
* 卡片组件通用来显示完整独立的一段信息,同时让用户理解它的作用
*
* 例如一篇文章的预览图、作者信息、时间等
*
* 卡片通常是更复杂和更详细信息的入口点
*/
type _UniCard = DefineComponent<_UniCardProps>;
/** 卡片组件实例 */
type _UniCardInstance = InstanceType<_UniCard>;
declare global {
namespace UniHelper {
type UniCardOnClickType = _UniCardOnClickType;
/** 点击事件 */
interface UniCardOnClick extends _UniCardOnClick {}
/** 卡片组件属性 */
type UniCardProps = _UniCardProps;
/**
* 卡片组件通用来显示完整独立的一段信息,同时让用户理解它的作用
*
* 例如一篇文章的预览图、作者信息、时间等
*
* 卡片通常是更复杂和更详细信息的入口点
*/
type UniCard = _UniCard;
/** 卡片组件实例 */
type UniCardInstance = _UniCardInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 卡片组件通用来显示完整独立的一段信息,同时让用户理解它的作用
*
* 例如一篇文章的预览图、作者信息、时间等
*
* 卡片通常是更复杂和更详细信息的入口点
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-card.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniCard: _UniCard;
}
}
//#endregion
//#region src/uni-col.d.ts
/** 栅格规则 */
type _UniColRules = Partial<{
/**
* 栅格占据的列数
*
* 默认为 24
*/
span: number;
/** 栅格左侧间隔格数 */
offset: number;
/** 栅格向右偏移格数 */
push: number;
/** 栅格向左偏移格数 */
pull: number;
}>;
/** 列属性 */
type _UniColProps = _UniColRules & Partial<{
/** 屏幕宽度 <768px 时,要显示的栅格规则 */
xs: number | _UniColRules;
/** 屏幕宽度 ≥768px 时,要显示的栅格规则 */
sm: number | _UniColRules;
/** 屏幕宽度 ≥992px 时,要显示的栅格规则 */
md: number | _UniColRules;
/** 屏幕宽度 ≥1200px 时,要显示的栅格规则 */
lg: number | _UniColRules;
/** 屏幕宽度 ≥1920px 时,要显示的栅格规则 */
xl: number | _UniColRules;
}>;
/** 流式栅格系统中的列 */
type _UniCol = DefineComponent<_UniColProps>;
/** 流式栅格系统中的列实例 */
type _UniColInstance = InstanceType<_UniCol>;
declare global {
namespace UniHelper {
/** 栅格规则 */
type UniColRules = _UniColRules;
/** 列属性 */
type UniColProps = _UniColProps;
/** 流式栅格系统中的列 */
type UniCol = _UniCol;
/** 流式栅格系统中的列实例 */
type UniColInstance = _UniColInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/** 流式栅格系统中的列
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-row.html#uni-col)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniCol: _UniCol;
}
}
//#endregion
//#region src/uni-collapse.d.ts
/** 更新当前列表高度 */
type _UniCollapseResize = () => void;
/** 折叠面板基本属性 */
type _UniCollapseBaseProps = Partial<{
/** 更新当前列表高度 */
resize: _UniCollapseResize;
}>;
/**
* 折叠面板非手风琴模式展开面板的标识
*
* 不要和 uni-collapse-item open 一起使用
*/
type _UniCollapseNoAccordionValue = string[];
/** 折叠面板非手风琴模式切换面板时触发 */
type _UniCollapseNoAccordionOnChange = (value: _UniCollapseNoAccordionValue) => void;
/** 折叠面板非手风琴模式属性 */
type _UniCollapseNoAccordionProps = _UniCollapseBaseProps & {
/**
* 展开面板的标识
*
* 不要和 uni-collapse-item open 一起使用
*/
value?: _UniCollapseNoAccordionValue;
/** 关闭手风琴模式 */
accordion?: false;
/** 切换面板时触发 */
onChange?: _UniCollapseNoAccordionOnChange;
};
/**
* 折叠面板手风琴模式展开面板的标识
*
* 不要和 uni-collapse-item open 一起使用
*/
type _UniCollapseAccordionValue = string;
/** 折叠面板手风琴模式切换面板时触发 */
type _UniCollapseAccordionOnChange = (value: _UniCollapseAccordionValue) => void;
/** 折叠面板手风琴模式属性 */
type _UniCollapseAccordionProps = _UniCollapseBaseProps & {
/**
* 展开面板的标识
*
* 不要和 uni-collapse-item open 一起使用
*/
value?: _UniCollapseAccordionValue;
/** 关闭手风琴模式 */
accordion: true;
/** 切换面板时触发 */
onChange?: _UniCollapseAccordionOnChange;
};
/** 折叠面板属性 */
type _UniCollapseProps = _UniCollapseNoAccordionProps | _UniCollapseAccordionProps;
/**
* 折叠面板用来折叠/显示过长的内容或者是列表
*
* 通常是在多内容分类项使用,折叠不重要的内容,显示重要内容
*
* 点击可以展开折叠部分
*/
type _UniCollapse = DefineComponent<_UniCollapseProps>;
/** 折叠面板实例 */
type _UniCollapseInstance = InstanceType<_UniCollapse>;
declare global {
namespace UniHelper {
/** 更新当前列表高度 */
interface UniCollapseResize extends _UniCollapseResize {}
/** 折叠面板基本属性 */
type UniCollapseBaseProps = _UniCollapseBaseProps;
/**
* 折叠面板非手风琴模式展开面板的标识
*
* 不要和 uni-collapse-item open 一起使用
*/
type UniCollapseNoAccordionValue = _UniCollapseNoAccordionValue;
/** 折叠面板非手风琴模式切换面板时触发 */
interface UniCollapseNoAccordionOnChange extends _UniCollapseNoAccordionOnChange {}
/** 折叠面板非手风琴模式属性 */
type UniCollapseNoAccordionProps = _UniCollapseNoAccordionProps;
/**
* 折叠面板手风琴模式展开面板的标识
*
* 不要和 uni-collapse-item open 一起使用
*/
type UniCollapseAccordionValue = _UniCollapseAccordionValue;
/** 折叠面板手风琴模式切换面板时触发 */
interface UniCollapseAccordionOnChange extends _UniCollapseAccordionOnChange {}
/** 折叠面板手风琴模式属性 */
type UniCollapseAccordionProps = _UniCollapseAccordionProps;
/** 折叠面板属性 */
type UniCollapseProps = _UniCollapseProps;
/**
* 折叠面板用来折叠/显示过长的内容或者是列表
*
* 通常是在多内容分类项使用,折叠不重要的内容,显示重要内容
*
* 点击可以展开折叠部分
*/
type UniCollapse = _UniCollapse;
/** 折叠面板实例 */
type UniCollapseInstance = _UniCollapseInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 折叠面板用来折叠/显示过长的内容或者是列表
*
* 通常是在多内容分类项使用,折叠不重要的内容,显示重要内容
*
* 点击可以展开折叠部分
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-collapse.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniCollapse: _UniCollapse;
}
}
//#endregion
//#region src/uni-collapse-item.d.ts
/**
* 折叠面板标题分隔线
*
* auto 分隔线自动显示
*
* none 不显示分隔线
*
* show 一直显示分隔线
*/
type _UniCollapseItemTitleBorder = "auto" | "none" | "show";
type _UniCollapseItemProps = Partial<{
/** 标题文字 */
title: string;
/** 标题左侧缩略图 */
thumb: string;
/**
* 是否禁用
*
* 默认为 false
*/
disabled: boolean;
/**
* 是否展开面板
*
* 不要和 uni-collapse value / v-model 一起使用
*
* 默认为 false
*/
open: boolean;
/**
* 是否开启动画
*
* 默认为 false
*/
showAnimation: boolean;
/**
* 是否显示分隔线
*
* 默认为 true
*/
border: boolean;
/**
* 折叠面板标题分隔线
*
* auto 分隔线自动显示
*
* none 不显示分隔线
*
* show 一直显示分隔线
*
* 默认为 auto
*/
titleBorder: _UniCollapseItemTitleBorder;
/**
* 是否显示右侧箭头
*
* 默认为 true
*/
showArrow: boolean;
}>;
type _UniCollapseItem = DefineComponent<_UniCollapseItemProps>;
type _UniCollapseItemInstance = InstanceType<_UniCollapseItem>;
declare global {
namespace UniHelper {
/**
* 折叠面板标题分隔线
*
* auto 分隔线自动显示
*
* none 不显示分隔线
*
* show 一直显示分隔线
*/
type UniCollapseItemTitleBorder = _UniCollapseItemTitleBorder;
type UniCollapseItemProps = _UniCollapseItemProps;
type UniCollapseItem = _UniCollapseItem;
type UniCollapseItemInstance = _UniCollapseItemInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* `<uni-collapse />`子组件
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-collapse.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniCollapseItem: _UniCollapseItem;
}
}
//#endregion
//#region src/uni-combox.d.ts
/** 组合框值 */
type _UniComboxValue = string;
/** 输入时触发 */
type _UniComboxOnInput = (value: _UniComboxValue) => void;
/** 组合框属性 */
type _UniComboxProps = Partial<{
/**
* 是否显示边框
*
* 默认为 true
*/
border: boolean;
/** 标签文字 */
label: string;
/** 组合框值 */
value: _UniComboxValue;
/**
* 标签宽度
*
* 默认为 auto
*/
labelWidth: string;
/** 输入框占位符 */
placeholder: string;
/**
* 候选字段
*
* 默认为 []
*/
candidates: string | string[];
/**
* 无匹配项时的提示语
*
* 默认为 无匹配项
*/
emptyTips: string;
/** 输入时触发 */
onInput: _UniComboxOnInput;
}>;
/** 组合框组件,一般用于可以选择也可以输入的表单项 */
type _UniCombox = DefineComponent<_UniComboxProps>;
/** 组合框组件实例 */
type _UniComboxInstance = InstanceType<_UniCombox>;
declare global {
namespace UniHelper {
/** 组合框值 */
type UniComboxValue = _UniComboxValue;
/** 输入时触发 */
interface UniComboxOnInput extends _UniComboxOnInput {}
/** 组合框属性 */
type UniComboxProps = _UniComboxProps;
/** 组合框组件,一般用于可以选择也可以输入的表单项 */
type UniCombox = _UniCombox;
/** 组合框组件实例 */
type UniComboxInstance = _UniComboxInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/** 组合框组件,一般用于可以选择也可以输入的表单项
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-combox.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniCombox: _UniCombox;
}
}
//#endregion
//#region src/uni-countdown.d.ts
/** 动态更新时间后,刷新组件显示 */
type _UniCountdownOnUpdate = () => void;
/** 倒计时时间到触发事件 */
type _UniCountdownOnTimeup = () => void;
/** 倒计时属性 */
type _UniCountdownProps = Partial<{
/**
* 背景色
*
* 默认为 #ffffff
*/
backgroundColor: string;
/**
* 文字颜色
*
* 默认为 #000000
*/
color: string;
/**
* 分隔符颜色
*
* 默认为 #333
*/
splitorColor: string;
/**
* 天数
*
* 默认为 0
*/
day: number;
/**
* 小时数
*
* 默认为 0
*/
hour: number;
/**
* 分钟数
*
* 默认为 0
*/
minute: number;
/**
* 秒数
*
* 默认为 0
*/
second: number;
/**
* 目标时间戳
*
* 默认为 0
*/
timestamp: number;
/**
* 是否显示天数
*
* 默认为 true
*/
showDay: boolean;
/**
* 是否以冒号为分隔符
*
* 默认为 true
*/
showColon: boolean;
/**
* 是否初始化组件后就开始倒计时
*
* 默认为 true
*/
start: boolean;
/** 动态更新时间后,刷新组件显示 */
update: _UniCountdownOnUpdate;
/** 倒计时时间到触发事件 */
onTimeup: _UniCountdownOnTimeup;
}>;
/** 倒计时 */
type _UniCountdown = DefineComponent<_UniCountdownProps>;
/** 倒计时实例 */
type _UniCountdownInstance = InstanceType<_UniCountdown>;
declare global {
namespace UniHelper {
/** 动态更新时间后,刷新组件显示 */
interface UniCountdownOnUpdate extends _UniCountdownOnUpdate {}
/** 倒计时时间到触发事件 */
interface UniCountdownOnTimeup extends _UniCountdownOnTimeup {}
/** 倒计时属性 */
type UniCountdownProps = _UniCountdownProps;
/** 倒计时 */
type UniCountdown = _UniCountdown;
/** 倒计时实例 */
type UniCountdownInstance = _UniCountdownInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/** 倒计时
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-countdown.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniCountdown: _UniCountdown;
}
}
//#endregion
//#region src/uni-data-checkbox.d.ts
/** 默认值 */
type _UniDataCheckboxValue = string | number;
/**
* 显示模式
*
* default 横向显示
*
* list 列表
*
* button 按钮
*
* tag 标签
*/
type _UniDataCheckboxMode = "default" | "list" | "button" | "tag";
interface _UniDataCheckboxLocaldataItem {
/** 显示文本 */
text: string;
/** 选中后的值 */
value: _UniDataCheckboxValue;
/**
* 是否禁用
*
* 默认为 false
*/
disable?: boolean;
}
/** 本地渲染数据 */
type _UniDataCheckboxLocaldata = _UniDataCheckboxLocaldataItem[];
/** list 模式下 icon 显示的位置 */
type _UniDataCheckboxIcon = "left" | "right";
/**
* 字段映射
*
* 将 text/value 映射到数据中的其他字段
*/
interface _UniDataCheckboxMap {
text: string;
value: string;
}
type _UniDataCheckboxBaseProps = Partial<{
/** 本地渲染数据 */
localdata: _UniDataCheckboxLocaldata;
/**
* 显示模式
*
* default 横向显示
*
* list 列表
*
* button 按钮
*
* tag 标签
*
* 默认为 default
*/
mode: _UniDataCheckboxMode;
/**
* 是否换行显示
*
* 默认为 false
*/
wrap: boolean;
/**
* list 模式下 icon 显示的位置
*
* 默认为 left
*/
icon: _UniDataCheckboxIcon;
/**
* 选中颜色
*
* 默认为 #2979ff
*/
selectedColor: string;
/**
* 选中文本颜色
*
* 默认为 #666
*/
selectedTextColor: string;
/**
* 没有数据时显示的文字,本地数据无效
*
* 默认为 暂无数据
*/
emptyText: string;
/**
* 字段映射
*
* 将 text/value 映射到数据中的其他字段
*
* 默认为 { text: 'text', value: 'value' }
*/
map: _UniDataCheckboxMap;
}>;
interface _UniDataCheckboxSingleOnChangeDetail {
value: _UniDataCheckboxValue;
data: _UniDataCheckboxLocaldata;
}
interface _UniDataCheckboxSingleOnChangeEvent {
detail: _UniDataCheckboxSingleOnChangeDetail;
}
/** 选中状态改变时触发 */
type _UniDataCheckboxSingleOnChange = (event: _UniDataCheckboxSingleOnChangeEvent) => void;
type _UniDataCheckboxSingleProps = Partial<{
/** 默认值 */
value: _UniDataCheckboxValue;
/**
* 关闭多选
*
* 默认为 false
*/
multiple?: false;
/** 选中状态改变时触发 */
onChange: _UniDataCheckboxSingleOnChange;
}>;
interface _UniDataCheckboxMultipleOnChangeDetail {
value: _UniDataCheckboxValue[];
data: _UniDataCheckboxLocaldata;
}
interface _UniDataCheckboxMultipleOnChangeEvent {
detail: _UniDataCheckboxMultipleOnChangeDetail;
}
/** 选中状态改变时触发 */
type _UniDataCheckboxMultipleOnChange = (event: _UniDataCheckboxMultipleOnChangeEvent) => void;
type _UniDataCheckboxMultipleProps = Partial<{
/** 默认值 */
value: _UniDataCheckboxValue[];
/**
* 开启多选
*
* 默认为 false
*/
multiple: true;
/**
* 最小选择个数
*
* multiple 为 true 时有效
*/
min: string | number;
/**
* 最大选择个数
*
* multiple 为 true 时有效
*/
max: string | number;
/** 选中状态改变时触发 */
onChange: _UniDataCheckboxMultipleOnChange;
}>;
type _UniDataCheckboxProps = _UniDataCheckboxSingleProps | _UniDataCheckboxMultipleProps;
/**
* 本组件是基于 uni-app 基础组件 checkbox 的封装。本组件要解决问题包括:
*
* 数据绑定型组件:给本组件绑定一个data,会自动渲染一组候选内容,在以往,开发者需要编写不少代码实现类似功能
*
* 自动的表单校验:组件绑定了 data,且符合 uni-forms 组件的表单校验规范,搭配使用会自动实现表单校验
*
* 本组件合并了单选多选
*
* 本组件有若干风格选择,如普通的单选多选框、并列 button 风格、tag 风格,开发者可以快速选择需要的风格,会牺牲一定的样式自定义性
*
* 在 uni-cloud 开发中,DB Schema 中配置了 enum 枚举等类型后,在 web 控制台的自动生成表单功能中,会自动生成
* uni-data-checkbox 组件并绑定好 data
*/
type _UniDataCheckbox = DefineComponent<_UniDataCheckboxProps>;
type _UniDataCheckboxInstance = InstanceType<_UniDataCheckbox>;
declare global {
namespace UniHelper {
/** 默认值 */
type UniDataCheckboxValue = _UniDataCheckboxValue;
/**
* 显示模式
*
* default 横向显示
*
* list 列表
*
* button 按钮
*
* tag 标签
*/
type UniDataCheckboxMode = _UniDataCheckboxMode;
interface UniDataCheckboxLocaldataItem extends _UniDataCheckboxLocaldataItem {}
/** 本地渲染数据 */
type UniDataCheckboxLocaldata = _UniDataCheckboxLocaldata;
/** list 模式下 icon 显示的位置 */
type UniDataCheckboxIcon = _UniDataCheckboxIcon;
/**
* 字段映射
*
* 将 text/value 映射到数据中的其他字段
*/
interface UniDataCheckboxMap extends _UniDataCheckboxMap {}
type UniDataCheckboxBaseProps = _UniDataCheckboxBaseProps;
interface UniDataCheckboxSingleOnChangeDetail extends _UniDataCheckboxSingleOnChangeDetail {}
type UniDataCheckboxSingleOnChangeEvent = _UniDataCheckboxSingleOnChangeEvent;
/** 选中状态改变时触发 */
interface UniDataCheckboxSingleOnChange extends _UniDataCheckboxSingleOnChange {}
type UniDataCheckboxSingleProps = _UniDataCheckboxSingleProps;
interface UniDataCheckboxMultipleOnChangeDetail extends _UniDataCheckboxMultipleOnChangeDetail {}
type UniDataCheckboxMultipleOnChangeEvent = _UniDataCheckboxMultipleOnChangeEvent;
/** 选中状态改变时触发 */
interface UniDataCheckboxMultipleOnChange extends _UniDataCheckboxMultipleOnChange {}
type UniDataCheckboxMultipleProps = _UniDataCheckboxMultipleProps;
type UniDataCheckboxProps = _UniDataCheckboxProps;
/**
* 本组件是基于 uni-app 基础组件 checkbox 的封装。本组件要解决问题包括:
*
* 数据绑定型组件:给本组件绑定一个data,会自动渲染一组候选内容,在以往,开发者需要编写不少代码实现类似功能
*
* 自动的表单校验:组件绑定了 data,且符合 uni-forms 组件的表单校验规范,搭配使用会自动实现表单校验
*
* 本组件合并了单选多选
*
* 本组件有若干风格选择,如普通的单选多选框、并列 button 风格、tag 风格,开发者可以快速选择需要的风格,会牺牲一定的样式自定义性
*
* 在 uni-cloud 开发中,DB Schema 中配置了 enum 枚举等类型后,在 web 控制台的自动生成表单功能中,会自动生成
* uni-data-checkbox 组件并绑定好 data
*/
type UniDataCheckbox = _UniDataCheckbox;
type UniDataCheckboxInstance = _UniDataCheckboxInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 本组件是基于 uni-app 基础组件 checkbox 的封装。本组件要解决问题包括:
*
* 数据绑定型组件:给本组件绑定一个data,会自动渲染一组候选内容,在以往,开发者需要编写不少代码实现类似功能
*
* 自动的表单校验:组件绑定了 data,且符合 uni-forms 组件的表单校验规范,搭配使用会自动实现表单校验
*
* 本组件合并了单选多选
*
* 本组件有若干风格选择,如普通的单选多选框、并列 button 风格、tag 风格,开发者可以快速选择需要的风格,会牺牲一定的样式自定义性
*
* 在 uni-cloud 开发中,DB Schema 中配置了 enum 枚举等类型后,在 web 控制台的自动生成表单功能中,会自动生成
* uni-data-checkbox 组件并绑定好 data
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/uniui/uni-data-checkbox.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
UniDataCheckbox: _UniDataCheckbox;
}
}
//#endregion
//#region ../uni-app-types/src/common.d.ts
type CommonProps = {
class?: any;
style?: StyleValue;
};
//#endregion
//#region ../uni-app-types/src/events/index.d.ts
/** 组件的一些属性值集合 */
interface _EventTarget<Dataset extends Record<string, any> = Record<string, any>> {
/** 事件源组件的id */
id?: string;
/** 当前组件的类型 */
tagName?: string;
/** 事件源组件上由 data- 开头的自定义属性组成的集合 */
dataset?: Dataset;
/** 距离页面顶部的偏移量 */
offsetTop: number;
/** 距离页面左边的偏移量 */
offsetLeft: number;
[key: string]: any;
}
/** 基础事件 */
interface _BaseEvent<Mark extends Record<string, any> = Record<string, any>, CurrentTargetDataset extends Record<string, any> = Record<string, any>, TargetDataset extends Record<string, any> = CurrentTargetDataset> {
/** 事件类型 */
type?: string;
/** 事件生成时的时间戳 */
timeStamp?: number;
/** 事件冒泡路径上所有由 mark: 开头的自定义属性组成的集合 */
mark?: Mark;
/** 触发事件的源组件的一些属性值集合 */
target?: _EventTarget<TargetDataset>;
/** 事件绑定的当前组件的一些属性值集合 */
currentTarget?: _EventTarget<CurrentTargetDataset>;
[key: string]: any;
}
/** 自定义事件 */
interface _CustomEvent<Detail extends Record<string, any> = Record<string, any>, Mark extends Record<string, any> = Record<string, any>, CurrentTargetDataset extends Record<string, any> = Record<string, any>, TargetDataset extends Record<string, any> = CurrentTargetDataset> extends _BaseEvent<Mark, CurrentTargetDataset, TargetDataset> {
/** 额外信息 */
detail: Detail;
[key: string]: any;
}
/** 当前停留在屏幕中的触摸点信息 */
interface _TouchDetail {
/** 标志符 */
identifier?: number;
/** 距离文档左上角的横向距离 */
pageX?: number;
/** 距离文档左上角的纵向距离 */
pageY?: number;
/** 距离页面可显示区域(屏幕除去导航条)左上角的横向距离 */
clientX?: number;
/** 距离页面可显示区域(屏幕除去导航条)左上角的纵向距离 */
clientY?: number;
}
/** 当前停留在 canvas 中的触摸点信息 */
interface _TouchCanvasDetail {
/** 标志符 */
identifier?: number;
/** 距离 canvas 左上角的横向距离 */
x?: number;
/** 距离 canvas 左上角的纵向距离 */
y?: number;
}
/** 触摸事件 */
interface _BaseTouchEvent<Detail extends Record<string, any> = Record<string, any>, T extends _TouchDetail | _TouchCanvasDetail = _TouchDetail, Mark extends Record<string, any> = Record<string, any>, CurrentTargetDataset extends Record<string, any> = Record<string, any>, TargetDataset extends Record<string, any> = CurrentTargetDataset> extends _CustomEvent<Detail, Mark, CurrentTargetDataset, TargetDataset> {
/** 当前停留在屏幕中的触摸点信息的数组 */
touches: T[];
/** 当前变化的触摸点信息的数组 */
changedTouches: T[];
}
/** 触摸事件响应 */
interface _TouchEvent<Detail extends Record<string, any> = Record<string, any>, Mark extends Record<string, any> = Record<string, any>, CurrentTargetDataset extends Record<string, any> = Record<string, any>, TargetDataset extends Record<string, any> = CurrentTargetDataset> extends _BaseTouchEvent<Detail, _TouchDetail, Mark, CurrentTargetDataset, TargetDataset> {}
/** canvas 触摸事件响应 */
interface _TouchCanvasEvent<Mark extends Record<string, any> = Record<string, any>, TargetDataset extends Record<string, any> = Record<string, any>> extends _BaseTouchEvent<never, _TouchCanvasDetail, Mark, never, TargetDataset> {
currentTarget: never;
}
declare global {
namespace UniHelper {
/** 组件的一些属性值集合 */
interface EventTarget extends _EventTarget {}
/** 基础事件 */
interface BaseEvent extends _BaseEvent {}
/** 自定义事件 */
interface CustomEvent extends _CustomEvent {}
/** 当前停留在屏幕中的触摸点信息 */
interface TouchDetail extends _TouchDetail {}
/** 当前停留在 canvas 中的触摸点信息 */
interface TouchCanvasDetail extends _TouchCanvasDetail {}
/** 触摸事件 */
interface BaseTouchEvent extends _BaseTouchEvent {}
/** 触摸事件响应 */
interface TouchEvent extends _TouchEvent {}
/** canvas 触摸事件响应 */
interface TouchCanvasEvent extends _TouchCanvasEvent {}
}
}
//#endregion
//#region ../uni-app-types/src/ad/ad.d.ts
type _AdOnLoadEvent = _BaseEvent;
/** 广告加载成功的回调 */
type _AdOnLoad = (event: _AdOnLoadEvent) => void;
interface _AdOnErrorDetail {
/** 错误码 */
errCode: number;
/** 错误信息 */
errMsg: string;
}
type _AdOnErrorEvent = _CustomEvent<_AdOnErrorDetail>;
/** 广告加载失败的回调 */
type _AdOnError = (event: _AdOnErrorEvent) => void;
type _AdOnCloseEvent = _BaseEvent;
/** 广告关闭的回调 */
type _AdOnClose = (event: _AdOnCloseEvent) => void;
/** 信息流广告属性 */
type _AdProps = CommonProps & Partial<{
/** APP 广告位 id */
adpid: string;
/** 广告单元 id,可在小程序管理后台的流量主模块新建 */
unitId: string;
/**
* 广告自动刷新的间隔时间,必须大于等于 30
*
* 该参数不传入时 Banner 广告不会自动刷新
*
* 单位为 `s`
*/
adIntervals: number;
/** 广告数据,优先级高于 adpid */
data: Record<string, any>;
/** 小程序应用 ID */
appid: string;
/** 小程序广告位 ID */
apid: string;
/**
* Type 为 feeds 时广告左边距,必须大于 0
*
* 单位为 `px`
*/
adLeft: number;
/**
* Type 为 feeds 时广告上边距,必须大于 0
*
* 单位为 `px`
*/
adTop: number;
/**
* Type 为 feeds 时广告宽度,最大值为屏幕宽度,最小值为 265
*
* 单位为 `px`
*
* 默认为 `100%`
*/
adWidth: number;
/**
* Type 为 feeds 时广告高度,最大值为 160,最小值为 85
*
* 单位为 `px`
*/
adHeight: number;
/** 广告类型 */
type: string;
/** 广告加载成功的回调 */
onLoad: _AdOnLoad;
/** 广告加载失败的回调 */
onError: _AdOnError;
/** 广告关闭的回调 */
onClose: _AdOnClose;
}>;
/** 信息流广告 */
type _Ad = DefineComponent<_AdProps>;
/** 信息流广告实例 */
type _AdInstance = InstanceType<_Ad>;
declare global {
namespace UniHelper {
type AdOnLoadEvent = _AdOnLoadEvent;
/** 广告加载成功的回调 */
interface AdOnLoad extends _AdOnLoad {}
interface AdOnErrorDetail extends _AdOnErrorDetail {}
type AdOnErrorEvent = _AdOnErrorEvent;
/** 广告加载失败的回调 */
interface AdOnError extends _AdOnError {}
type AdOnCloseEvent = _AdOnCloseEvent;
/** 广告关闭的回调 */
interface AdOnClose extends _AdOnClose {}
/** 信息流广告属性 */
type AdProps = _AdProps;
/** 信息流广告 */
type Ad = _Ad;
/** 信息流广告实例 */
type AdInstance = _AdInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 信息流广告
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/uni-ad/ad-component.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
ad: _Ad;
}
}
//#endregion
//#region ../uni-app-types/src/ad/ad-content-page.d.ts
type _AdContentPageOnLoadEvent = _BaseEvent;
/** 广告加载成功的回调 */
type _AdContentPageOnLoad = (event: _AdContentPageOnLoadEvent) => void;
interface _AdContentPageOnErrorDetail {
/** 错误码 */
errCode: number;
/** 错误信息 */
errMsg: string;
}
type _AdContentPageOnErrorEvent = _CustomEvent<_AdContentPageOnErrorDetail>;
/** 广告加载失败的回调 */
type _AdContentPageOnError = (event: _AdContentPageOnErrorEvent) => void;
interface _AdContentPageOnStartDetail {
/** 广告唯一标识 */
id: string;
/**
* 广告类型
*
* `0` 未知类型
*
* `1` 普通信息流
*
* `2` sdk 内部广告
*
* `3` 第三方广告
*
* `4` 直播
*/
type: 0 | 1 | 2 | 3 | 4;
/** 视频总时长 */
duration: number;
}
type _AdContentPageOnStartEvent = _CustomEvent<_AdContentPageOnStartDetail>;
/** 广告开始播放时触发 */
type _AdContentPageOnStart = (event: _AdContentPageOnStartEvent) => void;
interface _AdContentPageOnPauseDetail {
/** 广告唯一标识 */
id: string;
/**
* 广告类型
*
* `0` 未知类型
*
* `1` 普通信息流
*
* `2` sdk 内部广告
*
* `3` 第三方广告
*
* `4` 直播
*/
type: 0 | 1 | 2 | 3 | 4;
/** 视频总时长 */
duration: number;
}
type _AdContentPageOnPauseEvent = _CustomEvent<_AdContentPageOnPauseDetail>;
/** 广告暂停播放时触发 */
type _AdContentPageOnPause = (event: _AdContentPageOnPauseEvent) => void;
interface _AdContentPageOnResumeDetail {
/** 广告唯一标识 */
id: string;
/**
* 广告类型
*
* `0` 未知类型
*
* `1` 普通信息流
*
* `2` sdk 内部广告
*
* `3` 第三方广告
*
* `4` 直播
*/
type: 0 | 1 | 2 | 3 | 4;
/** 视频总时长 */
duration: number;
}
type _AdContentPageOnResumeEvent = _CustomEvent<_AdContentPageOnResumeDetail>;
/** 广告恢复播放时触发 */
type _AdContentPageOnResume = (event: _AdContentPageOnResumeEvent) => void;
interface _AdContentPageOnCompleteDetail {
/** 广告唯一标识 */
id: string;
/**
* 广告类型
*
* `0` 未知类型
*
* `1` 普通信息流
*
* `2` sdk 内部广告
*
* `3` 第三方广告
*
* `4` 直播
*/
type: 0 | 1 | 2 | 3 | 4;
/** 视频总时长 */
duration: number;
}
type _AdContentPageOnCompleteEvent = _CustomEvent<_AdContentPageOnCompleteDetail>;
/** 广告完成播放时触发 */
type _AdContentPageOnComplete = (event: _AdContentPageOnCompleteEvent) => void;
/** 短视频内容联盟广告属性 */
type _AdContentPageProps = CommonProps & Partial<{
/** APP 广告位 id */
adpid: string;
/** 广告加载成功的回调 */
onLoad: _AdContentPageOnLoad;
/** 广告加载失败的回调 */
onError: _AdContentPageOnError;
/** 广告开始播放时触发 */
onStart: _AdContentPageOnStart;
/** 广告暂停播放时触发 */
onPause: _AdContentPageOnPause;
/** 广告恢复播放时触发 */
onResume: _AdContentPageOnResume;
/** 广告完成播放时触发 */
onComplete: _AdContentPageOnComplete;
}>;
/** 短视频内容联盟广告 */
type _AdContentPage = DefineComponent<_AdContentPageProps>;
/** 短视频内容联盟广告实例 */
type _AdContentPageInstance = InstanceType<_AdContentPage>;
declare global {
namespace UniHelper {
type AdContentPageOnLoadEvent = _AdContentPageOnLoadEvent;
/** 广告加载成功的回调 */
interface AdContentPageOnLoad extends _AdContentPageOnLoad {}
interface AdContentPageOnErrorDetail extends _AdContentPageOnErrorDetail {}
type AdContentPageOnErrorEvent = _AdContentPageOnErrorEvent;
/** 广告加载失败的回调 */
interface AdContentPageOnError extends _AdContentPageOnError {}
interface AdContentPageOnStartDetail extends _AdContentPageOnStartDetail {}
type AdContentPageOnStartEvent = _AdContentPageOnStartEvent;
/** 广告开始播放时触发 */
interface AdContentPageOnStart extends _AdContentPageOnStart {}
interface AdContentPageOnPauseDetail extends _AdContentPageOnPauseDetail {}
type AdContentPageOnPauseEvent = _AdContentPageOnPauseEvent;
/** 广告暂停播放时触发 */
interface AdContentPageOnPause extends _AdContentPageOnPause {}
interface AdContentPageOnResumeDetail extends _AdContentPageOnResumeDetail {}
type AdContentPageOnResumeEvent = _AdContentPageOnResumeEvent;
/** 广告恢复播放时触发 */
interface AdContentPageOnResume extends _AdContentPageOnResume {}
interface AdContentPageOnCompleteDetail extends _AdContentPageOnCompleteDetail {}
type AdContentPageOnCompleteEvent = _AdContentPageOnCompleteEvent;
/** 广告完成播放时触发 */
interface AdContentPageOnComplete extends _AdContentPageOnComplete {}
/** 短视频内容联盟广告属性 */
type AdContentPageProps = _AdContentPageProps;
/** 短视频内容联盟广告 */
type AdContentPage = _AdContentPage;
/** 短视频内容联盟广告实例 */
type AdContentPageInstance = _AdContentPageInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 短视频内容联盟广告
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/uni-ad/ad-content-page.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
AdContentPage: _AdContentPage;
}
}
//#endregion
//#region ../uni-app-types/src/ad/ad-draw.d.ts
type _AdDrawOnLoadEvent = _BaseEvent;
/** 广告加载成功的回调 */
type _AdDrawOnLoad = (event: _AdDrawOnLoadEvent) => void;
interface _AdDrawOnErrorDetail {
/** 错误码 */
errCode: number;
/** 错误信息 */
errMsg: string;
}
type _AdDrawOnErrorEvent = _CustomEvent<_AdDrawOnErrorDetail>;
/** 广告加载失败的回调 */
type _AdDrawOnError = (event: _AdDrawOnErrorEvent) => void;
/** 沉浸视频流广告属性 */
type _AdDrawProps = CommonProps & Partial<{
/** APP 广告位 id */
adpid: string;
/** 广告数据 */
data: Record<string, any>;
/** 广告加载成功的回调 */
onLoad: _AdDrawOnLoad;
/** 广告加载失败的回调 */
onError: _AdDrawOnError;
}>;
/** 沉浸视频流广告 */
type _AdDraw = DefineComponent<_AdDrawProps>;
/** 沉浸视频流广告实例 */
type _AdDrawInstance = InstanceType<_AdDraw>;
declare global {
namespace UniHelper {
type AdDrawOnLoadEvent = _AdDrawOnLoadEvent;
/** 广告加载成功的回调 */
interface AdDrawOnLoad extends _AdDrawOnLoad {}
interface AdDrawOnErrorDetail extends _AdDrawOnErrorDetail {}
type AdDrawOnErrorEvent = _AdDrawOnErrorEvent;
/** 广告加载失败的回调 */
interface AdDrawOnError extends _AdDrawOnError {}
/** 沉浸视频流广告属性 */
type AdDrawProps = _AdDrawProps;
/** 沉浸视频流广告 */
type AdDraw = _AdDraw;
/** 沉浸视频流广告实例 */
type AdDrawInstance = _AdDrawInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 沉浸视频流广告
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/uni-ad/ad-draw.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
AdDraw: _AdDraw;
}
}
//#endregion
//#region ../uni-app-types/src/ad/ad-fullscreen-video.d.ts
type _AdFullscreenVideoOnLoadEvent = _BaseEvent;
/** 广告加载成功的回调 */
type _AdFullscreenVideoOnLoad = (event: _AdFullscreenVideoOnLoadEvent) => void;
interface _AdFullscreenVideoOnErrorDetail {
/** 错误码 */
errCode: number;
/** 错误信息 */
errMsg: string;
}
type _AdFullscreenVideoOnErrorEvent = _CustomEvent<_AdFullscreenVideoOnErrorDetail>;
/** 广告加载失败的回调 */
type _AdFullscreenVideoOnError = (event: _AdFullscreenVideoOnErrorEvent) => void;
type _AdFullscreenVideoOnCloseEvent = _BaseEvent;
/** 广告关闭的回调 */
type _AdFullscreenVideoOnClose = (event: _AdFullscreenVideoOnCloseEvent) => void;
/** 全屏视频广告属性 */
type _AdFullscreenVideoProps = CommonProps & Partial<{
/** APP 广告位 id */
adpid: string | number | (string | number)[];
/**
* 是否在页面就绪后加载广告数据
*
* 默认为 `true`
*/
preload: boolean;
/**
* 是否自动加载下一条广告数据
*
* 默认为 false
*/
loadnext: boolean;
/** 广告加载成功的回调 */
onLoad: _AdFullscreenVideoOnLoad;
/** 广告加载失败的回调 */
onError: _AdFullscreenVideoOnError;
/** 广告关闭的回调 */
onClose: _AdFullscreenVideoOnClose;
}>;
/** 全屏视频广告 */
type _AdFullscreenVideo = DefineComponent<_AdFullscreenVideoProps>;
/** 全屏视频广告实例 */
type _AdFullscreenVideoInstance = InstanceType<_AdFullscreenVideo>;
declare global {
namespace UniHelper {
type AdFullscreenVideoOnLoadEvent = _AdFullscreenVideoOnLoadEvent;
/** 广告加载成功的回调 */
interface AdFullscreenVideoOnLoad extends _AdFullscreenVideoOnLoad {}
interface AdFullscreenVideoOnErrorDetail extends _AdFullscreenVideoOnErrorDetail {}
type AdFullscreenVideoOnErrorEvent = _AdFullscreenVideoOnErrorEvent;
/** 广告加载失败的回调 */
interface AdFullscreenVideoOnError extends _AdFullscreenVideoOnError {}
type AdFullscreenVideoOnCloseEvent = _AdFullscreenVideoOnCloseEvent;
/** 广告关闭的回调 */
interface AdFullscreenVideoOnClose extends _AdFullscreenVideoOnClose {}
/** 全屏视频广告属性 */
type AdFullscreenVideoProps = _AdFullscreenVideoProps;
/** 全屏视频广告 */
type AdFullscreenVideo = _AdFullscreenVideo;
/** 全屏视频广告实例 */
type AdFullscreenVideoInstance = _AdFullscreenVideoInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 全屏视频广告
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/uni-ad/ad-fullscreen-video.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
AdFullscreenVideo: _AdFullscreenVideo;
}
}
//#endregion
//#region ../uni-app-types/src/ad/ad-interactive.d.ts
type _AdInteractiveOnLoadEvent = _BaseEvent;
/** 广告加载成功的回调 */
type _AdInteractiveOnLoad = (event: _AdInteractiveOnLoadEvent) => void;
interface _AdInteractiveOnErrorDetail {
/** 错误码 */
errCode: number;
/** 错误信息 */
errMsg: string;
}
type _AdInteractiveOnErrorEvent = _CustomEvent<_AdInteractiveOnErrorDetail>;
/** 广告加载失败的回调 */
type _AdInteractiveOnError = (event: _AdInteractiveOnErrorEvent) => void;
/** 互动广告属性 */
type _AdInteractiveProps = CommonProps & Partial<{
/** APP 广告位 id */
adpid: string;
/** 点击广告后打开的页面路径 */
openPagePath: string;
/** 广告加载成功的回调 */
onLoad: _AdInteractiveOnLoad;
/** 广告加载失败的回调 */
onError: _AdInteractiveOnError;
}>;
/** 互动广告 */
type _AdInteractive = DefineComponent<_AdInteractiveProps>;
/** 互动广告实例 */
type _AdInteractiveInstance = InstanceType<_AdInteractive>;
declare global {
namespace UniHelper {
type AdInteractiveOnLoadEvent = _AdInteractiveOnLoadEvent;
/** 广告加载成功的回调 */
interface AdInteractiveOnLoad extends _AdInteractiveOnLoad {}
interface AdInteractiveOnErrorDetail extends _AdInteractiveOnErrorDetail {}
type AdInteractiveOnErrorEvent = _AdInteractiveOnErrorEvent;
/** 广告加载失败的回调 */
interface AdInteractiveOnError extends _AdInteractiveOnError {}
/** 互动广告属性 */
type AdInteractiveProps = _AdInteractiveProps;
/** 互动广告 */
type AdInteractive = _AdInteractive;
/** 互动广告实例 */
type AdInteractiveInstance = _AdInteractiveInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 互动广告
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/uni-ad/ad-interactive.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
AdInteractive: _AdInteractive;
}
}
//#endregion
//#region ../uni-app-types/src/ad/ad-interstitial.d.ts
type _AdInterstitialOnLoadEvent = _BaseEvent;
/** 广告加载成功的回调 */
type _AdInterstitialOnLoad = (event: _AdInterstitialOnLoadEvent) => void;
interface _AdInterstitialOnErrorDetail {
/** 错误码 */
errCode: number;
/** 错误信息 */
errMsg: string;
}
type _AdInterstitialOnErrorEvent = _CustomEvent<_AdInterstitialOnErrorDetail>;
/** 广告加载失败的回调 */
type _AdInterstitialOnError = (event: _AdInterstitialOnErrorEvent) => void;
type _AdInterstitialOnCloseEvent = _BaseEvent;
/** 广告关闭的回调 */
type _AdInterstitialOnClose = (event: _AdInterstitialOnCloseEvent) => void;
/** 插屏广告属性 */
type _AdInterstitialProps = CommonProps & Partial<{
/** APP 广告位 id */
adpid: string | number | (string | number)[];
/**
* 是否在页面就绪后加载广告数据
*
* 默认为 `true`
*/
preload: boolean;
/**
* 是否自动加载下一条广告数据
*
* 默认为 `false`
*/
loadnext: boolean;
/** 广告加载成功的回调 */
onLoad: _AdInterstitialOnLoad;
/** 广告加载失败的回调 */
onError: _AdInterstitialOnError;
/** 广告关闭的回调 */
onClose: _AdInterstitialOnClose;
}>;
/** 插屏广告 */
type _AdInterstitial = DefineComponent<_AdInterstitialProps>;
/** 插屏广告实例 */
type _AdInterstitialInstance = InstanceType<_AdInterstitial>;
declare global {
namespace UniHelper {
type AdInterstitialOnLoadEvent = _AdInterstitialOnLoadEvent;
/** 广告加载成功的回调 */
interface AdInterstitialOnLoad extends _AdInterstitialOnLoad {}
interface AdInterstitialOnErrorDetail extends _AdInterstitialOnErrorDetail {}
type AdInterstitialOnErrorEvent = _AdInterstitialOnErrorEvent;
/** 广告加载失败的回调 */
interface AdInterstitialOnError extends _AdInterstitialOnError {}
type AdInterstitialOnCloseEvent = _AdInterstitialOnCloseEvent;
/** 广告关闭的回调 */
interface AdInterstitialOnClose extends _AdInterstitialOnClose {}
/** 插屏广告属性 */
type AdInterstitialProps = _AdInterstitialProps;
/** 插屏广告 */
type AdInterstitial = _AdInterstitial;
/** 插屏广告实例 */
type AdInterstitialInstance = _AdInterstitialInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 插屏广告
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/uni-ad/ad-interstitial.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
AdInterstitial: _AdInterstitial;
}
}
//#endregion
//#region ../uni-app-types/src/ad/ad-rewarded-video.d.ts
/** 服务器回调透传数据 */
interface _AdRewardedVideoUrlCallback {
userId: string;
extra: string;
}
type _AdRewardedVideoOnLoadEvent = _BaseEvent;
/** 广告加载成功的回调 */
type _AdRewardedVideoOnLoad = (event: _AdRewardedVideoOnLoadEvent) => void;
interface _AdRewardedVideoOnErrorDetail {
/** 错误码 */
errCode: number;
/** 错误信息 */
errMsg: string;
}
type _AdRewardedVideoOnErrorEvent = _CustomEvent<_AdRewardedVideoOnErrorDetail>;
/** 广告加载失败的回调 */
type _AdRewardedVideoOnError = (event: _AdRewardedVideoOnErrorEvent) => void;
type _AdRewardedVideoOnCloseEvent = _BaseEvent;
/** 广告关闭的回调 */
type _AdRewardedVideoOnClose = (event: _AdRewardedVideoOnCloseEvent) => void;
/** 激励视频广告属性 */
type _AdRewardedVideoProps = CommonProps & Partial<{
/** APP 广告位 id */
adpid: string | number | (string | number)[];
/**
* 是否在页面就绪后加载广告数据
*
* 默认为 `true`
*/
preload: boolean;
/**
* 是否自动加载下一条广告数据
*
* 默认为 `false`
*/
loadnext: boolean;
/** 服务器回调透传数据 */
urlCallback: _AdRewardedVideoUrlCallback;
/** 广告加载成功的回调 */
onLoad: _AdRewardedVideoOnLoad;
/** 广告加载失败的回调 */
onError: _AdRewardedVideoOnError;
/** 广告关闭的回调 */
onClose: _AdRewardedVideoOnClose;
}>;
/** 激励视频广告 */
type _AdRewardedVideo = DefineComponent<_AdRewardedVideoProps>;
/** 激励视频广告实例 */
type _AdRewardedVideoInstance = InstanceType<_AdRewardedVideo>;
declare global {
namespace UniHelper {
/** 服务器回调透传数据 */
interface AdRewardedVideoUrlCallback extends _AdRewardedVideoUrlCallback {}
type AdRewardedVideoOnLoadEvent = _AdRewardedVideoOnLoadEvent;
/** 广告加载成功的回调 */
interface AdRewardedVideoOnLoad extends _AdRewardedVideoOnLoad {}
interface AdRewardedVideoOnErrorDetail extends _AdRewardedVideoOnErrorDetail {}
type AdRewardedVideoOnErrorEvent = _AdRewardedVideoOnErrorEvent;
/** 广告加载失败的回调 */
interface AdRewardedVideoOnError extends _AdRewardedVideoOnError {}
type AdRewardedVideoOnCloseEvent = _AdRewardedVideoOnCloseEvent;
/** 广告关闭的回调 */
interface AdRewardedVideoOnClose extends _AdRewardedVideoOnClose {}
/** 激励视频广告属性 */
type AdRewardedVideoProps = _AdRewardedVideoProps;
/** 激励视频广告 */
type AdRewardedVideo = _AdRewardedVideo;
/** 激励视频广告实例 */
type AdRewardedVideoInstance = _AdRewardedVideoInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 激励视频广告
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/uni-ad/ad-rewarded-video.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
AdRewardedVideo: _AdRewardedVideo;
}
}
//#endregion
//#region ../uni-app-types/src/basic-components/icon.d.ts
/** 图标属性 */
type _IconProps = CommonProps & Partial<{
/** 类型 */
type: string;
/**
* 大小
*
* 单位为 px
*
* 默认为 23
*/
size: number;
/** 颜色 */
color: string;
}>;
/** 图标 */
type _Icon = DefineComponent<_IconProps>;
/** 图标实例 */
type _IconInstance = InstanceType<_Icon>;
declare global {
namespace UniHelper {
/** 图标属性 */
type IconProps = _IconProps;
/** 图标 */
type Icon = _Icon;
/** 图标实例 */
type IconInstance = _IconInstance;
}
}
declare module "vue" {
interface GlobalComponents {
/**
* 图标
* ***
* [👉🏻点击查看组件文档](https://uniapp.dcloud.net.cn/component/icon.html)
* |
* [使用说明](https://uni-typed.netlify.app/)
*/
icon: _Icon;
}
}
//#endregion
//#region ../uni-app-types/src/basic-components/progress.d.ts
/**
* 动画播放方式
*
* Backwards 动画从头播
*
* Forwards 动画从上