Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VcPagination): 修复defineComponent emits 属性声明错误 #8105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pnpm-lock.yaml
# 备份文件
/components/test/*
list.txt

.history
site/dev.js

# IDE 语法提示临时文件
Expand Down
6 changes: 3 additions & 3 deletions components/vc-pagination/Pager.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from '../_util/vue-types';
import classNames from '../_util/classNames';
import type { CSSProperties } from 'vue';
import { defineComponent } from 'vue';
import classNames from '../_util/classNames';
import PropTypes from '../_util/vue-types';

export default defineComponent({
compatConfig: { MODE: 3 },
Expand All @@ -25,7 +25,7 @@ export default defineComponent({
type: Function,
},
},
eimt: ['click', 'keypress'],
emits: ['click', 'keypress'],
setup(props, { emit, attrs }) {
const handleClick = () => {
emit('click', props.page);
Expand Down