编辑表单输入框宽度

[vue3代码]写在生成的[表.vue]文件中,[vue2代码]写在[表.jsx]文件methods方法中;二选一实现
vue3 代码
const conInit = ($vm) => {
gridRef = $vm;
//指定弹出框宽度,不指定可能设置出来的宽度不准
gridRef.boxOptions.width = 800;
//获取字段并设置宽度
const 字段Option = gridRef.getFormOption("字段");
if (字段Option) {
//通过css控制图片显示位置
字段Option.itemStyle = "width:100px"; //设置标签的具体宽度,这里也可以写其他样式
}
};
隐藏高级查询按钮
vue2 代码
onInit () {
//指定弹出框宽度,不指定可能设置出来的宽度不准
this.boxOptions.width = 800;
//获取字段并设置宽度
const 字段Option = this.getFormOption('字段')
if (字段Option) {
//通过css控制图片显示位置
字段Option.itemStyle = 'width:100px';//设置标签的具体宽度,这里也可以写其他样式
}
}