From 6b2688a8405dab08fedf7a97c084af8928c9cf7a Mon Sep 17 00:00:00 2001 From: chenghx Date: Tue, 21 Aug 2018 17:50:13 +0800 Subject: [PATCH] feat: add setting components --- src/components/layout/GlobalLayout.vue | 20 ++++++++++- src/components/setting/Setting.vue | 50 ++++++++++++++++++++++++++ src/components/setting/SettingItem.vue | 27 ++++++++++++++ src/components/setting/StyleItem.vue | 38 ++++++++++++++++++++ src/components/setting/ThemeColor.vue | 28 +++++++++++++++ 5 files changed, 162 insertions(+), 1 deletion(-) create mode 100644 src/components/setting/Setting.vue create mode 100644 src/components/setting/SettingItem.vue create mode 100644 src/components/setting/StyleItem.vue create mode 100644 src/components/setting/ThemeColor.vue diff --git a/src/components/layout/GlobalLayout.vue b/src/components/layout/GlobalLayout.vue index 0591366..b5012b1 100644 --- a/src/components/layout/GlobalLayout.vue +++ b/src/components/layout/GlobalLayout.vue @@ -4,6 +4,12 @@ + +
+ +
+ +
@@ -24,6 +30,7 @@ import IMenu from '../menu/menu' import GlobalFooter from './GlobalFooter' import Drawer from '../tool/Drawer' import SiderMenu from '../menu/SiderMenu' +import Setting from '../setting/Setting' const ALayoutSider = ALayout.Sider const ALayoutHeader = ALayout.Header @@ -36,6 +43,7 @@ let menuData = [] export default { name: 'GlobalLayout', components: { + Setting, SiderMenu, Drawer, GlobalFooter, @@ -52,7 +60,7 @@ export default { minHeight: minHeight + 'px', collapsed: false, menuData: menuData, - showSetting: true + showSetting: false } }, computed: { @@ -81,4 +89,14 @@ export default { diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue new file mode 100644 index 0000000..b41eb48 --- /dev/null +++ b/src/components/setting/Setting.vue @@ -0,0 +1,50 @@ + + + + + diff --git a/src/components/setting/SettingItem.vue b/src/components/setting/SettingItem.vue new file mode 100644 index 0000000..1e340a7 --- /dev/null +++ b/src/components/setting/SettingItem.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/src/components/setting/StyleItem.vue b/src/components/setting/StyleItem.vue new file mode 100644 index 0000000..66ece5d --- /dev/null +++ b/src/components/setting/StyleItem.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/src/components/setting/ThemeColor.vue b/src/components/setting/ThemeColor.vue new file mode 100644 index 0000000..7e33ce1 --- /dev/null +++ b/src/components/setting/ThemeColor.vue @@ -0,0 +1,28 @@ + + + + +