@jx3box/jx3box-ui 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/SuspendCommon.vue
CHANGED
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
<!-- 样式分类(icon&more) -->
|
|
39
39
|
<div class="m-icon-box" v-if="btnConfig.showIcon && !btnConfig.showHome">
|
|
40
40
|
<div class="m-btn-box">
|
|
41
|
-
<!--
|
|
41
|
+
<!-- 搜索按钮-->
|
|
42
42
|
<div v-if="btnConfig.showSearch" class="u-icon-d" @click="search">
|
|
43
43
|
<img class="u-icon" src="../assets/img/suspend/search.svg" svg-inline />
|
|
44
44
|
</div>
|
|
45
|
-
<!--
|
|
45
|
+
<!-- 固定按钮-->
|
|
46
46
|
<div
|
|
47
47
|
v-if="btnConfig.showFixed"
|
|
48
48
|
class="u-icon-d"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
/>
|
|
57
57
|
<img class="u-icon active" src="../assets/img/suspend/pin_slash_24.svg" svg-inline v-else />
|
|
58
58
|
</div>
|
|
59
|
-
<!--
|
|
59
|
+
<!-- 收藏按钮-->
|
|
60
60
|
<div
|
|
61
61
|
v-if="btnConfig.showCollect"
|
|
62
62
|
class="u-icon-d"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
<div class="m-more" v-if="btnConfig.showMore" @click="setMore">
|
|
74
|
-
|
|
74
|
+
<img class="u-icon" src="../assets/img/suspend/more.svg" svg-inline />
|
|
75
75
|
{{ $jx3boxT("jx3boxUi.suspendCommon.more", "更多") }}
|
|
76
76
|
</div>
|
|
77
77
|
</div>
|
package/src/bread/Admin.vue
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:with-header="true"
|
|
9
9
|
v-if="hasRight"
|
|
10
10
|
:close-on-click-modal="true"
|
|
11
|
+
:size="drawerWidth"
|
|
11
12
|
>
|
|
12
13
|
<div class="c-admin-wrapper" ref="adminDrawer">
|
|
13
14
|
<!-- <template v-if="isAdmin"> -->
|
|
@@ -261,6 +262,9 @@ export default {
|
|
|
261
262
|
? Object.assign({}, marks, this.marksOptions)
|
|
262
263
|
: marks;
|
|
263
264
|
},
|
|
265
|
+
drawerWidth: function () {
|
|
266
|
+
return window.innerWidth > 768 ? "500px" : "100%";
|
|
267
|
+
},
|
|
264
268
|
},
|
|
265
269
|
methods: {
|
|
266
270
|
// 是否有权限
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:modal="false"
|
|
9
9
|
:withHeader="false"
|
|
10
10
|
:close-on-click-modal="true"
|
|
11
|
+
:size="drawerWidth"
|
|
11
12
|
>
|
|
12
13
|
<div class="c-admin-wrapper c-community-wrapper">
|
|
13
14
|
<el-divider content-position="left">信息设置</el-divider>
|
|
@@ -230,6 +231,9 @@ export default {
|
|
|
230
231
|
showColors() {
|
|
231
232
|
return this.form.is_hight;
|
|
232
233
|
},
|
|
234
|
+
drawerWidth() {
|
|
235
|
+
return window.innerWidth > 768 ? "500px" : "100%";
|
|
236
|
+
},
|
|
233
237
|
},
|
|
234
238
|
watch: {
|
|
235
239
|
modelValue: async function (val) {
|
package/src/bread/ListAdmin.vue
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
:append-to-body="true"
|
|
17
17
|
:modal="false"
|
|
18
18
|
:withHeader="false"
|
|
19
|
+
:size="drawerWidth"
|
|
19
20
|
>
|
|
20
21
|
<div class="c-admin-wrapper" v-loading="loading">
|
|
21
22
|
<el-divider content-position="left">主题管理</el-divider>
|
|
@@ -66,6 +67,9 @@ export default {
|
|
|
66
67
|
hasRight() {
|
|
67
68
|
return User.isEditor();
|
|
68
69
|
},
|
|
70
|
+
drawerWidth() {
|
|
71
|
+
return window.innerWidth > 768 ? "500px" : "100%";
|
|
72
|
+
},
|
|
69
73
|
},
|
|
70
74
|
watch: {
|
|
71
75
|
show(val) {
|