feat: 文档库/问题库的分页功能 #91

Manually merged
remilia merged 3 commits from feat/pagination into master 2025-12-02 15:31:50 +08:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit dbe75ee080 - Show all commits

View File

@ -101,19 +101,19 @@
defineProps({ defineProps({
productTypeOptions: { productTypeOptions: {
type: Array as () => Array<{ id: number; name: string }>, type: Array as () => Array<DocumentListProductType>,
default: () => [], default: () => [],
}, },
productOptions: { productOptions: {
type: Array as () => Array<{ id: number; name: string }>, type: Array as () => Array<DocumentListProduct>,
default: () => [], default: () => [],
}, },
}); });
const model = defineModel<{ const model = defineModel<{
keyword: string; keyword: string;
selectedType: number | null; selectedType: string | null;
selectedProduct: number | null; selectedProduct: string | null;
}>(); }>();
</script> </script>

View File

@ -30,8 +30,8 @@
]; ];
const filters = reactive({ const filters = reactive({
selectedType: null as number | null, selectedType: null as string | null,
selectedProduct: null as number | null, selectedProduct: null as string | null,
keyword: '', keyword: '',
}); });