feat:设备使用记录

This commit is contained in:
houjunxiang
2026-03-05 16:54:47 +08:00
parent 749ac7f507
commit 9c88c45d66
357 changed files with 21486 additions and 5845 deletions

View File

@@ -2,7 +2,7 @@
<view class="u-toast">
<u-overlay
:show="isShow"
:zIndex="tmpConfig.overlay ? 10070 : -1"
:zIndex="tmpConfig.overlay ? tmpConfig.zIndex : -1"
:custom-style="overlayStyle"
>
<view
@@ -17,13 +17,13 @@
inactiveColor="rgb(120, 120, 120)"
size="25"
></u-loading-icon>
<u-icon
<up-icon
v-else-if="tmpConfig.type !== 'defalut' && iconName"
:name="iconName"
size="17"
:color="tmpConfig.type"
:customStyle="iconStyle"
></u-icon>
></up-icon>
<u-gap
v-if="tmpConfig.type === 'loading' || tmpConfig.loading"
height="12"
@@ -42,13 +42,13 @@
<script>
import { mpMixin } from '../../libs/mixin/mpMixin';
import { mixin } from '../../libs/mixin/mixin';
import { os, sys, deepMerge, type2icon } from '../../libs/function/index';
import { os, getWindowInfo, deepMerge, type2icon } from '../../libs/function/index';
import color from '../../libs/config/color';
import { hexToRgb } from '../../libs/function/colorGradient';
/**
* toast 消息提示
* @description 此组件表现形式类似uni的uni.showToastAPI但也有不同的地方。
* @tutorial https://ijry.github.io/uview-plus/components/toast.html
* @tutorial https://uview-plus.jiangruyi.com/components/toast.html
* @property {String | Number} zIndex toast展示时的zIndex值 (默认 10090 )
* @property {Boolean} loading 是否加载中 (默认 false
* @property {String | Number} message 显示的文字内容
@@ -77,6 +77,7 @@
config: {
message: '', // 显示文本
type: '', // 主题类型primarysuccesserrorwarningblack
zIndex: 10090, // 层级
duration: 2000, // 显示的时间,毫秒
icon: true, // 显示的图标
position: 'center', // toast出现的位置
@@ -136,7 +137,7 @@
},
// 内容盒子的样式
contentStyle() {
const windowHeight = sys().windowHeight, style = {}
const windowHeight = getWindowInfo().windowHeight, style = {}
let value = 0
// 根据top和bottom对Y轴进行窗体高度的百分比偏移
if(this.tmpConfig.position === 'top') {
@@ -193,7 +194,6 @@
</script>
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-toast-color:#fff !default;
$u-toast-border-radius:4px !default;
@@ -203,7 +203,7 @@
$u-toast-loading-border-padding: 20px 20px !default;
$u-toast-content-text-color:#fff !default;
$u-toast-content-text-font-size:15px !default;
$u-toast-u-icon:10rpx !default;
$u-toast-up-icon:10rpx !default;
$u-toast-u-type-primary-color:$u-primary !default;
$u-toast-u-type-primary-background-color:#ecf5ff !default;
$u-toast-u-type-primary-border-color:rgb(215, 234, 254) !default;