mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-09-19 03:55:54 +08:00
* feat(plugin-layout): 支持运行时配置menus * refactor(plugin-model): 去掉provide * refactor(plugin-layout): 优化runtimeConfig,重新实现运行时menus配置方式,修复多页时setup执行两次的bug * feat(plugin-layout): 菜单支持配置默认展开等 * refactor: 优化
40 lines
621 B
Vue
40 lines
621 B
Vue
<template>
|
|
<div class="page">
|
|
home
|
|
<FButton class="m-2">Button</FButton>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { FButton } from '@fesjs/fes-design';
|
|
import { useModel } from '@fesjs/fes';
|
|
|
|
export default {
|
|
components: {
|
|
FButton
|
|
},
|
|
setup() {
|
|
const initialState = useModel('@@initialState');
|
|
setTimeout(() => {
|
|
initialState.userName = '1';
|
|
}, 1000);
|
|
console.log('index.vue');
|
|
return {
|
|
};
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
.page {
|
|
height: 1000px;
|
|
}
|
|
</style>
|
|
|
|
<config>
|
|
{
|
|
"name": "index",
|
|
"title": "$home"
|
|
}
|
|
</config>
|