import { BasicProps, BasicState, EditSetting } from '../type' export class Props extends BasicProps { public editSetting: EditSetting = { key: 'gaea-snailShareRead', name: '蜗牛共读', isContainer: false, isAutoHeight: true, defaultPosition: { top: '0', left: '0' }, type: ['common', 'snail'], help: { title: '链接从蜗牛管理后台获取', link: 'https://du.hz.netease.com/tools#/schemeUrl' }, editors: [ { field: 'shareReadId', text: '共读id', type: 'string' }, { field: 'title', text: '模块标题', type: 'string' }, { field: 'linkName', text: '链接文案', type: 'string' }, { field: 'linkUrl', text: '链接', type: 'string' }, { field: 'userDesc', text: '发起人介绍', type: 'string' }, { field: 'shareReadDesc', text: '共读介绍', type: 'string' }, { field: 'pos', text: '模块标识', type: 'string', placeholder: '用于统计上报中的pos字段' }, 'Style', { field: 'style.backgroundColor', text: '背景颜色', type: 'color' }, { field: 'backgroundImage', text: '背景图片', type: 'image' } ] }; public style: React.CSSProperties = { display: 'block', width: '100%', overflow: 'hidden', zIndex: 2, }; } export class State extends BasicState { public shareReadData = null; public shareRead = null; public timerId = 0; public status = 1; public isBtnShow = false; public leftBtnText = ''; public rightBtnText = ''; public leftClass = ''; public rightClass = ''; public priceUnit = ''; }