UNPKG

mine-h5-ui

Version:

一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍

42 lines (41 loc) 1.17 kB
import { USEHandle, USEShow, DayItem } from './types'; import { Ref, ComputedRef } from 'vue'; export declare const useShow: ({ visible }: USEShow.Option, initData: () => void) => { showAnimation: Ref<boolean, boolean>; destroy: Ref<boolean, boolean>; onClose: () => void; }; /** * 操作 */ export declare const useHandle: ({ props, emit, modelValue, visible }: USEHandle.Option) => { getStyle: ComputedRef<{ '--theme': string; }>; week: readonly string[]; dateInfo: ComputedRef<{ y: number; m: string; }>; days: Ref<{ value: string; y: number; m: number; d: number; disabled?: boolean | undefined; today?: boolean | undefined; selected?: boolean | undefined; }[], DayItem[] | { value: string; y: number; m: number; d: number; disabled?: boolean | undefined; today?: boolean | undefined; selected?: boolean | undefined; }[]>; onYearItem: (calc: 1 | -1) => void; onMonthItem: (calc: 1 | -1) => void; onDayItem: (item: DayItem, index: number) => void; initData: () => void; };