diff --git a/components/diy/custom.vue b/components/diy/custom.vue index cdac3f07..ad8ea57d 100644 --- a/components/diy/custom.vue +++ b/components/diy/custom.vue @@ -96,6 +96,10 @@ type: Number, default: 1000000, }, + propIsCommonStyle: { + type: Boolean, + default: true, + }, propOuterContainerPadding: { type: Number, default: 0, @@ -249,8 +253,8 @@ div_width: width, scale: new_scale, custom_list_length: new_form.custom_list.length - 1, - style_container: common_styles_computer(new_style.common_style) + 'box-sizing: border-box;', // 用于样式显示 - style_img_container: common_img_computer(new_style.common_style, this.propIndex), + style_container: this.propIsCommonStyle ? common_styles_computer(new_style.common_style) + 'box-sizing: border-box;' : '', // 用于样式显示 + style_img_container: this.propIsCommonStyle ? common_img_computer(new_style.common_style, this.propIndex) : '', style_content_container: common_styles_computer(new_data_content_style) + 'box-sizing: border-box;', // 用于样式显示 style_content_img_container: common_img_computer(new_data_content_style), style_chunk_container: common_styles_computer(new_data_style) + 'box-sizing: border-box;', // 用于样式显示 diff --git a/components/diy/data-tabs.vue b/components/diy/data-tabs.vue new file mode 100644 index 00000000..4896f3e8 --- /dev/null +++ b/components/diy/data-tabs.vue @@ -0,0 +1,328 @@ + + + + + diff --git a/components/diy/diy.vue b/components/diy/diy.vue index fce11fd1..61f503b5 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -27,6 +27,7 @@ + @@ -121,6 +122,7 @@ import componentDiyImgMagic from '@/components/diy/img-magic'; import componentDiySeckill from '@/components/diy/seckill'; import componentDiyTabsCarousel from '@/components/diy/tabs-carousel'; + import componentDataTabs from '@/components/diy/data-tabs'; import componentGoodsList from '@/components/goods-list/goods-list'; import componentNoData from '@/components/no-data/no-data'; import componentBottomLine from '@/components/bottom-line/bottom-line'; @@ -176,6 +178,7 @@ componentDiyImgMagic, componentDiySeckill, componentDiyTabsCarousel, + componentDataTabs, componentGoodsList, componentNoData, componentBottomLine,