111
This commit is contained in:
1 parent
328489c6dd
commit
037dd3a17f
28 files changed
+958
-275
No files matched your search
@@ -1,7 +1,11 @@
|
||||
export * from "./use-copy";
|
||||
|
||||
export * from "./use-enum";
|
||||
|
||||
export * from "./use-img";
|
||||
|
||||
export * from "./use-page";
|
||||
|
||||
export * from "./use-phone";
|
||||
|
||||
export * from "./use-unit";
|
||||
@@ -0,0 +1,5 @@
|
||||
export const useCopy = async (str: string | undefined) => {
|
||||
if (str == undefined) return;
|
||||
const res = await uni.setClipboardData({ data: str });
|
||||
uni.showToast({ title: "复制成功", icon: "none" });
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export const useMakePhoneCall = (str: string | undefined) => {
|
||||
if (str == undefined) return;
|
||||
uni.makePhoneCall({ phoneNumber: str });
|
||||
};
|
||||
Reference in new issue
Block a user