Commit ad42eca847e750faef349751e71f5f4d427b2ce7
1 parent
a33120c5
feat: vxe demo
Showing
2 changed files
with
10 additions
and
19 deletions
yudao-ui-admin-vue3/index.html
| ... | ... | @@ -6,13 +6,13 @@ |
| 6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 8 | 8 | <meta |
| 9 | - name="keywords" | |
| 10 | - content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!" | |
| 11 | - /> | |
| 12 | - <meta | |
| 13 | - name="description" | |
| 14 | - content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!" | |
| 15 | - /> | |
| 9 | + name="keywords" | |
| 10 | + content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!" | |
| 11 | + /> | |
| 12 | + <meta | |
| 13 | + name="description" | |
| 14 | + content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!" | |
| 15 | + /> | |
| 16 | 16 | <title><%= title %></title> |
| 17 | 17 | </head> |
| 18 | 18 | <body> | ... | ... |
yudao-ui-admin-vue3/src/views/system/post/index.vue
| ... | ... | @@ -34,9 +34,7 @@ const gridOptions = reactive<VxeGridProps>({ |
| 34 | 34 | }, |
| 35 | 35 | toolbarConfig: { |
| 36 | 36 | custom: true, |
| 37 | - slots: { | |
| 38 | - buttons: 'toolbar_buttons' | |
| 39 | - } | |
| 37 | + slots: { buttons: 'toolbar_buttons' } | |
| 40 | 38 | }, |
| 41 | 39 | printConfig: { |
| 42 | 40 | columns: [ |
| ... | ... | @@ -124,10 +122,7 @@ const gridOptions = reactive<VxeGridProps>({ |
| 124 | 122 | proxyConfig: { |
| 125 | 123 | seq: true, // 启用动态序号代理(分页之后索引自动计算为当前页的起始序号) |
| 126 | 124 | form: true, // 启用表单代理,当点击表单提交按钮时会自动触发 reload 行为 |
| 127 | - props: { | |
| 128 | - result: 'list', | |
| 129 | - total: 'total' | |
| 130 | - }, | |
| 125 | + props: { result: 'list', total: 'total' }, | |
| 131 | 126 | ajax: { |
| 132 | 127 | query: ({ page, form }) => { |
| 133 | 128 | const queryParams: PostPageReqVO = Object.assign({}, form) |
| ... | ... | @@ -142,11 +137,7 @@ const gridOptions = reactive<VxeGridProps>({ |
| 142 | 137 | }) |
| 143 | 138 | const formData = ref<PostVO>() |
| 144 | 139 | const formItems = ref<VxeFormItemProps[]>([ |
| 145 | - { | |
| 146 | - field: 'id', | |
| 147 | - title: 'id', | |
| 148 | - visible: false | |
| 149 | - }, | |
| 140 | + { field: 'id', title: 'id', visible: false }, | |
| 150 | 141 | { |
| 151 | 142 | field: 'name', |
| 152 | 143 | title: '岗位名称', | ... | ... |