0.0.3 • Published 5 years ago
italent-feed-14 v0.0.3
祝福 feed
- 祝福 feed 基本功能
- resize 回调
参数设置
blessingType: 2, //祝福类型:1 生日 2 入职纪念日 blessedUsers: [ //被祝福人 { userId: 112167930, name: "importA726", jobState: 1, avatar: { original: null, small: null, medium: null, Big: null, Normal: null, Large: null, hasAvatar: false, color: "#f0c75a" }, userMark: null, userType: 3, decorationType: 1, blessingType: 2, medalUrl: null, tag: null }, { userId: 112167930, name: "importA726", jobState: 1, avatar: { original: null, small: null, medium: null, Big: null, Normal: null, Large: null, hasAvatar: false, color: "#f0c75a" }, userMark: null, userType: 3, decorationType: 1, blessingType: 2, medalUrl: null, tag: null } ], blessingDate: "2018-11-24", //祝福日期 handleSendBlessing: this.handleSendBlessing //点击送祝福回调 * 使用 ```javascript export default class extends Component {
handleSendBlessing = blessingConfig => { console.info(blessingConfig); }; render() { const config = { blessingType: 2, blessedUsers: { userId: 112167930, name: "importA726", jobState: 1, avatar: { original: null, small: null, medium: null, Big: null, Normal: null, Large: null, hasAvatar: false, color: "#f0c75a" }, userMark: null, userType: 3, decorationType: 1, blessingType: 2, medalUrl: null, tag: null } , blessingDate: "2018-11-24", handleSendBlessing: this.handleSendBlessing }; return <BlessingFeed {...config} />; } }
```