wui-components-v2 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,8 +14,8 @@ const props = defineProps<Props>()
14
14
  interface Props {
15
15
  tabbarItems: TabbarItem[]
16
16
  showRagister?: boolean
17
- gurl?: string// 获取验证码接口
18
- url?: string// 手机号登录接口
17
+ gurl?: string // 获取验证码接口
18
+ url?: string // 手机号登录接口
19
19
  }
20
20
  const router = useRouter()
21
21
 
@@ -34,16 +34,19 @@ function changeLoginMode(mode: string) {
34
34
  </script>
35
35
 
36
36
  <template>
37
- <view class="bg-white pa-3 dark:bg-[var(--wot-dark-background2)]">
37
+ <view class="bg-white dark:bg-[var(--wot-dark-background2)]">
38
38
  <!-- //手机登录 -->
39
- <phoneLoginForm v-if="loginMode === 'phone'" :tabbar-items="props.tabbarItems" :url="props.url" :gurl="props.gurl" />
39
+ <phoneLoginForm
40
+ v-if="loginMode === 'phone'"
41
+ :tabbar-items="props.tabbarItems"
42
+ :url="props.url"
43
+ :gurl="props.gurl"
44
+ />
40
45
  <!-- //账号登录 -->
41
46
  <loginForm v-if="loginMode === 'account'" :tabbar-items="props.tabbarItems" />
42
47
 
43
48
  <view v-if="props.gurl" class="pa-3 pt-0">
44
- <wd-divider>
45
- 或
46
- </wd-divider>
49
+ <wd-divider>或</wd-divider>
47
50
  <view v-if="props.gurl" class="p-4 pt-0">
48
51
  <wd-button v-show="loginMode === 'account'" block :round="false" type="info" @click="changeLoginMode('phone')">
49
52
  手机短信登录
@@ -55,9 +58,7 @@ function changeLoginMode(mode: string) {
55
58
  <view v-if="showRagister" class="p-4 pt-0">
56
59
  <view class="flex items-center justify-center text-size-24rpx">
57
60
  <text>还没有账户?</text>
58
- <wd-button block :round="false" type="text" size="small" @click="handleRe">
59
- 立即注册
60
- </wd-button>
61
+ <wd-button block :round="false" type="text" size="small" @click="handleRe">立即注册</wd-button>
61
62
  </view>
62
63
  </view>
63
64
  </view>
@@ -42,11 +42,11 @@ const { currentThemeColor } = useManualTheme()
42
42
  </view>
43
43
  </view> -->
44
44
  <view class="flex items-center justify-center">
45
- <image class="h-250px w-250px" src="./footerImg.png" />
45
+ <image :class="showLoginImg ? 'h-200px w-200px' : 'h-250px w-250px'" src="./footerImg.png" />
46
46
  </view>
47
47
  <view class="flex-1 border-rd-t-2 p-y-2 bg-white dark:bg-[var(--wot-dark-background2)]">
48
48
  <view class="flex items-center justify-center" v-if="showLoginImg">
49
- <image class="h-120px w-120px" :src="customLoginImg" />
49
+ <image class="h-100px w-100px" :src="customLoginImg" />
50
50
  </view>
51
51
  <loginFormBox
52
52
  :tabbar-items="props.tabbarItems"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",