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 | export default { | 4 | export default { |
| 4 | name: 'lbp-picture', | 5 | name: 'lbp-picture', |
| 5 | render () { | 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 | props: { | 9 | props: { |
| 9 | imgSrc: { | 10 | imgSrc: { |
| 10 | type: String, | 11 | type: String, |
| 11 | - default: defaultPngPath | 12 | + default: placeholderImg |
| 12 | } | 13 | } |
| 13 | }, | 14 | }, |
| 14 | data: () => ({ | 15 | data: () => ({ |
| 15 | - defaultPngPath | 16 | + placeholderImg |
| 16 | }), | 17 | }), |
| 17 | editorConfig: { | 18 | editorConfig: { |
| 18 | propsConfig: { | 19 | propsConfig: { |