修改显示

v1.1.0
于肖磊 2024-12-10 17:44:52 +08:00
parent 71aad8dacb
commit ce34cae354
4 changed files with 12 additions and 3 deletions

View File

@ -139,9 +139,9 @@ const icon_change = (key: string) => {
const link_change = (key: string) => {
if (key == '2') {
form.value.icon_link = {};
form.value.data_source_link_field = get_data_fields(props.options, 'icon', form.value.data_source_link_field.id);
form.value.data_source_link_field = get_data_fields(props.options, 'link', form.value.data_source_link_field.id);
} else {
form.value.data_source_link_field = get_data_fields([], 'icon', '');
form.value.data_source_link_field = get_data_fields([], 'link', '');
}
};
const mult_color_picker_event = (arry: color_list[], type: number) => {

View File

@ -270,6 +270,10 @@ const data_title = (item: CubeItem) => {
title = `共有${ item.data_content.goods_list.length }个商品`;
} else if (item.data_content.data_type == 'images') {
title = `共有${ item.data_content.images_list.length }个图片`;
} else if (item.data_content.data_type == 'custom') {
title = `自定义${ !isEmpty(item.data_content.custom_mark_name) ? '(' + item.data_content.custom_mark_name + ')' : '' }`;
} else {
title = `视频`;
}
}
return title;

View File

@ -94,7 +94,7 @@
</template>
<template v-else-if="form.data_type == 'custom'">
<div class="bg-f5 divider-line" />
<model-custom-content :key="key" :value="form" :magic-width="form.width"></model-custom-content>
<model-custom-content :key="key" :value="form" :magic-width="form.width" @data_source_change="data_source_change"></model-custom-content>
</template>
<template v-else>
<div class="bg-f5 divider-line" />
@ -191,6 +191,10 @@ const url_value_dialog_call_back = (item: any[]) => {
};
}
};
const data_source_change = (name: string) => {
form.value.custom_mark_name = name;
};
</script>
<style lang="scss" scoped>
.card-background {

View File

@ -253,6 +253,7 @@ const data_content = {
//
data_auto_list: [],
},
custom_mark_name: '',
//
custom_list: [],
//