图片上传组件新增disabled属性

This commit is contained in:
RuoYi
2025-05-06 19:13:32 +08:00
parent ecd201550f
commit 46708ceee4
2 changed files with 18 additions and 7 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ export default {
type: Boolean,
default: false
},
// 拖动排序
// 拖动排序
drag: {
type: Boolean,
default: true
@@ -103,7 +103,7 @@ export default {
}
},
mounted() {
if (this.drag) {
if (this.drag && !this.disabled) {
this.$nextTick(() => {
const element = this.$refs.uploadFileList?.$el || this.$refs.uploadFileList
Sortable.create(element, {