Revert "feat: add lottery post fields"

This commit is contained in:
Tim
2025-08-11 01:32:50 +08:00
committed by GitHub
parent 6d40e6e5e8
commit 6fb16e91dc
2 changed files with 3 additions and 165 deletions

View File

@@ -1,27 +0,0 @@
<template>
<Dropdown v-model="selected" :fetch-options="fetchOptions" placeholder="帖子类型" :initial-options="options" />
</template>
<script>
import { computed } from 'vue'
import Dropdown from '~/components/Dropdown.vue'
export default {
name: 'PostTypeSelect',
components: { Dropdown },
props: { modelValue: { type: String, default: 'NORMAL' } },
emits: ['update:modelValue'],
setup(props, { emit }) {
const options = [
{ id: 'NORMAL', name: '普通帖' },
{ id: 'LOTTERY', name: '抽奖贴' }
]
const fetchOptions = async () => options
const selected = computed({
get: () => props.modelValue,
set: v => emit('update:modelValue', v)
})
return { selected, fetchOptions, options }
}
}
</script>