wot-design-uni
Version:
一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。
43 lines (40 loc) • 1.03 kB
text/typescript
/*
* @Author: weisheng
* @Date: 2024-03-15 20:40:34
* @LastEditTime: 2024-03-18 16:01:19
* @LastEditors: weisheng
* @Description:
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-radio\types.ts
* 记得注释
*/
import type { PropType } from 'vue'
import { baseProps, makeRequiredProp } from '../common/props'
export type RadioShape = 'dot' | 'button' | 'check'
export const radioProps = {
...baseProps,
/** 选中时的值 */
value: makeRequiredProp([String, Number, Boolean]),
/** 单选框的形状 */
shape: String as PropType<RadioShape>,
/** 选中的颜色 */
checkedColor: String,
/** 禁用 */
disabled: {
type: [Boolean, null] as PropType<boolean | null>,
default: null
},
/** 单元格 */
cell: {
type: [Boolean, null] as PropType<boolean | null>,
default: null
},
/** 大小 */
size: String,
/** 内联 */
inline: {
type: [Boolean, null] as PropType<boolean | null>,
default: null
},
/** 最大宽度 */
maxWidth: String
}