修改自定义组的显示问题
parent
0e51859ebb
commit
21ff7e84c3
4
App.vue
4
App.vue
|
|
@ -7,10 +7,10 @@
|
|||
data: {
|
||||
// 基础配置
|
||||
// 数据接口请求地址
|
||||
request_url:'http://shopxo.com/',
|
||||
request_url:'https://d1.shopxo.vip/',
|
||||
|
||||
// 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/)
|
||||
static_url:'http://shopxo.com/',
|
||||
static_url:'https://d1.shopxo.vip/',
|
||||
|
||||
// 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立)
|
||||
system_type: 'default',
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
// 不包含新创建的数组时,将历史数据放到手动添加数组中
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue