form-tdesigner
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
33 lines (31 loc) • 697 B
JavaScript
import {localeProps} from '../../utils';
const label = '图片';
const name = 'elImage';
export default {
menu: 'aide',
icon: 'icon-image',
label,
name,
inline: true,
rule() {
return {
type: name,
title: '',
style: {
width: '100px',
height: '100px',
},
props: {
src: 'https://static.form-create.com/example.png',
}
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [
{
type: 'input',
field: 'src',
}
]);
}
};