mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
feat: vxe demo
This commit is contained in:
parent
a33120c5d5
commit
ad42eca847
@ -34,9 +34,7 @@ const gridOptions = reactive<VxeGridProps>({
|
|||||||
},
|
},
|
||||||
toolbarConfig: {
|
toolbarConfig: {
|
||||||
custom: true,
|
custom: true,
|
||||||
slots: {
|
slots: { buttons: 'toolbar_buttons' }
|
||||||
buttons: 'toolbar_buttons'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
printConfig: {
|
printConfig: {
|
||||||
columns: [
|
columns: [
|
||||||
@ -124,10 +122,7 @@ const gridOptions = reactive<VxeGridProps>({
|
|||||||
proxyConfig: {
|
proxyConfig: {
|
||||||
seq: true, // 启用动态序号代理(分页之后索引自动计算为当前页的起始序号)
|
seq: true, // 启用动态序号代理(分页之后索引自动计算为当前页的起始序号)
|
||||||
form: true, // 启用表单代理,当点击表单提交按钮时会自动触发 reload 行为
|
form: true, // 启用表单代理,当点击表单提交按钮时会自动触发 reload 行为
|
||||||
props: {
|
props: { result: 'list', total: 'total' },
|
||||||
result: 'list',
|
|
||||||
total: 'total'
|
|
||||||
},
|
|
||||||
ajax: {
|
ajax: {
|
||||||
query: ({ page, form }) => {
|
query: ({ page, form }) => {
|
||||||
const queryParams: PostPageReqVO = Object.assign({}, form)
|
const queryParams: PostPageReqVO = Object.assign({}, form)
|
||||||
@ -142,11 +137,7 @@ const gridOptions = reactive<VxeGridProps>({
|
|||||||
})
|
})
|
||||||
const formData = ref<PostVO>()
|
const formData = ref<PostVO>()
|
||||||
const formItems = ref<VxeFormItemProps[]>([
|
const formItems = ref<VxeFormItemProps[]>([
|
||||||
{
|
{ field: 'id', title: 'id', visible: false },
|
||||||
field: 'id',
|
|
||||||
title: 'id',
|
|
||||||
visible: false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'name',
|
field: 'name',
|
||||||
title: '岗位名称',
|
title: '岗位名称',
|
||||||
|
Loading…
Reference in New Issue
Block a user