Authored by htoooth

fix

... ... @@ -33,6 +33,8 @@ export default {
let data = null;
let key = null;
console.log(binding);
if (!_.isEmpty(binding.modifiers)) {
key = _.first(_.keys(binding.modifiers));
} else {
... ...
... ... @@ -42,9 +42,13 @@
title: '商品图片',
align: 'center',
render: (h, params) => {
let directives = [
{name: 'prod-img', value: params.row.skn, modifiers: {skn: true}}
];
return (
<div>
<img v-prod-img={params.row.skn}></img>
<img {...{directives}}></img>
</div>
);
}
... ...