@blueking/date-picker 0.0.37 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,14 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ /**
3
+ * 是否禁用
4
+ */
2
5
  disabled?: boolean | undefined;
3
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
7
  submit: () => void;
5
8
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ /**
10
+ * 是否禁用
11
+ */
6
12
  disabled?: boolean | undefined;
7
13
  }>>> & {
8
14
  onSubmit?: (() => any) | undefined;
@@ -1,6 +1,7 @@
1
1
  import type { PropType } from 'vue';
2
- import { ICommonTabItem } from '../typings';
2
+ import type { ICommonTabItem } from '../utils';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ /** modelValue 选中的tab */
4
5
  modelValue: {
5
6
  required: true;
6
7
  type: StringConstructor;
@@ -11,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
11
12
  type: PropType<ICommonTabItem[]>;
12
13
  };
13
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ /** modelValue 选中的tab */
14
16
  modelValue: {
15
17
  required: true;
16
18
  type: StringConstructor;
@@ -1,7 +1,16 @@
1
1
  import dayjs, { Dayjs } from 'dayjs';
2
2
  interface Props {
3
+ /**
4
+ * 格式化字符串 例如 YYYY-MM-DD HH:mm:ss(参考dayjs https://dayjs.gitee.io/docs/zh-CN/durations/format)
5
+ */
3
6
  format?: string;
7
+ /**
8
+ * 是否是now
9
+ */
4
10
  isNow?: boolean;
11
+ /**
12
+ * 最小日期
13
+ */
5
14
  minDate?: Dayjs;
6
15
  modelValue?: Dayjs;
7
16
  }
@@ -1,5 +1,5 @@
1
- import { DateValue } from '../typings';
2
- import { DateRange } from '../typings/date';
1
+ import { type DateValue } from '../utils';
2
+ import { DateRange } from '../utils/date';
3
3
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
4
  value: DateRange;
5
5
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,6 +1,7 @@
1
- import { NaturalDateValue } from '../typings';
2
- import { DateRange } from '../typings/date';
1
+ import { type NaturalDateValue } from '../utils';
2
+ import { DateRange } from '../utils/date';
3
3
  interface IProps {
4
+ /** 已选择自然日期 */
4
5
  value?: DateRange;
5
6
  }
6
7
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,6 +1,6 @@
1
- import { DateValue } from '../typings';
2
- import { DateRange } from '../typings/date';
3
- import { ITimezoneItem } from '../typings/timezone';
1
+ import { type DateValue } from '../utils';
2
+ import { DateRange } from '../utils/date';
3
+ import { type ITimezoneItem } from '../utils/timezone';
4
4
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
5
  defaultDate: DateRange;
6
6
  needTimezone?: boolean | undefined;
@@ -1,5 +1,5 @@
1
- import { DateMode, FutureDateValue, RecentDateValue } from '../typings';
2
- import { DateRange } from '../typings/date';
1
+ import { DateMode, type FutureDateValue, type RecentDateValue } from '../utils';
2
+ import { DateRange } from '../utils/date';
3
3
  interface IProps {
4
4
  type: DateMode.FUTURE | DateMode.RECENT;
5
5
  value?: DateRange;
@@ -1,4 +1,4 @@
1
- import { ITimezoneItem } from '../typings/timezone';
1
+ import { type ITimezoneItem } from '../utils/timezone';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  value?: string | undefined;
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,7 +1,7 @@
1
1
  import 'bkui-vue/lib/styles/reset.css';
2
2
  import dayjs from 'dayjs';
3
- import { type DateValue, type IDatePickerProps } from './typings';
4
- import { ITimezoneItem } from './typings/timezone';
3
+ import { type DateValue, type IDatePickerProps } from './utils';
4
+ import { type ITimezoneItem } from './utils/timezone';
5
5
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IDatePickerProps>, {
6
6
  behavior: string;
7
7
  format: string;
@@ -1,4 +1,4 @@
1
- import { DateMode } from './index';
1
+ import { DateMode, DateValue } from './index';
2
2
  export declare const DateUnitList: readonly [{
3
3
  readonly id: "s";
4
4
  readonly name: string;
@@ -77,3 +77,5 @@ export declare const naturalDateShortcutMap: {
77
77
  readonly 'now-2d/d~now-2d/d': string;
78
78
  readonly 'now-2y/y~now-2y/y': string;
79
79
  };
80
+ export declare const commonDateList: DateValue[];
81
+ export declare const NowConstant = "now";
@@ -1,5 +1,5 @@
1
1
  import dayjs, { type Dayjs } from 'dayjs';
2
- import { DateUnit } from './constant';
2
+ import { DateUnit, NowConstant } from './constant';
3
3
  export interface ICommonTabItem {
4
4
  id: string;
5
5
  name: string;
@@ -11,11 +11,11 @@ export declare enum DateMode {
11
11
  RECENT = "now-"
12
12
  }
13
13
  export type RecentValue = `${DateMode.RECENT}${number}${DateUnit}`;
14
- export type RecentDateValue = [RecentValue, 'now'];
14
+ export type RecentDateValue = [RecentValue, typeof NowConstant];
15
15
  export type FutureValue = `${DateMode.FUTURE}${number}${DateUnit}`;
16
- export type FutureDateValue = ['now', FutureValue];
16
+ export type FutureDateValue = [typeof NowConstant, FutureValue];
17
17
  export type NaturalSelectDate = `${RecentValue}/${DateUnit}`;
18
- export type NaturalDateValue = [NaturalSelectDate, 'now' | NaturalSelectDate];
18
+ export type NaturalDateValue = [NaturalSelectDate, NaturalSelectDate | typeof NowConstant];
19
19
  export type CommonDateValue = [string, string];
20
20
  export type DateValue = [Dayjs | number | string, Dayjs | number | string];
21
21
  export interface IDatePickerProps {