Use the Headless file input component to create your own avatar upload component. It works the same as a regular file input, but you can style it however you want. Below is an example of an avatar upload component.
نمایش کدمخفی کردن کد
vue
Use the Headless file input component to create your own file upload component. It works the same as a regular file input, but you can style it however you want. Below is an example of a file upload component.
فایلها را برای بارگذاری رها کنید
یا
نمایش کدمخفی کردن کد
vue
نام
نوع
filter-file-droppedAllows to filter files when dropped.
نمایش مثالمخفی کردن مثال
vue
idThe form input identifier.
نمایش مثالمخفی کردن مثال
vue
multipleAllows multiple files to be selected.
نمایش مثالمخفی کردن مثال
vue
نام
نوع
elThe underlying HTMLInputElement element.
نمایش مثالمخفی کردن مثال
vue
filesThe model value of the file input.
نمایش مثالمخفی کردن مثال
vue
openOpens the native file input selector.
نمایش مثالمخفی کردن مثال
vue
removeRemoves a file from the input.
نمایش مثالمخفی کردن مثال
vue
previewReturns the preview DataURL of a file.
نمایش مثالمخفی کردن مثال
vue
dropHandles the drop event.
نمایش مثالمخفی کردن مثال
vue