图片上传组件新增disabled属性

This commit is contained in:
RuoYi
2025-05-06 19:14:54 +08:00
parent 0dcd3e6183
commit 056cf94082
2 changed files with 18 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ export default {
type: Boolean,
default: false
},
// 拖动排序
// 拖动排序
drag: {
type: Boolean,
default: true
@@ -102,7 +102,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, {