Commit 2806c2ead7e0a4c18e03230d89f03b7855a9f3f3
1 parent
feeff6e0
perf(plugin) select image from image gallery
Showing
1 changed file
with
4 additions
and
5 deletions
front-end/h5/src/components/plugins/lbp-picture.js
| 1 | -// issue 34 | ||
| 2 | -import placeholderImg from './lbp-picture-placeholder.png' | 1 | +import ImageGallery from '@/components/core/support/image-gallery/gallery.js' |
| 2 | +import placeholderImg from './lbp-picture-placeholder.png' // issue #34 | ||
| 3 | export default { | 3 | export default { |
| 4 | name: 'lbp-picture', | 4 | name: 'lbp-picture', |
| 5 | render () { | 5 | render () { |
| @@ -17,8 +17,7 @@ export default { | @@ -17,8 +17,7 @@ export default { | ||
| 17 | editorConfig: { | 17 | editorConfig: { |
| 18 | propsConfig: { | 18 | propsConfig: { |
| 19 | imgSrc: { | 19 | imgSrc: { |
| 20 | - // type: 'picture-picker', | ||
| 21 | - type: 'a-input', | 20 | + type: 'image-gallery', |
| 22 | label: '图片url', | 21 | label: '图片url', |
| 23 | prop: { | 22 | prop: { |
| 24 | type: 'textarea' | 23 | type: 'textarea' |
| @@ -27,7 +26,7 @@ export default { | @@ -27,7 +26,7 @@ export default { | ||
| 27 | } | 26 | } |
| 28 | }, | 27 | }, |
| 29 | components: { | 28 | components: { |
| 30 | - // 'picture-picker': PicturePicker, | 29 | + 'image-gallery': ImageGallery |
| 31 | } | 30 | } |
| 32 | } | 31 | } |
| 33 | } | 32 | } |