公告板
版本库
filestore
活动
搜索
登录
jingshen
/
cool-admin-uniapp
京申-小程序
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
修改了首页手机号授权
wangrong
3 小时以前
a611c225b17219e873b60888e03c330fbe0c57a4
[jingshen/cool-admin-uniapp.git]
/
cool
/
hooks
/
comm.ts
1
2
3
4
5
6
7
8
9
10
11
import { reactive } from "vue";
export function useRefs() {
const refs = reactive<{ [key: string]: any }>({});
function setRefs(name: string) {
return (el: any) => {
refs[name] = el;
};
}
return { refs, setRefs };
}