feat: remove apps doc alert
parent
f32eef482f
commit
c54e0a5899
|
@ -1,34 +0,0 @@
|
||||||
<script lang="ts" setup>
|
|
||||||
import { isDocAlertEnable } from '@vben/hooks';
|
|
||||||
import { openWindow } from '@vben/utils';
|
|
||||||
|
|
||||||
import { Alert, Typography } from 'ant-design-vue';
|
|
||||||
|
|
||||||
export interface DocAlertProps {
|
|
||||||
/**
|
|
||||||
* 文档标题
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
/**
|
|
||||||
* 文档 URL 地址
|
|
||||||
*/
|
|
||||||
url: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const props = defineProps<DocAlertProps>();
|
|
||||||
|
|
||||||
/** 跳转 URL 链接 */
|
|
||||||
const goToUrl = () => {
|
|
||||||
openWindow(props.url);
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<Alert v-if="isDocAlertEnable()" type="info" show-icon class="mb-2 rounded">
|
|
||||||
<template #message>
|
|
||||||
<Typography.Link @click="goToUrl">
|
|
||||||
【{{ title }}】文档地址:{{ url }}
|
|
||||||
</Typography.Link>
|
|
||||||
</template>
|
|
||||||
</Alert>
|
|
||||||
</template>
|
|
|
@ -1 +0,0 @@
|
||||||
export { default as DocAlert } from './doc-alert.vue';
|
|
|
@ -1,34 +0,0 @@
|
||||||
<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>
|
|
||||||
<div class="mb-2 rounded">
|
|
||||||
<ElAlert v-if="isDocAlertEnable()" type="info" :closable="false" show-icon>
|
|
||||||
<ElLink type="primary" @click="goToUrl">
|
|
||||||
【{{ title }}】文档地址:{{ url }}
|
|
||||||
</ElLink>
|
|
||||||
</ElAlert>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
|
@ -1 +0,0 @@
|
||||||
export { default as DocAlert } from './doc-alert.vue';
|
|
|
@ -1,30 +0,0 @@
|
||||||
<script lang="ts" setup>
|
|
||||||
import { isDocAlertEnable } from '@vben/hooks';
|
|
||||||
import { openWindow } from '@vben/utils';
|
|
||||||
|
|
||||||
import { NAlert, NText } from 'naive-ui';
|
|
||||||
|
|
||||||
export interface DocAlertProps {
|
|
||||||
/**
|
|
||||||
* 文档标题
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
/**
|
|
||||||
* 文档 URL 地址
|
|
||||||
*/
|
|
||||||
url: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const props = defineProps<DocAlertProps>();
|
|
||||||
|
|
||||||
/** 跳转 URL 链接 */
|
|
||||||
const goToUrl = () => {
|
|
||||||
openWindow(props.url);
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<NAlert v-if="isDocAlertEnable()" type="info" show-icon class="mb-2 rounded">
|
|
||||||
<NText @click="goToUrl"> 【{{ title }}】文档地址:{{ url }} </NText>
|
|
||||||
</NAlert>
|
|
||||||
</template>
|
|
|
@ -1 +0,0 @@
|
||||||
export { default as DocAlert } from './doc-alert.vue';
|
|
Loading…
Reference in New Issue