From c724683bf224c844a3ca1b19298911d761d7eafc Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 21 Aug 2023 18:40:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20checkbox=E3=80=81process=E3=80=81radio?= =?UTF-8?q?=E3=80=81slider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/boolean-data/boolean-data.vue | 10 +- components/enum-data/enum-data.vue | 6 +- components/input-data/input-data.vue | 97 +++++++ pages/component/checkbox/checkbox.uvue | 349 ++++++++++++----------- pages/component/progress/progress.uvue | 192 +++++++++---- pages/component/radio/radio.uvue | 320 ++++++++++++--------- pages/component/slider/slider.uvue | 163 ++++++++--- 7 files changed, 726 insertions(+), 411 deletions(-) create mode 100644 components/input-data/input-data.vue diff --git a/components/boolean-data/boolean-data.vue b/components/boolean-data/boolean-data.vue index cfbf8f48..1344d3c0 100644 --- a/components/boolean-data/boolean-data.vue +++ b/components/boolean-data/boolean-data.vue @@ -29,10 +29,16 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/components/enum-data/enum-data.vue b/components/enum-data/enum-data.vue index 2740306d..54162bb6 100644 --- a/components/enum-data/enum-data.vue +++ b/components/enum-data/enum-data.vue @@ -25,10 +25,10 @@ }) this.current = selected?.value as number this.$emit('change', this.current) - /* uni.showToast({ + uni.showToast({ icon: 'none', title: '当前选中:' + selected?.name, - }) */ + }) } } } @@ -50,4 +50,4 @@ - + \ No newline at end of file diff --git a/components/input-data/input-data.vue b/components/input-data/input-data.vue new file mode 100644 index 00000000..1a8cb909 --- /dev/null +++ b/components/input-data/input-data.vue @@ -0,0 +1,97 @@ + + + + + + \ No newline at end of file diff --git a/pages/component/checkbox/checkbox.uvue b/pages/component/checkbox/checkbox.uvue index d9b24e6f..118460d9 100644 --- a/pages/component/checkbox/checkbox.uvue +++ b/pages/component/checkbox/checkbox.uvue @@ -1,166 +1,193 @@ + + - + + + + + 默认样式 + + + + 选中 + + {{ text }} + 禁用 + + {{ wrapText }} + + + + + 不同颜色和尺寸的checkbox + + + + 选中 + + 未选中 + + + + + + + 推荐展示样式 + + + + + + {{ item.name }} + + + + + + + + + + .main { + max-height: 500rpx; + padding: 10rpx 0; + border-bottom: 1px solid rgba(0, 0, 0, .06); + flex-direction: row; + justify-content: center; + } + + .main .list-item { + width: 100%; + height: 200rpx; + border: 1px solid #666; + } + + .uni-list-cell { + justify-content: flex-start; + } + \ No newline at end of file diff --git a/pages/component/progress/progress.uvue b/pages/component/progress/progress.uvue index 85c9802e..8f9c6294 100644 --- a/pages/component/progress/progress.uvue +++ b/pages/component/progress/progress.uvue @@ -1,68 +1,138 @@ - - + + \ No newline at end of file diff --git a/pages/component/radio/radio.uvue b/pages/component/radio/radio.uvue index 726c1a36..730f0569 100644 --- a/pages/component/radio/radio.uvue +++ b/pages/component/radio/radio.uvue @@ -1,148 +1,186 @@ + + - + + + 推荐展示样式 + + + + + + {{ item.name }} + + + + + + + + + .main { + max-height: 500rpx; + padding: 10rpx 0; + border-bottom: 1px solid rgba(0, 0, 0, .06); + flex-direction: row; + justify-content: center; + } + + .main .list-item { + width: 100%; + height: 200rpx; + border: 1px solid #666; + } + + .uni-list-cell { + justify-content: flex-start; + } + \ No newline at end of file diff --git a/pages/component/slider/slider.uvue b/pages/component/slider/slider.uvue index 3cf2e957..3c321015 100644 --- a/pages/component/slider/slider.uvue +++ b/pages/component/slider/slider.uvue @@ -1,48 +1,125 @@ - - - + + + .main { + max-height: 500rpx; + padding: 10rpx 0; + border-bottom: 1px solid rgba(0, 0, 0, .06); + flex-direction: row; + justify-content: center; + } + + .main .list-item { + width: 100%; + height: 200rpx; + border: 1px solid #666; + } + \ No newline at end of file -- GitLab