This commit is contained in:
houjunxiang
2025-10-09 18:19:55 +08:00
parent f2ffc65094
commit 386f1e7466
1553 changed files with 284685 additions and 32820 deletions

View File

@@ -0,0 +1,30 @@
/*
* @Author : LQ
* @Description :
* @version : 1.0
* @Date : 2021-08-20 16:44:21
* @LastAuthor : LQ
* @lastTime : 2021-08-20 17:45:47
* @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
*/
import config from '../../libs/config/config'
const {
color
} = config
export default {
// loading-icon加载中图标组件
loadingIcon: {
show: true,
color: color['u-tips-color'],
textColor: color['u-tips-color'],
vertical: false,
mode: 'spinner',
size: 24,
textSize: 15,
text: '',
timingFunction: 'ease-in-out',
duration: 1200,
inactiveColor: ''
}
}

View File

@@ -0,0 +1,61 @@
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
props: {
// 是否显示组件
show: {
type: Boolean,
default: () => defProps.loadingIcon.show
},
// 颜色
color: {
type: String,
default: () => defProps.loadingIcon.color
},
// 提示文字颜色
textColor: {
type: String,
default: () => defProps.loadingIcon.textColor
},
// 文字和图标是否垂直排列
vertical: {
type: Boolean,
default: () => defProps.loadingIcon.vertical
},
// 模式选择circle-圆形spinner-花朵形semicircle-半圆形
mode: {
type: String,
default: () => defProps.loadingIcon.mode
},
// 图标大小单位默认px
size: {
type: [String, Number],
default: () => defProps.loadingIcon.size
},
// 文字大小
textSize: {
type: [String, Number],
default: () => defProps.loadingIcon.textSize
},
// 文字内容
text: {
type: [String, Number],
default: () => defProps.loadingIcon.text
},
// 动画模式
timingFunction: {
type: String,
default: () => defProps.loadingIcon.timingFunction
},
// 动画执行周期时间
duration: {
type: [String, Number],
default: () => defProps.loadingIcon.duration
},
// mode=circle时的暗边颜色
inactiveColor: {
type: String,
default: () => defProps.loadingIcon.inactiveColor
}
}
})

File diff suppressed because it is too large Load Diff