fix: remove element arrayable type

This commit is contained in:
IchliebedichZhu 2024-03-10 13:44:50 +00:00
parent d8bc5f3cff
commit 44fffc0682

View File

@ -20,7 +20,6 @@
<script lang="ts" setup> <script lang="ts" setup>
// const NAME = 'number-slider' // const NAME = 'number-slider'
import { Arrayable } from 'element-plus/es/utils';
import { watch, ref, onMounted } from 'vue'; import { watch, ref, onMounted } from 'vue';
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
@ -36,7 +35,7 @@ type TProps = {
type TEmits = { type TEmits = {
(event: 'update:modelValue', data: number): void (event: 'update:modelValue', data: number): void
(event: 'finish', data: Arrayable<number>): void (event: 'finish', data: number | number[]): void
} }
const props = withDefaults(defineProps<TProps>(), { const props = withDefaults(defineProps<TProps>(), {
@ -72,7 +71,7 @@ onMounted(() => {
innerValue.value = props.modelValue innerValue.value = props.modelValue
}) })
function changeValue(value: Arrayable<number>) { function changeValue(value: number | number[]) {
emit('finish', value) emit('finish', value)
} }
</script> </script>