UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

38 lines (37 loc) 1.53 kB
import { type StyleValue } from 'vue'; import { type TransitionHookName } from './useTransition'; import { type TransitionHookEmits } from '../components/popup/common'; export interface UseFormPopoutProps { visible?: boolean; modelValue?: any; validateEvent?: boolean; resettable?: boolean; } export interface FormPopoutProps { visible?: boolean; title?: string; popoutClass?: string; popoutStyle?: StyleValue; resettable?: boolean; validateEvent?: boolean; showConfirm?: boolean; showCancel?: boolean; } export declare function omitFormPopoutProps(props: {} & FormPopoutProps): import("vue").ComputedRef<Omit<FormPopoutProps, "visible" | "title" | "popoutClass" | "popoutStyle" | "resettable" | "validateEvent" | "showConfirm">>; export interface UseFormPopoutEmits extends TransitionHookEmits { (e: 'update:visible', visible: boolean): void; (e: 'update:model-value', ...args: any[]): void; (e: 'change', ...args: any[]): void; (e: 'confirm'): void; } export declare function useFormPopout(props: UseFormPopoutProps, emit: UseFormPopoutEmits, options?: { onChange?: (...args: any[]) => void; onConfirmBefore?: () => any; }): { innerVisible: import("vue").Ref<boolean | undefined, boolean | undefined>; innerValue: import("vue").Ref<any, any>; popoutValue: import("vue").Ref<any, any>; onChange: (value: any, ...args: any[]) => void; onConfirm: (showConfirm?: boolean) => void; onVisibleHook: (name: TransitionHookName) => void; };