@jx3box/jx3box-ui 2.0.9 → 2.0.11
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/assets/css/common/main.less +8 -0
- package/assets/css/common/right-msg.less +26 -0
- package/package.json +1 -1
- package/src/CommonHeader.vue +0 -1
- package/src/Main.vue +15 -14
- package/src/RightSideMsg.vue +24 -0
|
@@ -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 {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.c-sidebar-right-msg {
|
|
2
|
+
@aiconh: 22px;
|
|
3
|
+
|
|
4
|
+
border: 1px solid @primary;
|
|
5
|
+
margin: 15px 15px 5px 15px;
|
|
6
|
+
padding: 10px 10px 10px 30px;
|
|
7
|
+
.r(6px);
|
|
8
|
+
.pr;
|
|
9
|
+
|
|
10
|
+
.u-icon {
|
|
11
|
+
.db;
|
|
12
|
+
.fl;
|
|
13
|
+
.size(16px, @aiconh);
|
|
14
|
+
svg {
|
|
15
|
+
.size(16px);
|
|
16
|
+
fill:@primary;
|
|
17
|
+
}
|
|
18
|
+
.pa;
|
|
19
|
+
.lt(10px, 50%);
|
|
20
|
+
margin-top: -@aiconh / 2 + 2px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.u-msg {
|
|
24
|
+
.fz(12px, @aiconh);
|
|
25
|
+
}
|
|
26
|
+
}
|
package/package.json
CHANGED
package/src/CommonHeader.vue
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>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="c-sidebar-right-msg">
|
|
3
|
+
<i class="u-icon"><img svg-inline src="../assets/img/rightsidebar/ac.svg" /></i>
|
|
4
|
+
<div class="u-msg">
|
|
5
|
+
<slot></slot>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
name: "RightSideMsg",
|
|
13
|
+
data: function () {
|
|
14
|
+
return {};
|
|
15
|
+
},
|
|
16
|
+
computed: {},
|
|
17
|
+
methods: {},
|
|
18
|
+
mounted: function () {},
|
|
19
|
+
};
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<style lang="less">
|
|
23
|
+
@import "../assets/css/common/right-msg.less";
|
|
24
|
+
</style>
|