@jx3box/jx3box-common-ui 7.4.3 → 7.4.5

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.
@@ -1,9 +1,11 @@
1
- .c-sidebar-right{
2
- .pf;.rt(0,@header-height + @bread-height);.z(400);
3
- bottom:0;
1
+ .c-sidebar-right {
2
+ .pf;
3
+ .rt(0,@header-height + @bread-height);
4
+ .z(400);
5
+ bottom: 0;
4
6
  .w(@aside-right);
5
- background-color:#fff;
6
- border-left:1px solid #eee;
7
+ background-color: #fff;
8
+ border-left: 1px solid #eee;
7
9
  box-sizing: border-box;
8
10
 
9
11
  &.show-toggle {
@@ -18,6 +20,11 @@
18
20
  top: 0;
19
21
  &.show-toggle {
20
22
  background-color: #fff;
23
+ .pf;
24
+ .rt(0,@header-height + @bread-height);
25
+ .z(400);
26
+ bottom: 0;
27
+ .w(@aside-right);
21
28
  }
22
29
  }
23
30
  }
@@ -48,7 +55,7 @@
48
55
  }
49
56
  }
50
57
 
51
- .c-sidebar-right-title{
58
+ .c-sidebar-right-title {
52
59
  font-size: 18px;
53
60
  line-height: 24px;
54
61
  font-weight: 300;
@@ -56,16 +63,15 @@
56
63
  padding: 0 0 5px 0;
57
64
  border-bottom: 1px solid #ebeef5;
58
65
 
59
- .u-icon{
66
+ .u-icon {
60
67
  width: 24px;
61
68
  height: 24px;
62
69
  margin-right: 10px;
63
70
  }
64
71
  }
65
72
 
66
- .c-sidebar-right-list{
67
-
68
- .u-item{
73
+ .c-sidebar-right-list {
74
+ .u-item {
69
75
  .db;
70
76
  height: 48px;
71
77
  line-height: 48px;
@@ -75,19 +81,20 @@
75
81
  border-bottom: 1px solid #ebeef5;
76
82
  font-size: 13px;
77
83
  font-weight: 500;
78
- transition: border-bottom-color .3s;
84
+ transition: border-bottom-color 0.3s;
79
85
  outline: none;
80
86
  .pr;
81
87
 
82
- &:hover{
83
- color:@primary;
88
+ &:hover {
89
+ color: @primary;
84
90
  }
85
91
 
86
- &:after{
92
+ &:after {
87
93
  content: "\e6e0";
88
- .pa;.rt(0,50%);
94
+ .pa;
95
+ .rt(0,50%);
89
96
  transform: translateY(-50%);
90
- font-family: element-icons!important;
97
+ font-family: element-icons !important;
91
98
  speak: none;
92
99
  font-style: normal;
93
100
  font-weight: 400;
@@ -178,7 +185,7 @@
178
185
  // }
179
186
 
180
187
  // 平板横屏
181
- @media screen and (max-width:@smallpc){
188
+ @media screen and (max-width: @smallpc) {
182
189
  // .c-sidebar-right{
183
190
  // .ps;
184
191
  // .w(auto);
@@ -186,6 +193,8 @@
186
193
  // }
187
194
  }
188
195
 
189
- @media print{
190
- .c-sidebar-right{.none;}
196
+ @media print {
197
+ .c-sidebar-right {
198
+ .none;
199
+ }
191
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.4.3",
3
+ "version": "7.4.5",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-comment-ui": "^1.7.12",
34
- "@jx3box/jx3box-common": "^7.8.9",
35
- "@jx3box/jx3box-data": "^3.1.0",
36
- "@jx3box/jx3box-editor": "^1.8.6",
33
+ "@jx3box/jx3box-comment-ui": "^1.7.13",
34
+ "@jx3box/jx3box-common": "^7.9.5",
35
+ "@jx3box/jx3box-data": "^3.3.0",
36
+ "@jx3box/jx3box-editor": "^1.9.9",
37
37
  "axios": "^0.26.1",
38
38
  "dayjs": "^1.11.0",
39
39
  "element-ui": "^2.13.2",
@@ -1,11 +1,11 @@
1
- import { $helper } from "@jx3box/jx3box-common/js/https.js";
1
+ import { $cms } from "@jx3box/jx3box-common/js/https.js";
2
2
 
3
3
  function getBreadcrumb(name) {
4
- return $helper().get(`/api/breadcrumb/${name}`);
4
+ return $cms().get(`/api/cms/breadcrumb/${name}`);
5
5
  }
6
6
 
7
7
  function getBreadcrumbs(params) {
8
- return $helper().get(`/api/breadcrumbs`, {
8
+ return $cms().get(`/api/cms/breadcrumb`, {
9
9
  params: params,
10
10
  });
11
11
  }
package/src/App.vue CHANGED
@@ -8,6 +8,7 @@
8
8
  :publishEnable="true"
9
9
  :feedbackEnable="true"
10
10
  :adminEnable="true"
11
+ :crumb-enable="true"
11
12
  >
12
13
  <img slot="logo" svg-inline src="../assets/img/jx3.svg" />
13
14
  bread info
@@ -119,7 +120,7 @@
119
120
  </el-tab-pane>
120
121
  </el-tabs>
121
122
 
122
- <RightSidebar :showToggle="true">
123
+ <RightSidebar :showToggle="false">
123
124
  <PostTopic></PostTopic>
124
125
  <RightSideMsg>Hello</RightSideMsg>
125
126
  <div id="directory"></div>
@@ -16,10 +16,7 @@ export default {
16
16
  mounted() {
17
17
  getBreadcrumb(this.name).then((res) => {
18
18
  res = res.data;
19
- this.html =
20
- res.code === 200 && res.data.breadcrumb
21
- ? res.data.breadcrumb.html
22
- : "";
19
+ this.html = res.data?.html || "";
23
20
  });
24
21
  },
25
22
  };