fix 分页类型声明 #2395
This commit is contained in:
@@ -44,8 +44,8 @@ export default defineComponent({
|
||||
iconJumpNext: String as PropType<VxePagerPropTypes.IconJumpNext>,
|
||||
iconNextPage: String as PropType<VxePagerPropTypes.IconNextPage>,
|
||||
iconJumpMore: String as PropType<VxePagerPropTypes.IconJumpMore>,
|
||||
iconHomePage: String as PropType<VxePagerPropTypes.IconHome>,
|
||||
iconEndPage: String as PropType<VxePagerPropTypes.IconEnd>
|
||||
iconHomePage: String as PropType<VxePagerPropTypes.IconHomePage>,
|
||||
iconEndPage: String as PropType<VxePagerPropTypes.IconEndPage>
|
||||
},
|
||||
emits: [
|
||||
'update:pageSize',
|
||||
|
||||
@@ -6341,12 +6341,12 @@ export default defineComponent({
|
||||
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
||||
'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
|
||||
($xetable as any)[name] = function () {
|
||||
errLog('vxe.error.reqModule', ['Export'])
|
||||
errLog('vxe.error.reqModule', ['VxeTableExportModule'])
|
||||
}
|
||||
})
|
||||
'clearValidate,fullValidate,validate'.split(',').forEach(name => {
|
||||
($xetable as any)[name] = function () {
|
||||
errLog('vxe.error.reqModule', ['Validator'])
|
||||
errLog('vxe.error.reqModule', ['VxeTableValidatorModule'])
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -110,13 +110,19 @@ export default defineComponent({
|
||||
|
||||
const handleClickSettingEvent = ({ $event }: any) => {
|
||||
if ($xetable) {
|
||||
$xetable.triggerCustomEvent($event)
|
||||
if ($xetable.triggerCustomEvent) {
|
||||
$xetable.triggerCustomEvent($event)
|
||||
} else {
|
||||
errLog('vxe.error.reqModule', ['VxeTableCustomModule'])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const handleMouseenterSettingEvent = ({ $event }: any) => {
|
||||
if ($xetable) {
|
||||
$xetable.customOpenEvent($event)
|
||||
} else {
|
||||
errLog('vxe.error.reqModule', ['VxeTableCustomModule'])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user