Skip to content

Commit a761331

Browse files
committed
reactor: v2
1 parent 3d67e5d commit a761331

File tree

18 files changed

+39
-94
lines changed

18 files changed

+39
-94
lines changed

README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -121,30 +121,6 @@ eg:
121121
]
122122
```
123123
124-
125-
Docs
126-
----
127-
128-
- [Router and Menu](https://github.com/sendya/ant-design-pro-vue/blob/master/src/router/README.md)
129-
- [Table](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/table/README.md) [@Saraka](https://github.com/saraka-tsukai)
130-
- [ANTD DefaultConfig](https://github.com/sendya/ant-design-pro-vue/blob/master/src/defaultSettings.js)
131-
- [Frist page loading animate](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/add-page-loading-animate.md)
132-
- [Multi-Tabs feature/multi-tabs](https://github.com/sendya/ant-design-pro-vue/tree/feature/multi-tabs) [How to remove](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/multi-tabs.md)
133-
- [LoadOnDemand Demo feature/demand_load](https://github.com/sendya/ant-design-pro-vue/tree/feature/demand_load)
134-
- [LoadOnDemand Docs](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/load-on-demand.md)
135-
- [i18n feature/lang](https://github.com/sendya/ant-design-pro-vue/tree/feature/lang) Creator [@musnow](https://github.com/musnow)
136-
- [Dependency analysis tool: analyzer](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/webpack-bundle-analyzer.md)
137-
- ANTD PRO Components:
138-
- Trend [Trend.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Trend/index.md)
139-
- AvatarList [AvatarList.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/AvatarList/index.md)
140-
- CountDown [CountDown.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/CountDown/index.md)
141-
- Ellipsis [Ellipsis.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Ellipsis/index.md)
142-
- NumberInfo [NumberInfo.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/NumberInfo/index.md)
143-
- FooterToolbar [FooterToolbar.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/FooterToolbar/index.md)
144-
- IconSelector [IconSelector.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/IconSelector/README.md) Creator: [@Saraka](https://github.com/saraka-tsukai)
145-
- doing...
146-
147-
148124
## Contributors
149125
150126
This project exists thanks to all the people who contribute.

README.zh-CN.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -131,30 +131,6 @@ yarn run lint
131131
```
132132
133133
134-
附属文档
135-
----
136-
137-
- [路由/菜单说明](https://github.com/sendya/ant-design-pro-vue/blob/master/src/router/README.md)
138-
- [Table 重封装组件](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/table/README.md) [@Saraka](https://github.com/saraka-tsukai)
139-
- [ANTD 默认配置项](https://github.com/sendya/ant-design-pro-vue/blob/master/src/defaultSettings.js)
140-
- [按需加载/减少打包大小](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/load-on-demand.md)
141-
- [为首屏增加 Loading 动画](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/add-page-loading-animate.md)
142-
- [多标签页组件 feature/multi-tabs](https://github.com/sendya/ant-design-pro-vue/tree/feature/multi-tabs) [如何移除](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/multi-tabs.md)
143-
- [按需加载用例 feature/demand_load](https://github.com/sendya/ant-design-pro-vue/tree/feature/demand_load)
144-
- [多语言使用案例 feature/lang](https://github.com/sendya/ant-design-pro-vue/tree/feature/lang) [@musnow](https://github.com/musnow) 提供
145-
- [为项目增加依赖项分析工具 analyzer](https://github.com/sendya/ant-design-pro-vue/blob/master/docs/webpack-bundle-analyzer.md)
146-
- ANTD PRO 额外组件
147-
- Trend 趋势标记 [Trend.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Trend/index.md)
148-
- AvatarList 用户头像列表 [AvatarList.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/AvatarList/index.md)
149-
- CountDown 倒计时 [CountDown.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/CountDown/index.md)
150-
- Ellipsis 文本自动省略号 [Ellipsis.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Ellipsis/index.md)
151-
- NumberInfo 数据文本 [NumberInfo.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/NumberInfo/index.md)
152-
- FooterToolbar 底部工具栏 [FooterToolbar.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/FooterToolbar/index.md)
153-
- IconSelector 图标选择组件 [IconSelector.md](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/IconSelector/README.md) 提供: [@Saraka](https://github.com/saraka-tsukai)
154-
- 其他待补充...
155-
156-
157-
158134
## Contributors
159135
160136
This project exists thanks to all the people who contribute.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-antd-pro",
3-
"version": "1.3.0",
3+
"version": "2.0.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

src/config/defaultSettings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default {
2323
autoHideHeader: false, // auto hide header
2424
colorWeak: false,
2525
multiTab: false,
26+
production: process.env.NODE_ENV === 'production',
2627
// vue-ls options
2728
storageOptions: {
2829
namespace: 'pro__', // key prefix

src/config/router.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// eslint-disable-next-line
2-
import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/components/layouts'
2+
import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
33
import { bxAnaalyse } from '@/core/icons'
44

55
export const asyncRouterMap = [

src/views/account/center/Index.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,15 @@
9696
</template>
9797

9898
<script>
99-
import PageLayout from '@/components/page/PageLayout'
100-
import RouteView from '@/components/layouts/RouteView'
99+
import { PageView, RouteView } from '@/layouts'
101100
import { AppPage, ArticlePage, ProjectPage } from './page'
102101
103102
import { mapGetters } from 'vuex'
104103
105104
export default {
106105
components: {
107106
RouteView,
108-
PageLayout,
107+
PageView,
109108
AppPage,
110109
ArticlePage,
111110
ProjectPage

src/views/account/settings/Custom.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script>
2-
import { colorList } from '@/components/tools/setting'
2+
import { colorList } from '@/components/SettingDrawer/settingConfig'
33
import ASwitch from 'ant-design-vue/es/switch'
44
import AList from 'ant-design-vue/es/list'
55
import AListItem from 'ant-design-vue/es/list/Item'
6-
import { mixin } from '@/utils/mixin.js'
6+
import { mixin } from '@/utils/mixin'
77
88
const Meta = AListItem.Meta
99

src/views/account/settings/Index.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,13 @@
4949
</template>
5050

5151
<script>
52-
import PageLayout from '@/components/page/PageLayout'
53-
import RouteView from '@/components/layouts/RouteView'
52+
import { PageView, RouteView } from '@/layouts'
5453
import { mixinDevice } from '@/utils/mixin.js'
5554
5655
export default {
5756
components: {
5857
RouteView,
59-
PageLayout
58+
PageView
6059
},
6160
mixins: [mixinDevice],
6261
data () {
@@ -148,4 +147,4 @@ export default {
148147
}
149148
}
150149
151-
</style>
150+
</style>

src/views/dashboard/Analysis.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,9 @@
145145
</template>
146146

147147
<script>
148-
import ChartCard from '@/components/chart/ChartCard'
149148
import ACol from 'ant-design-vue/es/grid/Col'
150149
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
151-
import MiniArea from '@/components/chart/MiniArea'
152-
import MiniBar from '@/components/chart/MiniBar'
153-
import MiniProgress from '@/components/chart/MiniProgress'
154-
import RankList from '@/components/chart/RankList'
155-
import Bar from '@/components/chart/Bar'
156-
import Trend from '@/components/Trend'
150+
import { ChartCard, MiniArea, MiniBar, MiniProgress, RankList, Bar, Trend } from '@/components'
157151
158152
const rankList = []
159153
for (let i = 0; i < 7; i++) {
@@ -204,4 +198,4 @@ export default {
204198
}
205199
}
206200
}
207-
</style>
201+
</style>

src/views/dashboard/Workplace.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
12
<template>
2-
<page-layout :avatar="avatar">
3+
<page-view :avatar="avatar" :title="false">
34
<div slot="headerContent">
45
<div class="title">{{ timeFix }},{{ user.name }}<span class="welcome-text">,{{ welcome() }}</span></div>
56
<div>前端工程师 | 蚂蚁金服 - 某某某事业群 - VUE平台</div>
@@ -106,16 +107,16 @@
106107
</a-col>
107108
</a-row>
108109
</div>
109-
</page-layout>
110+
</page-view>
110111
</template>
111112

112113
<script>
113114
import { timeFix } from '@/utils/util'
114115
import { mapGetters } from 'vuex'
115116
116-
import PageLayout from '@/components/page/PageLayout'
117+
import { PageView } from '@/layouts'
117118
import HeadInfo from '@/components/tools/HeadInfo'
118-
import Radar from '@/components/chart/Radar'
119+
import { Radar } from '@/components'
119120
120121
import { getRoleList, getServiceList } from '@/api/manage'
121122
@@ -124,7 +125,7 @@ const DataSet = require('@antv/data-set')
124125
export default {
125126
name: 'Workplace',
126127
components: {
127-
PageLayout,
128+
PageView,
128129
HeadInfo,
129130
Radar
130131
},
@@ -227,7 +228,7 @@ export default {
227228
this.radarLoading = true
228229
229230
this.$http.get('/workplace/radar')
230-
.then(res => {
231+
.then(res => {
231232
const dv = new DataSet.View().source(res.result)
232233
dv.transform({
233234
type: 'fold',
@@ -356,4 +357,4 @@ export default {
356357
}
357358
}
358359
359-
</style>
360+
</style>

0 commit comments

Comments
 (0)