1
This commit is contained in:
26
uview-plus/components/u-empty/empty.js
Normal file
26
uview-plus/components/u-empty/empty.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* @Author : LQ
|
||||
* @Description :
|
||||
* @version : 1.0
|
||||
* @Date : 2021-08-20 16:44:21
|
||||
* @LastAuthor : LQ
|
||||
* @lastTime : 2021-08-20 17:03:27
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
|
||||
*/
|
||||
export default {
|
||||
// empty组件
|
||||
empty: {
|
||||
icon: '',
|
||||
text: '',
|
||||
textColor: '#c0c4cc',
|
||||
textSize: 14,
|
||||
iconColor: '#c0c4cc',
|
||||
iconSize: 90,
|
||||
mode: 'data',
|
||||
width: 160,
|
||||
height: 160,
|
||||
show: true,
|
||||
marginTop: 0
|
||||
}
|
||||
|
||||
}
|
||||
61
uview-plus/components/u-empty/props.js
Normal file
61
uview-plus/components/u-empty/props.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import { defineMixin } from '../../libs/vue'
|
||||
import defProps from '../../libs/config/props.js'
|
||||
export const props = defineMixin({
|
||||
props: {
|
||||
// 内置图标名称,或图片路径,建议绝对路径
|
||||
icon: {
|
||||
type: String,
|
||||
default: () => defProps.empty.icon
|
||||
},
|
||||
// 提示文字
|
||||
text: {
|
||||
type: String,
|
||||
default: () => defProps.empty.text
|
||||
},
|
||||
// 文字颜色
|
||||
textColor: {
|
||||
type: String,
|
||||
default: () => defProps.empty.textColor
|
||||
},
|
||||
// 文字大小
|
||||
textSize: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.empty.textSize
|
||||
},
|
||||
// 图标的颜色
|
||||
iconColor: {
|
||||
type: String,
|
||||
default: () => defProps.empty.iconColor
|
||||
},
|
||||
// 图标的大小
|
||||
iconSize: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.empty.iconSize
|
||||
},
|
||||
// 选择预置的图标类型
|
||||
mode: {
|
||||
type: String,
|
||||
default: () => defProps.empty.mode
|
||||
},
|
||||
// 图标宽度,单位px
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.empty.width
|
||||
},
|
||||
// 图标高度,单位px
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.empty.height
|
||||
},
|
||||
// 是否显示组件
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: () => defProps.empty.show
|
||||
},
|
||||
// 组件距离上一个元素之间的距离,默认px单位
|
||||
marginTop: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.empty.marginTop
|
||||
}
|
||||
}
|
||||
})
|
||||
133
uview-plus/components/u-empty/u-empty.vue
Normal file
133
uview-plus/components/u-empty/u-empty.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user