diff --git a/frontend/src/components/common/DropdownSelector.vue b/frontend/src/components/common/DropdownSelector.vue index 5b3a9e5..cd97984 100644 --- a/frontend/src/components/common/DropdownSelector.vue +++ b/frontend/src/components/common/DropdownSelector.vue @@ -2,6 +2,7 @@ import { computed, h, ref } from 'vue' import { get, map } from 'lodash' import { NIcon, NText } from 'naive-ui' +import { useRender } from '@/utils/render.js' const props = defineProps({ value: { @@ -21,15 +22,12 @@ const props = defineProps({ }) const emit = defineEmits(['update:value']) +const render = useRender() const renderHeader = () => { return h('div', { class: 'type-selector-header' }, [h(NText, null, () => props.tooltip)]) } -const renderLabel = (option) => { - return h('div', { class: 'type-selector-item' }, option.label) -} - const dropdownOption = computed(() => { const options = [ { @@ -71,7 +69,7 @@ const onDropdownShow = (show) => { {