更新:登录功能

This commit is contained in:
2025-11-04 12:37:04 +08:00
commit a21fb92916
897 changed files with 51500 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
@import '../common/abstracts/variable';
@import '../common/abstracts/mixin';
@include b(steps) {
font-size: 0;
@include when(vertical) {
display: block;
}
}

View File

@@ -0,0 +1,59 @@
/*
* @Author: weisheng
* @Date: 2024-01-09 11:46:46
* @LastEditTime: 2024-03-18 17:23:06
* @LastEditors: weisheng
* @Description:
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-steps\types.ts
* 记得注释
*/
import { type ExtractPropTypes, type InjectionKey } from 'vue'
import { baseProps, makeBooleanProp, makeNumberProp } from '../common/props'
export const stepsProps = {
...baseProps,
/**
* 当前激活的步骤进度,以数字表示。
* 类型: number
* 默认值: 0
*/
active: makeNumberProp(0),
/**
* 是否为垂直方向的步骤条。
* 类型: boolean
* 默认值: false
*/
vertical: makeBooleanProp(false),
/**
* 是否为点状步骤条样式。
* 类型: boolean
* 默认值: false
*/
dot: makeBooleanProp(false),
/**
* 步骤条之间的间距,默认为自动计算。
* 如果指定,则使用此值作为间距。
* 类型: string
* 默认值: 自动计算
*/
space: String,
/**
* 是否将步骤条水平居中显示,只对横向步骤条有效。
* 类型: boolean
* 默认值: false
*/
alignCenter: makeBooleanProp(false)
}
export type StepsProps = ExtractPropTypes<typeof stepsProps>
export type StepsProvide = {
props: Partial<StepsProps>
}
export const STEPS_KEY: InjectionKey<StepsProvide> = Symbol('wd-steps')

View File

@@ -0,0 +1,37 @@
<!--
* @Author: weisheng
* @Date: 2023-06-12 18:40:58
* @LastEditTime: 2024-03-15 13:42:55
* @LastEditors: weisheng
* @Description:
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-steps\wd-steps.vue
* 记得注释
-->
<template>
<view :class="`wd-steps ${customClass} ${vertical ? 'is-vertical' : ''}`" :style="customStyle">
<slot />
</view>
</template>
<script lang="ts">
export default {
name: 'wd-steps',
options: {
addGlobalClass: true,
virtualHost: true,
styleIsolation: 'shared'
}
}
</script>
<script lang="ts" setup>
import { useChildren } from '../composables/useChildren'
import { STEPS_KEY, stepsProps } from './types'
const props = defineProps(stepsProps)
const { linkChildren } = useChildren(STEPS_KEY)
linkChildren({ props })
</script>
<style lang="scss" scoped>
@import './index.scss';
</style>