You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
520 B

import { computed } from "vue";
import { getParent } from "/@/cool/utils";
// 点击
export function useTap(emit: (event: any, ...args: any[]) => void) {
function tap(e?: any) {
// #ifdef MP-WEIXIN
emit("click", e);
// #endif
// #ifdef MP-ALIPAY || H5
emit("tap", e);
// #endif
}
return {
tap,
};
}
// 表单
export function useForm() {
const form = getParent("cl-form", ["disabled"]);
const disabled = computed(() => form.value?.disabled);
return {
disabled,
};
}
export * from "./style";