fix: 示例组件name
This commit is contained in:
parent
7e79c51630
commit
98e3f13185
@ -14,8 +14,8 @@ export default {
|
|||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'CrudTable',
|
name: 'Crud',
|
||||||
path: 'crud-table',
|
path: 'crud',
|
||||||
component: () => import('./table/index.vue'),
|
component: () => import('./table/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: 'CRUD表格',
|
title: 'CRUD表格',
|
||||||
|
@ -86,7 +86,7 @@ import { formatDateTime, renderIcon, isNullOrUndef } from '@/utils'
|
|||||||
import { useCRUD } from '@/composables'
|
import { useCRUD } from '@/composables'
|
||||||
import api from './api'
|
import api from './api'
|
||||||
|
|
||||||
defineOptions({ name: 'CrudTable' })
|
defineOptions({ name: 'Crud' })
|
||||||
|
|
||||||
const $table = ref(null)
|
const $table = ref(null)
|
||||||
/** QueryBar筛选参数(可选) */
|
/** QueryBar筛选参数(可选) */
|
||||||
@ -94,7 +94,7 @@ const queryItems = ref({})
|
|||||||
/** 补充参数(可选) */
|
/** 补充参数(可选) */
|
||||||
const extraParams = ref({})
|
const extraParams = ref({})
|
||||||
|
|
||||||
onMounted(() => {
|
onActivated(() => {
|
||||||
$table.value?.handleSearch()
|
$table.value?.handleSearch()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user