diff --git a/README.md b/README.md index b19d4f2..edc37b3 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ yarn run lint - [Vue-cli3](https://cli.vuejs.org/guide/) used by the project. - Disable Eslint (not recommended): remove `eslintConfig` field in `package.json` and `vue.config.js` field `lintOnSave: false` -- Load on Demand: modify `/src/main.js` L7, append `import './core/lazy_use'` code. +- Load on Demand: modify `/src/main.js` L14, replace to `import './core/lazy_use'` code. - Customize Theme: `vue.config.js` eg: diff --git a/docs/load-on-demand.md b/docs/load-on-demand.md index 3449a44..557a755 100644 --- a/docs/load-on-demand.md +++ b/docs/load-on-demand.md @@ -32,7 +32,7 @@ 2. 修改引入组件方式 (注意,这只是一个例子,请完整引入你所需要的组件) - 文件 `@/components/use.js` + 文件 `@/core/lazy_lib/component_use.js` ```javascript import Vue from 'vue' @@ -64,7 +64,7 @@ ``` -3. 最后在 `main.js` 中引入 `@/components/use.js` 文件即可,如下 +3. 最后在 `main.js` 中引入 `@/core/lazy_use.js` 文件即可,如下 ```javascript @@ -72,7 +72,7 @@ import App from './App' // 引入 按需组件的统一引入文件 - import './components/use' + import './core/use' import './style/index.less' @@ -85,12 +85,6 @@ ``` -**具体完整实现可参考分支 [feature/demand_load](https://github.com/sendya/ant-design-pro-vue/tree/feature/demand_load)** - - - - - ## 其他 减少打包大小 diff --git a/docs/multi-tabs.md b/docs/multi-tabs.md index d9fd255..94032f0 100644 --- a/docs/multi-tabs.md +++ b/docs/multi-tabs.md @@ -5,9 +5,16 @@ ## 让框架支持打开的页面增加多标签,可随时切换 ### 关于如何移除该功能 组件 - 1. 移除 `/src/components/layouts/BasicLayout.vue` L3, L12, L19 + 1. 移除 `/src/layouts/BasicLayout.vue` L44, L69, L80 ```vue - + // L44 + + + // L69 + import MultiTab from '@/components/MultiTab' + + // L80 + MultiTab, ``` 2. 移除 `/src/config/defaultSettings.js` L25 @@ -17,4 +24,5 @@ 5. 删除组件目录 `src/components/MultiTab` -> 以上 `L x` 均代表行N ,如 L3 = 行3 \ No newline at end of file +> 以上 `L x` 均代表行N ,如 L3 = 行3 + diff --git a/src/components/Table/README.md b/src/components/Table/README.md index 6db9540..1d2c9d0 100644 --- a/src/components/Table/README.md +++ b/src/components/Table/README.md @@ -31,7 +31,7 @@ Table 重封装组件说明