naive-ui 2.41.0 → 2.42.0
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.
- package/dist/index.js +930 -428
- package/dist/index.mjs +927 -430
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/icon/src/styles/index.cssr.mjs +0 -1
- package/es/_internal/selection/src/Selection.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/dom/download.d.ts +1 -0
- package/es/_utils/dom/download.mjs +3 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.mjs +1 -1
- package/es/_utils/naive/index.d.ts +1 -0
- package/es/_utils/naive/index.mjs +1 -0
- package/es/_utils/naive/value.d.ts +1 -0
- package/es/_utils/naive/value.mjs +13 -0
- package/es/anchor/index.d.ts +1 -0
- package/es/anchor/src/Link.d.ts +3 -2
- package/es/anchor/src/Link.mjs +5 -2
- package/es/anchor/src/public-types.d.ts +5 -0
- package/es/anchor/src/public-types.mjs +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +1 -1
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +6 -6
- package/es/data-table/src/DataTable.mjs +6 -6
- package/es/data-table/src/styles/index.cssr.mjs +1 -0
- package/es/date-picker/src/DatePicker.d.ts +5 -5
- package/es/date-picker/src/DatePicker.mjs +1 -1
- package/es/date-picker/src/panel/date.d.ts +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +3 -3
- package/es/date-picker/src/panel/datetime.d.ts +2 -2
- package/es/date-picker/src/panel/datetime.mjs +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +3 -3
- package/es/date-picker/src/panel/datetimerange.mjs +2 -2
- package/es/date-picker/src/panel/month.d.ts +2 -2
- package/es/date-picker/src/panel/monthrange.d.ts +3 -3
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -4
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.mjs +3 -3
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/es/date-picker/src/panel/use-panel-common.mjs +1 -1
- package/es/date-picker/src/props.d.ts +2 -2
- package/es/date-picker/src/props.mjs +1 -1
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- package/es/form/index.d.ts +1 -0
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/interface.d.ts +0 -1
- package/es/form/src/public-types.d.ts +1 -0
- package/es/form/src/public-types.mjs +1 -0
- package/es/icon/src/styles/index.cssr.mjs +0 -1
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/Input.mjs +1 -8
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.mjs +1 -0
- package/es/input-otp/src/InputOtp.d.ts +875 -0
- package/es/input-otp/src/InputOtp.mjs +322 -0
- package/es/input-otp/src/public-types.d.ts +24 -0
- package/es/input-otp/src/public-types.mjs +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.mjs +20 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.mjs +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.mjs +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.mjs +3 -0
- package/es/input-otp/styles/light.d.ts +81 -0
- package/es/input-otp/styles/light.mjs +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.mjs +5 -0
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/radio/src/Radio.mjs +5 -5
- package/es/radio/src/styles/radio.cssr.mjs +3 -7
- package/es/select/src/Select.d.ts +1 -1
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/tabs/src/TabPane.d.ts +1 -0
- package/es/themes/dark.mjs +2 -1
- package/es/themes/light.mjs +2 -0
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +21 -17
- package/es/tree/src/Tree.mjs +4 -4
- package/es/tree/src/styles/index.cssr.mjs +0 -1
- package/es/tree-select/src/TreeSelect.d.ts +14 -1
- package/es/tree-select/src/TreeSelect.mjs +1 -0
- package/es/typography/src/text.d.ts +1 -1
- package/es/upload/index.d.ts +1 -0
- package/es/upload/index.mjs +1 -0
- package/es/upload/src/Upload.d.ts +11 -8
- package/es/upload/src/Upload.mjs +2 -0
- package/es/upload/src/UploadFile.mjs +8 -1
- package/es/upload/src/interface.d.ts +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/lib/_internal/icon/src/styles/index.cssr.js +0 -1
- package/lib/_internal/selection/src/Selection.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/dom/download.d.ts +1 -0
- package/lib/_utils/dom/download.js +4 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/naive/index.d.ts +1 -0
- package/lib/_utils/naive/index.js +3 -1
- package/lib/_utils/naive/value.d.ts +1 -0
- package/lib/_utils/naive/value.js +18 -0
- package/lib/anchor/index.d.ts +1 -0
- package/lib/anchor/src/Link.d.ts +3 -2
- package/lib/anchor/src/Link.js +4 -1
- package/lib/anchor/src/public-types.d.ts +5 -0
- package/lib/anchor/src/public-types.js +2 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +6 -6
- package/lib/data-table/src/DataTable.js +6 -6
- package/lib/data-table/src/styles/index.cssr.js +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +5 -5
- package/lib/date-picker/src/DatePicker.js +1 -1
- package/lib/date-picker/src/panel/date.d.ts +2 -2
- package/lib/date-picker/src/panel/daterange.d.ts +3 -3
- package/lib/date-picker/src/panel/datetime.d.ts +2 -2
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +3 -3
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +2 -2
- package/lib/date-picker/src/panel/monthrange.d.ts +3 -3
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -4
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +3 -3
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/lib/date-picker/src/panel/use-panel-common.js +1 -1
- package/lib/date-picker/src/props.d.ts +2 -2
- package/lib/date-picker/src/props.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- package/lib/form/index.d.ts +1 -0
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/interface.d.ts +0 -1
- package/lib/form/src/public-types.d.ts +1 -0
- package/lib/form/src/public-types.js +2 -0
- package/lib/icon/src/styles/index.cssr.js +0 -1
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/Input.js +0 -7
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +875 -0
- package/lib/input-otp/src/InputOtp.js +248 -0
- package/lib/input-otp/src/public-types.d.ts +24 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +25 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +81 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/radio/src/Radio.js +2 -2
- package/lib/radio/src/styles/radio.cssr.js +3 -7
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +99 -96
- package/lib/tabs/src/TabPane.d.ts +1 -0
- package/lib/themes/dark.js +1 -0
- package/lib/themes/light.js +92 -90
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +21 -17
- package/lib/tree/src/Tree.js +5 -4
- package/lib/tree/src/styles/index.cssr.js +0 -1
- package/lib/tree-select/src/TreeSelect.d.ts +14 -1
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/upload/index.d.ts +1 -0
- package/lib/upload/index.js +3 -1
- package/lib/upload/src/Upload.d.ts +11 -8
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.js +7 -2
- package/lib/upload/src/interface.d.ts +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/package.json +1 -1
- package/volar.d.ts +3 -2
- package/web-types.json +139 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormValidationStatus } from '../../../form/src/
|
|
1
|
+
import type { FormValidationStatus } from '../../../form/src/public-types';
|
|
2
2
|
import type { SelectBaseOption } from '../../../select/src/interface';
|
|
3
3
|
import type { TagRef } from '../../../tag/src/Tag';
|
|
4
4
|
import type { RenderLabel, RenderLabelImpl } from '../../select-menu/src/interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormValidationStatus } from '../form/src/
|
|
1
|
+
import type { FormValidationStatus } from '../form/src/public-types';
|
|
2
2
|
import { type ComputedRef, type Ref } from 'vue';
|
|
3
3
|
type FormItemSize = 'small' | 'medium' | 'large';
|
|
4
4
|
type AllowedSize = 'tiny' | 'small' | 'medium' | 'large' | 'huge' | number;
|
package/es/_utils/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './dom';
|
|
|
5
5
|
export { isBrowser } from './env/is-browser';
|
|
6
6
|
export { isJsdom } from './env/is-jsdom';
|
|
7
7
|
export { eventEffectNotPerformed, markEventEffectPerformed } from './event';
|
|
8
|
-
export { getTitleAttribute, largerSize, smallerSize, throwError, warn, warnOnce } from './naive';
|
|
8
|
+
export { getTitleAttribute, isArrayShallowEqual, largerSize, smallerSize, throwError, warn, warnOnce } from './naive';
|
|
9
9
|
export type { ExtractInternalPropTypes, ExtractPublicPropTypes, Mutable } from './naive';
|
|
10
10
|
export { call, createDataKey, createInjectionKey, createRefSetter, flatten, getFirstSlotVNode, getFirstSlotVNodeWithTypedProps, getSlot, getVNodeChildren, isNodeVShowFalse, isSlotEmpty, keep, keysOf, mergeEventHandlers, omit, render, resolveSlot, resolveSlotWithTypedProps, resolveWrappedSlot, resolveWrappedSlotWithProps, Wrapper } from './vue';
|
|
11
11
|
export type { MaybeArray } from './vue';
|
package/es/_utils/index.mjs
CHANGED
|
@@ -5,5 +5,5 @@ export * from "./dom/index.mjs";
|
|
|
5
5
|
export { isBrowser } from "./env/is-browser.mjs";
|
|
6
6
|
export { isJsdom } from "./env/is-jsdom.mjs";
|
|
7
7
|
export { eventEffectNotPerformed, markEventEffectPerformed } from "./event/index.mjs";
|
|
8
|
-
export { getTitleAttribute, largerSize, smallerSize, throwError, warn, warnOnce } from "./naive/index.mjs";
|
|
8
|
+
export { getTitleAttribute, isArrayShallowEqual, largerSize, smallerSize, throwError, warn, warnOnce } from "./naive/index.mjs";
|
|
9
9
|
export { call, createDataKey, createInjectionKey, createRefSetter, flatten, getFirstSlotVNode, getFirstSlotVNodeWithTypedProps, getSlot, getVNodeChildren, isNodeVShowFalse, isSlotEmpty, keep, keysOf, mergeEventHandlers, omit, render, resolveSlot, resolveSlotWithTypedProps, resolveWrappedSlot, resolveWrappedSlotWithProps, Wrapper } from "./vue/index.mjs";
|
|
@@ -2,4 +2,5 @@ export { getTitleAttribute } from './attribute';
|
|
|
2
2
|
export type { ExtractInternalPropTypes, ExtractPublicPropTypes } from './extract-public-props';
|
|
3
3
|
export type { Mutable } from './mutable';
|
|
4
4
|
export { largerSize, smallerSize } from './prop';
|
|
5
|
+
export { isArrayShallowEqual } from './value';
|
|
5
6
|
export { throwError, warn, warnOnce } from './warn';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isArrayShallowEqual<T extends Array<any>>(array1: T | null, array2: T | null): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function isArrayShallowEqual(array1, array2) {
|
|
2
|
+
if (array1 === null && array2 === null) return true;
|
|
3
|
+
if (array1 === null || array2 === null) return false;
|
|
4
|
+
if (array1.length === array2.length) {
|
|
5
|
+
for (let i = 0; i < array1.length; ++i) {
|
|
6
|
+
if (array1[i] !== array2[i]) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
}
|
package/es/anchor/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { anchorProps, default as NAnchor } from './src/AnchorAdapter';
|
|
|
2
2
|
export type { AnchorInst, AnchorProps } from './src/AnchorAdapter';
|
|
3
3
|
export { anchorLinkProps, default as NAnchorLink } from './src/Link';
|
|
4
4
|
export type { AnchorLinkProps } from './src/Link';
|
|
5
|
+
export type * from './src/public-types';
|
package/es/anchor/src/Link.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Ref, SlotsType } from 'vue';
|
|
2
|
+
import type { AnchorLinkSlots } from './public-types';
|
|
2
3
|
import { type ExtractPublicPropTypes } from '../../_utils';
|
|
3
4
|
export interface AnchorInjection {
|
|
4
5
|
activeHref: Ref<string | null>;
|
|
@@ -20,5 +21,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
21
|
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
22
|
readonly title: StringConstructor;
|
|
22
23
|
readonly href: StringConstructor;
|
|
23
|
-
}>> & Readonly<{}>, {},
|
|
24
|
+
}>> & Readonly<{}>, {}, SlotsType<AnchorLinkSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
25
|
export default _default;
|
package/es/anchor/src/Link.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'vooks';
|
|
2
2
|
import { defineComponent, h, inject, ref, toRef, watch } from 'vue';
|
|
3
|
-
import { createInjectionKey, getTitleAttribute } from "../../_utils/index.mjs";
|
|
3
|
+
import { createInjectionKey, getTitleAttribute, resolveSlot } from "../../_utils/index.mjs";
|
|
4
4
|
import { useInjectionCollection, useInjectionElementCollection } from "../../_utils/composable/index.mjs";
|
|
5
5
|
export const anchorInjectionKey = createInjectionKey('n-anchor');
|
|
6
6
|
export const anchorLinkProps = {
|
|
@@ -10,6 +10,7 @@ export const anchorLinkProps = {
|
|
|
10
10
|
export default defineComponent({
|
|
11
11
|
name: 'AnchorLink',
|
|
12
12
|
props: anchorLinkProps,
|
|
13
|
+
slots: Object,
|
|
13
14
|
setup(props, {
|
|
14
15
|
slots
|
|
15
16
|
}) {
|
|
@@ -44,7 +45,9 @@ export default defineComponent({
|
|
|
44
45
|
href: props.href,
|
|
45
46
|
title: getTitleAttribute(props.title),
|
|
46
47
|
onClick: handleClick
|
|
47
|
-
},
|
|
48
|
+
}, {
|
|
49
|
+
default: () => resolveSlot(slots.title, () => [props.title])
|
|
50
|
+
}), (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
53
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RenderLabel, RenderOption } from '../../_internal/select-menu/src/interface';
|
|
2
|
-
import type { FormValidationStatus } from '../../form/src/
|
|
2
|
+
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
3
3
|
import type { SelectBaseOption, SelectGroupOption, SelectIgnoredOption } from '../../select/src/interface';
|
|
4
4
|
import type { AutoCompleteDefaultSlotProps, AutoCompleteOptions, OnSelect, OnUpdateValue } from './interface';
|
|
5
5
|
import { type TreeNode } from 'treemate';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InternalSelectionInst } from '../../_internal';
|
|
2
2
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
3
|
-
import type { FormValidationStatus } from '../../form/src/
|
|
3
|
+
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
4
4
|
import type { PopoverProps } from '../../popover';
|
|
5
5
|
import type { SelectBaseOption } from '../../select/src/interface';
|
|
6
6
|
import type { CascaderMenuInstance, CascaderOption, ExpandTrigger, Filter, Key, OnLoad, OnUpdateValue, SelectMenuInstance, Value } from './interface';
|
package/es/components.d.ts
CHANGED
package/es/components.mjs
CHANGED
|
@@ -48,6 +48,7 @@ export * from "./image/index.mjs";
|
|
|
48
48
|
export * from "./infinite-scroll/index.mjs";
|
|
49
49
|
export * from "./input/index.mjs";
|
|
50
50
|
export * from "./input-number/index.mjs";
|
|
51
|
+
export * from "./input-otp/index.mjs";
|
|
51
52
|
export * from "./layout/index.mjs";
|
|
52
53
|
export * from "./legacy-grid/index.mjs";
|
|
53
54
|
export * from "./legacy-transfer/index.mjs";
|
|
@@ -49,6 +49,7 @@ import type { IconWrapperTheme } from '../../icon-wrapper/styles';
|
|
|
49
49
|
import type { IconTheme } from '../../icon/styles';
|
|
50
50
|
import type { ImageTheme } from '../../image/styles';
|
|
51
51
|
import type { InputNumberTheme } from '../../input-number/styles';
|
|
52
|
+
import type { InputOtpTheme } from '../../input-otp/styles';
|
|
52
53
|
import type { Size as InputSize } from '../../input/src/interface';
|
|
53
54
|
import type { InputTheme } from '../../input/styles';
|
|
54
55
|
import type { LayoutTheme } from '../../layout/styles';
|
|
@@ -190,6 +191,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
190
191
|
Marquee?: MarqueeTheme;
|
|
191
192
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
192
193
|
InternalSelection?: InternalSelectionTheme;
|
|
194
|
+
InputOtp?: InputOtpTheme;
|
|
193
195
|
}
|
|
194
196
|
export interface GlobalComponentConfig {
|
|
195
197
|
Pagination?: {
|
|
@@ -3872,12 +3872,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3872
3872
|
'--n-td-color-striped': string;
|
|
3873
3873
|
'--n-td-color-striped-modal': string;
|
|
3874
3874
|
'--n-td-color-striped-popover': string;
|
|
3875
|
-
'n-td-color-sorting': string;
|
|
3876
|
-
'n-td-color-sorting-modal': string;
|
|
3877
|
-
'n-td-color-sorting-popover': string;
|
|
3878
|
-
'n-th-color-sorting': string;
|
|
3879
|
-
'n-th-color-sorting-modal': string;
|
|
3880
|
-
'n-th-color-sorting-popover': string;
|
|
3875
|
+
'--n-td-color-sorting': string;
|
|
3876
|
+
'--n-td-color-sorting-modal': string;
|
|
3877
|
+
'--n-td-color-sorting-popover': string;
|
|
3878
|
+
'--n-th-color-sorting': string;
|
|
3879
|
+
'--n-th-color-sorting-modal': string;
|
|
3880
|
+
'--n-th-color-sorting-popover': string;
|
|
3881
3881
|
}> | undefined;
|
|
3882
3882
|
themeClass: import("vue").Ref<string, string> | undefined;
|
|
3883
3883
|
onRender: (() => void) | undefined;
|
|
@@ -375,12 +375,12 @@ export default defineComponent({
|
|
|
375
375
|
'--n-td-color-striped': tdColorStriped,
|
|
376
376
|
'--n-td-color-striped-modal': tdColorStripedModal,
|
|
377
377
|
'--n-td-color-striped-popover': tdColorStripedPopover,
|
|
378
|
-
'n-td-color-sorting': tdColorSorting,
|
|
379
|
-
'n-td-color-sorting-modal': tdColorSortingModal,
|
|
380
|
-
'n-td-color-sorting-popover': tdColorSortingPopover,
|
|
381
|
-
'n-th-color-sorting': thColorSorting,
|
|
382
|
-
'n-th-color-sorting-modal': thColorSortingModal,
|
|
383
|
-
'n-th-color-sorting-popover': thColorSortingPopover
|
|
378
|
+
'--n-td-color-sorting': tdColorSorting,
|
|
379
|
+
'--n-td-color-sorting-modal': tdColorSortingModal,
|
|
380
|
+
'--n-td-color-sorting-popover': tdColorSortingPopover,
|
|
381
|
+
'--n-th-color-sorting': thColorSorting,
|
|
382
|
+
'--n-th-color-sorting-modal': thColorSortingModal,
|
|
383
|
+
'--n-th-color-sorting-popover': thColorSortingPopover
|
|
384
384
|
};
|
|
385
385
|
});
|
|
386
386
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() => props.size[0]), cssVarsRef, props) : undefined;
|
|
@@ -60,6 +60,7 @@ export default c([cB('data-table', `
|
|
|
60
60
|
--n-merged-th-color: var(--n-th-color);
|
|
61
61
|
--n-merged-td-color: var(--n-td-color);
|
|
62
62
|
--n-merged-border-color: var(--n-border-color);
|
|
63
|
+
--n-merged-th-color-hover: var(--n-th-color-hover);
|
|
63
64
|
--n-merged-th-color-sorting: var(--n-th-color-sorting);
|
|
64
65
|
--n-merged-td-color-hover: var(--n-td-color-hover);
|
|
65
66
|
--n-merged-td-color-sorting: var(--n-td-color-sorting);
|
|
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
71
71
|
readonly endPlaceholder: StringConstructor;
|
|
72
72
|
readonly format: StringConstructor;
|
|
73
73
|
readonly dateFormat: StringConstructor;
|
|
74
|
-
readonly
|
|
74
|
+
readonly timePickerFormat: StringConstructor;
|
|
75
75
|
readonly actions: import("vue").PropType<Array<"clear" | "confirm" | "now"> | null>;
|
|
76
76
|
readonly shortcuts: import("vue").PropType<import("./interface").Shortcuts>;
|
|
77
77
|
readonly isDateDisabled: import("vue").PropType<import("./interface").IsDateDisabled>;
|
|
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
85
85
|
readonly firstDayOfWeek: import("vue").PropType<import("./interface").FirstDayOfWeek>;
|
|
86
86
|
readonly inputReadonly: BooleanConstructor;
|
|
87
87
|
readonly closeOnSelect: BooleanConstructor;
|
|
88
|
-
readonly status: import("vue").PropType<import("
|
|
88
|
+
readonly status: import("vue").PropType<import("../..").FormValidationStatus>;
|
|
89
89
|
readonly timePickerProps: import("vue").PropType<import("../..").TimePickerProps | [import("../..").TimePickerProps, import("../..").TimePickerProps]>;
|
|
90
90
|
readonly onClear: import("vue").PropType<() => void>;
|
|
91
91
|
readonly onConfirm: import("vue").PropType<import("./interface").OnConfirm>;
|
|
@@ -2042,7 +2042,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
2042
2042
|
}, any>;
|
|
2043
2043
|
}>>>;
|
|
2044
2044
|
}>, {
|
|
2045
|
-
mergedStatus: import("vue").ComputedRef<import("
|
|
2045
|
+
mergedStatus: import("vue").ComputedRef<import("../..").FormValidationStatus | undefined>;
|
|
2046
2046
|
mergedClsPrefix: Ref<string, string>;
|
|
2047
2047
|
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
2048
2048
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
@@ -3349,7 +3349,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
3349
3349
|
readonly endPlaceholder: StringConstructor;
|
|
3350
3350
|
readonly format: StringConstructor;
|
|
3351
3351
|
readonly dateFormat: StringConstructor;
|
|
3352
|
-
readonly
|
|
3352
|
+
readonly timePickerFormat: StringConstructor;
|
|
3353
3353
|
readonly actions: import("vue").PropType<Array<"clear" | "confirm" | "now"> | null>;
|
|
3354
3354
|
readonly shortcuts: import("vue").PropType<import("./interface").Shortcuts>;
|
|
3355
3355
|
readonly isDateDisabled: import("vue").PropType<import("./interface").IsDateDisabled>;
|
|
@@ -3363,7 +3363,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
3363
3363
|
readonly firstDayOfWeek: import("vue").PropType<import("./interface").FirstDayOfWeek>;
|
|
3364
3364
|
readonly inputReadonly: BooleanConstructor;
|
|
3365
3365
|
readonly closeOnSelect: BooleanConstructor;
|
|
3366
|
-
readonly status: import("vue").PropType<import("
|
|
3366
|
+
readonly status: import("vue").PropType<import("../..").FormValidationStatus>;
|
|
3367
3367
|
readonly timePickerProps: import("vue").PropType<import("../..").TimePickerProps | [import("../..").TimePickerProps, import("../..").TimePickerProps]>;
|
|
3368
3368
|
readonly onClear: import("vue").PropType<() => void>;
|
|
3369
3369
|
readonly onConfirm: import("vue").PropType<import("./interface").OnConfirm>;
|
|
@@ -821,7 +821,7 @@ export default defineComponent({
|
|
|
821
821
|
onPrevMonth: this.onPrevMonth,
|
|
822
822
|
onNextYear: this.onNextYear,
|
|
823
823
|
onPrevYear: this.onPrevYear,
|
|
824
|
-
|
|
824
|
+
timePickerFormat: this.timePickerFormat,
|
|
825
825
|
dateFormat: this.dateFormat,
|
|
826
826
|
calendarDayFormat: this.calendarDayFormat,
|
|
827
827
|
calendarHeaderYearFormat: this.calendarHeaderYearFormat,
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
readonly type: BooleanConstructor;
|
|
29
29
|
readonly default: undefined;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
timePickerFormat: {
|
|
32
32
|
readonly type: StringConstructor;
|
|
33
33
|
readonly value: "HH:mm:ss";
|
|
34
34
|
};
|
|
@@ -2092,7 +2092,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2092
2092
|
readonly type: BooleanConstructor;
|
|
2093
2093
|
readonly default: undefined;
|
|
2094
2094
|
};
|
|
2095
|
-
|
|
2095
|
+
timePickerFormat: {
|
|
2096
2096
|
readonly type: StringConstructor;
|
|
2097
2097
|
readonly value: "HH:mm:ss";
|
|
2098
2098
|
};
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
readonly type: BooleanConstructor;
|
|
20
20
|
readonly default: undefined;
|
|
21
21
|
};
|
|
22
|
-
readonly
|
|
22
|
+
readonly timePickerFormat: {
|
|
23
23
|
readonly type: StringConstructor;
|
|
24
24
|
readonly value: "HH:mm:ss";
|
|
25
25
|
};
|
|
@@ -2075,7 +2075,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2075
2075
|
endCalendarNextMonth: () => void;
|
|
2076
2076
|
endCalendarNextYear: () => void;
|
|
2077
2077
|
mergedIsDateDisabled: (ts: number) => boolean;
|
|
2078
|
-
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
|
|
2078
|
+
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
|
|
2079
2079
|
ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
|
|
2080
2080
|
calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
|
|
2081
2081
|
startCalendarMonth: import("vue").ComputedRef<string>;
|
|
@@ -2115,7 +2115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2115
2115
|
readonly type: BooleanConstructor;
|
|
2116
2116
|
readonly default: undefined;
|
|
2117
2117
|
};
|
|
2118
|
-
readonly
|
|
2118
|
+
readonly timePickerFormat: {
|
|
2119
2119
|
readonly type: StringConstructor;
|
|
2120
2120
|
readonly value: "HH:mm:ss";
|
|
2121
2121
|
};
|
|
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
23
23
|
readonly type: BooleanConstructor;
|
|
24
24
|
readonly default: undefined;
|
|
25
25
|
};
|
|
26
|
-
readonly
|
|
26
|
+
readonly timePickerFormat: {
|
|
27
27
|
readonly type: StringConstructor;
|
|
28
28
|
readonly value: "HH:mm:ss";
|
|
29
29
|
};
|
|
@@ -2083,7 +2083,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2083
2083
|
readonly type: BooleanConstructor;
|
|
2084
2084
|
readonly default: undefined;
|
|
2085
2085
|
};
|
|
2086
|
-
readonly
|
|
2086
|
+
readonly timePickerFormat: {
|
|
2087
2087
|
readonly type: StringConstructor;
|
|
2088
2088
|
readonly value: "HH:mm:ss";
|
|
2089
2089
|
};
|
|
@@ -53,7 +53,7 @@ export default defineComponent({
|
|
|
53
53
|
}), h(NTimePicker, Object.assign({
|
|
54
54
|
size: this.timePickerSize,
|
|
55
55
|
placeholder: this.locale.selectTime,
|
|
56
|
-
format: this.
|
|
56
|
+
format: this.timePickerFormat
|
|
57
57
|
}, Array.isArray(timePickerProps) ? undefined : timePickerProps, {
|
|
58
58
|
showIcon: false,
|
|
59
59
|
to: false,
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
readonly type: BooleanConstructor;
|
|
20
20
|
readonly default: undefined;
|
|
21
21
|
};
|
|
22
|
-
readonly
|
|
22
|
+
readonly timePickerFormat: {
|
|
23
23
|
readonly type: StringConstructor;
|
|
24
24
|
readonly value: "HH:mm:ss";
|
|
25
25
|
};
|
|
@@ -2075,7 +2075,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2075
2075
|
endCalendarNextMonth: () => void;
|
|
2076
2076
|
endCalendarNextYear: () => void;
|
|
2077
2077
|
mergedIsDateDisabled: (ts: number) => boolean;
|
|
2078
|
-
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
|
|
2078
|
+
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
|
|
2079
2079
|
ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
|
|
2080
2080
|
calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
|
|
2081
2081
|
startCalendarMonth: import("vue").ComputedRef<string>;
|
|
@@ -2115,7 +2115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2115
2115
|
readonly type: BooleanConstructor;
|
|
2116
2116
|
readonly default: undefined;
|
|
2117
2117
|
};
|
|
2118
|
-
readonly
|
|
2118
|
+
readonly timePickerFormat: {
|
|
2119
2119
|
readonly type: StringConstructor;
|
|
2120
2120
|
readonly value: "HH:mm:ss";
|
|
2121
2121
|
};
|
|
@@ -54,7 +54,7 @@ export default defineComponent({
|
|
|
54
54
|
onUpdateValue: this.handleStartDateInput
|
|
55
55
|
}), h(NTimePicker, Object.assign({
|
|
56
56
|
placeholder: this.locale.selectTime,
|
|
57
|
-
format: this.
|
|
57
|
+
format: this.timePickerFormat,
|
|
58
58
|
size: this.timePickerSize
|
|
59
59
|
}, Array.isArray(timePickerProps) ? timePickerProps[0] : timePickerProps, {
|
|
60
60
|
value: this.startTimeValue,
|
|
@@ -82,7 +82,7 @@ export default defineComponent({
|
|
|
82
82
|
onUpdateValue: this.handleEndDateInput
|
|
83
83
|
}), h(NTimePicker, Object.assign({
|
|
84
84
|
placeholder: this.locale.selectTime,
|
|
85
|
-
format: this.
|
|
85
|
+
format: this.timePickerFormat,
|
|
86
86
|
size: this.timePickerSize
|
|
87
87
|
}, Array.isArray(timePickerProps) ? timePickerProps[1] : timePickerProps, {
|
|
88
88
|
disabled: this.isSelecting,
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
30
30
|
readonly type: BooleanConstructor;
|
|
31
31
|
readonly default: undefined;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
timePickerFormat: {
|
|
34
34
|
readonly type: StringConstructor;
|
|
35
35
|
readonly value: "HH:mm:ss";
|
|
36
36
|
};
|
|
@@ -2096,7 +2096,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2096
2096
|
readonly type: BooleanConstructor;
|
|
2097
2097
|
readonly default: undefined;
|
|
2098
2098
|
};
|
|
2099
|
-
|
|
2099
|
+
timePickerFormat: {
|
|
2100
2100
|
readonly type: StringConstructor;
|
|
2101
2101
|
readonly value: "HH:mm:ss";
|
|
2102
2102
|
};
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
readonly type: BooleanConstructor;
|
|
26
26
|
readonly default: undefined;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
timePickerFormat: {
|
|
29
29
|
readonly type: StringConstructor;
|
|
30
30
|
readonly value: "HH:mm:ss";
|
|
31
31
|
};
|
|
@@ -2082,7 +2082,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2082
2082
|
endCalendarNextMonth: () => void;
|
|
2083
2083
|
endCalendarNextYear: () => void;
|
|
2084
2084
|
mergedIsDateDisabled: (ts: number) => boolean;
|
|
2085
|
-
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
|
|
2085
|
+
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
|
|
2086
2086
|
ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
|
|
2087
2087
|
calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
|
|
2088
2088
|
startCalendarMonth: import("vue").ComputedRef<string>;
|
|
@@ -2126,7 +2126,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2126
2126
|
readonly type: BooleanConstructor;
|
|
2127
2127
|
readonly default: undefined;
|
|
2128
2128
|
};
|
|
2129
|
-
|
|
2129
|
+
timePickerFormat: {
|
|
2130
2130
|
readonly type: StringConstructor;
|
|
2131
2131
|
readonly value: "HH:mm:ss";
|
|
2132
2132
|
};
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
52
52
|
readonly type: BooleanConstructor;
|
|
53
53
|
readonly default: undefined;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
timePickerFormat: {
|
|
56
56
|
readonly type: StringConstructor;
|
|
57
57
|
readonly value: "HH:mm:ss";
|
|
58
58
|
};
|
|
@@ -2133,7 +2133,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2133
2133
|
readonly type: BooleanConstructor;
|
|
2134
2134
|
readonly default: undefined;
|
|
2135
2135
|
};
|
|
2136
|
-
|
|
2136
|
+
timePickerFormat: {
|
|
2137
2137
|
readonly type: StringConstructor;
|
|
2138
2138
|
readonly value: "HH:mm:ss";
|
|
2139
2139
|
};
|
|
@@ -4207,7 +4207,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4207
4207
|
readonly type: BooleanConstructor;
|
|
4208
4208
|
readonly default: undefined;
|
|
4209
4209
|
};
|
|
4210
|
-
|
|
4210
|
+
timePickerFormat: {
|
|
4211
4211
|
readonly type: StringConstructor;
|
|
4212
4212
|
readonly value: "HH:mm:ss";
|
|
4213
4213
|
};
|
|
@@ -6288,7 +6288,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6288
6288
|
readonly type: BooleanConstructor;
|
|
6289
6289
|
readonly default: undefined;
|
|
6290
6290
|
};
|
|
6291
|
-
|
|
6291
|
+
timePickerFormat: {
|
|
6292
6292
|
readonly type: StringConstructor;
|
|
6293
6293
|
readonly value: "HH:mm:ss";
|
|
6294
6294
|
};
|
|
@@ -24,7 +24,7 @@ declare const useDualCalendarProps: {
|
|
|
24
24
|
readonly type: BooleanConstructor;
|
|
25
25
|
readonly default: undefined;
|
|
26
26
|
};
|
|
27
|
-
readonly
|
|
27
|
+
readonly timePickerFormat: {
|
|
28
28
|
readonly type: StringConstructor;
|
|
29
29
|
readonly value: "HH:mm:ss";
|
|
30
30
|
};
|
|
@@ -2081,7 +2081,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
2081
2081
|
endCalendarNextMonth: () => void;
|
|
2082
2082
|
endCalendarNextYear: () => void;
|
|
2083
2083
|
mergedIsDateDisabled: (ts: number) => boolean;
|
|
2084
|
-
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done") => void;
|
|
2084
|
+
changeStartEndTime: (startTime: number, endTime: number, source: "shortcutPreview" | "wipPreview" | "done" | "shortcutDone") => void;
|
|
2085
2085
|
ranges: import("vue").Ref<Record<string, [number, number]> | undefined, Record<string, [number, number]> | undefined>;
|
|
2086
2086
|
calendarMonthBeforeYear: import("vue").ComputedRef<boolean>;
|
|
2087
2087
|
startCalendarMonth: import("vue").ComputedRef<string>;
|
|
@@ -347,7 +347,7 @@ function useDualCalendar(props, type) {
|
|
|
347
347
|
if (typeof startTime !== 'number') {
|
|
348
348
|
startTime = getTime(startTime);
|
|
349
349
|
}
|
|
350
|
-
if (source !== 'shortcutPreview') {
|
|
350
|
+
if (source !== 'shortcutPreview' && source !== 'shortcutDone') {
|
|
351
351
|
let startDefaultTime;
|
|
352
352
|
let endDefaultTime;
|
|
353
353
|
if (type === 'datetimerange') {
|
|
@@ -369,7 +369,7 @@ function useDualCalendar(props, type) {
|
|
|
369
369
|
endTime = getTime(set(endTime, endDefaultTime));
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
panelCommon.doUpdateValue([startTime, endTime], props.panel && source === 'done');
|
|
372
|
+
panelCommon.doUpdateValue([startTime, endTime], props.panel && (source === 'done' || source === 'shortcutDone'));
|
|
373
373
|
}
|
|
374
374
|
function sanitizeValue(datetime) {
|
|
375
375
|
if (type === 'datetimerange') {
|
|
@@ -510,7 +510,7 @@ function useDualCalendar(props, type) {
|
|
|
510
510
|
function handleRangeShortcutClick(shortcut) {
|
|
511
511
|
const shortcutValue = panelCommon.getShortcutValue(shortcut);
|
|
512
512
|
if (!Array.isArray(shortcutValue)) return;
|
|
513
|
-
changeStartEndTime(shortcutValue[0], shortcutValue[1], '
|
|
513
|
+
changeStartEndTime(shortcutValue[0], shortcutValue[1], 'shortcutDone');
|
|
514
514
|
panelCommon.clearPendingValue();
|
|
515
515
|
handleConfirmClick();
|
|
516
516
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { FollowerPlacement } from 'vueuc';
|
|
3
3
|
import type { MaybeArray } from '../../_utils';
|
|
4
|
-
import type { FormValidationStatus } from '../../form/src/
|
|
4
|
+
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
5
5
|
import type { TimePickerProps } from '../../time-picker';
|
|
6
6
|
import type { DatePickerType } from './config';
|
|
7
7
|
import type { DefaultTime, FirstDayOfWeek, FormattedValue, IsDateDisabled, IsTimeDisabled, OnConfirm, OnUpdateFormattedValue, OnUpdateValue, Shortcuts, Value } from './interface';
|
|
@@ -52,7 +52,7 @@ export declare const datePickerProps: {
|
|
|
52
52
|
readonly endPlaceholder: StringConstructor;
|
|
53
53
|
readonly format: StringConstructor;
|
|
54
54
|
readonly dateFormat: StringConstructor;
|
|
55
|
-
readonly
|
|
55
|
+
readonly timePickerFormat: StringConstructor;
|
|
56
56
|
readonly actions: PropType<Array<"clear" | "confirm" | "now"> | null>;
|
|
57
57
|
readonly shortcuts: PropType<Shortcuts>;
|
|
58
58
|
readonly isDateDisabled: PropType<IsDateDisabled>;
|
|
@@ -44,7 +44,7 @@ export const datePickerProps = Object.assign(Object.assign({}, useTheme.props),
|
|
|
44
44
|
endPlaceholder: String,
|
|
45
45
|
format: String,
|
|
46
46
|
dateFormat: String,
|
|
47
|
-
|
|
47
|
+
timePickerFormat: String,
|
|
48
48
|
actions: Array,
|
|
49
49
|
shortcuts: Object,
|
|
50
50
|
isDateDisabled: Function,
|
|
@@ -412,7 +412,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
412
412
|
readonly column: number;
|
|
413
413
|
readonly separator: string;
|
|
414
414
|
readonly bordered: boolean;
|
|
415
|
-
readonly labelAlign: "left" | "right" | "center";
|
|
416
415
|
readonly labelPlacement: "left" | "top";
|
|
416
|
+
readonly labelAlign: "left" | "right" | "center";
|
|
417
417
|
}, SlotsType<DescriptionsSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
418
418
|
export default _default;
|