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
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { useBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import config_provider_default from "../config-provider/index.js";
|
|
3
|
+
import { createVNode, defineComponent, mergeProps, shallowRef, useAttrs, useSlots, watch } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/_util/PurePanel.tsx
|
|
6
|
+
function withPureRenderTheme(Component$1) {
|
|
7
|
+
return (props) => {
|
|
8
|
+
const slots = useSlots();
|
|
9
|
+
const attrs = useAttrs();
|
|
10
|
+
return createVNode(config_provider_default, { "theme": { token: {
|
|
11
|
+
motion: false,
|
|
12
|
+
zIndexPopupBase: 0
|
|
13
|
+
} } }, { default: () => [createVNode(Component$1, {
|
|
14
|
+
...props,
|
|
15
|
+
...attrs
|
|
16
|
+
}, slots)] });
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/* istanbul ignore next */
|
|
20
|
+
function genPurePanel(Component$1, alignPropName, postProps, defaultPrefixCls, getDropdownCls) {
|
|
21
|
+
return withPureRenderTheme(/* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
22
|
+
const holderRef = shallowRef();
|
|
23
|
+
const popupHeight = shallowRef(0);
|
|
24
|
+
const popupWidth = shallowRef(0);
|
|
25
|
+
const open = shallowRef(props?.open ?? false);
|
|
26
|
+
const setOpen = (value) => {
|
|
27
|
+
if (props.open !== void 0) return;
|
|
28
|
+
open.value = value;
|
|
29
|
+
};
|
|
30
|
+
watch(() => props.open, () => {
|
|
31
|
+
open.value = props.open ?? false;
|
|
32
|
+
});
|
|
33
|
+
const { prefixCls } = useBaseConfig(defaultPrefixCls ?? "select", props);
|
|
34
|
+
watch(prefixCls, (_, _o, onCleanup) => {
|
|
35
|
+
setOpen(true);
|
|
36
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
37
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
38
|
+
const element = entries[0].target;
|
|
39
|
+
popupHeight.value = element.offsetHeight + 8;
|
|
40
|
+
popupWidth.value = element.offsetWidth;
|
|
41
|
+
});
|
|
42
|
+
const interval = setInterval(() => {
|
|
43
|
+
const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls.value)}` : `.${prefixCls.value}-dropdown`;
|
|
44
|
+
const popup = holderRef.value?.querySelector(dropdownCls);
|
|
45
|
+
if (popup) {
|
|
46
|
+
clearInterval(interval);
|
|
47
|
+
resizeObserver.observe(popup);
|
|
48
|
+
}
|
|
49
|
+
}, 10);
|
|
50
|
+
onCleanup(() => {
|
|
51
|
+
clearInterval(interval);
|
|
52
|
+
resizeObserver.disconnect();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
immediate: true,
|
|
57
|
+
flush: "post"
|
|
58
|
+
});
|
|
59
|
+
return () => {
|
|
60
|
+
const { style } = props;
|
|
61
|
+
let mergedProps = {
|
|
62
|
+
...props,
|
|
63
|
+
style: {
|
|
64
|
+
...style,
|
|
65
|
+
margin: 0
|
|
66
|
+
},
|
|
67
|
+
open: open.value,
|
|
68
|
+
getPopupContainer: () => holderRef.value
|
|
69
|
+
};
|
|
70
|
+
if (postProps) mergedProps = postProps(mergedProps);
|
|
71
|
+
if (alignPropName) Object.assign(mergedProps, { [alignPropName]: { overflow: {
|
|
72
|
+
adjustX: false,
|
|
73
|
+
adjustY: false
|
|
74
|
+
} } });
|
|
75
|
+
const mergedStyle = {
|
|
76
|
+
paddingBottom: `${popupHeight.value}px`,
|
|
77
|
+
position: "relative",
|
|
78
|
+
minWidth: `${popupWidth.value}px`
|
|
79
|
+
};
|
|
80
|
+
return createVNode("div", {
|
|
81
|
+
"ref": holderRef,
|
|
82
|
+
"style": mergedStyle
|
|
83
|
+
}, [createVNode(Component$1, mergeProps(attrs, mergedProps), slots)]);
|
|
84
|
+
};
|
|
85
|
+
}, { props: {
|
|
86
|
+
prefixCls: {
|
|
87
|
+
type: String,
|
|
88
|
+
required: false,
|
|
89
|
+
default: void 0
|
|
90
|
+
},
|
|
91
|
+
style: {
|
|
92
|
+
type: Object,
|
|
93
|
+
required: false,
|
|
94
|
+
default: void 0
|
|
95
|
+
},
|
|
96
|
+
open: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
required: false,
|
|
99
|
+
default: void 0
|
|
100
|
+
}
|
|
101
|
+
} }));
|
|
102
|
+
}
|
|
103
|
+
var PurePanel_default = genPurePanel;
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { PurePanel_default as default, withPureRenderTheme };
|
|
@@ -104,10 +104,10 @@ function pureAttrs(attrs, options = defaultOptions) {
|
|
|
104
104
|
if (options.omit) return omit(newAttrs, options.omit);
|
|
105
105
|
return newAttrs;
|
|
106
106
|
}
|
|
107
|
-
function getAttrStyleAndClass(attrs, options) {
|
|
107
|
+
function getAttrStyleAndClass(attrs, options, props) {
|
|
108
108
|
return {
|
|
109
|
-
className: attrs.class,
|
|
110
|
-
style: attrs.style,
|
|
109
|
+
className: attrs.class ?? props?.class,
|
|
110
|
+
style: attrs.style ?? props?.style,
|
|
111
111
|
restAttrs: pureAttrs(attrs, options)
|
|
112
112
|
};
|
|
113
113
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/_util/styleUtils.ts
|
|
2
|
+
function formatUnit(value) {
|
|
3
|
+
if (value === void 0 || value === null) return;
|
|
4
|
+
if (typeof value === "number") return `${value}px`;
|
|
5
|
+
if (typeof value === "string" && !value.endsWith("px") && !Number.isNaN(Number(value))) return `${value}px`;
|
|
6
|
+
return value;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { formatUnit };
|
package/dist/_util/tools.js
CHANGED
|
@@ -13,7 +13,8 @@ function getSlotPropsFnRun(slots, props, key, isNull = true, params) {
|
|
|
13
13
|
if (typeof fn === "function") {
|
|
14
14
|
let node = fn?.(params);
|
|
15
15
|
if (!Array.isArray(node)) node = [node];
|
|
16
|
-
|
|
16
|
+
if (node && node.length === 1 && node[0] === null) return null;
|
|
17
|
+
const nodes = filterEmpty(node).filter((node$1) => node$1 !== void 0 && node$1 !== null);
|
|
17
18
|
if (nodes.length) {
|
|
18
19
|
if (nodes.length === 1) return nodes[0];
|
|
19
20
|
return nodes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { useConfig } from "../../config-provider/context.js";
|
|
2
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
3
|
import { TARGET_CLS } from "./interface.js";
|
|
2
4
|
import { getTargetWaveColor } from "./util.js";
|
|
3
5
|
import { computed, createVNode, defineComponent, nextTick, onBeforeUnmount, onMounted, ref, render, shallowRef, watch } from "vue";
|
|
@@ -31,6 +33,9 @@ const WaveEffect = /* @__PURE__ */ defineComponent({
|
|
|
31
33
|
},
|
|
32
34
|
emits: ["finish"],
|
|
33
35
|
setup(props, { emit }) {
|
|
36
|
+
const configCtx = useConfig();
|
|
37
|
+
const rootPrefixCls = computed(() => configCtx.value.getPrefixCls());
|
|
38
|
+
const waveVarName = computed(() => genCssVar(rootPrefixCls.value, "wave")[0]);
|
|
34
39
|
const divRef = shallowRef();
|
|
35
40
|
const waveColor = ref(null);
|
|
36
41
|
const borderRadius = ref([
|
|
@@ -53,7 +58,7 @@ const WaveEffect = /* @__PURE__ */ defineComponent({
|
|
|
53
58
|
height: `${height.value}px`,
|
|
54
59
|
borderRadius: borderRadius.value.map((radius) => `${radius}px`).join(" ")
|
|
55
60
|
};
|
|
56
|
-
if (waveColor.value) style["
|
|
61
|
+
if (waveColor.value) style[waveVarName.value("color")] = waveColor.value;
|
|
57
62
|
return style;
|
|
58
63
|
});
|
|
59
64
|
const isSmallComponent = computed(() => {
|
package/dist/_util/wave/style.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { genComponentStyleHook } from "../../theme/util/genStyleUtils.js";
|
|
1
|
+
import { genComponentStyleHook, genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
3
|
|
|
4
4
|
//#region src/_util/wave/style.ts
|
|
5
5
|
const genWaveStyle = (token) => {
|
|
6
|
-
const { componentCls, colorPrimary } = token;
|
|
6
|
+
const { componentCls, colorPrimary, antCls } = token;
|
|
7
|
+
const [, varRef] = genCssVar(antCls, "wave");
|
|
7
8
|
return { [componentCls]: {
|
|
8
9
|
"position": "absolute",
|
|
9
10
|
"background": "transparent",
|
|
10
11
|
"pointerEvents": "none",
|
|
11
12
|
"boxSizing": "border-box",
|
|
12
|
-
"color":
|
|
13
|
+
"color": varRef("color", colorPrimary),
|
|
13
14
|
"boxShadow": `0 0 0 0 currentcolor`,
|
|
14
15
|
"opacity": .2,
|
|
15
16
|
"&.wave-motion-appear": {
|
package/dist/affix/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue65 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/affix/index.d.ts
|
|
5
5
|
interface AffixProps extends ComponentBaseProps {
|
|
@@ -17,10 +17,10 @@ interface AffixEmits {
|
|
|
17
17
|
type InternalAffixProps = AffixProps & {
|
|
18
18
|
onTestUpdatePosition?: any;
|
|
19
19
|
};
|
|
20
|
-
declare const Affix:
|
|
20
|
+
declare const Affix: vue65.DefineSetupFnComponent<InternalAffixProps, AffixEmits, {}, AffixProps & {
|
|
21
21
|
onTestUpdatePosition?: any;
|
|
22
22
|
} & {
|
|
23
23
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
24
|
-
},
|
|
24
|
+
}, vue65.PublicProps>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Affix, AffixProps };
|
package/dist/alert/Alert.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ClosableType } from "../_util/hooks/useClosable.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue222 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/alert/Alert.d.ts
|
|
@@ -43,6 +43,7 @@ type AlertSlots = SlotsDefineType<{
|
|
|
43
43
|
icon?: () => any;
|
|
44
44
|
closeIcon?: () => any;
|
|
45
45
|
action?: () => any;
|
|
46
|
+
title?: () => any;
|
|
46
47
|
}>;
|
|
47
48
|
interface AlertEmits {
|
|
48
49
|
/** Callback when close Alert */
|
|
@@ -52,8 +53,8 @@ interface AlertEmits {
|
|
|
52
53
|
click: (e: any) => any;
|
|
53
54
|
[key: string]: (e: any) => any;
|
|
54
55
|
}
|
|
55
|
-
declare const Alert:
|
|
56
|
+
declare const Alert: vue222.DefineSetupFnComponent<AlertProps, AlertEmits, SlotsType<AlertSlots>, AlertProps & {
|
|
56
57
|
[x: `on${Capitalize<string>}`]: ((e: any) => any) | undefined;
|
|
57
|
-
},
|
|
58
|
+
}, vue222.PublicProps>;
|
|
58
59
|
//#endregion
|
|
59
60
|
export { Alert, AlertEmits, AlertProps, AlertSlots };
|
package/dist/alert/Alert.js
CHANGED
package/dist/anchor/Anchor.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "../_util/hooks/index.js";
|
|
|
4
4
|
import { AnchorLinkBaseProps } from "./AnchorLink.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
6
|
import { AffixProps } from "../affix/index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue338 from "vue";
|
|
8
8
|
import { SlotsType, VNodeChild } from "vue";
|
|
9
9
|
import { Key } from "@v-c/util/dist/type";
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ interface AnchorLinkItemProps extends AnchorLinkBaseProps {
|
|
|
15
15
|
children?: AnchorLinkItemProps[];
|
|
16
16
|
}
|
|
17
17
|
type AnchorDirection = 'vertical' | 'horizontal';
|
|
18
|
-
type SemanticName = 'root' | 'item' | '
|
|
18
|
+
type SemanticName = 'root' | 'item' | 'itemTitle' | 'indicator';
|
|
19
19
|
type AnchorClassNamesType = SemanticClassNamesType<AnchorProps, SemanticName>;
|
|
20
20
|
type AnchorStylesType = SemanticStylesType<AnchorProps, SemanticName>;
|
|
21
21
|
interface AnchorProps extends ComponentBaseProps {
|
|
@@ -45,8 +45,8 @@ interface AnchorEmits {
|
|
|
45
45
|
type AnchorSlots = SlotsDefineType<{
|
|
46
46
|
item: (item: AnchorLinkItemProps) => any;
|
|
47
47
|
}>;
|
|
48
|
-
declare const Anchor:
|
|
48
|
+
declare const Anchor: vue338.DefineSetupFnComponent<AnchorProps, AnchorEmits, SlotsType<AnchorSlots>, AnchorProps & {
|
|
49
49
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
50
|
-
},
|
|
50
|
+
}, vue338.PublicProps>;
|
|
51
51
|
//#endregion
|
|
52
|
-
export { Anchor, AnchorProps };
|
|
52
|
+
export { Anchor, AnchorEmits, AnchorProps, AnchorSlots };
|
|
@@ -38,14 +38,14 @@ const AnchorLink = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =>
|
|
|
38
38
|
return () => {
|
|
39
39
|
const { href, target } = props;
|
|
40
40
|
const wrapperClassName = classNames(`${prefixCls.value}-link`, attrs.class, mergedClassNames?.value?.item, { [`${prefixCls.value}-link-active`]: active.value });
|
|
41
|
-
const titleClassName = classNames(`${prefixCls.value}-link-title`, mergedClassNames?.value?.
|
|
41
|
+
const titleClassName = classNames(`${prefixCls.value}-link-title`, mergedClassNames?.value?.itemTitle, { [`${prefixCls.value}-link-title-active`]: active.value });
|
|
42
42
|
const title = getSlotPropsFnRun(slots, props, "title");
|
|
43
43
|
return createVNode("div", {
|
|
44
44
|
"class": [wrapperClassName],
|
|
45
45
|
"style": mergedStyles?.value?.item
|
|
46
46
|
}, [createVNode("a", {
|
|
47
47
|
"class": titleClassName,
|
|
48
|
-
"style": mergedStyles?.value?.
|
|
48
|
+
"style": mergedStyles?.value?.itemTitle,
|
|
49
49
|
"href": href,
|
|
50
50
|
"title": typeof title === "string" ? title : "",
|
|
51
51
|
"target": target,
|
package/dist/anchor/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnchorLinkProps } from "./AnchorLink.js";
|
|
2
|
-
import { Anchor, AnchorProps } from "./Anchor.js";
|
|
2
|
+
import { Anchor, AnchorEmits, AnchorProps, AnchorSlots } from "./Anchor.js";
|