fix:解决ts报错 (#110)

This commit is contained in:
dayou 2024-05-13 14:01:46 +08:00 committed by GitHub
parent 412fc75cfe
commit c67d8dd134
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup>
import { ref, computed, inject } from 'vue' import { ref, computed, inject } from 'vue'
import OptionConfig from '../AdvancedConfig/OptionConfig.vue' import OptionConfig from '../AdvancedConfig/OptionConfig.vue'
import RateConfig from '../AdvancedConfig/RateConfig.vue' import RateConfig from '../AdvancedConfig/RateConfig.vue'
@ -75,7 +75,7 @@ defineProps({
}) })
const emit = defineEmits(['addOther', 'optionChange', 'change']) const emit = defineEmits(['addOther', 'optionChange', 'change'])
const moduleConfig = inject('moduleConfig') as any const moduleConfig = inject('moduleConfig')
const optionConfigVisible = ref(false) const optionConfigVisible = ref(false)
const openOptionConfig = () => { const openOptionConfig = () => {
console.log('open') console.log('open')
@ -85,10 +85,10 @@ const openOptionConfig = () => {
const addOther = () => { const addOther = () => {
emit('addOther') emit('addOther')
} }
const handleOptionChange = (value: any[]) => { const handleOptionChange = (value) => {
emit('optionChange', value) emit('optionChange', value)
} }
const handleChange = (data: any) => { const handleChange = (data) => {
emit('change', data) emit('change', data)
} }
@ -96,7 +96,7 @@ const rateConfigVisible = ref(false)
const openRateConfig = () => { const openRateConfig = () => {
rateConfigVisible.value = true rateConfigVisible.value = true
} }
const onVisibleChange = (val: boolean) => { const onVisibleChange = (val) => {
rateConfigVisible.value = val rateConfigVisible.value = val
} }