javascript - Display problems encountered when using Element UI table in Vue
PHP中文网
PHP中文网 2017-06-28 09:28:08
0
1
908

Requirements: A table with n rows and 3 columns, the first column is the serial number, the second column is the type, and the third column is the thumbnail.
The data transmitted from the background is as follows:

Front-end code:

The page becomes like this:

How can I get the address of the url? I want to write the address to the src attribute in the img tag so that the preview image can be displayed. The key is that the dataurl cannot be obtained. Please give me some advice.

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
洪涛

el-table-column has an inline-template attribute

<el-table-column fixed label="预览" prop="dataurl" inline-template>
    <img :src="row.dataurl">
</el-table-column>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template