Merge branch 'dev-yxl' of gitee.com:zongzhige/shopxo-uniapp into dev

master
gongfuxiang 2025-03-04 11:08:55 +08:00
commit fd7617a6e6
2 changed files with 15 additions and 7 deletions

View File

@ -26,7 +26,7 @@ import modelLines from '@/components/diy/modules/custom/model-lines.vue';
import modelImage from '@/components/diy/modules/custom/model-image.vue';
import modelIcon from '@/components/diy/modules/custom/model-icon.vue';
import modelPanel from '@/components/diy/modules/custom/model-panel.vue';
import { location_compute } from '@/common/js/common/common.js';
import { location_compute, isEmpty } from '@/common/js/common/common.js';
export default {
components: {
modelText,
@ -112,7 +112,7 @@ export default {
watch: {
propKey(val) {
//
this.init();
this.init(this.propCustomList);
},
propCustomList(val) {
this.init(val);
@ -173,6 +173,10 @@ export default {
},
methods: {
async init(val) {
//
if (isEmpty(val)) {
return;
}
await this.get_custom_width();
this.set_new_list(val);
},

View File

@ -30,7 +30,7 @@ import modelImage from '@/components/diy/modules/custom/model-image.vue';
import modelIcon from '@/components/diy/modules/custom/model-icon.vue';
import modelPanel from '@/components/diy/modules/custom/model-panel.vue';
import modelCustomGroup from '@/components/diy/modules/custom/model-custom-group.vue';
import { location_compute } from '@/common/js/common/common.js';
import { location_compute, isEmpty } from '@/common/js/common/common.js';
export default {
components: {
modelText,
@ -123,7 +123,7 @@ export default {
watch: {
propKey(val) {
//
this.init();
this.init(this.propCustomList);
},
},
computed: {
@ -177,12 +177,16 @@ export default {
}
},
mounted() {
this.init();
this.init(this.propCustomList);
},
methods: {
async init() {
async init(val) {
//
if (isEmpty(val)) {
return;
}
await this.get_custom_width();
this.set_new_list(this.propCustomList);
this.set_new_list(val);
},
get_custom_width() {
//