elegant-wui-uni
Version:
一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。
26 lines (23 loc) • 564 B
text/typescript
import {
baseProps,
makeRequiredProp,
} from '../common/props'
import type { ExtractPropTypes } from 'vue'
export const waterFallModes = ['normal', 'calc'] as const
export const waterFallProps = {
...baseProps,
/**
* 列表数据
*/
data: makeRequiredProp(Array<Record<string, any>>),
/**
* @description 瀑布流模式
*/
mode: {
type: String,
values: waterFallModes,
default: 'normal',
},
}
export type WaterFallProps = ExtractPropTypes<typeof waterFallProps>
export type WaterFallMode = (typeof waterFallModes)[number]