1 | import { listeners } from '../mixins/listeners';
|
2 | import { refs } from '../mixins/refs';
|
3 | export default {
|
4 | name: 'taro-image',
|
5 | mixins: [listeners, refs],
|
6 | props: {
|
7 | mode: String
|
8 | },
|
9 | render: function render(createElement) {
|
10 | return createElement('taro-image-core', {
|
11 | class: ['hydrated', {
|
12 | 'taro-img__widthfix': this.mode === 'widthFix'
|
13 | }],
|
14 | attrs: {
|
15 | mode: this.mode
|
16 | },
|
17 | on: this.listeners
|
18 | }, this.$slots.default);
|
19 | }
|
20 | }; |
\ | No newline at end of file |