UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 2.07 kB
{"version":3,"file":"shared.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/shared.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type {\n GetDisabledHours,\n GetDisabledMinutes,\n GetDisabledSeconds,\n} from '../common/props'\n\nexport const disabledTimeListsProps = buildProps({\n /**\n * @description To specify the array of hours that cannot be selected\n */\n disabledHours: {\n type: definePropType<GetDisabledHours>(Function),\n },\n /**\n * @description To specify the array of minutes that cannot be selected\n */\n disabledMinutes: {\n type: definePropType<GetDisabledMinutes>(Function),\n },\n /**\n * @description To specify the array of seconds that cannot be selected\n */\n disabledSeconds: {\n type: definePropType<GetDisabledSeconds>(Function),\n },\n} as const)\n\nexport type DisabledTimeListsProps = ExtractPropTypes<\n typeof disabledTimeListsProps\n>\nexport type DisabledTimeListsPropsPublic = ExtractPublicPropTypes<\n typeof disabledTimeListsProps\n>\n\nexport const timePanelSharedProps = buildProps({\n visible: Boolean,\n actualVisible: {\n type: Boolean,\n default: undefined,\n },\n format: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type TimePanelSharedProps = ExtractPropTypes<typeof timePanelSharedProps>\nexport type TimePanelSharedPropsPublic = ExtractPublicPropTypes<\n typeof timePanelSharedProps\n>\n"],"names":[],"mappings":";;AASO,MAAM,yBAAyB,UAAW,CAAA;AAAA,EAI/C,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,eAAiC,QAAQ,CAAA;AAAA,GACjD;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAM,eAAmC,QAAQ,CAAA;AAAA,GACnD;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAM,eAAmC,QAAQ,CAAA;AAAA,GACnD;AACF,CAAU,EAAA;AASH,MAAM,uBAAuB,UAAW,CAAA;AAAA,EAC7C,OAAS,EAAA,OAAA;AAAA,EACT,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF,CAAU;;;;"}