antdv-next 1.0.0-beta.3 → 1.0.0-rc.1
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/_util/PurePanel.mjs +4 -4
- package/dist/_util/hooks/useClosable.d.mts +0 -1
- package/dist/_util/hooks/useClosable.mjs +1 -1
- package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
- package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
- package/dist/_util/tools.mjs +1 -1
- package/dist/_util/warning.d.mts +0 -1
- package/dist/affix/index.d.mts +3 -3
- package/dist/alert/Alert.d.mts +24 -7
- package/dist/alert/Alert.mjs +91 -28
- package/dist/anchor/Anchor.d.mts +18 -7
- package/dist/antd.css +1 -1
- package/dist/antd.js +101 -112
- package/dist/app/App.d.mts +2 -2
- package/dist/app/App.mjs +2 -2
- package/dist/auto-complete/index.d.mts +23 -11
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/avatar/Avatar.d.mts +3 -3
- package/dist/avatar/AvatarGroup.d.mts +2 -2
- package/dist/avatar/style/index.mjs +2 -2
- package/dist/badge/Ribbon.d.mts +21 -5
- package/dist/badge/Ribbon.mjs +44 -23
- package/dist/badge/SingleNumber.mjs +2 -1
- package/dist/badge/index.d.mts +14 -7
- package/dist/badge/style/ribbon.mjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
- package/dist/breadcrumb/Breadcrumb.mjs +18 -3
- package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
- package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
- package/dist/breadcrumb/style/index.mjs +5 -5
- package/dist/button/Button.d.mts +18 -10
- package/dist/button/buttonHelper.d.mts +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/style/compact.mjs +28 -19
- package/dist/button/style/token.d.mts +0 -5
- package/dist/button/style/variant.mjs +27 -3
- package/dist/calendar/generateCalendar.d.mts +20 -7
- package/dist/calendar/generateCalendar.mjs +1 -1
- package/dist/calendar/index.d.mts +3 -3
- package/dist/card/Card.d.mts +23 -6
- package/dist/card/CardGrid.d.mts +2 -2
- package/dist/card/CardMeta.d.mts +20 -7
- package/dist/carousel/index.d.mts +3 -3
- package/dist/cascader/Panel.d.mts +3 -3
- package/dist/cascader/index.d.mts +31 -10
- package/dist/checkbox/Checkbox.d.mts +16 -7
- package/dist/checkbox/Checkbox.mjs +1 -1
- package/dist/checkbox/Group.d.mts +4 -3
- package/dist/checkbox/Group.mjs +11 -2
- package/dist/collapse/Collapse.d.mts +19 -6
- package/dist/collapse/Collapse.mjs +1 -1
- package/dist/color-picker/ColorPicker.d.mts +3 -3
- package/dist/color-picker/interface.d.mts +15 -7
- package/dist/color-picker/style/input.mjs +2 -0
- package/dist/components.d.mts +2 -3
- package/dist/config-provider/context.d.mts +58 -12
- package/dist/config-provider/context.mjs +3 -3
- package/dist/config-provider/define.d.mts +7 -1
- package/dist/config-provider/index.d.mts +3 -4
- package/dist/config-provider/index.mjs +82 -8
- package/dist/date-picker/generatePicker/index.d.mts +15 -15
- package/dist/date-picker/generatePicker/interface.d.mts +37 -10
- package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
- package/dist/date-picker/index.d.mts +25 -25
- package/dist/descriptions/Cell.mjs +5 -5
- package/dist/descriptions/DescriptionsContext.d.mts +13 -0
- package/dist/descriptions/Item.d.mts +3 -3
- package/dist/descriptions/hooks/useRow.mjs +7 -7
- package/dist/descriptions/index.d.mts +22 -7
- package/dist/divider/index.d.mts +15 -5
- package/dist/drawer/DrawerPanel.d.mts +28 -3
- package/dist/drawer/DrawerPanel.mjs +3 -3
- package/dist/drawer/index.d.mts +4 -4
- package/dist/drawer/index.mjs +4 -0
- package/dist/drawer/style/index.mjs +9 -2
- package/dist/dropdown/dropdown.d.mts +20 -7
- package/dist/empty/index.d.mts +18 -7
- package/dist/flex/index.d.mts +3 -3
- package/dist/float-button/BackTop.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +6 -7
- package/dist/float-button/FloatButtonGroup.d.mts +25 -6
- package/dist/form/Form.d.mts +16 -7
- package/dist/form/FormItem/index.d.mts +3 -3
- package/dist/form/FormItem/index.mjs +1 -1
- package/dist/form/FormItemInput.d.mts +0 -1
- package/dist/grid/index.d.mts +2 -2
- package/dist/grid/row.d.mts +2 -2
- package/dist/image/PreviewGroup.d.mts +3 -5
- package/dist/image/index.d.mts +34 -14
- package/dist/index.d.mts +3 -4
- package/dist/input/Input.d.mts +17 -4
- package/dist/input/Input.mjs +2 -2
- package/dist/input/OTP/index.d.mts +13 -4
- package/dist/input/Password.mjs +3 -3
- package/dist/input/Search.d.mts +21 -9
- package/dist/input/TextArea.d.mts +16 -7
- package/dist/input/TextArea.mjs +2 -2
- package/dist/input/index.d.mts +11 -11
- package/dist/input/style/index.mjs +5 -2
- package/dist/input/style/variants.mjs +2 -1
- package/dist/input-number/index.d.mts +20 -7
- package/dist/layout/index.d.mts +6 -6
- package/dist/layout/layout.d.mts +2 -3
- package/dist/locale/index.d.mts +0 -1
- package/dist/masonry/Masonry.d.mts +14 -7
- package/dist/masonry/MasonryItem.mjs +2 -2
- package/dist/mentions/index.d.mts +18 -7
- package/dist/mentions/index.mjs +2 -2
- package/dist/mentions/style/index.mjs +2 -2
- package/dist/menu/MenuContext.d.mts +0 -1
- package/dist/menu/MenuDivider.d.mts +2 -2
- package/dist/menu/MenuItem.d.mts +3 -3
- package/dist/menu/MenuItem.mjs +4 -3
- package/dist/menu/SubMenu.d.mts +3 -3
- package/dist/menu/SubMenu.mjs +5 -0
- package/dist/menu/index.d.mts +5 -5
- package/dist/menu/menu.d.mts +42 -10
- package/dist/menu/menu.mjs +2 -2
- package/dist/menu/style/index.d.mts +1 -1
- package/dist/menu/style/vertical.mjs +1 -1
- package/dist/message/PurePanel.d.mts +5 -7
- package/dist/message/index.mjs +2 -2
- package/dist/message/interface.d.mts +20 -4
- package/dist/message/useMessage.d.mts +0 -1
- package/dist/modal/Modal.d.mts +3 -3
- package/dist/modal/confirm.mjs +8 -4
- package/dist/modal/interface.d.mts +22 -3
- package/dist/modal/style/index.mjs +11 -8
- package/dist/notification/PurePanel.d.mts +8 -8
- package/dist/notification/index.mjs +2 -2
- package/dist/notification/interface.d.mts +18 -5
- package/dist/notification/style/index.mjs +8 -8
- package/dist/notification/useNotification.d.mts +2 -3
- package/dist/package.d.mts +4 -0
- package/dist/package.mjs +1 -1
- package/dist/pagination/Pagination.d.mts +3 -3
- package/dist/pagination/Pagination.mjs +11 -10
- package/dist/pagination/interface.d.mts +14 -5
- package/dist/pagination/style/bordered.mjs +2 -2
- package/dist/pagination/style/index.d.mts +10 -5
- package/dist/pagination/style/index.mjs +52 -103
- package/dist/popconfirm/PurePanel.d.mts +5 -7
- package/dist/popconfirm/index.d.mts +8 -6
- package/dist/popconfirm/index.mjs +7 -3
- package/dist/popover/index.d.mts +16 -9
- package/dist/popover/index.mjs +8 -5
- package/dist/progress/Line.mjs +3 -3
- package/dist/progress/progress.d.mts +20 -7
- package/dist/qrcode/index.d.mts +3 -3
- package/dist/qrcode/index.mjs +2 -1
- package/dist/qrcode/interface.d.mts +11 -3
- package/dist/radio/group.mjs +3 -3
- package/dist/radio/index.d.mts +5 -5
- package/dist/radio/interface.d.mts +13 -3
- package/dist/radio/radio.d.mts +3 -3
- package/dist/radio/radio.mjs +1 -1
- package/dist/rate/index.d.mts +3 -3
- package/dist/result/index.d.mts +22 -7
- package/dist/result/index.mjs +11 -6
- package/dist/result/noFound.d.mts +2 -2
- package/dist/result/serverError.d.mts +2 -2
- package/dist/result/unauthorized.d.mts +2 -2
- package/dist/segmented/index.d.mts +18 -7
- package/dist/select/index.d.mts +48 -20
- package/dist/skeleton/Avatar.d.mts +2 -2
- package/dist/skeleton/Button.d.mts +2 -2
- package/dist/skeleton/Image.d.mts +2 -2
- package/dist/skeleton/Input.d.mts +2 -2
- package/dist/skeleton/Node.d.mts +3 -3
- package/dist/skeleton/Skeleton.d.mts +22 -7
- package/dist/slider/index.d.mts +19 -6
- package/dist/slider/index.mjs +4 -4
- package/dist/space/index.d.mts +18 -9
- package/dist/spin/Indicator/Progress.mjs +3 -3
- package/dist/spin/index.d.mts +19 -6
- package/dist/splitter/SplitBar.mjs +12 -12
- package/dist/splitter/Splitter.d.mts +3 -3
- package/dist/splitter/Splitter.mjs +1 -1
- package/dist/splitter/hooks/useItems.mjs +2 -2
- package/dist/splitter/hooks/useResizable.mjs +5 -5
- package/dist/splitter/hooks/useResize.mjs +2 -2
- package/dist/splitter/index.d.mts +2 -2
- package/dist/splitter/interface.d.mts +21 -7
- package/dist/splitter/style/index.mjs +2 -28
- package/dist/statistic/Statistic.d.mts +21 -6
- package/dist/statistic/Statistic.mjs +1 -1
- package/dist/statistic/Timer.d.mts +5 -5
- package/dist/statistic/index.d.mts +5 -5
- package/dist/steps/context.mjs +5 -2
- package/dist/steps/index.d.mts +31 -9
- package/dist/steps/index.mjs +3 -3
- package/dist/style/motion/fade.mjs +25 -0
- package/dist/switch/index.d.mts +14 -7
- package/dist/switch/index.mjs +2 -2
- package/dist/table/Column.d.mts +3 -3
- package/dist/table/ColumnGroup.d.mts +3 -3
- package/dist/table/InternalTable.d.mts +35 -13
- package/dist/table/InternalTable.mjs +12 -6
- package/dist/table/Table.d.mts +3 -3
- package/dist/table/TableMeasureRowContext.mjs +20 -0
- package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
- package/dist/table/hooks/useSelection.mjs +1 -1
- package/dist/table/interface.d.mts +1 -2
- package/dist/table/style/virtual.mjs +1 -1
- package/dist/tabs/TabPane.d.mts +3 -3
- package/dist/tabs/index.d.mts +27 -11
- package/dist/tabs/index.mjs +5 -5
- package/dist/tag/CheckableTag.d.mts +3 -3
- package/dist/tag/CheckableTagGroup.d.mts +3 -3
- package/dist/tag/index.d.mts +16 -7
- package/dist/tag/index.mjs +1 -1
- package/dist/tag/style/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -2
- package/dist/theme/interface/maps/index.d.mts +0 -1
- package/dist/theme/useToken.mjs +3 -3
- package/dist/theme/util/genStyleUtils.mjs +3 -2
- package/dist/time-picker/index.d.mts +38 -14
- package/dist/time-picker/index.mjs +1 -1
- package/dist/timeline/Timeline.d.mts +49 -14
- package/dist/timeline/Timeline.mjs +82 -11
- package/dist/timeline/index.d.mts +1 -2
- package/dist/timeline/style/horizontal.mjs +73 -0
- package/dist/timeline/style/index.d.mts +10 -5
- package/dist/timeline/style/index.mjs +93 -137
- package/dist/timeline/useItems.mjs +52 -0
- package/dist/tooltip/PurePanel.d.mts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
- package/dist/tooltip/index.d.mts +17 -8
- package/dist/tooltip/index.mjs +11 -3
- package/dist/tooltip/style/index.d.mts +7 -1
- package/dist/tooltip/style/index.mjs +3 -2
- package/dist/tour/index.d.mts +3 -3
- package/dist/tour/index.mjs +1 -1
- package/dist/tour/interface.d.mts +29 -3
- package/dist/transfer/Actions.d.mts +2 -2
- package/dist/transfer/ListItem.mjs +4 -4
- package/dist/transfer/Section.d.mts +2 -2
- package/dist/transfer/Transfer.d.mts +3 -3
- package/dist/transfer/Transfer.mjs +4 -4
- package/dist/transfer/index.d.mts +1 -1
- package/dist/transfer/interface.d.mts +32 -7
- package/dist/transfer/search.d.mts +3 -3
- package/dist/tree/DirectoryTree.d.mts +3 -3
- package/dist/tree/Tree.d.mts +18 -7
- package/dist/tree/index.d.mts +0 -1
- package/dist/tree-select/index.d.mts +41 -12
- package/dist/tree-select/style/index.d.mts +1 -1
- package/dist/typography/Editable.mjs +4 -4
- package/dist/typography/Link.d.mts +3 -3
- package/dist/typography/Paragraph.d.mts +3 -3
- package/dist/typography/Text.d.mts +3 -3
- package/dist/typography/Title.d.mts +3 -3
- package/dist/typography/Typography.d.mts +3 -3
- package/dist/typography/Typography.mjs +2 -12
- package/dist/typography/index.d.mts +9 -10
- package/dist/typography/interface.d.mts +0 -2
- package/dist/typography/style/mixins.mjs +3 -3
- package/dist/upload/Dragger.d.mts +3 -3
- package/dist/upload/Upload.d.mts +3 -4
- package/dist/upload/index.d.mts +3 -3
- package/dist/upload/interface.d.mts +13 -4
- package/dist/watermark/index.d.mts +2 -2
- package/dist/watermark/index.mjs +3 -3
- package/package.json +45 -41
- package/web-tags.json +1918 -1873
- package/web-types.json +6815 -7198
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
|
@@ -1,23 +1,51 @@
|
|
|
1
1
|
import { SizeType } from "../../config-provider/SizeContext.mjs";
|
|
2
2
|
import { AnyObject } from "../../_util/type.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../../_util/hooks/useMergeSemantic.mjs";
|
|
4
4
|
import "../../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../../_util/statusUtils.mjs";
|
|
6
6
|
import { TimePickerLocale } from "../../time-picker/index.mjs";
|
|
7
7
|
import { Variant } from "../../config-provider/context.mjs";
|
|
8
|
-
import { CSSProperties } from "vue";
|
|
8
|
+
import { CSSProperties, Ref } from "vue";
|
|
9
9
|
import { Locale, PickerProps, RangePickerProps } from "@v-c/picker";
|
|
10
10
|
|
|
11
11
|
//#region src/date-picker/generatePicker/interface.d.ts
|
|
12
12
|
declare const _DataPickerPlacements: readonly ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
13
13
|
type DataPickerPlacement = (typeof _DataPickerPlacements)[number];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
interface DatePickerSemanticClassNames {
|
|
15
|
+
root?: string;
|
|
16
|
+
prefix?: string;
|
|
17
|
+
input?: string;
|
|
18
|
+
suffix?: string;
|
|
19
|
+
}
|
|
20
|
+
interface DatePickerSemanticStyles {
|
|
21
|
+
root?: CSSProperties;
|
|
22
|
+
prefix?: CSSProperties;
|
|
23
|
+
input?: CSSProperties;
|
|
24
|
+
suffix?: CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
interface DatePickerPanelSemanticClassNames {
|
|
27
|
+
root?: string;
|
|
28
|
+
header?: string;
|
|
29
|
+
body?: string;
|
|
30
|
+
content?: string;
|
|
31
|
+
item?: string;
|
|
32
|
+
footer?: string;
|
|
33
|
+
container?: string;
|
|
34
|
+
}
|
|
35
|
+
interface DatePickerPanelSemanticStyles {
|
|
36
|
+
root?: CSSProperties;
|
|
37
|
+
header?: CSSProperties;
|
|
38
|
+
body?: CSSProperties;
|
|
39
|
+
content?: CSSProperties;
|
|
40
|
+
item?: CSSProperties;
|
|
41
|
+
footer?: CSSProperties;
|
|
42
|
+
container?: CSSProperties;
|
|
43
|
+
}
|
|
44
|
+
type DatePickerClassNamesType<P> = SemanticClassNamesType<InjectDefaultProps<P>, DatePickerSemanticClassNames, {
|
|
45
|
+
popup?: string | DatePickerPanelSemanticClassNames;
|
|
18
46
|
}>;
|
|
19
|
-
type DatePickerStylesType<P> = SemanticStylesType<InjectDefaultProps<P>,
|
|
20
|
-
popup?:
|
|
47
|
+
type DatePickerStylesType<P> = SemanticStylesType<InjectDefaultProps<P>, DatePickerSemanticStyles, {
|
|
48
|
+
popup?: DatePickerPanelSemanticStyles;
|
|
21
49
|
}>;
|
|
22
50
|
type PickerLocale = {
|
|
23
51
|
lang: Locale & AdditionalPickerLocaleLangProps;
|
|
@@ -62,8 +90,7 @@ type RcEventKeys = 'onChange' | 'onCalendarChange' | 'onPanelChange' | 'onOpenCh
|
|
|
62
90
|
type InjectDefaultProps<Props> = Omit<Props, 'locale' | 'generateConfig' | 'hideHeader' | 'classNames' | 'styles' | RcEventKeys | 'className' | 'style' | 'rootClassName'> & {
|
|
63
91
|
locale?: PickerLocale;
|
|
64
92
|
size?: SizeType;
|
|
65
|
-
placement?: DataPickerPlacement;
|
|
66
|
-
/** @deprecated Use `variant` instead */
|
|
93
|
+
placement?: DataPickerPlacement; /** @deprecated Use `variant` instead */
|
|
67
94
|
bordered?: boolean;
|
|
68
95
|
status?: InputStatus;
|
|
69
96
|
/**
|
|
@@ -5,11 +5,11 @@ import { computed, unref } from "vue";
|
|
|
5
5
|
import { clsx } from "@v-c/util";
|
|
6
6
|
|
|
7
7
|
//#region src/date-picker/hooks/useMergedPickerSemantic.ts
|
|
8
|
-
function useMergedPickerSemantic(pickerType, classNames
|
|
8
|
+
function useMergedPickerSemantic(pickerType, classNames, styles, popupClassName, popupStyle, mergedProps) {
|
|
9
9
|
const contextConfig = useComponentConfig(pickerType);
|
|
10
10
|
const contextClassNames = computed(() => contextConfig.value?.classes);
|
|
11
11
|
const contextStyles = computed(() => contextConfig.value?.styles);
|
|
12
|
-
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classNames
|
|
12
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classNames), useToArr(contextStyles, styles), useToProps(mergedProps), computed(() => ({ popup: { _default: "root" } })));
|
|
13
13
|
return [computed(() => {
|
|
14
14
|
const className = unref(popupClassName);
|
|
15
15
|
return {
|
|
@@ -2,7 +2,7 @@ import { DatePickerEmits, DatePickerSlots } from "./generatePicker/generateSingl
|
|
|
2
2
|
import { generatePicker } from "./generatePicker/index.mjs";
|
|
3
3
|
import { PickerLocale, PickerProps, PickerPropsWithMultiple, RangePickerProps as RangePickerProps$1 } from "./generatePicker/interface.mjs";
|
|
4
4
|
import { RangePickerEmits, RangePickerSlots } from "./generatePicker/generateRangePicker.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue23 from "vue";
|
|
6
6
|
import { Dayjs } from "dayjs";
|
|
7
7
|
|
|
8
8
|
//#region src/date-picker/index.d.ts
|
|
@@ -10,27 +10,27 @@ type DatePickerProps<ValueType = Dayjs, IsMultiple extends boolean = boolean> =
|
|
|
10
10
|
type MonthPickerProps<ValueType = Dayjs | Dayjs> = Omit<DatePickerProps<ValueType>, 'picker'>;
|
|
11
11
|
type WeekPickerProps<ValueType = Dayjs | Dayjs> = Omit<DatePickerProps<ValueType>, 'picker'>;
|
|
12
12
|
type RangePickerProps = RangePickerProps$1<Dayjs>;
|
|
13
|
-
declare const DatePicker:
|
|
13
|
+
declare const DatePicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
14
14
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
15
|
-
},
|
|
16
|
-
WeekPicker:
|
|
15
|
+
}, vue23.PublicProps> & {
|
|
16
|
+
WeekPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
17
17
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
18
|
-
},
|
|
19
|
-
MonthPicker:
|
|
18
|
+
}, vue23.PublicProps>;
|
|
19
|
+
MonthPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
22
|
-
YearPicker:
|
|
21
|
+
}, vue23.PublicProps>;
|
|
22
|
+
YearPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
23
23
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
24
|
-
},
|
|
25
|
-
RangePicker:
|
|
24
|
+
}, vue23.PublicProps>;
|
|
25
|
+
RangePicker: vue23.DefineSetupFnComponent<RangePickerProps$1<Dayjs>, RangePickerEmits<Dayjs>, vue23.SlotsType<RangePickerSlots>, RangePickerProps$1<Dayjs> & {
|
|
26
26
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
27
|
-
},
|
|
28
|
-
TimePicker:
|
|
27
|
+
}, vue23.PublicProps>;
|
|
28
|
+
TimePicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
29
29
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
30
|
-
},
|
|
31
|
-
QuarterPicker:
|
|
30
|
+
}, vue23.PublicProps>;
|
|
31
|
+
QuarterPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
32
32
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
33
|
-
},
|
|
33
|
+
}, vue23.PublicProps>;
|
|
34
34
|
};
|
|
35
35
|
type DatePickerType = typeof DatePicker & {
|
|
36
36
|
generatePicker: typeof generatePicker;
|
|
@@ -38,20 +38,20 @@ type DatePickerType = typeof DatePicker & {
|
|
|
38
38
|
_InternalRangePanelDoNotUseOrYouWillBeFired: any;
|
|
39
39
|
};
|
|
40
40
|
declare const _default: DatePickerType;
|
|
41
|
-
declare const DateRangePicker:
|
|
41
|
+
declare const DateRangePicker: vue23.DefineSetupFnComponent<RangePickerProps$1<Dayjs>, RangePickerEmits<Dayjs>, vue23.SlotsType<RangePickerSlots>, RangePickerProps$1<Dayjs> & {
|
|
42
42
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
43
|
-
},
|
|
44
|
-
declare const DateWeekPicker:
|
|
43
|
+
}, vue23.PublicProps>;
|
|
44
|
+
declare const DateWeekPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
45
45
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
46
|
-
},
|
|
47
|
-
declare const DateMonthPicker:
|
|
46
|
+
}, vue23.PublicProps>;
|
|
47
|
+
declare const DateMonthPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
48
48
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
49
|
-
},
|
|
50
|
-
declare const DateYearPicker:
|
|
49
|
+
}, vue23.PublicProps>;
|
|
50
|
+
declare const DateYearPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
51
51
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
52
|
-
},
|
|
53
|
-
declare const DateQuarterPicker:
|
|
52
|
+
}, vue23.PublicProps>;
|
|
53
|
+
declare const DateQuarterPicker: vue23.DefineSetupFnComponent<PickerProps<Dayjs>, DatePickerEmits<Dayjs>, vue23.SlotsType<DatePickerSlots>, PickerProps<Dayjs> & {
|
|
54
54
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
55
|
-
},
|
|
55
|
+
}, vue23.PublicProps>;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps, _default };
|
|
@@ -12,10 +12,10 @@ const Cell = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
12
12
|
return () => {
|
|
13
13
|
const { component, bordered, type, itemPrefixCls, span, styles, classes, colon } = props;
|
|
14
14
|
const { classes: descriptionsClassNames } = descContext.value;
|
|
15
|
-
const Component
|
|
15
|
+
const Component = component;
|
|
16
16
|
const label = getSlotPropsFnRun(slots, props, "label");
|
|
17
17
|
const content = getSlotPropsFnRun(slots, props, "content");
|
|
18
|
-
if (bordered) return createVNode(Component
|
|
18
|
+
if (bordered) return createVNode(Component, mergeProps({
|
|
19
19
|
"class": classNames({
|
|
20
20
|
[`${itemPrefixCls}-item-label`]: type === "label",
|
|
21
21
|
[`${itemPrefixCls}-item-content`]: type === "content",
|
|
@@ -30,7 +30,7 @@ const Cell = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
30
30
|
"style": styles?.content,
|
|
31
31
|
"class": classes?.content
|
|
32
32
|
}, [content])] });
|
|
33
|
-
return createVNode(Component
|
|
33
|
+
return createVNode(Component, mergeProps({ "class": classNames(`${itemPrefixCls}-item`) }, attrs, { "colSpan": span }), { default: () => [createVNode("div", { "class": `${itemPrefixCls}-item-container` }, [(label || label === 0) && createVNode("span", { "class": classNames(`${itemPrefixCls}-item-label`, descriptionsClassNames?.label, { [`${itemPrefixCls}-item-no-colon`]: !colon }, classes?.label) }, [label]), (content || content === 0) && createVNode("span", {
|
|
34
34
|
"class": classNames(`${itemPrefixCls}-item-content`, descriptionsClassNames?.content, classes?.content),
|
|
35
35
|
"style": styles?.content
|
|
36
36
|
}, [content])])] });
|
|
@@ -51,12 +51,12 @@ const Cell = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
51
51
|
required: true,
|
|
52
52
|
default: void 0
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
classes: {
|
|
55
55
|
type: Object,
|
|
56
56
|
required: false,
|
|
57
57
|
default: void 0
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
styles: {
|
|
60
60
|
type: Object,
|
|
61
61
|
required: false,
|
|
62
62
|
default: void 0
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CSSProperties, Ref } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/descriptions/DescriptionsContext.d.ts
|
|
4
|
+
interface CellSemanticClassNames {
|
|
5
|
+
label?: string;
|
|
6
|
+
content?: string;
|
|
7
|
+
}
|
|
8
|
+
interface CellSemanticStyles {
|
|
9
|
+
label?: CSSProperties;
|
|
10
|
+
content?: CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CellSemanticClassNames, CellSemanticStyles };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Breakpoint } from "../_util/responsiveObserver.mjs";
|
|
2
2
|
import { VueNode } from "../_util/type.mjs";
|
|
3
|
+
import { CellSemanticClassNames, CellSemanticStyles } from "./DescriptionsContext.mjs";
|
|
3
4
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
4
5
|
import { CSSProperties } from "vue";
|
|
5
6
|
|
|
6
7
|
//#region src/descriptions/Item.d.ts
|
|
7
|
-
type SemanticName = 'label' | 'content';
|
|
8
8
|
interface DescriptionsItemProps extends ComponentBaseProps {
|
|
9
9
|
class?: string;
|
|
10
10
|
style?: CSSProperties;
|
|
11
11
|
label?: VueNode;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
classes?: CellSemanticClassNames;
|
|
13
|
+
styles?: CellSemanticStyles;
|
|
14
14
|
content?: VueNode;
|
|
15
15
|
span?: number | 'filled' | { [key in Breakpoint]?: number };
|
|
16
16
|
}
|
|
@@ -32,14 +32,14 @@ function getCalcRows(rowItems, mergedColumn) {
|
|
|
32
32
|
} else tmpRow.push(restItem);
|
|
33
33
|
});
|
|
34
34
|
if (tmpRow.length > 0) rows.push(tmpRow);
|
|
35
|
-
rows = rows.map((rows
|
|
36
|
-
const count
|
|
37
|
-
if (count
|
|
38
|
-
const last = rows
|
|
39
|
-
last.span = mergedColumn - (count
|
|
40
|
-
return rows
|
|
35
|
+
rows = rows.map((rows) => {
|
|
36
|
+
const count = rows.reduce((acc, item) => acc + (item.span || 1), 0);
|
|
37
|
+
if (count < mergedColumn) {
|
|
38
|
+
const last = rows[rows.length - 1];
|
|
39
|
+
last.span = mergedColumn - (count - (last.span || 1));
|
|
40
|
+
return rows;
|
|
41
41
|
}
|
|
42
|
-
return rows
|
|
42
|
+
return rows;
|
|
43
43
|
});
|
|
44
44
|
return [rows, exceed];
|
|
45
45
|
}
|
|
@@ -4,14 +4,29 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { DescriptionsItemProps } from "./Item.mjs";
|
|
6
6
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { SlotsType } from "vue";
|
|
7
|
+
import * as vue89 from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { Key } from "@v-c/util/dist/type";
|
|
10
10
|
|
|
11
11
|
//#region src/descriptions/index.d.ts
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
interface DescriptionsSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
header?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
extra?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
content?: string;
|
|
19
|
+
}
|
|
20
|
+
interface DescriptionsSemanticStyles {
|
|
21
|
+
root?: CSSProperties;
|
|
22
|
+
header?: CSSProperties;
|
|
23
|
+
title?: CSSProperties;
|
|
24
|
+
extra?: CSSProperties;
|
|
25
|
+
label?: CSSProperties;
|
|
26
|
+
content?: CSSProperties;
|
|
27
|
+
}
|
|
28
|
+
type DescriptionsClassNamesType = SemanticClassNamesType<DescriptionsProps, DescriptionsSemanticClassNames>;
|
|
29
|
+
type DescriptionsStylesType = SemanticStylesType<DescriptionsProps, DescriptionsSemanticStyles>;
|
|
15
30
|
interface InternalDescriptionsItemType extends Omit<DescriptionsItemProps, 'span'> {
|
|
16
31
|
key?: Key;
|
|
17
32
|
filled?: boolean;
|
|
@@ -50,8 +65,8 @@ interface DescriptionsSlots {
|
|
|
50
65
|
labelRender?: RenderDescriptionsItem;
|
|
51
66
|
contentRender?: RenderDescriptionsItem;
|
|
52
67
|
}
|
|
53
|
-
declare const Descriptions:
|
|
68
|
+
declare const Descriptions: vue89.DefineSetupFnComponent<DescriptionsProps, EmptyEmit, SlotsType<DescriptionsSlots>, DescriptionsProps & {
|
|
54
69
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
55
|
-
},
|
|
70
|
+
}, vue89.PublicProps>;
|
|
56
71
|
//#endregion
|
|
57
72
|
export { Descriptions, DescriptionsItemType, DescriptionsProps, DescriptionsSlots };
|
package/dist/divider/index.d.mts
CHANGED
|
@@ -3,13 +3,23 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import { Orientation } from "../_util/hooks/useOrientation.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue87 from "vue";
|
|
7
|
+
import { CSSProperties } from "vue";
|
|
7
8
|
|
|
8
9
|
//#region src/divider/index.d.ts
|
|
9
|
-
type SemanticName = 'root' | 'rail' | 'content';
|
|
10
10
|
type TitlePlacement = 'left' | 'right' | 'center' | 'start' | 'end';
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
interface DividerSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
rail?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
}
|
|
16
|
+
interface DividerSemanticStyles {
|
|
17
|
+
root?: CSSProperties;
|
|
18
|
+
rail?: CSSProperties;
|
|
19
|
+
content?: CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
type DividerClassNamesType = SemanticClassNamesType<DividerProps, DividerSemanticClassNames>;
|
|
22
|
+
type DividerStylesType = SemanticStylesType<DividerProps, DividerSemanticStyles>;
|
|
13
23
|
interface DividerProps extends ComponentBaseProps {
|
|
14
24
|
/** @deprecated please use `orientation` */
|
|
15
25
|
type?: Orientation;
|
|
@@ -32,6 +42,6 @@ interface DividerProps extends ComponentBaseProps {
|
|
|
32
42
|
classes?: DividerClassNamesType;
|
|
33
43
|
styles?: DividerStylesType;
|
|
34
44
|
}
|
|
35
|
-
declare const Divider:
|
|
45
|
+
declare const Divider: vue87.DefineSetupFnComponent<DividerProps, {}, {}, DividerProps & {}, vue87.PublicProps>;
|
|
36
46
|
//#endregion
|
|
37
47
|
export { Divider, DividerProps };
|
|
@@ -7,9 +7,34 @@ import { CSSProperties } from "vue";
|
|
|
7
7
|
import { DrawerProps } from "@v-c/drawer";
|
|
8
8
|
|
|
9
9
|
//#region src/drawer/DrawerPanel.d.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
interface DrawerSemanticClassNames {
|
|
11
|
+
root?: string;
|
|
12
|
+
mask?: string;
|
|
13
|
+
header?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
extra?: string;
|
|
16
|
+
section?: string;
|
|
17
|
+
body?: string;
|
|
18
|
+
footer?: string;
|
|
19
|
+
wrapper?: string;
|
|
20
|
+
dragger?: string;
|
|
21
|
+
close?: string;
|
|
22
|
+
}
|
|
23
|
+
interface DrawerSemanticStyles {
|
|
24
|
+
root?: CSSProperties;
|
|
25
|
+
mask?: CSSProperties;
|
|
26
|
+
header?: CSSProperties;
|
|
27
|
+
title?: CSSProperties;
|
|
28
|
+
extra?: CSSProperties;
|
|
29
|
+
section?: CSSProperties;
|
|
30
|
+
body?: CSSProperties;
|
|
31
|
+
footer?: CSSProperties;
|
|
32
|
+
wrapper?: CSSProperties;
|
|
33
|
+
dragger?: CSSProperties;
|
|
34
|
+
close?: CSSProperties;
|
|
35
|
+
}
|
|
36
|
+
type DrawerClassNamesType = SemanticClassNamesType<DrawerProps$1, DrawerSemanticClassNames>;
|
|
37
|
+
type DrawerStylesType = SemanticStylesType<DrawerProps$1, DrawerSemanticStyles>;
|
|
13
38
|
interface DrawerPanelProps {
|
|
14
39
|
prefixCls: string;
|
|
15
40
|
ariaId?: string;
|
|
@@ -19,9 +19,9 @@ const DrawerPanel = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
19
19
|
});
|
|
20
20
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, drawerClassNames), useToArr(contextStyles, drawerStyles), useToProps(mergedProps));
|
|
21
21
|
const closablePlacement = computed(() => {
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
24
|
-
if (typeof
|
|
22
|
+
const merged = props?.closable ?? contextClosable.value;
|
|
23
|
+
if (merged === false) return;
|
|
24
|
+
if (typeof merged === "object" && merged.placement === "end") return "end";
|
|
25
25
|
return "start";
|
|
26
26
|
});
|
|
27
27
|
const customCloseIconRender = (icon) => {
|
package/dist/drawer/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { MaskType } from "../_util/hooks/useMergedMask.mjs";
|
|
|
2
2
|
import "../_util/hooks/index.mjs";
|
|
3
3
|
import { FocusableConfig, OmitFocusType } from "./useFocusable.mjs";
|
|
4
4
|
import { DrawerPanelProps } from "./DrawerPanel.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue83 from "vue";
|
|
6
6
|
import { SlotsType } from "vue";
|
|
7
7
|
import { DrawerProps } from "@v-c/drawer";
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ interface DrawerResizableConfig {
|
|
|
15
15
|
onResizeEnd?: () => void;
|
|
16
16
|
}
|
|
17
17
|
interface DrawerProps$1 extends Omit<DrawerProps, 'maskStyle' | 'destroyOnHidden' | 'rootClassName' | 'mask' | 'resizable' | 'classNames' | 'styles' | 'onClose' | 'onKeyUp' | 'onKeyDown' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseOver' | 'onClick' | OmitFocusType>, Omit<DrawerPanelProps, 'prefixCls' | 'ariaId' | 'onClose'> {
|
|
18
|
-
size?: sizeType | number;
|
|
18
|
+
size?: sizeType | number | string;
|
|
19
19
|
resizable?: boolean | DrawerResizableConfig;
|
|
20
20
|
rootClass?: string;
|
|
21
21
|
open?: boolean;
|
|
@@ -48,8 +48,8 @@ interface DrawerSlots {
|
|
|
48
48
|
default?: () => any;
|
|
49
49
|
closeIcon?: () => any;
|
|
50
50
|
}
|
|
51
|
-
declare const Drawer:
|
|
51
|
+
declare const Drawer: vue83.DefineSetupFnComponent<DrawerProps$1, DrawerEmits, SlotsType<DrawerSlots>, DrawerProps$1 & {
|
|
52
52
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
53
|
-
},
|
|
53
|
+
}, vue83.PublicProps>;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { Drawer, DrawerEmits, DrawerProps$1 as DrawerProps, DrawerResizableConfig, DrawerSlots };
|
package/dist/drawer/index.mjs
CHANGED
|
@@ -50,6 +50,10 @@ const Drawer = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =
|
|
|
50
50
|
if (typeof size === "number") return size;
|
|
51
51
|
if (size === "large") return 736;
|
|
52
52
|
if (size === "default") return DEFAULT_SIZE;
|
|
53
|
+
if (typeof size === "string") {
|
|
54
|
+
if (/^\d+(\.\d+)?$/.test(size)) return Number(size);
|
|
55
|
+
return size;
|
|
56
|
+
}
|
|
53
57
|
if (!placement || placement === "left" || placement === "right") return width;
|
|
54
58
|
return height;
|
|
55
59
|
});
|
|
@@ -20,6 +20,7 @@ const genDrawerStyle = (token) => {
|
|
|
20
20
|
background: colorBgElevated,
|
|
21
21
|
display: "flex",
|
|
22
22
|
flexDirection: "column",
|
|
23
|
+
pointerEvents: "auto",
|
|
23
24
|
[`&${componentCls}-left`]: { boxShadow: token.boxShadowDrawerLeft },
|
|
24
25
|
[`&${componentCls}-right`]: { boxShadow: token.boxShadowDrawerRight },
|
|
25
26
|
[`&${componentCls}-top`]: { boxShadow: token.boxShadowDrawerUp },
|
|
@@ -168,14 +169,20 @@ const genDrawerStyle = (token) => {
|
|
|
168
169
|
[`${draggerCls}-left`]: {
|
|
169
170
|
top: 0,
|
|
170
171
|
bottom: 0,
|
|
171
|
-
|
|
172
|
+
right: {
|
|
173
|
+
_skip_check_: true,
|
|
174
|
+
value: 0
|
|
175
|
+
},
|
|
172
176
|
width: draggerSize,
|
|
173
177
|
cursor: "col-resize"
|
|
174
178
|
},
|
|
175
179
|
[`${draggerCls}-right`]: {
|
|
176
180
|
top: 0,
|
|
177
181
|
bottom: 0,
|
|
178
|
-
|
|
182
|
+
left: {
|
|
183
|
+
_skip_check_: true,
|
|
184
|
+
value: 0
|
|
185
|
+
},
|
|
179
186
|
width: draggerSize,
|
|
180
187
|
cursor: "col-resize"
|
|
181
188
|
},
|
|
@@ -4,8 +4,8 @@ import { AdjustOverflow } from "../_util/placements.mjs";
|
|
|
4
4
|
import { MenuEmits, MenuProps as MenuProps$1, MenuSlots } from "../menu/menu.mjs";
|
|
5
5
|
import "../menu/index.mjs";
|
|
6
6
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { SlotsType } from "vue";
|
|
7
|
+
import * as vue241 from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { AlignType } from "@v-c/trigger";
|
|
10
10
|
import { MenuProps } from "@v-c/menu";
|
|
11
11
|
|
|
@@ -15,9 +15,22 @@ type Placement = (typeof _Placements)[number];
|
|
|
15
15
|
interface DropdownArrowOptions {
|
|
16
16
|
pointAtCenter?: boolean;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
interface DropdownSemanticClassNames {
|
|
19
|
+
root?: string;
|
|
20
|
+
item?: string;
|
|
21
|
+
itemTitle?: string;
|
|
22
|
+
itemIcon?: string;
|
|
23
|
+
itemContent?: string;
|
|
24
|
+
}
|
|
25
|
+
interface DropdownSemanticStyles {
|
|
26
|
+
root?: CSSProperties;
|
|
27
|
+
item?: CSSProperties;
|
|
28
|
+
itemTitle?: CSSProperties;
|
|
29
|
+
itemIcon?: CSSProperties;
|
|
30
|
+
itemContent?: CSSProperties;
|
|
31
|
+
}
|
|
32
|
+
type DropdownClassNamesType = SemanticClassNamesType<DropdownProps, DropdownSemanticClassNames>;
|
|
33
|
+
type DropdownStylesType = SemanticStylesType<DropdownProps, DropdownSemanticStyles>;
|
|
21
34
|
interface DropdownProps extends ComponentBaseProps {
|
|
22
35
|
classes?: DropdownClassNamesType;
|
|
23
36
|
styles?: DropdownStylesType;
|
|
@@ -57,8 +70,8 @@ interface DropdownSlots extends MenuSlots {
|
|
|
57
70
|
source: 'trigger' | 'menu';
|
|
58
71
|
}) => any;
|
|
59
72
|
}
|
|
60
|
-
declare const Dropdown:
|
|
73
|
+
declare const Dropdown: vue241.DefineSetupFnComponent<DropdownProps, DropdownEmits, SlotsType<DropdownSlots>, DropdownProps & {
|
|
61
74
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
62
|
-
},
|
|
75
|
+
}, vue241.PublicProps>;
|
|
63
76
|
//#endregion
|
|
64
77
|
export { Dropdown, DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots };
|
package/dist/empty/index.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
5
|
-
import * as
|
|
6
|
-
import { SlotsType } from "vue";
|
|
5
|
+
import * as vue61 from "vue";
|
|
6
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/empty/index.d.ts
|
|
@@ -12,9 +12,20 @@ interface TransferLocale {
|
|
|
12
12
|
}
|
|
13
13
|
declare const defaultEmptyImg: vue_jsx_runtime0.JSX.Element;
|
|
14
14
|
declare const simpleEmptyImg: vue_jsx_runtime0.JSX.Element;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
interface EmptySemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
image?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
footer?: string;
|
|
20
|
+
}
|
|
21
|
+
interface EmptySemanticStyles {
|
|
22
|
+
root?: CSSProperties;
|
|
23
|
+
image?: CSSProperties;
|
|
24
|
+
description?: CSSProperties;
|
|
25
|
+
footer?: CSSProperties;
|
|
26
|
+
}
|
|
27
|
+
type EmptyClassNamesType = SemanticClassNamesType<EmptyProps, EmptySemanticClassNames>;
|
|
28
|
+
type EmptyStylesType = SemanticStylesType<EmptyProps, EmptySemanticStyles>;
|
|
18
29
|
interface EmptyProps extends ComponentBaseProps {
|
|
19
30
|
classes?: EmptyClassNamesType;
|
|
20
31
|
styles?: EmptyStylesType;
|
|
@@ -26,9 +37,9 @@ interface EmptySlots {
|
|
|
26
37
|
description: () => any;
|
|
27
38
|
default: () => any;
|
|
28
39
|
}
|
|
29
|
-
declare const Empty:
|
|
40
|
+
declare const Empty: vue61.DefineSetupFnComponent<EmptyProps, EmptyEmit, SlotsType<EmptySlots>, EmptyProps & {
|
|
30
41
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
31
|
-
},
|
|
42
|
+
}, vue61.PublicProps>;
|
|
32
43
|
declare const _default: typeof Empty & {
|
|
33
44
|
PRESENTED_IMAGE_DEFAULT: typeof defaultEmptyImg;
|
|
34
45
|
PRESENTED_IMAGE_SIMPLE: typeof simpleEmptyImg;
|
package/dist/flex/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.mjs";
|
|
2
2
|
import { FlexProps } from "./interface.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue91 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/flex/index.d.ts
|
|
7
7
|
interface FlexSlots {
|
|
8
8
|
default: () => any;
|
|
9
9
|
}
|
|
10
|
-
declare const Flex:
|
|
10
|
+
declare const Flex: vue91.DefineSetupFnComponent<FlexProps, EmptyEmit, SlotsType<FlexSlots>, FlexProps & {
|
|
11
11
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
12
|
-
},
|
|
12
|
+
}, vue91.PublicProps>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Flex };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FloatButtonProps } from "./FloatButton.mjs";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue275 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/float-button/BackTop.d.ts
|
|
@@ -17,9 +17,9 @@ interface BackTopSlots {
|
|
|
17
17
|
default?: () => any;
|
|
18
18
|
icon?: () => any;
|
|
19
19
|
}
|
|
20
|
-
declare const BackTop:
|
|
20
|
+
declare const BackTop: vue275.DefineSetupFnComponent<BackTopProps, BackTopEmits, SlotsType<BackTopSlots>, BackTopProps & {
|
|
21
21
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
22
|
-
},
|
|
22
|
+
}, vue275.PublicProps>;
|
|
23
23
|
declare const BackTopWithInstall: typeof BackTop;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { BackTopWithInstall };
|