UNPKG

wot-design-uni

Version:

一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。

46 lines (41 loc) 984 B
/* * @Author: weisheng * @Date: 2023-12-14 11:21:58 * @LastEditTime: 2024-03-18 13:57:14 * @LastEditors: weisheng * @Description: * @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-cell-group\types.ts * 记得注释 */ import { type ExtractPropTypes, type InjectionKey } from 'vue' import { baseProps, makeBooleanProp } from '../common/props' export type CelllGroupProvide = { props: { border?: boolean } } export const CELL_GROUP_KEY: InjectionKey<CelllGroupProvide> = Symbol('wd-cell-group') export const cellGroupProps = { ...baseProps, /** * 分组标题 */ title: String, /** * 分组右侧内容 */ value: String, /** * 分组启用插槽 */ useSlot: makeBooleanProp(false), /** * 是否展示边框线 */ border: makeBooleanProp(false), /** * 是否展示为圆角卡片风格 */ insert: makeBooleanProp(false) } export type CellGroupProps = ExtractPropTypes<typeof cellGroupProps>