fix list style
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
alt-text="客户照片"
|
||||
:loading="customerPhotoUploading"
|
||||
:preview="false"
|
||||
@add="customerPhotoInputRef?.click"
|
||||
@add="openCustomerPhotoPicker"
|
||||
@clear="customerPhotoTempFileId = ''"
|
||||
/>
|
||||
</t-form-item>
|
||||
@@ -78,7 +78,7 @@
|
||||
title="登记事件照片"
|
||||
v-model="recordPhotoList"
|
||||
:loading="recordPhotoUploading"
|
||||
@add="recordPhotoInputRef?.click"
|
||||
@add="openRecordPhotoPicker"
|
||||
/>
|
||||
</div>
|
||||
</t-form>
|
||||
@@ -375,6 +375,10 @@ const customerPhotoTempFileId = ref("");
|
||||
const customerPhotoInputRef = ref<HTMLInputElement>();
|
||||
const customerPhotoUploading = ref(false);
|
||||
|
||||
function openCustomerPhotoPicker(): void {
|
||||
customerPhotoInputRef.value?.click();
|
||||
}
|
||||
|
||||
function syncCustomerPhoto(customer?: Customer): void {
|
||||
customerPhotoTempFileId.value = "";
|
||||
customerPhoto.value = getCustomerPhotoURL(customer);
|
||||
@@ -406,6 +410,10 @@ async function handleCustomerPhotoSelected(event: Event): Promise<void> {
|
||||
const recordPhotoInputRef = ref<HTMLInputElement>();
|
||||
const recordPhotoUploading = ref(false);
|
||||
const recordPhotoItemList = ref<QuickPhoto[]>([]);
|
||||
|
||||
function openRecordPhotoPicker(): void {
|
||||
recordPhotoInputRef.value?.click();
|
||||
}
|
||||
const recordPhotoList = computed<string[]>({
|
||||
get() {
|
||||
return recordPhotoItemList.value.map(item => item.url);
|
||||
|
||||
Reference in New Issue
Block a user