UNPKG

uni-ui-plus

Version:

uni-ui-plus 一个现代化的 uni-app 组件库

24 lines (19 loc) 671 B
import type { ExtractPropTypes } from 'vue' import { baseProps, makeNumericProp, makeStringProp } from '../../common/props.ts' export type EmptyImageMap = Record<string, string> export const emptyProps = { ...baseProps, /** * @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>