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