wui-components-v2 1.1.8 → 1.1.9
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.
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!-- 自定义背景风格登录页面 -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { defineOptions, defineProps } from 'vue'
|
|
4
|
+
import LoginForm from '../login-form/login-form.vue'
|
|
5
|
+
import { useManualTheme } from '../../composables/useManualTheme'
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'Wuilogin1',
|
|
9
|
+
})
|
|
10
|
+
const props = defineProps<{
|
|
11
|
+
loginlog: any
|
|
12
|
+
loginBackgroundimg: string
|
|
13
|
+
}>()
|
|
14
|
+
const {
|
|
15
|
+
currentThemeColor,
|
|
16
|
+
} = useManualTheme()
|
|
17
|
+
console.log(currentThemeColor)
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<view class="h-[calc(100vh-44px)] flex flex-col .dark:bg-[--wot-dark-background9]">
|
|
22
|
+
<view class="h-390px w-full">
|
|
23
|
+
<image class="h-full w-full" :src="props.loginBackgroundimg" />
|
|
24
|
+
</view>
|
|
25
|
+
<view class="position-absolute top-312px box-border w-full flex justify-center border-rd-t-2 bg-white bg-opacity-20 p-3 backdrop-blur-md .dark:bg-[--wot-dark-background2]">
|
|
26
|
+
<image class="mr-1.5 h-66px w-66px border-rd-100" :src="props.loginBackgroundimg" />
|
|
27
|
+
<text class="mt-3 font-size-22px c-#171819 font-bold .dark:color-white">
|
|
28
|
+
你好,欢迎登录阀门检测
|
|
29
|
+
</text>
|
|
30
|
+
</view>
|
|
31
|
+
<view class="flex-1 border-rd-t-2 p-y-2 .dark:bg-[--wot-dark-background2] .light:bg-white">
|
|
32
|
+
<LoginForm />
|
|
33
|
+
</view>
|
|
34
|
+
</view>
|
|
35
|
+
</template>
|
package/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { App } from 'vue'
|
|
|
2
2
|
import WuiSystemSettings from './components/wui-system-settings/wui-system-settings.vue'
|
|
3
3
|
import WuiMenus from './components/wui-menus/wui-menus.vue'
|
|
4
4
|
import Wuilogin from './components/wui-login/wui-login.vue'
|
|
5
|
+
import Wuilogin1 from './components/wui-login1/wui-login.vue'
|
|
5
6
|
import WuiDefault from './components/wui-default/wui-default.vue'
|
|
6
7
|
import WuiTabbar from './components/wui-tabbar/wui-tabbar.vue'
|
|
7
8
|
import { useLocale } from './composables/useLocale'
|
|
@@ -36,6 +37,7 @@ const coms: Array<{ name: string }> = [
|
|
|
36
37
|
WuiScanBindingSensor,
|
|
37
38
|
WuiUser,
|
|
38
39
|
WuiAutoUpdateComponent,
|
|
40
|
+
Wuilogin1,
|
|
39
41
|
]
|
|
40
42
|
|
|
41
43
|
/**
|