修改自定义组的显示问题

master
于肖磊 2025-04-28 10:15:34 +08:00
parent 0e51859ebb
commit 21ff7e84c3
3 changed files with 12 additions and 6 deletions

View File

@ -7,10 +7,10 @@
data: {
//
//
request_url:'http://shopxo.com/',
request_url:'https://d1.shopxo.vip/',
// publicpublichttps://d1.shopxo.vip/public/
static_url:'http://shopxo.com/',
static_url:'https://d1.shopxo.vip/',
// default
system_type: 'default',

View File

@ -95,6 +95,10 @@
type: [String, Number],
default: '',
},
propTabsDataType: {
type: String,
default: 'custom',
},
//
propIndex: {
type: Number,
@ -184,6 +188,9 @@
percentage_count,
isEmpty,
init() {
if (this.propTabsDataType !== 'custom') {
return;
}
const new_form = this.propValue.content;
const new_style = this.propValue.style;
//

View File

@ -19,8 +19,8 @@
</view>
</view>
</template>
<template v-else-if="tabs_data_type == 'custom'">
<component-diy-custom-list :propKey="diy_key" :propValue="tabs_list" :propOuterContainerPadding="outer_container_width" :propIsCommonStyle="false"></component-diy-custom-list>
<template v-show="tabs_data_type == 'custom'">
<component-diy-custom-list :propKey="diy_key" :propTabsDataType="tabs_data_type" :propValue="tabs_list" :propOuterContainerPadding="outer_container_width" :propIsCommonStyle="false"></component-diy-custom-list>
</template>
</view>
</view>
@ -250,9 +250,8 @@
};
const data_content = new_style?.data_content || old_border_and_box_shadow;
const tabs_content = new_style?.tabs_content || old_border_and_box_shadow;
//
this.tabs_click_event(0);
this.tabs_click_event(this.tabs_index);
this.setData({
top_up: new_content.tabs_top_up,
sticky_top: this.propTop + (new_style?.tabs_margin?.margin_top || 0),