Files
cmgd-mini-app/uni_modules/nutui-uni/components/col/col.ts
2026-01-05 12:47:14 +08:00

17 lines
435 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { ExtractPropTypes } from 'vue'
import { commonProps, makeNumericProp } from '../_utils'
export const colProps = {
...commonProps,
/**
* @description 列元素宽度(共分为 24 份例如设置一行3个那么 `span` 值为 8
*/
span: makeNumericProp(24),
/**
* @description 列元素偏移距离
*/
offset: makeNumericProp(0),
}
export type ColProps = ExtractPropTypes<typeof colProps>