Commit c92b3cd4 by 姜雷

修改路由页签组件引用方式

parent 8a8ea2d2
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "rym-element-ui", "name": "rym-element-ui",
"version": "0.1.9", "version": "0.1.11",
"description": "任意门组件库", "description": "任意门组件库",
"main": "lib/rymUi.common.js", "main": "lib/rymUi.common.js",
"scripts": { "scripts": {
......
...@@ -22,13 +22,8 @@ ...@@ -22,13 +22,8 @@
</template> </template>
<script> <script>
import TagsViews from "../TagsViews/TagsView";
export default { export default {
name: "app-layout", name: "app-layout",
components: {
TagsViews
},
computed: { computed: {
sidebar() { sidebar() {
return this.$store.state.app.sidebar; return this.$store.state.app.sidebar;
......
...@@ -37,6 +37,7 @@ import { mapGetters, mapActions } from "vuex"; ...@@ -37,6 +37,7 @@ import { mapGetters, mapActions } from "vuex";
import store from "./store.js"; import store from "./store.js";
export default { export default {
name: "tags-views",
components: { ScrollPane }, components: { ScrollPane },
created() { created() {
store.install(); store.install();
......
import TagsViews from './TagsView.vue';
TagsViews.install = Vue => {
Vue.component(TagsViews.name, TagsViews);
};
export default TagsViews;
...@@ -5,6 +5,7 @@ import MdPagination from './components/Pagination/index'; ...@@ -5,6 +5,7 @@ import MdPagination from './components/Pagination/index';
import SearchItem from './components/SearchItem/index'; import SearchItem from './components/SearchItem/index';
import DatePicker from './components/DatePicker/index'; import DatePicker from './components/DatePicker/index';
import DateRangePicker from './components/DateRangePicker/index'; import DateRangePicker from './components/DateRangePicker/index';
import TagsViews from './components/TagsViews/index';
import { Option } from 'element-ui'; import { Option } from 'element-ui';
const install = Vue => { const install = Vue => {
...@@ -15,6 +16,7 @@ const install = Vue => { ...@@ -15,6 +16,7 @@ const install = Vue => {
// 基础组件 // 基础组件
Vue.component(SidebarNav.name, SidebarNav); Vue.component(SidebarNav.name, SidebarNav);
Vue.component(MdPagination.name, MdPagination); Vue.component(MdPagination.name, MdPagination);
Vue.component(TagsViews.name, TagsViews);
// Element-ui // Element-ui
Vue.component(Option.name, Option); Vue.component(Option.name, Option);
// input // input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment