import { BasicProps, EditSetting } from '../type' export interface BookType { bookId: string, strBookId: string, imageUrl: string, title: string, authorNames: string, description: string, } export class Props extends BasicProps { public editSetting: EditSetting = { key: 'gaea-snailRecommend', name: '蜗牛猜你喜欢', isContainer: false, isAutoHeight: true, type: ['common', 'snail'], editors: [ { field: 'pos', text: '模块标识', type: 'string', placeholder: '用于统计上报中的pos字段' }, 'Style', { field: 'divider', text: '底部分割线', type: 'boolean' }, { field: 'backgroundColor', text: '背景色', type: 'color' }, { field: 'titleColor', text: '标题字体颜色', type: 'color' }, { field: 'descColor', text: '描述字体颜色', type: 'color' }, ] }; pos: string style: object isEdit: boolean backgroundColor: string = '#fff' titleColor: string = '#444' descColor: string = '#b3b3b3' divider: boolean = true } export class State { books: BookType[] }