init
This commit is contained in:
26
types/component/datePicker/day.d.ts
vendored
Normal file
26
types/component/datePicker/day.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 获取年份列表
|
||||
*/
|
||||
declare const getYears: () => number[];
|
||||
/**
|
||||
* 获取当前日期
|
||||
*/
|
||||
declare const getDate: (val?: string) => Date;
|
||||
/**
|
||||
* 获取当前年份
|
||||
*/
|
||||
declare const getYear: (val?: string) => number;
|
||||
/**
|
||||
* 获取当前月份
|
||||
*/
|
||||
declare const getMonth: (val?: string) => number;
|
||||
declare const getDay: (val?: string) => number;
|
||||
/**
|
||||
* 获取月份天数
|
||||
*
|
||||
* @param year
|
||||
* @param month
|
||||
*/
|
||||
declare const getDayLength: (year: number, month: number) => number;
|
||||
declare const setDateList: (year: number, month: number) => any[];
|
||||
export { getDayLength, getYears, getDate, getMonth, getYear, getDay, setDateList, };
|
||||
4
types/component/datePicker/index.d.ts
vendored
Normal file
4
types/component/datePicker/index.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
declare const component: WithInstallType<typeof Component>;
|
||||
export default component;
|
||||
33
types/component/datePicker/interface.d.ts
vendored
Normal file
33
types/component/datePicker/interface.d.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Ref } from "vue";
|
||||
export declare type DatePickerType = "date" | "datetime" | "year" | "time" | "month";
|
||||
export declare type provideType = {
|
||||
currentYear: Ref;
|
||||
currentMonth: Ref;
|
||||
currentDay: Ref;
|
||||
dateValue: Ref;
|
||||
hms: Ref;
|
||||
type: string;
|
||||
showPanel: Ref;
|
||||
clear: Function;
|
||||
now: Function;
|
||||
ok: Function;
|
||||
range: boolean;
|
||||
rangeValue: {
|
||||
first: string;
|
||||
last: string;
|
||||
hover: string;
|
||||
firstTime: {
|
||||
hh: number;
|
||||
mm: number;
|
||||
ss: number;
|
||||
};
|
||||
lastTime: {
|
||||
hh: number;
|
||||
mm: number;
|
||||
ss: number;
|
||||
};
|
||||
};
|
||||
rangeSeparator: string;
|
||||
simple: boolean;
|
||||
timestamp: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user