init
This commit is contained in:
21
uni_modules/nutui-uni/components/empty/empty.ts
Normal file
21
uni_modules/nutui-uni/components/empty/empty.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { ExtractPropTypes } from 'vue'
|
||||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils'
|
||||
|
||||
export const emptyProps = {
|
||||
...commonProps,
|
||||
/**
|
||||
* @description 图片类型,可选值为 `empty`、`error`、`network`,支持传入图片 `URL`
|
||||
*/
|
||||
image: makeStringProp<'empty' | 'error' | 'network' | (string & {})>('empty'),
|
||||
|
||||
/**
|
||||
* @description 图片大小,单位为 `px`
|
||||
*/
|
||||
imageSize: makeNumericProp(''),
|
||||
|
||||
/**
|
||||
* @description 图片下方的描述文字
|
||||
*/
|
||||
description: makeStringProp(''),
|
||||
}
|
||||
export type EmptyProps = ExtractPropTypes<typeof emptyProps>
|
||||
Reference in New Issue
Block a user