Object对象形式
... 2023-4-26 Less than 1 minute
Tips
2.10.12+
Tips
之前的版本option中column是数组的格式,2.10.12+后支持对象格式,操作更加方便
option
中的column
可以配置成对象形式,用prop
作为key
<avue-crud :option="option" :data="data" ></avue-crud>
<script>
export default {
data () {
return {
form: {},
data: [{
name: '姓名',
sex: 14
}],
option: {
labelWidth: 120,
column: {
name: {
label: '姓名',
},
sex: {
label: '年龄',
}
}
}
}
},
created () {
this.option.column.name.label += '(name)';
}
}
</script>
This app can be installed on your PC or mobile device. This will allow this web app to look and behave like any other installed app. You will find it in your app lists and be able to pin it to your home screen, start menus or task bars. This installed web app will also be able to safely interact with other apps and your operating system.