fix(VcPagination): 修复defineComponent emits 属性声明错误
parent
aa211fd789
commit
b42a38b301
|
@ -69,7 +69,7 @@ pnpm-lock.yaml
|
|||
# 备份文件
|
||||
/components/test/*
|
||||
list.txt
|
||||
|
||||
.history
|
||||
site/dev.js
|
||||
|
||||
# IDE 语法提示临时文件
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue