This commit is contained in:
dzc committed 2024-11-15 22:14:43 +08:00
1 parent 3105fdb07b
commit 67ec3d9c96
13 files changed
+1023 -705

No files matched your search

@@ -43,7 +43,7 @@
<script>
export default {
props: {
value: Array,
modelValue: Array,
column: { // 列的数量
type: [String, Number],
default: 2
@@ -75,7 +75,7 @@ export default {
data() {
return {
data: {
list: this.value ? this.value : [],
list: this.modelValue ? this.modelValue : [],
column: this.column < 2 ? 2 : this.column,
columnSpace: this.columnSpace <= 5 ? this.columnSpace : 5,
imageKey: this.imageKey,
@@ -144,14 +144,14 @@ export default {
// 刷新
refresh() {
if (!this.isLoaded) {
this.refreshDatas = this.value;
this.refreshDatas = this.modelValue;
return false;
};
setTimeout(() => {
this.refreshDatas = [];
this.isRefresh = true;
this.adds = [];
this.data.list = this.value ? this.value : [];
this.data.list = this.modelValue ? this.modelValue : [];
this.data.column = this.column < 2 ? 2 : this.column >= this.maxColumn ? this.maxColumn : this.column;
this.data.columnSpace = this.columnSpace <= 5 ? this.columnSpace : 5;
this.data.imageKey = this.imageKey;
@@ -265,7 +265,7 @@ export default {
}
},
watch: {
value: {
modelValue: {
deep: true,
handler(newValue, oldValue) {
setTimeout(() => {
File diff suppressed because it is too large. Load diff