Merge pull request #188 from dikstub-rssa/feat/things-munaja
feat/things-munaja: adjust content header
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import type { ContentHeader } from './index'
|
||||
import type { Config } from './index'
|
||||
import { refDebounced } from '@vueuse/core'
|
||||
|
||||
const props = defineProps<ContentHeader>()
|
||||
const props = defineProps<Config>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
'update:searchModelValue': [value: string]
|
||||
@@ -11,8 +11,6 @@ const emit = defineEmits<{
|
||||
|
||||
// Quick search
|
||||
const search = ref(props.quickSearchNav?.modelValue || props.refSearchNav?.modelValue || '')
|
||||
// const qsModelValue = ref(props.quickSearchNav?.modelValue || '')
|
||||
// const rsModelValue = ref(props.refSearchNav?.modelValue || '')
|
||||
const debouncedSearch = refDebounced(search, props.quickSearchNav?.debounceDuration || 500)
|
||||
|
||||
// Computed search model for v-model
|
||||
|
||||
@@ -45,7 +45,7 @@ export interface RefExportNav {
|
||||
onExportExcel?: () => void
|
||||
}
|
||||
|
||||
export interface ContentHeader {
|
||||
export interface Config {
|
||||
title?: string
|
||||
icon?: string
|
||||
components?: ComponentWithProps[]
|
||||
|
||||
Reference in New Issue
Block a user