-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(popupload): [pop-upload]Fixed popupload review issues. #2368
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -13,9 +13,8 @@ | |||||||||
<p class="tips-item">1.上传数据应不超过{{ limit }}条,超过数量不允许上传;</p> | ||||||||||
<p class="tips-item">2.相同数据不会重复发</p> | ||||||||||
<p class="tips-item"> | ||||||||||
3.上传文件限{{ fileType.join(',') }}格式,文件不超过{{ fileSize / 1024 }}KB,点击<tiny-link | ||||||||||
>下载模板</tiny-link | ||||||||||
> | ||||||||||
3.上传文件限{{ fileType.join(',') }}格式,文件不超过{{ fileSize / 1024 }}KB,点击 | ||||||||||
<tiny-link>下载模板</tiny-link> | ||||||||||
</p> | ||||||||||
</template> | ||||||||||
</tiny-alert> | ||||||||||
|
@@ -36,5 +35,10 @@ const fileType = ref(['.png', '.jpg']) | |||||||||
<style scoped> | ||||||||||
.tips-item { | ||||||||||
margin: 0; | ||||||||||
height: 22px; | ||||||||||
line-height: 22px; | ||||||||||
} | ||||||||||
:deep(.tiny-popupload__dialog-footer) { | ||||||||||
justify-content: flex-end !important; | ||||||||||
Comment on lines
+41
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Avoid using !important in CSS rules. Using -:deep(.tiny-popupload__dialog-footer) {
- justify-content: flex-end !important;
-}
+:deep(.tiny-popupload .tiny-popupload__dialog-footer) {
+ justify-content: flex-end;
+} 📝 Committable suggestion
Suggested change
|
||||||||||
} | ||||||||||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add click handler or href to the download template link.
The
<tiny-link>
component lacks functionality to actually download the template. This should be implemented to demonstrate proper usage.Consider adding a click handler:
And in the script section: