Skip to content

Commit 0df6abe

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat-v4
2 parents b103b75 + 045193e commit 0df6abe

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

components/anchor/Anchor.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ export default defineComponent({
160160
const { offsetTop, targetOffset } = props;
161161

162162
setCurrentActiveLink(link);
163-
const container = getContainer.value();
164-
const scrollTop = getScroll(container, true);
165163
const sharpLinkMatch = sharpMatcherRegx.exec(link);
166164
if (!sharpLinkMatch) {
167165
return;
@@ -171,6 +169,8 @@ export default defineComponent({
171169
return;
172170
}
173171

172+
const container = getContainer.value();
173+
const scrollTop = getScroll(container, true);
174174
const eleOffsetTop = getOffsetTop(targetElement, container);
175175
let y = scrollTop + eleOffsetTop;
176176
y -= targetOffset !== undefined ? targetOffset : offsetTop || 0;

components/input-number/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const InputNumber = defineComponent({
100100
};
101101
return () => {
102102
const { hasFeedback, isFormItemInput, feedbackIcon } = formItemInputContext;
103+
const id = props.id ?? formItemContext.id.value;
103104
const {
104105
class: className,
105106
bordered,
@@ -110,7 +111,7 @@ const InputNumber = defineComponent({
110111
prefix = slots.prefix?.(),
111112
valueModifiers = {},
112113
...others
113-
} = { ...attrs, ...props } as InputNumberProps & HTMLAttributes;
114+
} = { ...attrs, ...props, id } as InputNumberProps & HTMLAttributes;
114115

115116
const preCls = prefixCls.value;
116117

components/menu/demo/inline.vue

+3-6
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ const handleClick: MenuProps['onClick'] = e => {
7878
console.log('click', e);
7979
};
8080
81-
watch(
82-
() => openKeys,
83-
val => {
84-
console.log('openKeys', val);
85-
},
86-
);
81+
watch(openKeys, val => {
82+
console.log('openKeys', val);
83+
});
8784
</script>

components/table/hooks/useColumns.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function fillSlots<RecordType>(columns: ColumnsType<RecordType>, contextSlots: R
3737
() => [column.title as any],
3838
);
3939
}
40-
if ('children' in cloneColumn) {
40+
if ('children' in cloneColumn && Array.isArray(cloneColumn.children)) {
4141
cloneColumn.children = fillSlots(cloneColumn.children, contextSlots);
4242
}
4343

0 commit comments

Comments
 (0)