Ai
1 Star 2 Fork 1

旻天信息/mttk-vue-wrap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
types.ts 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
旻天信息 提交于 2025-02-07 11:01 +08:00 . v0.3.1
import {SetupContext} from 'vue'
//VueWrap config
type WrapConfigFuncType = (context:ContextWrapType) =>WrapConfigType
export type WrapConfigType =Record<string, any>|WrapConfigFuncType;
//Slot para type
export type SlotParaType=any|undefined
//VueWrap context
export type ContextWrapType={
parent: ContextWrapType|undefined,
slotPara: SlotParaType,
getRef?:(instanceKey:string)=> HTMLInputElement | null,
instanceKey: string|Symbol,
//Internal use only
props?:WrapPropsType,
context?:SetupContext,
// modelValue:any,
configStd?:object,
}
//Below are type definitions for MttkWrapComp props
export type WrapPropsType={
config:WrapConfigType,
contextParent?:ContextWrapType,
slotPara?:SlotParaType
}
//Dynamic Render options
export type DynamicRenderOptionType={
appendTo:string|Element|undefined,
removeEvent:Function|undefined
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/jamie0828/mttk-vue-wrap.git
git@gitee.com:jamie0828/mttk-vue-wrap.git
jamie0828
mttk-vue-wrap
mttk-vue-wrap
master

搜索帮助