@jx3box/jx3box-ui 2.0.8 → 2.0.10
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.
|
@@ -27,6 +27,14 @@
|
|
|
27
27
|
.ml(0) !important;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.c-main.expanding-right {
|
|
31
|
+
/* assets/css/common/main.less */
|
|
32
|
+
.mr(0) !important;
|
|
33
|
+
.c-sidebar-right {
|
|
34
|
+
.db;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
30
38
|
@media screen and (max-width: @smallpc) {
|
|
31
39
|
/* assets/css/common/main.less */
|
|
32
40
|
.c-main {
|
package/package.json
CHANGED
package/src/Main.vue
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<main
|
|
3
3
|
class="c-main"
|
|
4
|
-
:class="
|
|
5
|
-
'without-right':
|
|
6
|
-
'without-left': expanding,
|
|
7
|
-
'without-bread': withoutBread,
|
|
8
|
-
|
|
4
|
+
:class="[
|
|
5
|
+
withoutRight ? 'without-right' : expandingRight ? 'expanding-right' : '',
|
|
6
|
+
{ 'without-left': expanding },
|
|
7
|
+
{ 'without-bread': withoutBread },
|
|
8
|
+
]"
|
|
9
9
|
>
|
|
10
10
|
<slot></slot>
|
|
11
11
|
</main>
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
data: function () {
|
|
20
20
|
return {
|
|
21
21
|
expanding: false,
|
|
22
|
+
expandingRight: false,
|
|
22
23
|
};
|
|
23
24
|
},
|
|
24
25
|
computed: {
|
|
@@ -30,22 +31,22 @@ export default {
|
|
|
30
31
|
withoutLeft: function (newval) {
|
|
31
32
|
this.expanding = this.withoutLeft === undefined ? false : newval;
|
|
32
33
|
},
|
|
34
|
+
withoutRight: function (newval) {
|
|
35
|
+
this.expandingRight = this.withoutRight === undefined ? false : newval;
|
|
36
|
+
},
|
|
33
37
|
},
|
|
34
38
|
methods: {},
|
|
35
39
|
mounted: function () {
|
|
36
|
-
|
|
40
|
+
Bus.on("toggleLeftSide", (data) => {
|
|
37
41
|
this.expanding = !data;
|
|
38
|
-
};
|
|
39
|
-
Bus.on("
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (this.__toggleLeftSideHandler) {
|
|
43
|
-
Bus.off("toggleLeftSide", this.__toggleLeftSideHandler);
|
|
44
|
-
this.__toggleLeftSideHandler = null;
|
|
45
|
-
}
|
|
42
|
+
});
|
|
43
|
+
Bus.on("toggleRightSide", (data) => {
|
|
44
|
+
this.expandingRight = !data;
|
|
45
|
+
});
|
|
46
46
|
},
|
|
47
47
|
created: function () {
|
|
48
48
|
this.expanding = this.withoutLeft === undefined ? false : !!this.withoutLeft;
|
|
49
|
+
this.expandingRight = this.withoutRight === undefined ? false : !!this.withoutRight;
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
</script>
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
<div class="c-post-collection-title">
|
|
5
5
|
<el-icon class="u-icon"><Connection>></Connection></el-icon> 关联
|
|
6
6
|
</div>
|
|
7
|
-
<div class="u-op" @click="toggle"
|
|
7
|
+
<div class="u-op" @click="toggle">
|
|
8
|
+
<el-icon><DCaret></DCaret></el-icon> 折叠
|
|
9
|
+
</div>
|
|
8
10
|
</div>
|
|
9
11
|
<transition name="collapse">
|
|
10
12
|
<ul v-show="show" class="c-post-collection-list">
|
|
@@ -108,7 +110,7 @@ export default {
|
|
|
108
110
|
color: #333;
|
|
109
111
|
.flex;
|
|
110
112
|
align-items: center;
|
|
111
|
-
gap:
|
|
113
|
+
gap: 3px;
|
|
112
114
|
}
|
|
113
115
|
.u-icon {
|
|
114
116
|
font-size: 18px;
|