适配 element plus 最新版本

This commit is contained in:
RuoYi
2022-01-11 17:24:45 +08:00
parent b132d44489
commit a7b867ff09
35 changed files with 289 additions and 369 deletions

View File

@ -24,10 +24,9 @@ const route = useRoute();
const router = useRouter();
const {proxy} = getCurrentInstance();
const sizeOptions = ref([
{ label: 'Large', value: 'large' },
{ label: 'Medium', value: 'medium' },
{ label: 'Small', value: 'small' },
{ label: 'Mini', value: 'mini' }
{ label: '较大', value: 'large' },
{ label: '默认', value: 'default' },
{ label: '稍小', value: 'small' },
])
function refreshView() {
@ -43,13 +42,9 @@ function refreshView() {
})
}
function handleSetSize(size) {
proxy.$ELEMENT.size = size;
proxy.$modal.loading("正在设置布局大小,请稍候...");
store.dispatch('app/setSize', size)
refreshView()
ElMessage({
message: 'Switch Size Success',
type: 'success'
})
setTimeout("window.location.reload()", 1000)
};
</script>