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,13 +6,13 @@ | ||
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 8 | <meta | 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 | <title><%= title %></title> | 16 | <title><%= title %></title> |
| 17 | </head> | 17 | </head> |
| 18 | <body> | 18 | <body> |
yudao-ui-admin-vue3/src/views/system/post/index.vue
| @@ -34,9 +34,7 @@ const gridOptions = reactive<VxeGridProps>({ | @@ -34,9 +34,7 @@ const gridOptions = reactive<VxeGridProps>({ | ||
| 34 | }, | 34 | }, |
| 35 | toolbarConfig: { | 35 | toolbarConfig: { |
| 36 | custom: true, | 36 | custom: true, |
| 37 | - slots: { | ||
| 38 | - buttons: 'toolbar_buttons' | ||
| 39 | - } | 37 | + slots: { buttons: 'toolbar_buttons' } |
| 40 | }, | 38 | }, |
| 41 | printConfig: { | 39 | printConfig: { |
| 42 | columns: [ | 40 | columns: [ |
| @@ -124,10 +122,7 @@ const gridOptions = reactive<VxeGridProps>({ | @@ -124,10 +122,7 @@ const gridOptions = reactive<VxeGridProps>({ | ||
| 124 | proxyConfig: { | 122 | proxyConfig: { |
| 125 | seq: true, // 启用动态序号代理(分页之后索引自动计算为当前页的起始序号) | 123 | seq: true, // 启用动态序号代理(分页之后索引自动计算为当前页的起始序号) |
| 126 | form: true, // 启用表单代理,当点击表单提交按钮时会自动触发 reload 行为 | 124 | form: true, // 启用表单代理,当点击表单提交按钮时会自动触发 reload 行为 |
| 127 | - props: { | ||
| 128 | - result: 'list', | ||
| 129 | - total: 'total' | ||
| 130 | - }, | 125 | + props: { result: 'list', total: 'total' }, |
| 131 | ajax: { | 126 | ajax: { |
| 132 | query: ({ page, form }) => { | 127 | query: ({ page, form }) => { |
| 133 | const queryParams: PostPageReqVO = Object.assign({}, form) | 128 | const queryParams: PostPageReqVO = Object.assign({}, form) |
| @@ -142,11 +137,7 @@ const gridOptions = reactive<VxeGridProps>({ | @@ -142,11 +137,7 @@ const gridOptions = reactive<VxeGridProps>({ | ||
| 142 | }) | 137 | }) |
| 143 | const formData = ref<PostVO>() | 138 | const formData = ref<PostVO>() |
| 144 | const formItems = ref<VxeFormItemProps[]>([ | 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 | field: 'name', | 142 | field: 'name', |
| 152 | title: '岗位名称', | 143 | title: '岗位名称', |