antdv-next 1.4.6 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/is.d.ts +9 -1
- package/dist/_util/is.js +25 -2
- package/dist/_util/scrollTo.d.ts +1 -1
- package/dist/_util/scrollTo.js +17 -5
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +6 -2
- package/dist/alert/Alert.js +1 -1
- package/dist/antd-with-locales.esm.js +10428 -9738
- package/dist/antd-with-locales.js +50 -50
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +7047 -6357
- package/dist/antd.js +47 -47
- package/dist/app/App.js +2 -1
- package/dist/border-beam/BorderBeam.d.ts +3 -0
- package/dist/border-beam/BorderBeam.js +18 -1
- package/dist/border-beam/hooks/useBorderSize.js +8 -1
- package/dist/border-beam/style/index.js +5 -5
- package/dist/border-beam/util.d.ts +2 -1
- package/dist/border-beam/util.js +4 -2
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/checkbox/Group.js +3 -3
- package/dist/components.d.ts +3 -1
- package/dist/components.js +3 -1
- package/dist/config-provider/context.d.ts +5 -1
- package/dist/config-provider/define.d.ts +3 -1
- package/dist/config-provider/index.js +19 -0
- package/dist/date-picker/generatePicker/useComponents.d.ts +1 -1
- package/dist/date-picker/util.d.ts +8 -4
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/float-button/BackTop.js +2 -1
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/image/hooks/usePreviewConfig.d.ts +5 -5
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/layout/Sider.d.ts +2 -0
- package/dist/layout/Sider.js +14 -2
- package/dist/listy/index.d.ts +12 -0
- package/dist/listy/index.js +119 -0
- package/dist/listy/interface.d.ts +20 -0
- package/dist/listy/interface.js +1 -0
- package/dist/listy/style/index.d.ts +23 -0
- package/dist/listy/style/index.js +57 -0
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +1 -0
- package/dist/select/useIcons.d.ts +6 -2
- package/dist/splitter/SplitBar.js +1 -12
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/theme/interface/components.d.ts +70 -68
- package/dist/tour/PurePanel.js +0 -8
- package/dist/tour/interface.d.ts +4 -6
- package/dist/tour/panelRender.js +8 -2
- package/global.d.ts +1 -0
- package/package.json +5 -4
- package/web-tags.json +1480 -1463
- package/web-types.json +4903 -4851
package/dist/index.js
CHANGED
|
@@ -74,6 +74,7 @@ import Image, { ImagePreviewGroup } from "./image/index.js";
|
|
|
74
74
|
import InternalTextArea from "./input/TextArea.js";
|
|
75
75
|
import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
76
76
|
import layout_default, { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
77
|
+
import Listy from "./listy/index.js";
|
|
77
78
|
import masonry_default from "./masonry/index.js";
|
|
78
79
|
import Spin from "./spin/index.js";
|
|
79
80
|
import Mentions, { Option as Option$1 } from "./mentions/index.js";
|
|
@@ -127,4 +128,4 @@ var src_default = {
|
|
|
127
128
|
version: version_default
|
|
128
129
|
};
|
|
129
130
|
//#endregion
|
|
130
|
-
export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup, form_default as Form, InternalFormItem as FormItem, Image, ImagePreviewGroup, CompoundedInput as Input, InputGroup, InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, masonry_default as Masonry, Mentions, Option$1 as MentionsOption, Menu, MenuDivider, MenuItem, MenuItemGroup, Modal, pagination_default as Pagination, Popconfirm, Popover, Progress, QRCode, radio_default as Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, Slider, Space, SpaceAddon, SpaceCompact, Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, Steps, StyleProvider, SubMenu, Switch, TabPane, InternalTable as Table, Column as TableColumn, ColumnGroup as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, Tag, InternalTextArea as TextArea, TimePicker, TimeRangePicker, timeline_default as Timeline, TimelineItem, InternalTooltip as Tooltip, Tour, InternalTransfer as Transfer, Tree, TreeSelect, Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider, Upload, UploadDragger, Watermark, src_default as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, theme_default as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, version_default as version };
|
|
131
|
+
export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup, form_default as Form, InternalFormItem as FormItem, Image, ImagePreviewGroup, CompoundedInput as Input, InputGroup, InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, Listy, masonry_default as Masonry, Mentions, Option$1 as MentionsOption, Menu, MenuDivider, MenuItem, MenuItemGroup, Modal, pagination_default as Pagination, Popconfirm, Popover, Progress, QRCode, radio_default as Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, Slider, Space, SpaceAddon, SpaceCompact, Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, Steps, StyleProvider, SubMenu, Switch, TabPane, InternalTable as Table, Column as TableColumn, ColumnGroup as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, Tag, InternalTextArea as TextArea, TimePicker, TimeRangePicker, timeline_default as Timeline, TimelineItem, InternalTooltip as Tooltip, Tour, InternalTransfer as Transfer, Tree, TreeSelect, Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider, Upload, UploadDragger, Watermark, src_default as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, theme_default as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, version_default as version };
|
package/dist/layout/Sider.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
1
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
2
3
|
import "../_util/hooks/index.js";
|
|
3
4
|
import { Breakpoint } from "../_util/responsiveObserver.js";
|
|
@@ -26,6 +27,7 @@ interface SiderProps extends SiderEmitsProps {
|
|
|
26
27
|
defaultCollapsed?: boolean;
|
|
27
28
|
reverseArrow?: boolean;
|
|
28
29
|
zeroWidthTriggerStyle?: CSSProperties;
|
|
30
|
+
trigger?: VueNode;
|
|
29
31
|
width?: number | string;
|
|
30
32
|
collapsedWidth?: number | string;
|
|
31
33
|
breakpoint?: Breakpoint;
|
package/dist/layout/Sider.js
CHANGED
|
@@ -89,7 +89,7 @@ const Sider = /* @__PURE__ */ defineComponent((props, { emit, slots, attrs }) =>
|
|
|
89
89
|
useSiderProvider({ siderCollapsed: collapsed });
|
|
90
90
|
return () => {
|
|
91
91
|
const { collapsedWidth, reverseArrow, zeroWidthTriggerStyle, theme, collapsible } = props;
|
|
92
|
-
const trigger = getSlotPropsFnRun(slots, props, "trigger");
|
|
92
|
+
const trigger = getSlotPropsFnRun(slots, props, "trigger", !!slots.trigger);
|
|
93
93
|
const zeroWidthTrigger = Number.parseFloat(String(collapsedWidth || 0)) === 0 ? createVNode("span", {
|
|
94
94
|
"onClick": toggle,
|
|
95
95
|
"class": classNames(`${prefixCls.value}-zero-width-trigger`, `${prefixCls.value}-zero-width-trigger-${reverseArrow ? "right" : "left"}`),
|
|
@@ -100,7 +100,7 @@ const Sider = /* @__PURE__ */ defineComponent((props, { emit, slots, attrs }) =>
|
|
|
100
100
|
expanded: reverseIcon ? createVNode(RightOutlined, null, null) : createVNode(LeftOutlined, null, null),
|
|
101
101
|
collapsed: reverseIcon ? createVNode(LeftOutlined, null, null) : createVNode(RightOutlined, null, null)
|
|
102
102
|
}[collapsed.value ? "collapsed" : "expanded"];
|
|
103
|
-
const triggerDom = trigger
|
|
103
|
+
const triggerDom = trigger !== null ? zeroWidthTrigger || createVNode("div", {
|
|
104
104
|
"class": `${prefixCls.value}-trigger`,
|
|
105
105
|
"onClick": toggle,
|
|
106
106
|
"style": { width: `${siderWidth.value}` }
|
|
@@ -155,6 +155,18 @@ const Sider = /* @__PURE__ */ defineComponent((props, { emit, slots, attrs }) =>
|
|
|
155
155
|
type: Object,
|
|
156
156
|
required: false
|
|
157
157
|
},
|
|
158
|
+
trigger: {
|
|
159
|
+
type: [
|
|
160
|
+
Function,
|
|
161
|
+
String,
|
|
162
|
+
Number,
|
|
163
|
+
null,
|
|
164
|
+
Object,
|
|
165
|
+
Boolean
|
|
166
|
+
],
|
|
167
|
+
required: false,
|
|
168
|
+
default: void 0
|
|
169
|
+
},
|
|
158
170
|
width: {
|
|
159
171
|
type: [Number, String],
|
|
160
172
|
required: false
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ListyClassNames, ListyProps, ListyRef, ListyScrollToConfig, ListyStyles, ScrollAlign } from "./interface.js";
|
|
2
|
+
import { SlotsType } from "vue";
|
|
3
|
+
//#region src/listy/index.d.ts
|
|
4
|
+
interface ListyEmits {
|
|
5
|
+
scroll: [event: Event];
|
|
6
|
+
}
|
|
7
|
+
interface ListySlots {
|
|
8
|
+
itemRender: (item: any) => any;
|
|
9
|
+
}
|
|
10
|
+
declare const Listy: import("vue").DefineSetupFnComponent<ListyProps, ListyEmits, SlotsType<ListySlots>, ListyProps, import("vue").PublicProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, type ScrollAlign, Listy as default };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import useToken from "../theme/useToken.js";
|
|
3
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
|
+
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
|
+
import style_default from "./style/index.js";
|
|
6
|
+
import { computed, createVNode, defineComponent, mergeProps, shallowRef, useAttrs } from "vue";
|
|
7
|
+
import { clsx } from "@v-c/util";
|
|
8
|
+
import VcListy from "@v-c/listy";
|
|
9
|
+
//#region src/listy/index.tsx
|
|
10
|
+
const Listy = /* @__PURE__ */ defineComponent((props, { expose, slots }) => {
|
|
11
|
+
const listyRef = shallowRef();
|
|
12
|
+
const { style, className, restAttrs } = getAttrStyleAndClass(useAttrs());
|
|
13
|
+
const { getPrefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, virtual: contextVirtual } = useComponentBaseConfig("listy");
|
|
14
|
+
const prefixCls = computed(() => getPrefixCls("listy", props.prefixCls));
|
|
15
|
+
const rootCls = useCSSVarCls(prefixCls);
|
|
16
|
+
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
17
|
+
const [, token] = useToken();
|
|
18
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
19
|
+
const styleRoot = useSemanticRootStyle(computed(() => style));
|
|
20
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, computed(() => props.classes)), useToArr(contextStyles, contextStyleRoot, computed(() => props.styles), styleRoot), useToProps(computed(() => props)));
|
|
21
|
+
expose({ scrollTo: (config) => {
|
|
22
|
+
listyRef.value?.scrollTo(config);
|
|
23
|
+
} });
|
|
24
|
+
return () => {
|
|
25
|
+
const { classes, styles, rootClass, virtual, itemRender = slots.itemRender, ...restProps } = props;
|
|
26
|
+
const rootClassNames = clsx(contextClassName.value, mergedClassNames.value.root, rootClass, className, hashId.value, cssVarCls.value, rootCls.value);
|
|
27
|
+
const listyToken = {
|
|
28
|
+
...token.value,
|
|
29
|
+
...token.value.Listy
|
|
30
|
+
};
|
|
31
|
+
const itemHeight = listyToken.fontHeight + (listyToken.itemPaddingBlock ?? listyToken.paddingSM) * 2;
|
|
32
|
+
const mergedVirtual = virtual ?? contextVirtual.value ?? false;
|
|
33
|
+
return createVNode(VcListy, mergeProps({ "ref": listyRef }, restProps, restAttrs, {
|
|
34
|
+
"prefixCls": prefixCls.value,
|
|
35
|
+
"direction": direction.value,
|
|
36
|
+
"virtual": mergedVirtual,
|
|
37
|
+
"itemHeight": itemHeight,
|
|
38
|
+
"itemRender": itemRender,
|
|
39
|
+
"classNames": {
|
|
40
|
+
...mergedClassNames.value,
|
|
41
|
+
root: rootClassNames
|
|
42
|
+
},
|
|
43
|
+
"styles": mergedStyles.value
|
|
44
|
+
}), null);
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
props: {
|
|
48
|
+
rootClass: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: false
|
|
51
|
+
},
|
|
52
|
+
class: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: false
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
type: Object,
|
|
58
|
+
required: false
|
|
59
|
+
},
|
|
60
|
+
classes: {
|
|
61
|
+
type: Function,
|
|
62
|
+
required: false,
|
|
63
|
+
skipCheck: true
|
|
64
|
+
},
|
|
65
|
+
styles: {
|
|
66
|
+
type: Function,
|
|
67
|
+
required: false,
|
|
68
|
+
skipCheck: true
|
|
69
|
+
},
|
|
70
|
+
itemRender: {
|
|
71
|
+
type: Function,
|
|
72
|
+
required: false
|
|
73
|
+
},
|
|
74
|
+
items: {
|
|
75
|
+
type: Array,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
sticky: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
required: false,
|
|
81
|
+
default: void 0
|
|
82
|
+
},
|
|
83
|
+
height: {
|
|
84
|
+
type: Number,
|
|
85
|
+
required: false
|
|
86
|
+
},
|
|
87
|
+
group: {
|
|
88
|
+
type: Object,
|
|
89
|
+
required: false
|
|
90
|
+
},
|
|
91
|
+
virtual: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
required: false,
|
|
94
|
+
default: void 0
|
|
95
|
+
},
|
|
96
|
+
prefixCls: {
|
|
97
|
+
type: String,
|
|
98
|
+
required: false
|
|
99
|
+
},
|
|
100
|
+
rowKey: {
|
|
101
|
+
type: Function,
|
|
102
|
+
required: true,
|
|
103
|
+
skipCheck: true
|
|
104
|
+
},
|
|
105
|
+
onScroll: {
|
|
106
|
+
type: Function,
|
|
107
|
+
required: false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
emits: ["scroll"],
|
|
111
|
+
name: "AListy",
|
|
112
|
+
inheritAttrs: false
|
|
113
|
+
});
|
|
114
|
+
Listy.install = (app) => {
|
|
115
|
+
app.component(Listy.name, Listy);
|
|
116
|
+
return app;
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
export { Listy as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SemanticType } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { CSSProperties, VNode } from "vue";
|
|
3
|
+
import { ListyClassNames, ListyProps as ListyProps$1, ListyRef, ListyScrollToConfig, ListyStyles, ScrollAlign } from "@v-c/listy";
|
|
4
|
+
//#region src/listy/interface.d.ts
|
|
5
|
+
interface ListySemanticType {
|
|
6
|
+
classes?: ListyClassNames;
|
|
7
|
+
styles?: ListyStyles;
|
|
8
|
+
}
|
|
9
|
+
type ListyClassNamesType = SemanticType<ListyClassNames, ListyProps>;
|
|
10
|
+
type ListyStylesType = SemanticType<ListyStyles, ListyProps>;
|
|
11
|
+
interface ListyProps extends Omit<ListyProps$1, 'itemHeight' | 'direction' | 'classNames' | 'styles' | 'itemRender'> {
|
|
12
|
+
rootClass?: string;
|
|
13
|
+
class?: string;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
classes?: ListyClassNamesType;
|
|
16
|
+
styles?: ListyStylesType;
|
|
17
|
+
itemRender?: (item: any) => VNode;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { type ListyClassNames, ListyProps, type ListyRef, type ListyScrollToConfig, ListySemanticType, type ListyStyles, type ScrollAlign };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
|
+
import "../../theme/internal.js";
|
|
3
|
+
//#region src/listy/style/index.d.ts
|
|
4
|
+
interface ComponentToken {
|
|
5
|
+
/**
|
|
6
|
+
* @nameZH 列表项纵向内间距
|
|
7
|
+
* @nameEN Item Vertical Padding
|
|
8
|
+
* @desc 列表项的纵向内间距。
|
|
9
|
+
* @descEN Vertical padding of a list item.
|
|
10
|
+
*/
|
|
11
|
+
itemPaddingBlock: number;
|
|
12
|
+
/**
|
|
13
|
+
* @nameZH 列表项横向内间距
|
|
14
|
+
* @nameEN Item Horizontal Padding
|
|
15
|
+
* @desc 列表项的横向内间距。
|
|
16
|
+
* @descEN Horizontal padding of a list item.
|
|
17
|
+
*/
|
|
18
|
+
itemPaddingInline: number;
|
|
19
|
+
}
|
|
20
|
+
declare const prepareComponentToken: GetDefaultToken<'Listy'>;
|
|
21
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ComponentToken, _default as default, prepareComponentToken };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { resetComponent } from "../../style/index.js";
|
|
2
|
+
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import { unit } from "@antdv-next/cssinjs";
|
|
4
|
+
//#region src/listy/style/index.ts
|
|
5
|
+
const genListyStyle = (token) => {
|
|
6
|
+
const { componentCls, itemPaddingBlock, itemPaddingInline } = token;
|
|
7
|
+
return { [componentCls]: {
|
|
8
|
+
...resetComponent(token),
|
|
9
|
+
position: "relative",
|
|
10
|
+
color: token.colorText,
|
|
11
|
+
fontSize: token.fontSize,
|
|
12
|
+
lineHeight: token.lineHeight,
|
|
13
|
+
[`${componentCls}-item`]: {
|
|
14
|
+
padding: `${unit(itemPaddingBlock)} ${unit(itemPaddingInline)}`,
|
|
15
|
+
borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
|
|
16
|
+
transition: `background-color ${token.motionDurationMid} ${token.motionEaseInOut}`,
|
|
17
|
+
"&:hover": { backgroundColor: token.controlItemBgHover }
|
|
18
|
+
},
|
|
19
|
+
[`${componentCls}-group-header`]: {
|
|
20
|
+
boxSizing: "border-box",
|
|
21
|
+
padding: `${unit(token.paddingXS)} ${unit(itemPaddingInline)}`,
|
|
22
|
+
color: token.colorTextDescription,
|
|
23
|
+
fontWeight: token.fontWeightStrong,
|
|
24
|
+
backgroundColor: token.colorBgContainer,
|
|
25
|
+
backgroundImage: `linear-gradient(${token.colorFillAlter}, ${token.colorFillAlter})`,
|
|
26
|
+
"&-sticky": {
|
|
27
|
+
position: "sticky",
|
|
28
|
+
top: 0,
|
|
29
|
+
insetInline: 0,
|
|
30
|
+
zIndex: 1
|
|
31
|
+
},
|
|
32
|
+
"&-fixed": {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
top: 0,
|
|
35
|
+
insetInline: 0,
|
|
36
|
+
transform: "translateY(0)",
|
|
37
|
+
pointerEvents: "auto"
|
|
38
|
+
},
|
|
39
|
+
"&-holder": {
|
|
40
|
+
position: "absolute",
|
|
41
|
+
inset: 0,
|
|
42
|
+
overflow: "hidden",
|
|
43
|
+
pointerEvents: "none"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[`${componentCls}-group-section`]: { position: "relative" },
|
|
47
|
+
[`${componentCls}-scrollbar`]: { zIndex: 1 },
|
|
48
|
+
"&-rtl": { direction: "rtl" }
|
|
49
|
+
} };
|
|
50
|
+
};
|
|
51
|
+
const prepareComponentToken = (token) => ({
|
|
52
|
+
itemPaddingBlock: token.paddingSM,
|
|
53
|
+
itemPaddingInline: token.padding
|
|
54
|
+
});
|
|
55
|
+
var style_default = genStyleHooks("Listy", genListyStyle, prepareComponentToken);
|
|
56
|
+
//#endregion
|
|
57
|
+
export { style_default as default, prepareComponentToken };
|
package/dist/package.js
CHANGED
package/dist/package.json.d.ts
CHANGED
|
@@ -21,8 +21,12 @@ declare function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeI
|
|
|
21
21
|
open: boolean;
|
|
22
22
|
showSearch: boolean;
|
|
23
23
|
}) => import("vue/jsx-runtime").JSX.Element | null) | null;
|
|
24
|
-
itemIcon: string | number | boolean | import("vue
|
|
25
|
-
|
|
24
|
+
itemIcon: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}> | RenderNodeFn<any[]> | null;
|
|
27
|
+
removeIcon: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}> | RenderNodeFn<any[]> | null;
|
|
26
30
|
};
|
|
27
31
|
//#endregion
|
|
28
32
|
export { useIcons as default };
|
|
@@ -215,18 +215,7 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
215
215
|
type: Boolean,
|
|
216
216
|
required: true
|
|
217
217
|
},
|
|
218
|
-
draggerIcon: {
|
|
219
|
-
type: [
|
|
220
|
-
Function,
|
|
221
|
-
String,
|
|
222
|
-
Number,
|
|
223
|
-
null,
|
|
224
|
-
Object,
|
|
225
|
-
Boolean
|
|
226
|
-
],
|
|
227
|
-
required: false,
|
|
228
|
-
default: void 0
|
|
229
|
-
},
|
|
218
|
+
draggerIcon: { required: false },
|
|
230
219
|
collapsibleIcon: {
|
|
231
220
|
type: Object,
|
|
232
221
|
required: false
|
|
@@ -9,6 +9,6 @@ declare function useColor(props: {
|
|
|
9
9
|
color: Ref<TagProps['color']>;
|
|
10
10
|
variant: Ref<TagProps['variant']>;
|
|
11
11
|
bordered: Ref<TagProps['bordered']>;
|
|
12
|
-
}, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "
|
|
12
|
+
}, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "solid" | "filled">, import("vue").ComputedRef<string | undefined>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<CSSProperties>];
|
|
13
13
|
//#endregion
|
|
14
14
|
export { useColor as default };
|
|
@@ -34,41 +34,42 @@ import { ComponentToken as ComponentToken$30 } from "../../input-number/style/to
|
|
|
34
34
|
import "../../input-number/style/index.js";
|
|
35
35
|
import "../../input/style/index.js";
|
|
36
36
|
import { ComponentToken as ComponentToken$31 } from "../../layout/style/index.js";
|
|
37
|
-
import { ComponentToken as ComponentToken$32 } from "../../
|
|
38
|
-
import { ComponentToken as ComponentToken$33 } from "../../
|
|
39
|
-
import { ComponentToken as ComponentToken$34 } from "../../
|
|
40
|
-
import { ComponentToken as ComponentToken$35 } from "../../
|
|
41
|
-
import { ComponentToken as ComponentToken$36 } from "../../
|
|
42
|
-
import { ComponentToken as ComponentToken$37 } from "../../
|
|
43
|
-
import { ComponentToken as ComponentToken$38 } from "../../
|
|
44
|
-
import { ComponentToken as ComponentToken$39 } from "../../
|
|
45
|
-
import { ComponentToken as ComponentToken$40 } from "../../
|
|
46
|
-
import { ComponentToken as ComponentToken$41 } from "../../
|
|
47
|
-
import { ComponentToken as ComponentToken$42 } from "../../
|
|
48
|
-
import { ComponentToken as ComponentToken$43 } from "../../
|
|
49
|
-
import { ComponentToken as ComponentToken$44 } from "../../
|
|
50
|
-
import { ComponentToken as ComponentToken$45 } from "../../
|
|
51
|
-
import { ComponentToken as ComponentToken$46 } from "../../
|
|
37
|
+
import { ComponentToken as ComponentToken$32 } from "../../listy/style/index.js";
|
|
38
|
+
import { ComponentToken as ComponentToken$33 } from "../../masonry/style/index.js";
|
|
39
|
+
import { ComponentToken as ComponentToken$34 } from "../../mentions/style/index.js";
|
|
40
|
+
import { ComponentToken as ComponentToken$35 } from "../../menu/style/index.js";
|
|
41
|
+
import { ComponentToken as ComponentToken$36 } from "../../message/style/index.js";
|
|
42
|
+
import { ComponentToken as ComponentToken$37 } from "../../modal/style/index.js";
|
|
43
|
+
import { ComponentToken as ComponentToken$38 } from "../../notification/style/index.js";
|
|
44
|
+
import { ComponentToken as ComponentToken$39 } from "../../pagination/style/index.js";
|
|
45
|
+
import { ComponentToken as ComponentToken$40 } from "../../popconfirm/style/index.js";
|
|
46
|
+
import { ComponentToken as ComponentToken$41 } from "../../popover/style/index.js";
|
|
47
|
+
import { ComponentToken as ComponentToken$42 } from "../../progress/style/index.js";
|
|
48
|
+
import { ComponentToken as ComponentToken$43 } from "../../qrcode/style/index.js";
|
|
49
|
+
import { ComponentToken as ComponentToken$44 } from "../../radio/style/index.js";
|
|
50
|
+
import { ComponentToken as ComponentToken$45 } from "../../rate/style/index.js";
|
|
51
|
+
import { ComponentToken as ComponentToken$46 } from "../../result/style/index.js";
|
|
52
|
+
import { ComponentToken as ComponentToken$47 } from "../../segmented/style/index.js";
|
|
52
53
|
import "../../select/style/index.js";
|
|
53
|
-
import { ComponentToken as ComponentToken$
|
|
54
|
-
import { ComponentToken as ComponentToken$
|
|
55
|
-
import { ComponentToken as ComponentToken$
|
|
56
|
-
import { ComponentToken as ComponentToken$
|
|
57
|
-
import { ComponentToken as ComponentToken$
|
|
58
|
-
import { ComponentToken as ComponentToken$
|
|
59
|
-
import { ComponentToken as ComponentToken$
|
|
60
|
-
import { ComponentToken as ComponentToken$
|
|
61
|
-
import { ComponentToken as ComponentToken$
|
|
62
|
-
import { ComponentToken as ComponentToken$
|
|
63
|
-
import { ComponentToken as ComponentToken$
|
|
64
|
-
import { ComponentToken as ComponentToken$
|
|
65
|
-
import { ComponentToken as ComponentToken$
|
|
66
|
-
import { ComponentToken as ComponentToken$
|
|
67
|
-
import { ComponentToken as ComponentToken$
|
|
68
|
-
import { ComponentToken as ComponentToken$
|
|
69
|
-
import { ComponentToken as ComponentToken$
|
|
70
|
-
import { ComponentToken as ComponentToken$
|
|
71
|
-
import { ComponentToken as ComponentToken$
|
|
54
|
+
import { ComponentToken as ComponentToken$48 } from "../../skeleton/style/index.js";
|
|
55
|
+
import { ComponentToken as ComponentToken$49 } from "../../slider/style/index.js";
|
|
56
|
+
import { ComponentToken as ComponentToken$50 } from "../../space/style/index.js";
|
|
57
|
+
import { ComponentToken as ComponentToken$51 } from "../../spin/style/index.js";
|
|
58
|
+
import { ComponentToken as ComponentToken$52 } from "../../splitter/style/index.js";
|
|
59
|
+
import { ComponentToken as ComponentToken$53 } from "../../statistic/style/index.js";
|
|
60
|
+
import { ComponentToken as ComponentToken$54 } from "../../steps/style/index.js";
|
|
61
|
+
import { ComponentToken as ComponentToken$55 } from "../../switch/style/index.js";
|
|
62
|
+
import { ComponentToken as ComponentToken$56 } from "../../table/style/index.js";
|
|
63
|
+
import { ComponentToken as ComponentToken$57 } from "../../tabs/style/index.js";
|
|
64
|
+
import { ComponentToken as ComponentToken$58 } from "../../tag/style/index.js";
|
|
65
|
+
import { ComponentToken as ComponentToken$59 } from "../../timeline/style/index.js";
|
|
66
|
+
import { ComponentToken as ComponentToken$60 } from "../../tooltip/style/index.js";
|
|
67
|
+
import { ComponentToken as ComponentToken$61 } from "../../tour/style/index.js";
|
|
68
|
+
import { ComponentToken as ComponentToken$62 } from "../../transfer/style/index.js";
|
|
69
|
+
import { ComponentToken as ComponentToken$63 } from "../../tree/style/index.js";
|
|
70
|
+
import { ComponentToken as ComponentToken$64 } from "../../tree-select/style/index.js";
|
|
71
|
+
import { ComponentToken as ComponentToken$65 } from "../../typography/style/index.js";
|
|
72
|
+
import { ComponentToken as ComponentToken$66 } from "../../upload/style/index.js";
|
|
72
73
|
//#region src/theme/interface/components.d.ts
|
|
73
74
|
interface ComponentTokenMap {
|
|
74
75
|
Affix?: ComponentToken$1;
|
|
@@ -79,7 +80,7 @@ interface ComponentTokenMap {
|
|
|
79
80
|
BorderBeam?: ComponentToken$7;
|
|
80
81
|
Button?: ComponentToken$9;
|
|
81
82
|
Breadcrumb?: ComponentToken$8;
|
|
82
|
-
Masonry?: ComponentToken$
|
|
83
|
+
Masonry?: ComponentToken$33;
|
|
83
84
|
Card?: ComponentToken$14;
|
|
84
85
|
Carousel?: ComponentToken$15;
|
|
85
86
|
Cascader?: ComponentToken$16;
|
|
@@ -100,41 +101,42 @@ interface ComponentTokenMap {
|
|
|
100
101
|
Input?: ComponentToken$10;
|
|
101
102
|
InputNumber?: ComponentToken$30;
|
|
102
103
|
Layout?: ComponentToken$31;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
Listy?: ComponentToken$32;
|
|
105
|
+
Mentions?: ComponentToken$34;
|
|
106
|
+
Notification?: ComponentToken$38;
|
|
107
|
+
Pagination?: ComponentToken$39;
|
|
108
|
+
Popover?: ComponentToken$41;
|
|
109
|
+
Popconfirm?: ComponentToken$40;
|
|
110
|
+
Rate?: ComponentToken$45;
|
|
111
|
+
Radio?: ComponentToken$44;
|
|
112
|
+
Result?: ComponentToken$46;
|
|
113
|
+
Segmented?: ComponentToken$47;
|
|
112
114
|
Select?: ComponentToken$11;
|
|
113
|
-
Skeleton?: ComponentToken$
|
|
114
|
-
Slider?: ComponentToken$
|
|
115
|
-
Spin?: ComponentToken$
|
|
116
|
-
Statistic?: ComponentToken$
|
|
117
|
-
Switch?: ComponentToken$
|
|
118
|
-
Splitter?: ComponentToken$
|
|
119
|
-
Tag?: ComponentToken$
|
|
120
|
-
Tree?: ComponentToken$
|
|
121
|
-
TreeSelect?: ComponentToken$
|
|
122
|
-
Typography?: ComponentToken$
|
|
123
|
-
Timeline?: ComponentToken$
|
|
124
|
-
Transfer?: ComponentToken$
|
|
125
|
-
Tabs?: ComponentToken$
|
|
115
|
+
Skeleton?: ComponentToken$48;
|
|
116
|
+
Slider?: ComponentToken$49;
|
|
117
|
+
Spin?: ComponentToken$51;
|
|
118
|
+
Statistic?: ComponentToken$53;
|
|
119
|
+
Switch?: ComponentToken$55;
|
|
120
|
+
Splitter?: ComponentToken$52;
|
|
121
|
+
Tag?: ComponentToken$58;
|
|
122
|
+
Tree?: ComponentToken$63;
|
|
123
|
+
TreeSelect?: ComponentToken$64;
|
|
124
|
+
Typography?: ComponentToken$65;
|
|
125
|
+
Timeline?: ComponentToken$59;
|
|
126
|
+
Transfer?: ComponentToken$62;
|
|
127
|
+
Tabs?: ComponentToken$57;
|
|
126
128
|
Calendar?: ComponentToken$13;
|
|
127
|
-
Steps?: ComponentToken$
|
|
128
|
-
Menu?: ComponentToken$
|
|
129
|
-
Modal?: ComponentToken$
|
|
130
|
-
Message?: ComponentToken$
|
|
131
|
-
Upload?: ComponentToken$
|
|
132
|
-
Tooltip?: ComponentToken$
|
|
133
|
-
Table?: ComponentToken$
|
|
134
|
-
Space?: ComponentToken$
|
|
135
|
-
Progress?: ComponentToken$
|
|
136
|
-
Tour?: ComponentToken$
|
|
137
|
-
QRCode?: ComponentToken$
|
|
129
|
+
Steps?: ComponentToken$54;
|
|
130
|
+
Menu?: ComponentToken$35;
|
|
131
|
+
Modal?: ComponentToken$37;
|
|
132
|
+
Message?: ComponentToken$36;
|
|
133
|
+
Upload?: ComponentToken$66;
|
|
134
|
+
Tooltip?: ComponentToken$60;
|
|
135
|
+
Table?: ComponentToken$56;
|
|
136
|
+
Space?: ComponentToken$50;
|
|
137
|
+
Progress?: ComponentToken$42;
|
|
138
|
+
Tour?: ComponentToken$61;
|
|
139
|
+
QRCode?: ComponentToken$43;
|
|
138
140
|
App?: ComponentToken$4;
|
|
139
141
|
/** @private Internal TS definition. Do not use. */
|
|
140
142
|
Wave?: ComponentToken;
|
package/dist/tour/PurePanel.js
CHANGED
|
@@ -72,14 +72,6 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
72
72
|
type: Object,
|
|
73
73
|
required: false
|
|
74
74
|
},
|
|
75
|
-
indicatorsRender: {
|
|
76
|
-
type: Function,
|
|
77
|
-
required: false
|
|
78
|
-
},
|
|
79
|
-
actionsRender: {
|
|
80
|
-
type: Function,
|
|
81
|
-
required: false
|
|
82
|
-
},
|
|
83
75
|
type: {
|
|
84
76
|
type: String,
|
|
85
77
|
required: false
|
package/dist/tour/interface.d.ts
CHANGED
|
@@ -41,7 +41,10 @@ interface TourProps extends ComponentBaseProps, Omit<TourProps$1, 'classNames' |
|
|
|
41
41
|
prefixCls?: string;
|
|
42
42
|
current?: number;
|
|
43
43
|
indicatorsRender?: (current: number, total: number) => any;
|
|
44
|
-
actionsRender?:
|
|
44
|
+
actionsRender?: (originNode: any, info: {
|
|
45
|
+
current: number;
|
|
46
|
+
total: number;
|
|
47
|
+
}) => any;
|
|
45
48
|
type?: 'default' | 'primary';
|
|
46
49
|
classes?: TourClassNamesType;
|
|
47
50
|
styles?: TourStylesType;
|
|
@@ -97,11 +100,6 @@ interface TourStepProps extends Omit<TourStepProps$1, 'className'> {
|
|
|
97
100
|
class?: string;
|
|
98
101
|
style?: CSSProperties;
|
|
99
102
|
};
|
|
100
|
-
indicatorsRender?: (current: number, total: number) => any;
|
|
101
|
-
actionsRender?: (originNode: any, info: {
|
|
102
|
-
current: number;
|
|
103
|
-
total: number;
|
|
104
|
-
}) => any;
|
|
105
103
|
type?: 'default' | 'primary';
|
|
106
104
|
classes?: SemanticClassNames<TourSemanticName>;
|
|
107
105
|
styles?: SemanticStyles<TourSemanticName>;
|
package/dist/tour/panelRender.js
CHANGED
|
@@ -135,8 +135,14 @@ const TourPanel = /* @__PURE__ */ defineComponent((props) => {
|
|
|
135
135
|
type: Function,
|
|
136
136
|
required: false
|
|
137
137
|
},
|
|
138
|
-
classes: {
|
|
139
|
-
|
|
138
|
+
classes: {
|
|
139
|
+
type: [Object, Function],
|
|
140
|
+
required: false
|
|
141
|
+
},
|
|
142
|
+
styles: {
|
|
143
|
+
type: [Object, Function],
|
|
144
|
+
required: false
|
|
145
|
+
},
|
|
140
146
|
actionsRender: {
|
|
141
147
|
type: Function,
|
|
142
148
|
required: false
|
package/global.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare module 'vue' {
|
|
|
18
18
|
ABadge: typeof import('antdv-next')['Badge']
|
|
19
19
|
ABadgeRibbon: typeof import('antdv-next')['BadgeRibbon']
|
|
20
20
|
ATag: typeof import('antdv-next')['Tag']
|
|
21
|
+
ABorderBeam: typeof import('antdv-next')['BorderBeam']
|
|
21
22
|
ACheckableTag: typeof import('antdv-next')['CheckableTag']
|
|
22
23
|
ALayout: typeof import('antdv-next')['Layout']
|
|
23
24
|
ALayoutHeader: typeof import('antdv-next')['LayoutHeader']
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antdv-next",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "Ant Design Vue3 Component Library",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "aibayanyu@gamil.com",
|
|
@@ -190,23 +190,24 @@
|
|
|
190
190
|
"@v-c/image": "^1.0.12",
|
|
191
191
|
"@v-c/input": "^1.1.1",
|
|
192
192
|
"@v-c/input-number": "^1.0.7",
|
|
193
|
+
"@v-c/listy": "^1.0.2",
|
|
193
194
|
"@v-c/mentions": "^1.2.0",
|
|
194
195
|
"@v-c/menu": "^1.3.0",
|
|
195
196
|
"@v-c/mutate-observer": "^1.0.2",
|
|
196
197
|
"@v-c/notification": "^2.0.2",
|
|
197
198
|
"@v-c/pagination": "^1.1.0",
|
|
198
|
-
"@v-c/picker": "^1.3.
|
|
199
|
+
"@v-c/picker": "^1.3.2",
|
|
199
200
|
"@v-c/progress": "^1.0.1",
|
|
200
201
|
"@v-c/qrcode": "^1.0.1",
|
|
201
202
|
"@v-c/rate": "^1.0.1",
|
|
202
203
|
"@v-c/resize-observer": "^1.1.3",
|
|
203
|
-
"@v-c/segmented": "^1.0.
|
|
204
|
+
"@v-c/segmented": "^1.0.4",
|
|
204
205
|
"@v-c/select": "^1.2.0",
|
|
205
206
|
"@v-c/slick": "^1.0.2",
|
|
206
207
|
"@v-c/slider": "^1.1.0",
|
|
207
208
|
"@v-c/steps": "^1.0.0",
|
|
208
209
|
"@v-c/switch": "^1.0.1",
|
|
209
|
-
"@v-c/table": "^1.1.
|
|
210
|
+
"@v-c/table": "^1.1.9",
|
|
210
211
|
"@v-c/tabs": "^1.3.0",
|
|
211
212
|
"@v-c/textarea": "^1.1.0",
|
|
212
213
|
"@v-c/tooltip": "^1.1.0",
|