| | |
| | | .DS_Store |
| | | node_modules |
| | | /dist |
| | | dist.* |
| | | |
| | | |
| | | # local env files |
| | |
| | | <template> |
| | | <div class="page-content"> |
| | | <!-- <chapterOne></chapterOne> |
| | | <chapterTwo></chapterTwo> --> |
| | | <chapterOne></chapterOne> |
| | | <chapterTwo></chapterTwo> |
| | | <!-- <chapterThree></chapterThree> --> |
| | | <!-- <chapterFour></chapterFour> --> |
| | | <chapterFive></chapterFive> |
| | | <!-- <chapterFive></chapterFive> --> |
| | | <!-- <chapterSix></chapterSix> |
| | | <chapterSeven></chapterSeven> |
| | | <chapterEight></chapterEight> |
| | |
| | | // qiankun |
| | | export async function bootstrap() {} |
| | | export async function mount(props) { |
| | | console.log(props, "子层获取的props"); |
| | | props.onGlobalStateChange((state, prev) => { |
| | | // state: 变更后的状态; prev 变更前的状态 |
| | | console.log("子层change:",state, prev); |
| | | if (state.bb) state.bb(123) |
| | | }); |
| | | |
| | | props.setGlobalState({ |
| | | aa: 2 |
| | | }); |
| | | |
| | | render(props); |
| | | } |
| | | export async function unmount() { |
| | |
| | | instance = null; |
| | | } |
| | | |
| | | new Vue({ |
| | | store, |
| | | render: (h) => h(App) |
| | | }).$mount("#app"); |
| | | // new Vue({ |
| | | // store, |
| | | // render: (h) => h(App) |
| | | // }).$mount("#app"); |
| | |
| | | publicPath: "./", |
| | | transpileDependencies: true, |
| | | lintOnSave: false, |
| | | // devServer: { |
| | | // open: true, |
| | | // historyApiFallback: true, |
| | | // allowedHosts: "all", |
| | | // headers: { |
| | | // "access-control-allow-origin": "*", |
| | | // }, |
| | | // client: { |
| | | // overlay: { warnings: false, errors: true } |
| | | // } |
| | | // }, |
| | | configureWebpack: { |
| | | output: { |
| | | library: `app-content`, |