Skip to content

Commit b82e293

Browse files
committed
新增组件展示页面
1 parent cf0c1ab commit b82e293

File tree

5 files changed

+41
-8
lines changed

5 files changed

+41
-8
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
#
44

55
#### 微更新
6-
* 最近更新:*2020年12月28日*
6+
* 最近更新:*2021年1月15日*
77
* 更新内容:
8-
* 1.增加了更详细的使用指导与模板
9-
* 2.优化了桌面模块图标
10-
* 3.新增了区域刷新功能
8+
* 1.新增了组件功能实现展示页面
119

1210

1311
# vue-web-os

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"vue-count-to": "^1.0.13",
2424
"vue-i18n": "^8.15.3",
2525
"vue-router": "^3.1.3",
26+
"vuedraggable": "^2.24.3",
2627
"vuex": "^3.1.2"
2728
},
2829
"devDependencies": {

src/mock/modules/common.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,29 @@ if (debug) {
101101
"color": "success",
102102
"icon": "ios-easel",
103103
"image": null
104+
},{
105+
"id": 8,
106+
"permissionsname": "插件展示",
107+
"permissionsenglish": "plugShow",
108+
"state": true,
109+
"type": 1,
110+
"parentid": 0,
111+
"color": "info",
112+
"icon": "ios-basket",
113+
"image": null
114+
},{
115+
"id": 9,
116+
"permissionsname": "拖拽列表",
117+
"permissionsenglish": "slidingList",
118+
"state": true,
119+
"type": 2,
120+
"parentid": 8,
121+
"color": "info",
122+
"icon": "ios-apps",
123+
"image": null
104124
},]
105125
}
106126
});
107127

108-
128+
109129
}

src/store/modules/control.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const control = {
1515
cloudDisk:false,
1616
//系统介绍面板展示键
1717
userManagement:false,
18+
//插件展示面板展示键
19+
plugShow:false,
1820
//新增模块时的其他面板展示键......
1921
},
2022
getters: {
@@ -32,7 +34,7 @@ const control = {
3234
}
3335
}
3436
},
35-
37+
3638
//显示页面
3739
refresh(state){
3840
for(let key in state){
@@ -41,7 +43,7 @@ const control = {
4143
}
4244
}
4345
},
44-
46+
4547
//***********************************基本增删改*************************************************
4648
//添加一个任务
4749
addTaskList(state, task) {
@@ -68,7 +70,7 @@ const control = {
6870

6971

7072
//****************************************所有展示界面键************************************************
71-
73+
7274
setTrueSIVB(state) {
7375
state.startInformationViewBool = true
7476
},

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6711,6 +6711,11 @@ sort-keys@^1.0.0:
67116711
dependencies:
67126712
is-plain-obj "^1.0.0"
67136713

6714+
6715+
version "1.10.2"
6716+
resolved "https://registry.yarnpkg.com/sortablejs/-/sortablejs-1.10.2.tgz#6e40364d913f98b85a14f6678f92b5c1221f5290"
6717+
integrity sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A==
6718+
67146719
source-list-map@^2.0.0:
67156720
version "2.0.1"
67166721
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
@@ -7608,6 +7613,13 @@ vue@^2.6.10, vue@^2.6.9:
76087613
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5"
76097614
integrity sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==
76107615

7616+
vuedraggable@^2.24.3:
7617+
version "2.24.3"
7618+
resolved "https://registry.yarnpkg.com/vuedraggable/-/vuedraggable-2.24.3.tgz#43c93849b746a24ce503e123d5b259c701ba0d19"
7619+
integrity sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==
7620+
dependencies:
7621+
sortablejs "1.10.2"
7622+
76117623
vuex@^3.1.2:
76127624
version "3.1.2"
76137625
resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.1.2.tgz#a2863f4005aa73f2587e55c3fadf3f01f69c7d4d"

0 commit comments

Comments
 (0)