antdv-next 1.0.0-alpha.4 → 1.0.0-beta.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.js +106 -0
- package/dist/_util/hooks/useMergeSemantic.js +3 -3
- package/dist/_util/styleUtils.js +10 -0
- package/dist/_util/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +1 -1
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/AnchorLink.js +2 -2
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +123 -115
- package/dist/app/App.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +78 -0
- package/dist/auto-complete/index.js +634 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/ScrollNumber.js +1 -1
- package/dist/badge/SingleNumber.js +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/index.js +5 -3
- package/dist/badge/style/index.js +1 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +0 -8
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +1 -17
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +1 -1
- package/dist/calendar/generateCalendar.d.ts +3 -3
- package/dist/calendar/index.d.ts +3 -3
- package/dist/calendar/style/index.d.ts +1 -1
- package/dist/calendar/style/index.js +1 -1
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/card/style/index.js +11 -2
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/index.d.ts +4 -3
- package/dist/cascader/index.js +3 -1
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/checkbox/style/index.d.ts +1 -1
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/color-picker/ColorPicker.d.ts +3 -3
- package/dist/color-picker/ColorPicker.js +13 -2
- package/dist/components.d.ts +11 -8
- package/dist/components.js +7 -4
- package/dist/config-provider/context.d.ts +2 -1
- package/dist/config-provider/context.js +3 -3
- package/dist/config-provider/define.d.ts +14 -0
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/config-provider/index.js +21 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -2
- package/dist/date-picker/generatePicker/index.d.ts +17 -17
- package/dist/date-picker/index.d.ts +29 -27
- package/dist/date-picker/index.js +3 -0
- package/dist/date-picker/style/panel.js +4 -4
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/divider/index.d.ts +2 -2
- package/dist/drawer/index.d.ts +6 -4
- package/dist/drawer/index.js +17 -5
- package/dist/drawer/useFocusable.d.ts +10 -0
- package/dist/drawer/useFocusable.js +18 -0
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +12 -3
- package/dist/empty/index.d.ts +3 -3
- package/dist/flex/index.d.ts +3 -3
- package/dist/flex/index.js +1 -1
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/BackTop.js +4 -1
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/PurePanel.js +5 -5
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/ErrorList.js +4 -7
- package/dist/form/Form.d.ts +7 -3
- package/dist/form/Form.js +39 -22
- package/dist/form/FormItem/ItemHolder.js +0 -1
- package/dist/form/FormItem/index.d.ts +5 -5
- package/dist/form/FormItem/index.js +48 -29
- package/dist/form/FormItemInput.js +17 -19
- package/dist/form/style/index.js +3 -2
- package/dist/form/utils/valueUtil.js +4 -1
- package/dist/grid/col.js +7 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.js +7 -5
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/index.d.ts +7 -4
- package/dist/image/index.js +2 -0
- package/dist/image/style/index.d.ts +1 -1
- package/dist/index.d.ts +16 -12
- package/dist/index.js +7 -4
- package/dist/input/Input.js +1 -1
- package/dist/input/OTP/index.js +1 -1
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/index.d.ts +11 -11
- package/dist/input/style/index.d.ts +2 -2
- package/dist/input-number/index.d.ts +4 -4
- package/dist/input-number/index.js +2 -6
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/layout/style/sider.js +1 -1
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +8 -6
- package/dist/mentions/index.d.ts +4 -3
- package/dist/mentions/index.js +4 -2
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/index.d.ts +5 -5
- package/dist/menu/style/horizontal.js +1 -1
- package/dist/menu/style/index.js +5 -5
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/message/useMessage.d.ts +1 -0
- package/dist/modal/ConfirmDialog.js +1 -1
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/modal/Modal.js +17 -6
- package/dist/modal/PurePanel.js +305 -0
- package/dist/modal/index.js +2 -0
- package/dist/modal/interface.d.ts +3 -1
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/PurePanel.js +4 -3
- package/dist/notification/style/index.d.ts +1 -1
- package/dist/notification/useNotification.d.ts +2 -1
- package/dist/notification/useNotification.js +7 -7
- package/dist/package.d.ts +143 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/PurePanel.js +2 -1
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popover/PurePanel.js +4 -2
- package/dist/popover/index.d.ts +9 -6
- package/dist/popover/index.js +2 -1
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/progress.d.ts +3 -3
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/radio/style/index.js +1 -1
- package/dist/rate/index.d.ts +3 -3
- package/dist/rate/style/index.d.ts +1 -1
- package/dist/result/index.d.ts +3 -3
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +5 -3
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +3 -3
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/skeleton/Skeleton.js +1 -1
- package/dist/skeleton/Title.d.ts +1 -2
- package/dist/skeleton/Title.js +0 -5
- package/dist/slider/index.d.ts +3 -3
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +17 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/style/addon.js +20 -19
- package/dist/spin/index.d.ts +3 -3
- package/dist/spin/index.js +7 -6
- package/dist/splitter/SplitBar.js +9 -2
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +2 -1
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/ProgressIcon.js +9 -2
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +7 -4
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +12 -9
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +20 -17
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/InternalTable.js +20 -6
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/table/style/index.js +3 -3
- package/dist/table/style/radius.js +6 -0
- package/dist/table/style/virtual.js +1 -1
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.js +3 -3
- package/dist/tag/index.d.ts +3 -3
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/useToken.d.ts +2 -2
- package/dist/theme/useToken.js +1 -1
- package/dist/theme/util/genStyleUtils.d.ts +2 -2
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/theme/util/useResetIconStyle.js +1 -1
- package/dist/time-picker/index.d.ts +8 -7
- package/dist/time-picker/index.js +17 -13
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +12 -8
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/PurePanel.js +243 -0
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/index.js +2 -0
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +2 -2
- package/dist/transfer/search.d.ts +3 -3
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree/style/index.d.ts +1 -1
- package/dist/tree-select/index.d.ts +5 -4
- package/dist/tree-select/index.js +3 -1
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Text.d.ts +3 -3
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/Upload.js +15 -1
- package/dist/upload/index.d.ts +6 -3
- package/dist/upload/interface.d.ts +4 -4
- package/global.d.ts +3 -0
- package/package.json +69 -17
- package/web-tags.json +5069 -0
- package/web-types.json +14335 -0
package/dist/image/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { VueNode } from "../_util/type.js";
|
|
|
3
3
|
import { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { InternalPreviewGroup, PreviewGroupProps as PreviewGroupProps$1 } from "./PreviewGroup.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue92 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { ImageProps } from "@v-c/image";
|
|
9
9
|
|
|
@@ -58,14 +58,17 @@ interface ImageEmits {
|
|
|
58
58
|
interface ImageSlots {
|
|
59
59
|
fallback: () => any;
|
|
60
60
|
placeholder: () => any;
|
|
61
|
+
imageRender: () => any;
|
|
62
|
+
cover: () => any;
|
|
63
|
+
actionsRender: () => OriginPreviewConfig['actionsRender'];
|
|
61
64
|
}
|
|
62
|
-
declare const Image:
|
|
65
|
+
declare const Image: vue92.DefineSetupFnComponent<ImageProps$1, ImageEmits, SlotsType<ImageSlots>, ImageProps$1 & {
|
|
63
66
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
64
|
-
},
|
|
67
|
+
}, vue92.PublicProps>;
|
|
65
68
|
declare const _default_1: typeof Image & {
|
|
66
69
|
PreviewGroup: typeof InternalPreviewGroup;
|
|
67
70
|
};
|
|
68
|
-
declare const ImagePreviewGroup:
|
|
71
|
+
declare const ImagePreviewGroup: vue92.DefineSetupFnComponent<PreviewGroupProps$1, {}, {}, PreviewGroupProps$1 & {}, vue92.PublicProps>;
|
|
69
72
|
type ImagePreviewGroupProps = PreviewGroupProps$1;
|
|
70
73
|
//#endregion
|
|
71
74
|
export { DeprecatedPreviewConfig, ImageClassNamesType, ImageEmits, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps$1 as ImageProps, ImageSlots, ImageStylesType, PreviewConfig, _default_1 };
|
package/dist/image/index.js
CHANGED
|
@@ -77,6 +77,8 @@ const Image = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
77
77
|
emit("click", e);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
+
if (slots?.imageRender) mergedPreviewConfig.value.imageRender = slots.imageRender;
|
|
81
|
+
if ((mergedPreviewConfig.value?.mask || typeof mergedPreviewConfig.value?.mask === "boolean") && !mergedPreviewConfig.value.cover) mergedPreviewConfig.value.cover = slots?.cover?.();
|
|
80
82
|
return createVNode(VcImage, mergeProps(restAttrs, {
|
|
81
83
|
"prefixCls": prefixCls.value,
|
|
82
84
|
"preview": mergedPreviewConfig.value || false,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { SizeType } from "./config-provider/SizeContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _version2 } from "./package.js";
|
|
3
3
|
import { useResponsive } from "./_util/hooks/useResponsive.js";
|
|
4
4
|
import { Col, ColProps, ColSize } from "./grid/col.js";
|
|
5
5
|
import { Row, RowProps } from "./grid/row.js";
|
|
6
6
|
import { useBreakpoint } from "./grid/index.js";
|
|
7
7
|
import { FormEmits, FormInstance, FormProps, FormSlots, InternalForm } from "./form/Form.js";
|
|
8
8
|
import { UniqueProvider } from "./tooltip/UniqueProvider/index.js";
|
|
9
|
-
import { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, _default as _default$
|
|
9
|
+
import { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, _default as _default$10 } from "./tooltip/index.js";
|
|
10
10
|
import { InternalFormItem } from "./form/FormItem/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { DatePickerEmits, DatePickerSlots } from "./date-picker/generatePicker/generateSinglePicker.js";
|
|
12
|
+
import { TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, _default as _default$9 } from "./time-picker/index.js";
|
|
12
13
|
import { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps, _default as _default$2 } from "./date-picker/index.js";
|
|
13
14
|
import { EmptyProps, _default as _default$3 } from "./empty/index.js";
|
|
14
15
|
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./button/buttonHelper.js";
|
|
@@ -17,7 +18,7 @@ import { ModalEmits, ModalProps, ModalSlots } from "./modal/interface.js";
|
|
|
17
18
|
import { Select, SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue } from "./select/index.js";
|
|
18
19
|
import { PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
19
20
|
import { Pagination } from "./pagination/Pagination.js";
|
|
20
|
-
import {
|
|
21
|
+
import { Popover, PopoverProps } from "./popover/index.js";
|
|
21
22
|
import { Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from "./popconfirm/index.js";
|
|
22
23
|
import { CheckboxEmits, CheckboxProps, CheckboxSlots, InternalCheckbox } from "./checkbox/Checkbox.js";
|
|
23
24
|
import { CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
|
|
@@ -31,7 +32,7 @@ import { Dropdown } from "./dropdown/index.js";
|
|
|
31
32
|
import { ColumnType, ColumnsType, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./table/interface.js";
|
|
32
33
|
import { Column } from "./table/Column.js";
|
|
33
34
|
import { ColumnGroup } from "./table/ColumnGroup.js";
|
|
34
|
-
import { SpinProps, SpinSlots, _default as _default$
|
|
35
|
+
import { SpinProps, SpinSlots, _default as _default$7 } from "./spin/index.js";
|
|
35
36
|
import { TableClassNamesType, TableEmits, TableProps, TableSlots, TableStylesType } from "./table/InternalTable.js";
|
|
36
37
|
import { DataIndex, InternalTable, Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
37
38
|
import { TourEmits, TourLocale, TourProps, TourSlots, TourStylesType } from "./tour/interface.js";
|
|
@@ -42,6 +43,7 @@ import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult,
|
|
|
42
43
|
import { InternalTransfer } from "./transfer/index.js";
|
|
43
44
|
import { Progress, ProgressProps } from "./progress/progress.js";
|
|
44
45
|
import { UploadChangeParam, UploadEmits, UploadFile, UploadProps, UploadSlots } from "./upload/interface.js";
|
|
46
|
+
import { ConfigProviderProps } from "./config-provider/define.js";
|
|
45
47
|
import { ConfigProvider } from "./config-provider/index.js";
|
|
46
48
|
import { Alert, AlertEmits, AlertProps, AlertSlots } from "./alert/Alert.js";
|
|
47
49
|
import { AnchorLinkProps } from "./anchor/AnchorLink.js";
|
|
@@ -49,7 +51,7 @@ import { Anchor, AnchorProps } from "./anchor/Anchor.js";
|
|
|
49
51
|
import { RibbonProps } from "./badge/Ribbon.js";
|
|
50
52
|
import { Badge, BadgeProps, BadgeSlots } from "./badge/index.js";
|
|
51
53
|
import { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
52
|
-
import { Breadcrumb, BreadcrumbEmits,
|
|
54
|
+
import { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
|
|
53
55
|
import { TabPane, TabPaneProps } from "./tabs/TabPane.js";
|
|
54
56
|
import { Tabs, TabsEmits, TabsProps, TabsRef, TabsSlots } from "./tabs/index.js";
|
|
55
57
|
import { Card, CardEmits, CardProps, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
|
|
@@ -77,7 +79,7 @@ import { staticMethods as staticMethods$1 } from "./notification/index.js";
|
|
|
77
79
|
import { QRCodeEmits, QRCodeProps } from "./qrcode/interface.js";
|
|
78
80
|
import { QRCode } from "./qrcode/index.js";
|
|
79
81
|
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioProps, RadioSlots } from "./radio/interface.js";
|
|
80
|
-
import { ResultProps, _default as _default$
|
|
82
|
+
import { ResultProps, _default as _default$6 } from "./result/index.js";
|
|
81
83
|
import { Segmented, SegmentedEmits, SegmentedOptions, SegmentedProps } from "./segmented/index.js";
|
|
82
84
|
import { SkeletonAvatar } from "./skeleton/Avatar.js";
|
|
83
85
|
import { SkeletonButton } from "./skeleton/Button.js";
|
|
@@ -89,7 +91,7 @@ import { Slider, SliderEmits, SliderProps } from "./slider/index.js";
|
|
|
89
91
|
import { Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots } from "./space/index.js";
|
|
90
92
|
import { StatisticProps } from "./statistic/Statistic.js";
|
|
91
93
|
import { StatisticTimerProps } from "./statistic/Timer.js";
|
|
92
|
-
import { StatisticTimer, _default as _default$
|
|
94
|
+
import { StatisticTimer, _default as _default$8 } from "./statistic/index.js";
|
|
93
95
|
import { Steps, StepsProps } from "./steps/index.js";
|
|
94
96
|
import { Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots } from "./switch/index.js";
|
|
95
97
|
import { CheckableTag, CheckableTagProps } from "./tag/CheckableTag.js";
|
|
@@ -104,6 +106,7 @@ import { Affix, AffixProps } from "./affix/index.js";
|
|
|
104
106
|
import { useModal } from "./modal/useModal/index.js";
|
|
105
107
|
import { AppProps } from "./app/App.js";
|
|
106
108
|
import { _default } from "./app/index.js";
|
|
109
|
+
import { AutoComplete, AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
|
|
107
110
|
import { AvatarGroup, AvatarGroupProps } from "./avatar/AvatarGroup.js";
|
|
108
111
|
import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
|
|
109
112
|
import { Avatar } from "./avatar/index.js";
|
|
@@ -119,7 +122,7 @@ import { PasswordProps } from "./input/Password.js";
|
|
|
119
122
|
import { CompoundedInput, InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
120
123
|
import { BasicProps, Layout } from "./layout/layout.js";
|
|
121
124
|
import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
122
|
-
import { MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option } from "./mentions/index.js";
|
|
125
|
+
import { MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option as Option$1 } from "./mentions/index.js";
|
|
123
126
|
import { useMessage } from "./message/useMessage.js";
|
|
124
127
|
import { staticMethods } from "./message/index.js";
|
|
125
128
|
import { _default as _default$5 } from "./modal/index.js";
|
|
@@ -140,10 +143,11 @@ import { DraggerProps } from "./upload/Dragger.js";
|
|
|
140
143
|
import { Upload, UploadDragger } from "./upload/index.js";
|
|
141
144
|
import { Watermark, WatermarkProps } from "./watermark/index.js";
|
|
142
145
|
import "./components.js";
|
|
143
|
-
import { _default as _default$
|
|
146
|
+
import { _default as _default$12 } from "./theme/index.js";
|
|
147
|
+
import { StyleProvider } from "@antdv-next/cssinjs";
|
|
144
148
|
import { Plugin } from "vue";
|
|
145
149
|
|
|
146
150
|
//#region src/index.d.ts
|
|
147
|
-
declare const _default$
|
|
151
|
+
declare const _default$11: Plugin;
|
|
148
152
|
//#endregion
|
|
149
|
-
export { Affix, AffixProps, Alert, AlertEmits, AlertProps, AlertSlots, Anchor, AnchorLinkProps, AnchorProps, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, _default as App, AppProps, Avatar, AvatarEmits, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSlots, BackTopWithInstall as BackTop, Badge, BadgeProps, RibbonProps as BadgeRibbonProps, BadgeSlots, BasicDataNode, Breadcrumb, BreadcrumbEmits, BreadcrumbItemProps, BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots, Button, ButtonColorType, ButtonHTMLType, ButtonProps, ButtonShape, SizeType as ButtonSize, ButtonType, ButtonVariantType, _default$1 as Calendar, CalendarMode, CalendarProps, Card, CardEmits, CardGrid, CardGridProps, CardMeta, CardMetaProps, CardProps, CardSize, CardSlots, CardTabListType, Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots, Cascader, CascaderEmits, CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots, CascaderProps, CascaderSlots, CheckableTag, CheckableTagGroup, CheckableTagProps, InternalCheckbox as Checkbox, CheckboxEmits, CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType, CheckboxProps, CheckboxSlots, Col, ColProps, ColSize, Collapse, CollapseProps, AggregationColor as Color, ColorPicker, ColorPickerEmits, ColorPickerProps, ColorPickerSlots, ColorValueType, ConfigProvider, DateMonthPicker, _default$2 as DatePicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItemType, DescriptionsProps, DescriptionsSlots, DirectoryTree, DirectoryTreeEmits, ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, DirectoryTreeSlots, Divider, DividerProps, Drawer, DrawerEmits, DrawerProps, DrawerResizableConfig, DrawerSlots, Dropdown, DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots, _default$3 as Empty, EmptyProps, Flex, FlexProps, FloatButton, FloatButtonGroup, FloatButtonGroupProps, FloatButtonProps, FloatButtonRef, InternalForm as Form, FormEmits, FormInstance, InternalFormItem as FormItem, FormProps, FormSlots, _default_1 as Image, ImageEmits, PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSlots, CompoundedInput as Input, InputEmits, InputGroup, InputGroupProps, InputNumber, InputNumberEmits, InputNumberProps, VcInputNumberRef as InputNumberRef, InputNumberStepContext, ValueType as InputNumberValueType, InputOTP, OTPProps as InputOTPProps, InputPassword, PasswordProps as InputPasswordProps, InputProps, InputRef, InputSearch, SearchProps as InputSearchProps, InputSlots, KeyWise, KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, BasicProps as LayoutProps, LayoutSider, ListStyle, Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots, MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, Option as MentionsOption, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, _default$4 as Menu, MenuDivider, MenuEmits, MenuItem, MenuItemGroupProps, MenuItemProps, MenuItemType, MenuProps, MenuRef, MenuSlots, _default$5 as Modal, ModalEmits, ModalProps, ModalSlots, MonthPickerProps, Pagination, PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType, Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots,
|
|
153
|
+
export { Affix, AffixProps, Alert, AlertEmits, AlertProps, AlertSlots, Anchor, AnchorLinkProps, AnchorProps, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, _default as App, AppProps, AutoComplete, AutoCompleteClassNamesType, AutoCompleteEmits, Option as AutoCompleteOption, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, Avatar, AvatarEmits, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSlots, BackTopWithInstall as BackTop, Badge, BadgeProps, RibbonProps as BadgeRibbonProps, BadgeSlots, BasicDataNode, Breadcrumb, BreadcrumbEmits, BreadcrumbItemProps, ItemType as BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots, Button, ButtonColorType, ButtonHTMLType, ButtonProps, ButtonShape, SizeType as ButtonSize, ButtonType, ButtonVariantType, _default$1 as Calendar, CalendarMode, CalendarProps, Card, CardEmits, CardGrid, CardGridProps, CardMeta, CardMetaProps, CardProps, CardSize, CardSlots, CardTabListType, Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots, Cascader, CascaderEmits, CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots, CascaderProps, CascaderSlots, CheckableTag, CheckableTagGroup, CheckableTagProps, InternalCheckbox as Checkbox, CheckboxEmits, CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType, CheckboxProps, CheckboxSlots, Col, ColProps, ColSize, Collapse, CollapseProps, AggregationColor as Color, ColorPicker, ColorPickerEmits, ColorPickerProps, ColorPickerSlots, ColorValueType, ConfigProvider, ConfigProviderProps, DataSourceItemObject, DataSourceItemType, DateMonthPicker, _default$2 as DatePicker, DatePickerEmits, DatePickerProps, DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItemType, DescriptionsProps, DescriptionsSlots, DirectoryTree, DirectoryTreeEmits, ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, DirectoryTreeSlots, Divider, DividerProps, Drawer, DrawerEmits, DrawerProps, DrawerResizableConfig, DrawerSlots, Dropdown, DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots, _default$3 as Empty, EmptyProps, Flex, FlexProps, FloatButton, FloatButtonGroup, FloatButtonGroupProps, FloatButtonProps, FloatButtonRef, InternalForm as Form, FormEmits, FormInstance, InternalFormItem as FormItem, FormProps, FormSlots, _default_1 as Image, ImageEmits, PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSlots, CompoundedInput as Input, InputEmits, InputGroup, InputGroupProps, InputNumber, InputNumberEmits, InputNumberProps, VcInputNumberRef as InputNumberRef, InputNumberStepContext, ValueType as InputNumberValueType, InputOTP, OTPProps as InputOTPProps, InputPassword, PasswordProps as InputPasswordProps, InputProps, InputRef, InputSearch, SearchProps as InputSearchProps, InputSlots, KeyWise, KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, BasicProps as LayoutProps, LayoutSider, ListStyle, Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots, MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, Option$1 as MentionsOption, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, _default$4 as Menu, MenuDivider, MenuEmits, MenuItem, MenuItemGroupProps, MenuItemProps, MenuItemType, MenuProps, MenuRef, MenuSlots, _default$5 as Modal, ModalEmits, ModalProps, ModalSlots, MonthPickerProps, Pagination, PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType, Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots, Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeEmits, QRCodeProps, InternalRadio as Radio, RadioButton, RadioChangeEvent, RadioEmits, RadioGroup, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioOptionType, RadioProps, RadioSlots, RangePickerProps, Rate, RateEmits, RateProps, RenderResult, RenderResultObject, _default$6 as Result, ResultProps, Row, RowProps, Segmented, SegmentedEmits, SegmentedOptions, SegmentedProps, Select, SelectAllLabel, SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, SkeletonProps, Slider, SliderEmits, SliderProps, Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots, _default$7 as Spin, SpinProps, SpinSlots, Splitter, SplitterEmits, SplitterPanel, SplitterProps, SplitterSlots, _default$8 as Statistic, StatisticProps, StatisticTimer, StatisticTimerProps, Steps, StepsProps, StyleProvider, SubMenu, SubMenuProps, Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots, TabPane, TabPaneProps, InternalTable as Table, TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, ColumnType as TableColumnType, ColumnsType as TableColumnsType, DataIndex as TableDataIndex, TableEmits, TableLocale, TablePaginationConfig, TableProps, TableRowSelection, TableSlots, SortOrder as TableSortOrder, SorterResult as TableSorterResult, TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, TabsEmits, TabsProps, TabsRef, TabsSlots, Tag, TagProps, TagSlots, InternalTextArea as TextArea, TextAreaProps, TextAreaRef, _default$9 as TimePicker, TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, Timeline, TimelineItemProps, TimelineProps, _default$10 as Tooltip, TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, Tour, TourEmits, TourLocale, TourProps, TourSlots, TourStepItem, TourStylesType, InternalTransfer as Transfer, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferOperationProps, PaginationType as TransferPaginationType, TransferProps, TransferRender, TransferSearchEmits, TransferSearchOption, TransferSearchProps, TransferSearchSlots, TransferSemanticName, TransferSlots, TransferStylesType, Tree, DataNode as TreeDataNode, TreeEmits, TreeProps, TreeSelect, TreeSelectEmits, TreeSelectNode, TreeSelectProps, TreeSelectSlots, TreeSlots, Typography, BlockProps as TypographyBaseProps, TypographyLink, LinkProps as TypographyLinkProps, TypographyParagraph, ParagraphProps as TypographyParagraphProps, TypographyText, TextProps as TypographyTextProps, TypographyTitle, TitleProps as TypographyTitleProps, UniqueProvider, Upload, UploadChangeParam, UploadDragger, DraggerProps as UploadDraggerProps, UploadEmits, UploadFile, UploadProps, UploadSlots, Watermark, WatermarkProps, WeekPickerProps, _default$11 as default, staticMethods as message, staticMethods$1 as notification, _default$12 as theme, useBreakpoint, useLayoutSider, useMessage, useModal, useNotification, useResponsive, _version2 as version };
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,9 @@ import modal_default from "./modal/index.js";
|
|
|
20
20
|
import useNotification from "./notification/useNotification.js";
|
|
21
21
|
import notification_default from "./notification/index.js";
|
|
22
22
|
import app_default from "./app/index.js";
|
|
23
|
+
import empty_default from "./empty/index.js";
|
|
24
|
+
import select_default, { SelectOptGroup, SelectOption } from "./select/index.js";
|
|
25
|
+
import auto_complete_default, { Option } from "./auto-complete/index.js";
|
|
23
26
|
import popover_default from "./popover/index.js";
|
|
24
27
|
import AvatarGroup_default from "./avatar/AvatarGroup.js";
|
|
25
28
|
import avatar_default from "./avatar/index.js";
|
|
@@ -30,8 +33,6 @@ import menu_default, { MenuItem } from "./menu/index.js";
|
|
|
30
33
|
import dropdown_default from "./dropdown/index.js";
|
|
31
34
|
import breadcrumb_default from "./breadcrumb/index.js";
|
|
32
35
|
import radio_default, { RadioButton, RadioGroup } from "./radio/index.js";
|
|
33
|
-
import empty_default from "./empty/index.js";
|
|
34
|
-
import select_default, { SelectOptGroup, SelectOption } from "./select/index.js";
|
|
35
36
|
import calendar_default from "./calendar/index.js";
|
|
36
37
|
import TabPane_default from "./tabs/TabPane.js";
|
|
37
38
|
import tabs_default from "./tabs/index.js";
|
|
@@ -67,7 +68,7 @@ import input_default, { InputGroup, InputOTP, InputPassword, InputSearch } from
|
|
|
67
68
|
import layout_default, { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
68
69
|
import masonry_default from "./masonry/index.js";
|
|
69
70
|
import spin_default from "./spin/index.js";
|
|
70
|
-
import mentions_default, { Option } from "./mentions/index.js";
|
|
71
|
+
import mentions_default, { Option as Option$1 } from "./mentions/index.js";
|
|
71
72
|
import pagination_default from "./pagination/index.js";
|
|
72
73
|
import popconfirm_default from "./popconfirm/index.js";
|
|
73
74
|
import progress_default from "./progress/progress.js";
|
|
@@ -97,6 +98,7 @@ import watermark_default from "./watermark/index.js";
|
|
|
97
98
|
import { components_exports } from "./components.js";
|
|
98
99
|
import { useResponsive } from "./_util/hooks/useResponsive.js";
|
|
99
100
|
import theme_default from "./theme/index.js";
|
|
101
|
+
import { StyleProvider } from "@antdv-next/cssinjs";
|
|
100
102
|
|
|
101
103
|
//#region src/index.ts
|
|
102
104
|
let prefix = "A";
|
|
@@ -110,9 +112,10 @@ var src_default = {
|
|
|
110
112
|
const component = components_exports[key];
|
|
111
113
|
if ("install" in component) app.use(component);
|
|
112
114
|
});
|
|
115
|
+
app.component("AStyleProvider", StyleProvider);
|
|
113
116
|
},
|
|
114
117
|
version: version_default
|
|
115
118
|
};
|
|
116
119
|
|
|
117
120
|
//#endregion
|
|
118
|
-
export { affix_default as Affix, alert_default as Alert, anchor_default as Anchor, app_default as App, avatar_default as Avatar, AvatarGroup_default as AvatarGroup, BackTop_default as BackTop, badge_default as Badge, breadcrumb_default as Breadcrumb, button_default as Button, calendar_default as Calendar, card_default as Card, CardGrid_default as CardGrid, CardMeta_default as CardMeta, carousel_default as Carousel, cascader_default as Cascader, Panel_default as CascaderPanel, CheckableTag_default as CheckableTag, CheckableTagGroup_default as CheckableTagGroup, checkbox_default as Checkbox, Group_default as CheckboxGroup, col_default as Col, collapse_default as Collapse, color_picker_default as ColorPicker, config_provider_default as ConfigProvider, DateMonthPicker, date_picker_default as DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, descriptions_default as Descriptions, DirectoryTree_default as DirectoryTree, divider_default as Divider, drawer_default as Drawer, dropdown_default as Dropdown, empty_default as Empty, flex_default as Flex, float_button_default as FloatButton, FloatButtonGroup_default as FloatButtonGroup, form_default as Form, FormItem_default as FormItem, image_default as Image, ImagePreviewGroup, input_default as Input, InputGroup, input_number_default as InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, masonry_default as Masonry, mentions_default as Mentions, Option as MentionsOption, menu_default as Menu, MenuDivider_default as MenuDivider, MenuItem, modal_default as Modal, pagination_default as Pagination, popconfirm_default as Popconfirm, popover_default as Popover, progress_default as Progress, qrcode_default as QRCode, radio_default as Radio, RadioButton, RadioGroup, rate_default as Rate, result_default as Result, row_default as Row, segmented_default as Segmented, select_default as Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, Avatar_default as SkeletonAvatar, Button_default as SkeletonButton, Image_default as SkeletonImage, Input_default as SkeletonInput, Node_default as SkeletonNode, slider_default as Slider, space_default as Space, SpaceAddon, SpaceCompact, spin_default as Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, steps_default as Steps, SubMenu_default as SubMenu, switch_default as Switch, TabPane_default as TabPane, table_default as Table, Column_default as TableColumn, ColumnGroup_default as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, tabs_default as Tabs, tag_default as Tag, TextArea_default as TextArea, time_picker_default as TimePicker, TimeRangePicker, timeline_default as Timeline, tooltip_default as Tooltip, tour_default as Tour, transfer_default as Transfer, tree_default as Tree, tree_select_default as TreeSelect, typography_default as Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider_default as UniqueProvider, upload_default as Upload, UploadDragger, watermark_default as Watermark, src_default as default, message_default as message, notification_default as notification, theme_default as theme, useBreakpoint, useLayoutSider, useMessage, useModal, useNotification, useResponsive, version_default as version };
|
|
121
|
+
export { affix_default as Affix, alert_default as Alert, anchor_default as Anchor, app_default as App, auto_complete_default as AutoComplete, Option as AutoCompleteOption, avatar_default as Avatar, AvatarGroup_default as AvatarGroup, BackTop_default as BackTop, badge_default as Badge, breadcrumb_default as Breadcrumb, button_default as Button, calendar_default as Calendar, card_default as Card, CardGrid_default as CardGrid, CardMeta_default as CardMeta, carousel_default as Carousel, cascader_default as Cascader, Panel_default as CascaderPanel, CheckableTag_default as CheckableTag, CheckableTagGroup_default as CheckableTagGroup, checkbox_default as Checkbox, Group_default as CheckboxGroup, col_default as Col, collapse_default as Collapse, color_picker_default as ColorPicker, config_provider_default as ConfigProvider, DateMonthPicker, date_picker_default as DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, descriptions_default as Descriptions, DirectoryTree_default as DirectoryTree, divider_default as Divider, drawer_default as Drawer, dropdown_default as Dropdown, empty_default as Empty, flex_default as Flex, float_button_default as FloatButton, FloatButtonGroup_default as FloatButtonGroup, form_default as Form, FormItem_default as FormItem, image_default as Image, ImagePreviewGroup, input_default as Input, InputGroup, input_number_default as InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, masonry_default as Masonry, mentions_default as Mentions, Option$1 as MentionsOption, menu_default as Menu, MenuDivider_default as MenuDivider, MenuItem, modal_default as Modal, pagination_default as Pagination, popconfirm_default as Popconfirm, popover_default as Popover, progress_default as Progress, qrcode_default as QRCode, radio_default as Radio, RadioButton, RadioGroup, rate_default as Rate, result_default as Result, row_default as Row, segmented_default as Segmented, select_default as Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, Avatar_default as SkeletonAvatar, Button_default as SkeletonButton, Image_default as SkeletonImage, Input_default as SkeletonInput, Node_default as SkeletonNode, slider_default as Slider, space_default as Space, SpaceAddon, SpaceCompact, spin_default as Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, steps_default as Steps, StyleProvider, SubMenu_default as SubMenu, switch_default as Switch, TabPane_default as TabPane, table_default as Table, Column_default as TableColumn, ColumnGroup_default as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, tabs_default as Tabs, tag_default as Tag, TextArea_default as TextArea, time_picker_default as TimePicker, TimeRangePicker, timeline_default as Timeline, tooltip_default as Tooltip, tour_default as Tour, transfer_default as Transfer, tree_default as Tree, tree_select_default as TreeSelect, typography_default as Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider_default as UniqueProvider, upload_default as Upload, UploadDragger, watermark_default as Watermark, src_default as default, message_default as message, notification_default as notification, theme_default as theme, useBreakpoint, useLayoutSider, useMessage, useModal, useNotification, useResponsive, version_default as version };
|
package/dist/input/Input.js
CHANGED
|
@@ -8,8 +8,8 @@ import { useSize } from "../config-provider/hooks/useSize.js";
|
|
|
8
8
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
9
9
|
import { ContextIsolator } from "../_util/ContextIsolator.js";
|
|
10
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
11
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
12
11
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
12
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
13
13
|
import useVariant from "../form/hooks/useVariant.js";
|
|
14
14
|
import style_default, { useSharedStyle } from "./style/index.js";
|
|
15
15
|
import getAllowClear_default from "../_util/getAllowClear.js";
|
package/dist/input/OTP/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { devUseWarning, isDev } from "../../_util/warning.js";
|
|
|
4
4
|
import "../../_util/hooks/index.js";
|
|
5
5
|
import { toPropsRefs } from "../../_util/tools.js";
|
|
6
6
|
import { useSize } from "../../config-provider/hooks/useSize.js";
|
|
7
|
-
import { useFormItemInputContext, useFormItemInputContextProvider } from "../../form/context.js";
|
|
8
7
|
import { getMergedStatus } from "../../_util/statusUtils.js";
|
|
8
|
+
import { useFormItemInputContext, useFormItemInputContextProvider } from "../../form/context.js";
|
|
9
9
|
import otp_default from "../style/otp.js";
|
|
10
10
|
import OTPInput_default from "./OTPInput.js";
|
|
11
11
|
import { Fragment, computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
package/dist/input/TextArea.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
5
5
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue273 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
import { InputProps } from "@v-c/input";
|
|
9
9
|
import { TextAreaProps } from "@v-c/textarea";
|
|
@@ -48,8 +48,8 @@ interface TextAreaEmits {
|
|
|
48
48
|
interface TextAreaSlots {
|
|
49
49
|
default?: () => any;
|
|
50
50
|
}
|
|
51
|
-
declare const InternalTextArea:
|
|
51
|
+
declare const InternalTextArea: vue273.DefineSetupFnComponent<TextAreaProps$1, TextAreaEmits, SlotsType<TextAreaSlots>, TextAreaProps$1 & {
|
|
52
52
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
53
|
-
},
|
|
53
|
+
}, vue273.PublicProps>;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { InternalTextArea, TextAreaProps$1 as TextAreaProps, TextAreaRef };
|
package/dist/input/TextArea.js
CHANGED
|
@@ -7,8 +7,8 @@ import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
|
7
7
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
8
8
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
9
9
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
10
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
11
10
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
11
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
12
12
|
import useVariant from "../form/hooks/useVariant.js";
|
|
13
13
|
import { useSharedStyle } from "./style/index.js";
|
|
14
14
|
import getAllowClear_default from "../_util/getAllowClear.js";
|
package/dist/input/index.d.ts
CHANGED
|
@@ -5,25 +5,25 @@ import { SearchEmits, SearchProps, SearchSlots } from "./Search.js";
|
|
|
5
5
|
import { InternalTextArea, TextAreaProps, TextAreaRef } from "./TextArea.js";
|
|
6
6
|
import { InputGroupProps } from "./Group.js";
|
|
7
7
|
import { PasswordEmits, PasswordProps, PasswordSlots } from "./Password.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue96 from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/input/index.d.ts
|
|
11
|
-
declare const CompoundedInput:
|
|
11
|
+
declare const CompoundedInput: vue96.DefineSetupFnComponent<InputProps, InputEmits, vue96.SlotsType<InputSlots>, InputProps & {
|
|
12
12
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
13
|
-
},
|
|
14
|
-
declare const InputGroup:
|
|
13
|
+
}, vue96.PublicProps>;
|
|
14
|
+
declare const InputGroup: vue96.DefineSetupFnComponent<InputGroupProps, EmptyEmit, vue96.SlotsType<{
|
|
15
15
|
default?: () => any;
|
|
16
16
|
}>, InputGroupProps & {
|
|
17
17
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
18
|
-
},
|
|
19
|
-
declare const InputOTP:
|
|
18
|
+
}, vue96.PublicProps>;
|
|
19
|
+
declare const InputOTP: vue96.DefineSetupFnComponent<OTPProps, OTPEmits, vue96.SlotsType<OPTSlots>, OTPProps & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
22
|
-
declare const InputPassword:
|
|
21
|
+
}, vue96.PublicProps>;
|
|
22
|
+
declare const InputPassword: vue96.DefineSetupFnComponent<PasswordProps, PasswordEmits, vue96.SlotsType<PasswordSlots>, PasswordProps & {
|
|
23
23
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
24
|
-
},
|
|
25
|
-
declare const InputSearch:
|
|
24
|
+
}, vue96.PublicProps>;
|
|
25
|
+
declare const InputSearch: vue96.DefineSetupFnComponent<SearchProps, SearchEmits, vue96.SlotsType<SearchSlots>, SearchProps & {
|
|
26
26
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
27
|
-
},
|
|
27
|
+
}, vue96.PublicProps>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { CompoundedInput, InputGroup, InputOTP, InputPassword, InputSearch };
|
|
@@ -4,7 +4,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue111 from "vue";
|
|
8
8
|
import { SlotsType } from "vue";
|
|
9
9
|
import { InputNumberProps, InputNumberRef as VcInputNumberRef, ValueType } from "@v-c/input-number";
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ interface InputNumberStepContext {
|
|
|
17
17
|
type: 'up' | 'down';
|
|
18
18
|
emitter: 'handler' | 'keyboard' | 'wheel';
|
|
19
19
|
}
|
|
20
|
-
interface InputNumberProps$1 extends ComponentBaseProps, Omit<InputNumberProps, 'class' | 'controls' | 'className' | 'style' | 'prefixCls' | 'classNames' | 'styles' | 'prefix' | 'suffix' | 'onChange' | 'onClick' | 'onInput' | 'onBeforeInput' | 'onBlur' | 'onCompositionEnd' | 'onCompositionStart' | 'onKeyDown' | 'onKeyUp' | 'onMouseDown' | 'onMouseEnter' | 'onPressEnter' | 'onMouseUp' | 'onMouseMove'> {
|
|
20
|
+
interface InputNumberProps$1 extends ComponentBaseProps, Omit<InputNumberProps, 'class' | 'controls' | 'className' | 'style' | 'prefixCls' | 'classNames' | 'styles' | 'prefix' | 'suffix' | 'onChange' | 'onClick' | 'onInput' | 'onBeforeInput' | 'onBlur' | 'onCompositionEnd' | 'onCompositionStart' | 'onKeyDown' | 'onKeyUp' | 'onMouseDown' | 'onMouseEnter' | 'onPressEnter' | 'onMouseUp' | 'onMouseMove' | 'onFocus'> {
|
|
21
21
|
size?: SizeType;
|
|
22
22
|
status?: InputStatus;
|
|
23
23
|
disabled?: boolean;
|
|
@@ -69,8 +69,8 @@ interface InputNumberSlots {
|
|
|
69
69
|
addonAfter?: () => any;
|
|
70
70
|
default?: () => any;
|
|
71
71
|
}
|
|
72
|
-
declare const InputNumber:
|
|
72
|
+
declare const InputNumber: vue111.DefineSetupFnComponent<InputNumberProps$1, InputNumberEmits, SlotsType<InputNumberSlots>, InputNumberProps$1 & {
|
|
73
73
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
74
|
+
}, vue111.PublicProps>;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { InputNumber, InputNumberEmits, InputNumberProps$1 as InputNumberProps, InputNumberStepContext, type ValueType, VcInputNumberRef };
|
|
@@ -8,8 +8,8 @@ import { useSize } from "../config-provider/hooks/useSize.js";
|
|
|
8
8
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
9
9
|
import { ContextIsolator } from "../_util/ContextIsolator.js";
|
|
10
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
11
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
12
11
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
12
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
13
13
|
import useVariant from "../form/hooks/useVariant.js";
|
|
14
14
|
import { SpaceAddon, SpaceCompact } from "../space/index.js";
|
|
15
15
|
import style_default from "./style/index.js";
|
|
@@ -44,6 +44,7 @@ const omitKeys = [
|
|
|
44
44
|
"onBeforeInput",
|
|
45
45
|
"keyboard",
|
|
46
46
|
"onClick",
|
|
47
|
+
"onFocus",
|
|
47
48
|
"onMouseDown",
|
|
48
49
|
"onMouseUp",
|
|
49
50
|
"onMouseLeave",
|
|
@@ -430,11 +431,6 @@ const InputNumber = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
430
431
|
required: false,
|
|
431
432
|
default: void 0
|
|
432
433
|
},
|
|
433
|
-
onFocus: {
|
|
434
|
-
type: Function,
|
|
435
|
-
required: false,
|
|
436
|
-
default: void 0
|
|
437
|
-
},
|
|
438
434
|
stringMode: {
|
|
439
435
|
type: Boolean,
|
|
440
436
|
required: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resetComponent, resetIcon } from "../../style/index.js";
|
|
2
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
3
|
import { mergeToken } from "../../theme/internal.js";
|
|
4
4
|
import { genCompactItemStyle } from "../../style/compact-item.js";
|
|
5
5
|
import { initInputToken } from "../../input/style/token.js";
|
|
@@ -10,14 +10,15 @@ import { unit } from "@antdv-next/cssinjs";
|
|
|
10
10
|
|
|
11
11
|
//#region src/input-number/style/index.ts
|
|
12
12
|
const genInputNumberStyles = (token) => {
|
|
13
|
-
const { componentCls, lineWidth, lineType, borderRadius, inputFontSizeSM, inputFontSizeLG, colorError, paddingInlineSM, paddingBlockSM, paddingBlockLG, paddingInlineLG, colorIcon, motionDurationMid, handleHoverColor, handleOpacity, paddingInline, paddingBlock, handleBg, handleActiveBg, inputAffixPadding, borderRadiusSM, controlWidth, handleBorderColor, filledHandleBg, lineHeightLG } = token;
|
|
13
|
+
const { componentCls, lineWidth, lineType, borderRadius, inputFontSizeSM, inputFontSizeLG, colorError, paddingInlineSM, paddingBlockSM, paddingBlockLG, paddingInlineLG, colorIcon, motionDurationMid, handleHoverColor, handleOpacity, paddingInline, paddingBlock, handleBg, handleActiveBg, inputAffixPadding, borderRadiusSM, controlWidth, handleBorderColor, filledHandleBg, lineHeightLG, antCls } = token;
|
|
14
14
|
const borderStyle = `${unit(lineWidth)} ${lineType} ${handleBorderColor}`;
|
|
15
|
+
const [varName, varRef] = genCssVar(antCls, "input-number");
|
|
15
16
|
return [
|
|
16
17
|
{ [componentCls]: {
|
|
17
18
|
...resetComponent(token),
|
|
18
19
|
...genBasicInputStyle(token),
|
|
19
|
-
"
|
|
20
|
-
"
|
|
20
|
+
[varName("input-padding-block")]: unit(paddingBlock),
|
|
21
|
+
[varName("input-padding-inline")]: unit(paddingInline),
|
|
21
22
|
"display": "inline-flex",
|
|
22
23
|
"width": controlWidth,
|
|
23
24
|
"margin": 0,
|
|
@@ -47,7 +48,7 @@ const genInputNumberStyles = (token) => {
|
|
|
47
48
|
[`${componentCls}-input`]: {
|
|
48
49
|
...resetComponent(token),
|
|
49
50
|
"width": "100%",
|
|
50
|
-
"paddingBlock":
|
|
51
|
+
"paddingBlock": varRef("input-padding-block"),
|
|
51
52
|
"textAlign": "start",
|
|
52
53
|
"backgroundColor": "transparent",
|
|
53
54
|
"border": 0,
|
|
@@ -131,30 +132,30 @@ const genInputNumberStyles = (token) => {
|
|
|
131
132
|
width: "auto",
|
|
132
133
|
[`${componentCls}-action`]: {
|
|
133
134
|
"flex": "none",
|
|
134
|
-
"paddingInline": "
|
|
135
|
+
"paddingInline": varRef("input-padding-inline"),
|
|
135
136
|
"&-up": { borderInlineStart: borderStyle },
|
|
136
137
|
"&-down": { borderInlineEnd: borderStyle }
|
|
137
138
|
},
|
|
138
139
|
[`${componentCls}-input`]: {
|
|
139
140
|
textAlign: "center",
|
|
140
|
-
paddingInline: "
|
|
141
|
+
paddingInline: varRef("input-padding-inline")
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
} },
|
|
144
145
|
{ [componentCls]: {
|
|
145
146
|
"&-lg": {
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
[varName("input-padding-block")]: unit(paddingBlockLG),
|
|
148
|
+
[varName("input-padding-inline")]: unit(paddingInlineLG),
|
|
149
|
+
paddingBlock: 0,
|
|
150
|
+
fontSize: inputFontSizeLG,
|
|
151
|
+
lineHeight: lineHeightLG
|
|
151
152
|
},
|
|
152
153
|
"&-sm": {
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
[varName("input-padding-block")]: unit(paddingBlockSM),
|
|
155
|
+
[varName("input-padding-inline")]: unit(paddingInlineSM),
|
|
156
|
+
paddingBlock: 0,
|
|
157
|
+
fontSize: inputFontSizeSM,
|
|
158
|
+
borderRadius: borderRadiusSM
|
|
158
159
|
}
|
|
159
160
|
} },
|
|
160
161
|
{ [componentCls]: {
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BasicProps, Layout } from "./layout.js";
|
|
2
2
|
import { SiderEmits, SiderProps, SiderSlots, useSiderCtx } from "./Sider.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue113 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/layout/index.d.ts
|
|
6
6
|
declare const useLayoutSider: typeof useSiderCtx;
|
|
7
|
-
declare const LayoutHeader:
|
|
8
|
-
declare const LayoutFooter:
|
|
9
|
-
declare const LayoutContent:
|
|
10
|
-
declare const LayoutSider:
|
|
7
|
+
declare const LayoutHeader: vue113.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue113.PublicProps>;
|
|
8
|
+
declare const LayoutFooter: vue113.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue113.PublicProps>;
|
|
9
|
+
declare const LayoutContent: vue113.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue113.PublicProps>;
|
|
10
|
+
declare const LayoutSider: vue113.DefineSetupFnComponent<SiderProps, SiderEmits, vue113.SlotsType<SiderSlots>, SiderProps & {
|
|
11
11
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
12
|
-
},
|
|
12
|
+
}, vue113.PublicProps>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider };
|
package/dist/layout/layout.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue285 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/layout/layout.d.ts
|
|
5
5
|
|
|
@@ -7,6 +7,6 @@ interface BasicProps extends ComponentBaseProps {
|
|
|
7
7
|
suffixCls?: string;
|
|
8
8
|
hasSider?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const Layout:
|
|
10
|
+
declare const Layout: vue285.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue285.PublicProps>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { BasicProps, Layout };
|
|
@@ -47,7 +47,7 @@ const genSiderStyle = (token) => {
|
|
|
47
47
|
"background": siderBg,
|
|
48
48
|
"borderRadius": `0 ${unit(borderRadiusLG)} ${unit(borderRadiusLG)} 0`,
|
|
49
49
|
"cursor": "pointer",
|
|
50
|
-
"transition": `background ${motionDurationSlow} ease`,
|
|
50
|
+
"transition": `background-color ${motionDurationSlow} ease`,
|
|
51
51
|
"&::after": {
|
|
52
52
|
position: "absolute",
|
|
53
53
|
inset: 0,
|
|
@@ -5,7 +5,7 @@ import { RowProps } from "../grid/row.js";
|
|
|
5
5
|
import "../grid/index.js";
|
|
6
6
|
import { MasonryItemType } from "./MasonryItem.js";
|
|
7
7
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue304 from "vue";
|
|
9
9
|
import { SlotsType } from "vue";
|
|
10
10
|
|
|
11
11
|
//#region src/masonry/Masonry.d.ts
|
|
@@ -43,8 +43,8 @@ interface MasonrySlots {
|
|
|
43
43
|
interface MasonryRef {
|
|
44
44
|
nativeElement: HTMLDivElement;
|
|
45
45
|
}
|
|
46
|
-
declare const Masonry:
|
|
46
|
+
declare const Masonry: vue304.DefineSetupFnComponent<MasonryProps, MasonryEmits, SlotsType<MasonrySlots>, MasonryProps & {
|
|
47
47
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
48
|
-
},
|
|
48
|
+
}, vue304.PublicProps>;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots };
|
package/dist/masonry/Masonry.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
2
3
|
import { getAttrStyleAndClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
4
|
import "../_util/hooks/index.js";
|
|
4
5
|
import { toPropsRefs } from "../_util/tools.js";
|
|
@@ -24,9 +25,10 @@ function _isSlot(s) {
|
|
|
24
25
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
25
26
|
}
|
|
26
27
|
const Masonry = /* @__PURE__ */ defineComponent((props, { expose, emit, attrs, slots }) => {
|
|
27
|
-
const { direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls } = useComponentBaseConfig("masonry", props);
|
|
28
|
+
const { direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls, rootPrefixCls } = useComponentBaseConfig("masonry", props);
|
|
28
29
|
const { classes, styles, gutter, columns } = toPropsRefs(props, "classes", "styles", "gutter", "columns");
|
|
29
30
|
const [hashId, cssVarCls] = style_default(prefixCls, useCSSVarCls_default(prefixCls));
|
|
31
|
+
const [varName, varRef] = genCssVar(rootPrefixCls.value, "masonry");
|
|
30
32
|
const containerRef = shallowRef();
|
|
31
33
|
expose({ nativeElement: containerRef });
|
|
32
34
|
const [setItemRef, getItemRef] = useRefs();
|
|
@@ -131,11 +133,11 @@ const Masonry = /* @__PURE__ */ defineComponent((props, { expose, emit, attrs, s
|
|
|
131
133
|
const columnIndex = position?.column ?? 0;
|
|
132
134
|
const widthVar = `calc((100% + ${horizontalGutter.value}px) / ${columnCount.value})`;
|
|
133
135
|
const itemStyle = {
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
[varName("item-width")]: widthVar,
|
|
137
|
+
insetInlineStart: `calc(${varRef("item-width")} * ${columnIndex})`,
|
|
138
|
+
width: `calc(${varRef("item-width")} - ${horizontalGutter.value}px)`,
|
|
139
|
+
top: `${position?.top}px`,
|
|
140
|
+
position: "absolute"
|
|
139
141
|
};
|
|
140
142
|
return createVNode(MasonryItem_default, {
|
|
141
143
|
"key": key,
|
package/dist/mentions/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue122 from "vue";
|
|
8
8
|
import { App, SlotsType } from "vue";
|
|
9
9
|
import { DataDrivenOptionProps, MentionsProps, MentionsRef, Option } from "@v-c/mentions";
|
|
10
10
|
|
|
@@ -66,13 +66,14 @@ interface MentionsEntity {
|
|
|
66
66
|
prefix: string;
|
|
67
67
|
value: string;
|
|
68
68
|
}
|
|
69
|
-
declare const InternalMentions:
|
|
69
|
+
declare const InternalMentions: vue122.DefineSetupFnComponent<MentionProps, MentionsEmits, SlotsType<MentionsSlots>, MentionProps & {
|
|
70
70
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
71
|
-
},
|
|
71
|
+
}, vue122.PublicProps>;
|
|
72
72
|
declare const Mentions: typeof InternalMentions & {
|
|
73
73
|
Option: typeof Option;
|
|
74
74
|
getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[];
|
|
75
75
|
install: (app: App) => void;
|
|
76
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
76
77
|
};
|
|
77
78
|
//#endregion
|
|
78
79
|
export { MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps$1 as MentionsProps, MentionsRef$1 as MentionsRef, MentionsSlots, MentionsStylesType, Option };
|