chore: list-type的提示
This commit is contained in:
parent
825c2837ea
commit
bc9e3a50e1
@ -23,7 +23,7 @@ export function useFileType() {
|
|||||||
value: str,
|
value: str,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const currentFileListType = ref<(typeof fileListTypes)[number]>('text');
|
const currentFileListType = ref<(typeof fileListTypes)[number]>('picture');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
fileListOptions,
|
fileListOptions,
|
||||||
|
@ -16,7 +16,7 @@ import { useFileType, useImageType } from './hook';
|
|||||||
import sql from './insert.sql?raw';
|
import sql from './insert.sql?raw';
|
||||||
|
|
||||||
const singleImageId = ref('1905537674682916865');
|
const singleImageId = ref('1905537674682916865');
|
||||||
const singleFileId = ref('1905191167882518529');
|
const singleFileId = ref('1906520520833949698');
|
||||||
const multipleImageId = ref<string[]>(['1905537674682916865']);
|
const multipleImageId = ref<string[]>(['1905537674682916865']);
|
||||||
const multipleFileId = ref<string[]>(['1905191167882518529']);
|
const multipleFileId = ref<string[]>(['1905191167882518529']);
|
||||||
|
|
||||||
@ -181,6 +181,10 @@ const { copy } = useClipboard({ legacy: true });
|
|||||||
<div class="mb-2 text-red-500">
|
<div class="mb-2 text-red-500">
|
||||||
注意文件上传不支持`picture-card`类型
|
注意文件上传不支持`picture-card`类型
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mb-2 text-red-500">
|
||||||
|
注意不要中途切换list-type(应该仅作为初始化属性使用) 会导致样式计算问题
|
||||||
|
helpMessage和文件会重叠
|
||||||
|
</div>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
v-model:value="currentFileListType"
|
v-model:value="currentFileListType"
|
||||||
:options="fileListOptions"
|
:options="fileListOptions"
|
||||||
|
Loading…
Reference in New Issue
Block a user