feat: 完善 ele vxe-table 适配,完善文件和图片上传组件、字典组件、文档组件迁移,完善租户和租户套餐管理页面
This commit is contained in:
37
apps/web-ele/src/components/doc-alert/doc-alert.vue
Normal file
37
apps/web-ele/src/components/doc-alert/doc-alert.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<script lang="ts" setup>
|
||||
import { isDocAlertEnable } from '@vben/hooks';
|
||||
import { openWindow } from '@vben/utils';
|
||||
|
||||
import { ElAlert, ElLink } from 'element-plus';
|
||||
|
||||
export interface DocAlertProps {
|
||||
/**
|
||||
* 文档标题
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* 文档 URL 地址
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
const props = defineProps<DocAlertProps>();
|
||||
|
||||
/** 跳转 URL 链接 */
|
||||
const goToUrl = () => {
|
||||
openWindow(props.url);
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ElAlert
|
||||
v-if="isDocAlertEnable()"
|
||||
type="info"
|
||||
:closable="false"
|
||||
class="mb-2 rounded"
|
||||
>
|
||||
<ElLink type="primary" @click="goToUrl">
|
||||
【{{ title }}】文档地址:{{ url }}
|
||||
</ElLink>
|
||||
</ElAlert>
|
||||
</template>
|
||||
Reference in New Issue
Block a user