@jx3box/jx3box-vue3-ui 0.0.3 → 0.0.4
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/index.js +27 -0
- package/package.json +1 -1
- package/src/App.vue +8 -16
- package/src/header/UserInfo.vue +3 -2
- package/src/main.js +3 -0
package/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import Header from "./src/Header.vue";
|
|
2
|
+
import Footer from "./src/Footer.vue";
|
|
3
|
+
import Main from "./src/Main.vue";
|
|
4
|
+
import Breadcrumb from "./src/Breadcrumb.vue";
|
|
5
|
+
import LeftSidebar from "./src/LeftSidebar.vue";
|
|
6
|
+
import RightSidebar from "./src/RightSidebar.vue";
|
|
7
|
+
import LeftSideToggle from "./src/LeftSideToggle.vue";
|
|
8
|
+
import Bottom from "./src/Bottom.vue";
|
|
9
|
+
|
|
10
|
+
const components = {
|
|
11
|
+
Header,
|
|
12
|
+
Footer,
|
|
13
|
+
Main,
|
|
14
|
+
Breadcrumb,
|
|
15
|
+
LeftSidebar,
|
|
16
|
+
RightSidebar,
|
|
17
|
+
LeftSideToggle,
|
|
18
|
+
Bottom,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const install = function (app) {
|
|
22
|
+
Object.keys(components).forEach((key) => {
|
|
23
|
+
app.component(key, components[key]);
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { install };
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -28,25 +28,17 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
30
|
<script>
|
|
31
|
-
import Header from "./Header.vue";
|
|
32
|
-
import Breadcrumb from "./Breadcrumb.vue";
|
|
33
|
-
import Main from "./Main.vue";
|
|
34
|
-
import Footer from "./Footer.vue";
|
|
35
|
-
import LeftSidebar from "./LeftSidebar.vue";
|
|
36
|
-
import LeftSideToggle from "./LeftSideToggle.vue";
|
|
37
|
-
import RightSidebar from "./RightSidebar.vue";
|
|
38
|
-
import Bottom from "./Bottom.vue";
|
|
39
31
|
export default {
|
|
40
32
|
name: "App",
|
|
41
33
|
components: {
|
|
42
|
-
Main,
|
|
43
|
-
Header,
|
|
44
|
-
Footer,
|
|
45
|
-
Breadcrumb,
|
|
46
|
-
LeftSidebar,
|
|
47
|
-
LeftSideToggle,
|
|
48
|
-
RightSidebar,
|
|
49
|
-
Bottom,
|
|
34
|
+
// Main,
|
|
35
|
+
// Header,
|
|
36
|
+
// Footer,
|
|
37
|
+
// Breadcrumb,
|
|
38
|
+
// LeftSidebar,
|
|
39
|
+
// LeftSideToggle,
|
|
40
|
+
// RightSidebar,
|
|
41
|
+
// Bottom,
|
|
50
42
|
},
|
|
51
43
|
};
|
|
52
44
|
</script>
|
package/src/header/UserInfo.vue
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
<a href="https://os.jx3box.com/admin">管理平台</a>
|
|
22
22
|
</li>
|
|
23
23
|
<li>
|
|
24
|
-
<a @click="logout">退出登录</a>
|
|
24
|
+
<a class="" @click="logout">退出登录</a>
|
|
25
|
+
|
|
25
26
|
</li>
|
|
26
27
|
</ul>
|
|
27
28
|
</template>
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
</a>
|
|
83
84
|
<hr />
|
|
84
85
|
<div class="u-logout">
|
|
85
|
-
<el-button @click="logout"
|
|
86
|
+
<el-button @click="logout" plain>退出登录</el-button>
|
|
86
87
|
</div>
|
|
87
88
|
</div>
|
|
88
89
|
</div>
|