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

pull/8105/head
unixy 2025-03-29 12:37:41 +08:00
parent aa211fd789
commit b42a38b301
2 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -69,7 +69,7 @@ pnpm-lock.yaml
# 备份文件
/components/test/*
list.txt
.history
site/dev.js
# IDE 语法提示临时文件

View File

@ -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 },
@ -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);