chore: 使用私有桶的提示

This commit is contained in:
dap 2024-12-13 15:22:02 +08:00
parent b0d44b07b4
commit ccbc385bc8
2 changed files with 19 additions and 1 deletions

View File

@ -128,6 +128,12 @@ export const drawerSchema: FormSchemaGetter = () => [
fieldName: 'domain', fieldName: 'domain',
label: '自定义域名', label: '自定义域名',
}, },
{
component: 'Input',
fieldName: 'tip',
label: '占位作为提示使用',
hideLabel: true,
},
{ {
component: 'Divider', component: 'Divider',
componentProps: { componentProps: {

View File

@ -5,6 +5,8 @@ import { useVbenDrawer } from '@vben/common-ui';
import { $t } from '@vben/locales'; import { $t } from '@vben/locales';
import { cloneDeep } from '@vben/utils'; import { cloneDeep } from '@vben/utils';
import { Alert } from 'ant-design-vue';
import { useVbenForm } from '#/adapter/form'; import { useVbenForm } from '#/adapter/form';
import { import {
ossConfigAdd, ossConfigAdd,
@ -79,7 +81,17 @@ async function handleCancel() {
<template> <template>
<BasicDrawer :close-on-click-modal="false" :title="title" class="w-[650px]"> <BasicDrawer :close-on-click-modal="false" :title="title" class="w-[650px]">
<BasicForm /> <BasicForm>
<template #tip>
<div class="ml-7 w-full">
<Alert
message="私有桶使用自定义域名无法预览, 但可以正常上传/下载"
show-icon
type="warning"
/>
</div>
</template>
</BasicForm>
</BasicDrawer> </BasicDrawer>
</template> </template>