From b8bc87b0867c540aa91882e9b15932a18ccd1a6e Mon Sep 17 00:00:00 2001 From: yurj26 <1816387074@qq.com> Date: Thu, 8 Jun 2023 19:33:32 +0800 Subject: [PATCH] feat: update style --- common/uni.css | 15 +++++++++++---- main.uts | 6 ++---- pages/component/button/button.uvue | 3 +-- pages/component/checkbox/checkbox.uvue | 11 ++++++----- pages/component/radio/radio.uvue | 3 ++- pages/component/view/view.uvue | 15 +++++++-------- 6 files changed, 29 insertions(+), 24 deletions(-) diff --git a/common/uni.css b/common/uni.css index 5cec1a3d..666124f5 100644 --- a/common/uni.css +++ b/common/uni.css @@ -15,6 +15,7 @@ margin-top: 10rpx; font-size: 24rpx; color: #888; + font-weight: 500; } .uni-common-mb { @@ -35,6 +36,7 @@ .uni-hello-text { color: #7A7E83; + line-height: 22px; } .uni-list { @@ -42,6 +44,7 @@ position: relative; display: flex; flex-direction: column; + padding-left: 30rpx; } .uni-list-cell { @@ -52,12 +55,16 @@ align-items: center; } +.uni-list-cell-line { + border-bottom: 1px solid #c8c7cc; +} + .uni-list-cell-hover { background-color: #eee; } .uni-list-cell-pd { - padding: 22rpx 30rpx; + padding: 22rpx 30rpx 22rpx 0; } .uni-list-cell-left { @@ -68,14 +75,14 @@ .uni-list-cell-db, .uni-list-cell-right { flex: 1; -} - +} + .uni-label { width: 210rpx; /* word-wrap: break-word; word-break: break-all; text-indent:20rpx; */ -} +} .uni-input { height: 50rpx; diff --git a/main.uts b/main.uts index 3377c4f1..f0074dad 100644 --- a/main.uts +++ b/main.uts @@ -1,11 +1,9 @@ import App from './App' -import PageHead from './components/page-head/page-head' -import ULink from './components/u-link/u-link' + import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) - app.component('page-head', PageHead) - app.component('u-link', ULink) + return { app } diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue index 755103db..32228213 100644 --- a/pages/component/button/button.uvue +++ b/pages/component/button/button.uvue @@ -65,8 +65,7 @@ } .button-sp-area { - /* margin: 0 auto; */ - padding: 0 20%; + margin: 0 auto; width: 60%; } diff --git a/pages/component/checkbox/checkbox.uvue b/pages/component/checkbox/checkbox.uvue index 5d8a9796..31f25c83 100644 --- a/pages/component/checkbox/checkbox.uvue +++ b/pages/component/checkbox/checkbox.uvue @@ -40,7 +40,8 @@ - + {{item.name}} @@ -93,13 +94,13 @@ } }, methods: { - checkboxChange: function (value : string[]) { + checkboxChange: function (value : string[]) { // TODO 后续更改参数 var items = this.items, - values = value; + values = value; for (var i = 0, lenI = items.length; i < lenI; ++i) { - const item = items[i] - if (values.indexOf(item.value) >= 0) { + const item = items[i] + if (values.indexOf(item.value) >= 0) { item.checked = true } else { item.checked = false diff --git a/pages/component/radio/radio.uvue b/pages/component/radio/radio.uvue index 9ad8868b..d9e63896 100644 --- a/pages/component/radio/radio.uvue +++ b/pages/component/radio/radio.uvue @@ -33,7 +33,8 @@ - + {{item.name}} diff --git a/pages/component/view/view.uvue b/pages/component/view/view.uvue index 7aa27f70..ffa1158f 100644 --- a/pages/component/view/view.uvue +++ b/pages/component/view/view.uvue @@ -25,7 +25,7 @@ - column + flex-direction: column 纵向布局 @@ -78,14 +78,14 @@ 固定宽度 - 一行显示不全,wrap折行 - 一行显示不全,wrap折行 - 一行显示不全,wrap折行 + 一行显示不全,wrap折行 + 一行显示不全,wrap折行 + 一行显示不全,wrap折行 - 垂直居顶 + 垂直居顶 @@ -93,7 +93,7 @@ - 垂直居底 + 垂直居底 @@ -115,7 +115,7 @@ - 文字居左,留出左间距 + 文字居左,留出左间距 @@ -167,7 +167,6 @@ } .text { - line-height: 70rpx; color: #777; font-size: 26rpx; } -- GitLab