修复一些命名和拼写错误问题,修复一些BUG

This commit is contained in:
周建
2023-06-25 13:34:27 +08:00
parent 9456a6f31c
commit 7ca76a5304
12 changed files with 149 additions and 171 deletions

View File

@ -22,7 +22,7 @@ const props = defineProps({
// 操作按钮风格位置
layout: propTypes.string.validate((v: string) => ['inline', 'bottom'].includes(v)).def('inline'),
// 底部按钮的对齐方式
buttomPosition: propTypes.string
bottomPosition: propTypes.string
.validate((v: string) => ['left', 'center', 'right'].includes(v))
.def('center'),
showSearch: propTypes.bool.def(true),
@ -85,9 +85,9 @@ const reset = async () => {
emit('reset', model)
}
const bottonButtonStyle = computed(() => {
const bottomButtonStyle = computed(() => {
return {
textAlign: props.buttomPosition as unknown as 'left' | 'center' | 'right'
textAlign: props.bottomPosition as unknown as 'left' | 'center' | 'right'
}
})
@ -135,7 +135,7 @@ const setVisible = () => {
</Form>
<template v-if="layout === 'bottom'">
<div :style="bottonButtonStyle">
<div :style="bottomButtonStyle">
<ElButton v-if="showSearch" type="primary" @click="search">
<Icon class="mr-5px" icon="ep:search" />
{{ t('common.query') }}

View File

@ -278,7 +278,6 @@ const getToolBarConfig = (options: XTableProps) => {
if (toolbarConfig) return
if (toolBar) {
if (!isBoolean(toolBar)) {
console.info(2)
options.toolbarConfig = toolBar
return
}