Skip to content

Commit 1c9f7ca

Browse files
committed
优化 upload 模块,添加响应式处理
1 parent a1790e6 commit 1c9f7ca

File tree

9 files changed

+916
-743
lines changed

9 files changed

+916
-743
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cool-admin-vue",
3-
"version": "3.1.7",
3+
"version": "3.2.0",
44
"scripts": {
55
"serve": "vue-cli-service serve",
66
"build": "vue-cli-service build",

src/cool/modules/base/store/process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
list: [fMenu]
1010
},
1111
getters: {
12-
// 窗口列表
12+
// 页面进程列表
1313
processList: state => state.list
1414
},
1515
mutations: {

src/cool/modules/base/views/user.vue

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323

2424
<div class="container">
25-
<cl-crud ref="crud" @load="onLoad" :on-refresh="onRefresh">
25+
<cl-crud ref="crud" :on-refresh="onRefresh" @load="onLoad">
2626
<el-row type="flex">
2727
<cl-refresh-btn></cl-refresh-btn>
2828
<cl-add-btn></cl-add-btn>
@@ -123,36 +123,30 @@ export default {
123123
columns: [
124124
{
125125
type: "selection",
126-
align: "center",
127-
width: "60"
126+
width: 60
128127
},
129128
{
130129
prop: "headImg",
131-
label: "头像",
132-
align: "center"
130+
label: "头像"
133131
},
134132
{
135133
prop: "name",
136134
label: "姓名",
137-
align: "center",
138135
"min-width": 150
139136
},
140137
{
141138
prop: "username",
142139
label: "用户名",
143-
align: "center",
144140
"min-width": 150
145141
},
146142
{
147143
prop: "nickName",
148144
label: "昵称",
149-
align: "center",
150145
"min-width": 150
151146
},
152147
{
153148
prop: "departmentName",
154149
label: "部门名称",
155-
align: "center",
156150
"min-width": 150
157151
},
158152
{
@@ -164,19 +158,16 @@ export default {
164158
{
165159
prop: "phone",
166160
label: "手机号码",
167-
align: "center",
168161
"min-width": 150
169162
},
170163
{
171164
prop: "remark",
172165
label: "备注",
173-
align: "center",
174166
"min-width": 150
175167
},
176168
{
177169
prop: "status",
178170
label: "状态",
179-
align: "center",
180171
"min-width": 120,
181172
dict: [
182173
{
@@ -194,15 +185,13 @@ export default {
194185
{
195186
prop: "createTime",
196187
label: "创建时间",
197-
align: "center",
198188
sortable: "custom",
199189
"min-width": 150
200190
},
201191
{
202-
align: "center",
203192
type: "op",
204193
buttons: ["slot-move-btn", "edit", "delete"],
205-
width: "160px"
194+
width: 160
206195
}
207196
]
208197
},
@@ -271,7 +260,7 @@ export default {
271260
prop: "password",
272261
label: "密码",
273262
span: 12,
274-
hidden: ":isEdit",
263+
hidden: ":isAdd",
275264
component: {
276265
name: "el-input",
277266
attrs: {
@@ -362,7 +351,7 @@ export default {
362351
},
363352
{
364353
prop: "tips",
365-
hidden: ":isAdd",
354+
hidden: ":isEdit",
366355
component: (
367356
<div>
368357
<i class="el-icon-warning"></i>

src/cool/modules/chat/components/chat.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'append-to-body': true,
1313
'close-on-click-modal': false
1414
}"
15-
:controls="['slot-session', 'cl-flex1', 'fullscreen', 'close']"
15+
:controls="['slot-expand', 'cl-flex1', 'fullscreen', 'close']"
1616
>
1717
<div class="cl-chat">
1818
<!-- 会话列表 -->
@@ -29,7 +29,8 @@
2929
</div>
3030
</div>
3131

32-
<template #slot-session>
32+
<!-- 展开按钮 -->
33+
<template #slot-expand>
3334
<button v-if="session">
3435
<i
3536
class="el-icon-notebook-2"

src/cool/modules/upload/components/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Upload from "./index.vue";
2-
import UploadSpace from "./space.vue";
2+
import UploadSpace from "./space/index.vue";
33

44
export default {
55
Upload,

0 commit comments

Comments
 (0)