diff --git a/src/components/Search/src/Search.vue b/src/components/Search/src/Search.vue index 8309c43f..62db714e 100644 --- a/src/components/Search/src/Search.vue +++ b/src/components/Search/src/Search.vue @@ -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 = () => {