finyx_data_frontend/src/utils/createPlaceholderView.ts

15 lines
315 B
TypeScript

// 创建占位视图组件的工具函数
export const createPlaceholderView = (name: string) => {
return {
name,
template: `
<div class="placeholder-view">
<h2>${name}</h2>
<p>此功能正在迁移中,请稍候...</p>
</div>
`,
setup() {
return {}
}
}
}