Commit 7c94841c8c047c085fedc70d02563f64635412f6
1 parent
380e5d22
perf(plugin): #34
Showing
2 changed files
with
6 additions
and
5 deletions
front-end/h5/src/components/plugins/lbp-picture-placeholder.jpg
0 → 100644
57.2 KB
front-end/h5/src/components/plugins/lbp-picture.js
| 1 | -const defaultPngPath = 'http://jietu-10024907.file.myqcloud.com/kblthjeuhituluuaalpiuyvfwrldpkrj.jpg' | |
| 2 | - | |
| 1 | +// const defaultPngPath = 'http://jietu-10024907.file.myqcloud.com/kblthjeuhituluuaalpiuyvfwrldpkrj.jpg' | |
| 2 | +// issue 34 | |
| 3 | +import placeholderImg from './lbp-picture-placeholder.jpg' | |
| 3 | 4 | export default { |
| 4 | 5 | name: 'lbp-picture', |
| 5 | 6 | render () { |
| 6 | - return <img src={this.imgSrc || defaultPngPath} alt="" srcset="" width="100%" /> | |
| 7 | + return <img src={this.imgSrc || placeholderImg} alt="" srcset="" width="100%" /> | |
| 7 | 8 | }, |
| 8 | 9 | props: { |
| 9 | 10 | imgSrc: { |
| 10 | 11 | type: String, |
| 11 | - default: defaultPngPath | |
| 12 | + default: placeholderImg | |
| 12 | 13 | } |
| 13 | 14 | }, |
| 14 | 15 | data: () => ({ |
| 15 | - defaultPngPath | |
| 16 | + placeholderImg | |
| 16 | 17 | }), |
| 17 | 18 | editorConfig: { |
| 18 | 19 | propsConfig: { | ... | ... |