import defaultCommon from "./index";
import commonTop from './common-top';
export const source_list = {
goods: {
data_ids: [],
data_list: [],
data_auto_list: [],
data_type: 0,
keywords: '',
category_ids: [],
brand_ids: [],
number: 4,
order_by_type: '0',
order_by_rule: '0',
},
article: {
data_ids: [],
data_list: [],
data_auto_list: [],
data_type: 0,
keywords: '',
number: 4,
order_by_type: '0',
order_by_rule: '0',
is_cover: '0',
category_ids: [],
},
brand: {
data_ids: [],
data_list: [],
data_auto_list: [],
data_type: 0,
keywords: '',
category_ids: [],
number: 4,
order_by_type: '0',
order_by_rule: '0',
},
common: {
data_ids: [],
data_list: [],
data_auto_list: [],
}
};
interface content {
data_ids: Array<string>;
data_list: Array<object>;
data_auto_list: Array<object>;
}
interface defaultSearch {
content: {
content_top: object;
height: number;
is_custom_data: string;
show_data: object;
data_source: string;
data_source_content: content;
data_source_is_loop: string;
data_source_direction: string;
data_source_carousel_col: number;
custom_list: string[];
field_list: string[];
};
style: {
is_roll: string;
interval_time: number;
rolling_fashion: string;
is_show: boolean;
actived_color: string;
color: string;
indicator_style: string;
indicator_bottom: number;
indicator_new_location: string;
indicator_location: string;
indicator_size: number;
indicator_radius: radiusStyle;
data_style: object;
data_content_style: object;
row_gap: number;
column_gap: number;
common_style: object;
};
}
const defaultSearch: defaultSearch = {
content: {
content_top: {
...commonTop,
},
height: 390,
data_source_is_loop: '1',
data_source_content: {
data_ids: [],
data_list: [],
data_auto_list: [],
},
show_data: {
data_key: 'id',
data_name: 'name'
},
is_custom_data: '0',
data_source: '',
data_source_direction: 'vertical',
data_source_carousel_col: 1,
custom_list: [],
field_list: [],
},
style: {
is_roll: '1',
interval_time: 3,
rolling_fashion: 'translation',
is_show: false,
actived_color: '#2A94FF',
color: '#DDDDDD',
indicator_style: 'dot',
indicator_new_location: 'bottom',
indicator_location: 'center',
indicator_size: 5,
indicator_bottom: 6,
indicator_radius: {
radius: 4,
radius_top_left: 4,
radius_top_right: 4,
radius_bottom_left: 4,
radius_bottom_right: 4,
},
data_style: {
color_list: [{ color: '', color_percentage: undefined }],
direction: '180deg',
background_img_style: '2',
background_img: [],
radius: 0,
radius_top_left: 0,
radius_top_right: 0,
radius_bottom_left: 0,
radius_bottom_right: 0,
padding: 0,
padding_top: 0,
padding_bottom: 0,
padding_left: 0,
padding_right: 0,
margin: 0,
margin_top: 0,
margin_bottom: 0,
margin_left: 0,
margin_right: 0,
border_is_show: '0',
border_color: '#FF3F3F',
border_style: 'solid',
border_size: {
padding: 1,
padding_top: 1,
padding_right: 1,
padding_bottom: 1,
padding_left: 1,
},
box_shadow_color: '',
box_shadow_x: 0,
box_shadow_y: 0,
box_shadow_blur: 0,
box_shadow_spread: 0,
},
data_content_style: {
color_list: [{ color: '', color_percentage: undefined }],
direction: '180deg',
background_img_style: '2',
background_img: [],
radius: 0,
radius_top_left: 0,
radius_top_right: 0,
radius_bottom_left: 0,
radius_bottom_right: 0,
padding: 0,
padding_top: 0,
padding_bottom: 0,
padding_left: 0,
padding_right: 0,
margin: 0,
margin_top: 0,
margin_bottom: 0,
margin_left: 0,
margin_right: 0,
border_is_show: '0',
border_color: '#FF3F3F',
border_style: 'solid',
border_size: {
padding: 1,
padding_top: 1,
padding_right: 1,
padding_bottom: 1,
padding_left: 1,
},
box_shadow_color: '',
box_shadow_x: 0,
box_shadow_y: 0,
box_shadow_blur: 0,
box_shadow_spread: 0,
},
row_gap: 0,
column_gap: 0,
common_style: {
...defaultCommon,
color_list: [{ color: 'rgb(244, 252, 255)', color_percentage: undefined }],
}
},
};
export default defaultSearch;