Skip to content

Commit e61973f

Browse files
committed
chore: upgrade vue to 3.5
1 parent df9452a commit e61973f

File tree

76 files changed

+288
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+288
-268
lines changed

internal/utils/src/catalogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const catalogs = {
6060
sortablejs: '^1.15.0',
6161
tinycolor2: '^1.6.0',
6262
validator: '^13.9.0',
63-
vue: '^3.3.9',
63+
vue: '^3.5.0',
6464
'vue-router': '^4.2.4',
6565
},
6666
docs: {

packages/common

packages/components/affix/__tests__/affix.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ describe('Affix', () => {
9797

9898
it('Test get container', async () => {
9999
await nextTick();
100+
101+
/* @ts-ignore */
100102
expect(affixRef.scrollContainer).toBe(wrapper.vm.container());
101103
});
102104
// 模拟 affixWrap 的位置
@@ -110,6 +112,8 @@ describe('Affix', () => {
110112

111113
it('Test the scrolling state', async () => {
112114
// 模拟容器滚动
115+
116+
/* @ts-ignore */
113117
wrapper.vm.container().dispatchEvent(new CustomEvent('scroll'));
114118
expect(wrapper.find('.t-affix').classes()).toContain('t-affix');
115119
});

packages/components/affix/affix.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineComponent({
1414
const COMPONENT_NAME = usePrefixClass('affix');
1515
const renderTNodeJSX = useTNodeJSX();
1616

17-
const affixWrapRef = ref<HTMLElement>(null);
17+
const affixWrapRef = ref(null);
1818
const affixRef = ref<HTMLElement>(null);
1919
const placeholderEL = ref(document?.createElement('div')); // 占位节点
2020
const ticking = ref(false);

packages/components/alert/alert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export default defineComponent({
4040

4141
const renderIconTNode = useIcon();
4242
// alert的dom引用
43-
const alertRef = ref<HTMLElement | null>(null);
43+
const alertRef = ref<HTMLElement>();
4444
// description的dom引用
45-
const descriptionRef = ref<HTMLElement | null>(null);
45+
const descriptionRef = ref<HTMLElement>();
4646
// desc高度
4747
const descHeight = ref(0);
4848
// 是否可见,关闭后置为false

packages/components/anchor/anchor-target.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default defineComponent({
3030
const className = [`${COMPONENT_NAME.value}__target`];
3131
const iconClassName = `${classPrefix.value}-copy`;
3232
return (
33+
// @ts-expect-error
3334
<TAG id={id} class={className}>
3435
{children && children(null)}
3536
<Popup content={globalConfig.value.copyText} placement="top" showArrow class={iconClassName}>

packages/components/anchor/anchor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default defineComponent({
4040
const anchorRef = ref<HTMLElement | null>(null);
4141
const links = ref<string[]>([]);
4242
const active = ref('');
43-
const scrollContainer = ref<ANCHOR_CONTAINER>(null);
43+
const scrollContainer = ref<ANCHOR_CONTAINER>();
4444
const handleScrollLock = ref<boolean>(false);
4545
const activeLineStyle = reactive({});
4646
const COMPONENT_NAME = usePrefixClass('anchor');

packages/components/avatar/__tests__/avatar.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ describe('Avatar', () => {
1313
describe('props', () => {
1414
let wrapper: VueWrapper<InstanceType<typeof Avatar>> | null = null;
1515
beforeEach(() => {
16+
// @ts-ignore TODO
1617
wrapper = mount(<Avatar>Avatar</Avatar>) as VueWrapper<InstanceType<typeof Avatar>>;
1718
});
1819

packages/components/breadcrumb/breadcrumb-item.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default defineComponent({
5656
});
5757

5858
const handleClick = () => {
59+
// @ts-ignore
5960
const router = props.router || proxy.$router;
6061

6162
if (props.to && router) {

packages/components/calendar/calendar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ export default defineComponent({
269269
<div class={cls.controlSectionCell.value}>
270270
<TCheckTag
271271
class={cls.controlTag.value}
272-
theme={state.isShowWeekend ? 'default' : 'primary'}
273272
size="large"
274273
{...weekendBtn.vBind.value}
275274
disabled={weekendBtn.isDisabled.value}

0 commit comments

Comments
 (0)