【新增】插件git同步模块,用于同步项目内容,加速项目开发

【调整】前端暗色问题
This commit is contained in:
chudong
2025-05-14 16:50:56 +08:00
parent dc43da936b
commit e6947ec5c4
215 changed files with 19918 additions and 9710 deletions

View File

@@ -0,0 +1,47 @@
import { NEmpty, NButton } from 'naive-ui'
import { defineComponent } from 'vue'
/**
* 空状态提示组件,带有添加按钮和社区链接
* @param addButtonText 添加按钮文本
* @param onAddClick 添加按钮点击事件
*/
interface EmptyActionPromptProps {
addButtonText: string
onAddClick: () => void
}
export default defineComponent({
name: 'EmptyActionPrompt',
props: {
addButtonText: {
type: String,
required: true,
},
onAddClick: {
type: Function,
required: true,
},
},
setup(props: EmptyActionPromptProps) {
return () => (
<div class="flex justify-center items-center h-full">
<NEmpty class="px-[4rem]">
<NButton text type="primary" size="small" onClick={props.onAddClick}>
{props.addButtonText}
</NButton>
<NButton text tag="a" target="_blank" type="primary" href="https://github.com/allinssl/allinssl/issues">
Issues
</NButton>
Github给我们
<NButton text tag="a" target="_blank" type="primary" href="https://github.com/allinssl/allinssl">
Star
</NButton>
AllinSSL极其重要
</NEmpty>
</div>
)
},
})