@tplc/wot
Version:
13 lines (12 loc) • 398 B
TypeScript
import { type DateTimeType } from './types'
/**
* @description 根据传入的值和类型,获取当前的选项数组,便于传入 pickerView
* @param value
* @param type picker类型
* @param useSecond 是否使用秒,仅在 time 和 datetime 类型下生效
*/
export declare function getPickerValue(
value: string | number,
type: DateTimeType,
useSecond?: boolean,
): number[]