UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.16 kB
{"version":3,"file":"predefine.mjs","sources":["../../../../../../../packages/components/color-picker-panel/src/props/predefine.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Color from '../utils/color'\n\nexport const predefineProps = buildProps({\n colors: {\n type: definePropType<string[]>(Array),\n required: true,\n },\n color: {\n type: definePropType<Color>(Object),\n required: true,\n },\n enableAlpha: {\n type: Boolean,\n required: true,\n },\n disabled: Boolean,\n} as const)\n\nexport type PredefineProps = ExtractPropTypes<typeof predefineProps>\nexport type PredefinePropsPublic = ExtractPublicPropTypes<typeof predefineProps>\n"],"names":[],"mappings":";;AAKO,MAAM,iBAAiB,UAAW,CAAA;AAAA,EACvC,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,eAAyB,KAAK,CAAA;AAAA,IACpC,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAAsB,MAAM,CAAA;AAAA,IAClC,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,QAAU,EAAA,OAAA;AACZ,CAAU;;;;"}