From 34a4df9850fe31cbfcdb49dba3b2f3000f02368f Mon Sep 17 00:00:00 2001 From: hdx Date: Wed, 21 Jun 2023 16:14:03 +0800 Subject: [PATCH] feat: add slider switch --- App.vue | 35 ++++++++++-------- pages.json | 13 ++++++- pages/component/slider/slider.uvue | 43 ++++++++++++++++++++++ pages/component/switch/switch.uvue | 51 +++++++++++++++++++++++++++ pages/tabBar/component/component.uvue | 4 +-- 5 files changed, 128 insertions(+), 18 deletions(-) create mode 100644 pages/component/slider/slider.uvue create mode 100644 pages/component/switch/switch.uvue diff --git a/App.vue b/App.vue index c58a0855..fc8f1f3b 100644 --- a/App.vue +++ b/App.vue @@ -1,19 +1,24 @@ + /*每个页面公共css */ + @import './common/uni.css'; + \ No newline at end of file diff --git a/pages.json b/pages.json index 8674b8a4..c9e13511 100644 --- a/pages.json +++ b/pages.json @@ -36,7 +36,6 @@ "navigationBarTitleText": "button" } }, - { "path": "pages/component/radio/radio", "style": { @@ -61,6 +60,18 @@ "navigationBarTitleText": "textarea" } }, + { + "path": "pages/component/slider/slider", + "style": { + "navigationBarTitleText": "slider" + } + }, + { + "path": "pages/component/switch/switch", + "style": { + "navigationBarTitleText": "switch" + } + }, { "path": "pages/component/image/image", "style": { diff --git a/pages/component/slider/slider.uvue b/pages/component/slider/slider.uvue new file mode 100644 index 00000000..a988a9e5 --- /dev/null +++ b/pages/component/slider/slider.uvue @@ -0,0 +1,43 @@ + + + + + diff --git a/pages/component/switch/switch.uvue b/pages/component/switch/switch.uvue new file mode 100644 index 00000000..33d29b46 --- /dev/null +++ b/pages/component/switch/switch.uvue @@ -0,0 +1,51 @@ + + + + + \ No newline at end of file diff --git a/pages/tabBar/component/component.uvue b/pages/tabBar/component/component.uvue index a3609969..b6589d59 100644 --- a/pages/tabBar/component/component.uvue +++ b/pages/tabBar/component/component.uvue @@ -122,10 +122,10 @@ enable: true }, { name: 'slider', - enable: false + enable: true }, { name: 'switch', - enable: false + enable: true }, { name: 'textarea', enable: true -- GitLab