props.d.ts.map 1.4 KB

1
  1. {"version":3,"sources":["../src/switch/props.ts"],"names":[],"mappings":"AAEA;;KAEK;AAEL,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,QAAA,MAAM,KAAK,EAAE,aAyCZ,CAAC;AAEF,eAAe,KAAK,CAAC","file":"props.d.ts","sourcesContent":["/* eslint-disable */\n\n/**\n * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC\n * */\n\nimport { TdSwitchProps } from './type';\nconst props: TdSwitchProps = {\n /** 自定义颜色,[打开时的颜色,关闭时的颜色]。组件默认颜色为 ['#0052d9', 'rgba(0, 0, 0, .26']。示例:[blue, gray] */\n colors: {\n type: Array,\n },\n /** 开关内容,[打开时的值,关闭时的值]。默认为 [true, false]。示例:[1, 0] */\n customValue: {\n type: Array,\n },\n /** 是否禁用组件 */\n disabled: {\n type: Boolean,\n value: false,\n },\n /** 开关的标签 */\n label: {\n type: String,\n value: '',\n },\n /** 是否处于加载中状态 */\n loading: {\n type: Boolean,\n value: false,\n },\n /** 开关尺寸 */\n size: {\n type: String,\n value: 'medium',\n },\n /** 开关值 */\n value: {\n type: String,\n optionalTypes: [Number, Boolean],\n value: undefined,\n },\n /** 开关值,非受控属性 */\n defaultValue: {\n type: String,\n optionalTypes: [Number, Boolean],\n value: undefined,\n },\n};\n\nexport default props;\n"]}