You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.9 KiB
1 line
3.9 KiB
{"ast":null,"code":"import '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../../hooks/index.mjs';\nimport { buildProps } from '../../../utils/vue/props/runtime.mjs';\nimport { useSizeProp } from '../../../hooks/use-size/index.mjs';\nimport { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';\nimport { isString } from '@vue/shared';\nimport { isNumber, isBoolean } from '../../../utils/types.mjs';\nconst radioPropsBase = buildProps({\n modelValue: {\n type: [String, Number, Boolean],\n default: void 0\n },\n size: useSizeProp,\n disabled: Boolean,\n label: {\n type: [String, Number, Boolean],\n default: void 0\n },\n value: {\n type: [String, Number, Boolean],\n default: void 0\n },\n name: {\n type: String,\n default: void 0\n }\n});\nconst radioProps = buildProps({\n ...radioPropsBase,\n border: Boolean\n});\nconst radioEmits = {\n [UPDATE_MODEL_EVENT]: val => isString(val) || isNumber(val) || isBoolean(val),\n [CHANGE_EVENT]: val => isString(val) || isNumber(val) || isBoolean(val)\n};\nexport { radioEmits, radioProps, radioPropsBase };","map":{"version":3,"names":["radioPropsBase","buildProps","modelValue","type","String","Number","Boolean","default","size","useSizeProp","disabled","label","value","name","radioProps","border","radioEmits","UPDATE_MODEL_EVENT","val","isString","isNumber","isBoolean","CHANGE_EVENT"],"sources":["../../../../../../packages/components/radio/src/radio.ts"],"sourcesContent":["import { buildProps, isBoolean, isNumber, isString } from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport type { ExtractPropTypes } from 'vue'\nimport type Radio from './radio.vue'\n\nexport const radioPropsBase = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: [String, Number, Boolean],\n default: undefined,\n },\n /**\n * @description size of the Radio\n */\n size: useSizeProp,\n /**\n * @description whether Radio is disabled\n */\n disabled: Boolean,\n /**\n * @description the label of Radio\n */\n label: {\n type: [String, Number, Boolean],\n default: undefined,\n },\n /**\n * @description the value of Radio\n */\n value: {\n type: [String, Number, Boolean],\n default: undefined,\n },\n /**\n * @description native `name` attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n})\n\nexport const radioProps = buildProps({\n ...radioPropsBase,\n /**\n * @description whether to add a border around Radio\n */\n border: Boolean,\n} as const)\n\nexport const radioEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | number | boolean | undefined) =>\n isString(val) || isNumber(val) || isBoolean(val),\n [CHANGE_EVENT]: (val: string | number | boolean | undefined) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>\nexport type RadioEmits = typeof radioEmits\nexport type RadioInstance = InstanceType<typeof Radio>\n"],"mappings":";;;;;;;;AAGY,MAACA,cAAc,GAAGC,UAAU,CAAC;EACvCC,UAAU,EAAE;IACVC,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,EAAEC,OAAO,CAAC;IAC/BC,OAAO,EAAE,KAAK;EAClB,CAAG;EACDC,IAAI,EAAEC,WAAW;EACjBC,QAAQ,EAAEJ,OAAO;EACjBK,KAAK,EAAE;IACLR,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,EAAEC,OAAO,CAAC;IAC/BC,OAAO,EAAE,KAAK;EAClB,CAAG;EACDK,KAAK,EAAE;IACLT,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,EAAEC,OAAO,CAAC;IAC/BC,OAAO,EAAE,KAAK;EAClB,CAAG;EACDM,IAAI,EAAE;IACJV,IAAI,EAAEC,MAAM;IACZG,OAAO,EAAE,KAAK;EAClB;AACA,CAAC;AACW,MAACO,UAAU,GAAGb,UAAU,CAAC;EACnC,GAAGD,cAAc;EACjBe,MAAM,EAAET;AACV,CAAC;AACW,MAACU,UAAU,GAAG;EACxB,CAACC,kBAAkB,GAAIC,GAAG,IAAKC,QAAQ,CAACD,GAAG,CAAC,IAAIE,QAAQ,CAACF,GAAG,CAAC,IAAIG,SAAS,CAACH,GAAG,CAAC;EAC/E,CAACI,YAAY,GAAIJ,GAAG,IAAKC,QAAQ,CAACD,GAAG,CAAC,IAAIE,QAAQ,CAACF,GAAG,CAAC,IAAIG,SAAS,CAACH,GAAG;AAC1E","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |