fix(VcPagination): 修复defineComponent emits 属性声明错误
parent
aa211fd789
commit
b42a38b301
|
@ -69,7 +69,7 @@ pnpm-lock.yaml
|
||||||
# 备份文件
|
# 备份文件
|
||||||
/components/test/*
|
/components/test/*
|
||||||
list.txt
|
list.txt
|
||||||
|
.history
|
||||||
site/dev.js
|
site/dev.js
|
||||||
|
|
||||||
# IDE 语法提示临时文件
|
# IDE 语法提示临时文件
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import PropTypes from '../_util/vue-types';
|
|
||||||
import classNames from '../_util/classNames';
|
|
||||||
import type { CSSProperties } from 'vue';
|
import type { CSSProperties } from 'vue';
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
import classNames from '../_util/classNames';
|
||||||
|
import PropTypes from '../_util/vue-types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
compatConfig: { MODE: 3 },
|
compatConfig: { MODE: 3 },
|
||||||
|
@ -25,7 +25,7 @@ export default defineComponent({
|
||||||
type: Function,
|
type: Function,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
eimt: ['click', 'keypress'],
|
emits: ['click', 'keypress'],
|
||||||
setup(props, { emit, attrs }) {
|
setup(props, { emit, attrs }) {
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
emit('click', props.page);
|
emit('click', props.page);
|
||||||
|
|
Loading…
Reference in New Issue