@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
1 lines • 1.72 kB
Source Map (JSON)
{"version":3,"file":"tr.mjs","sources":["../../../../../../packages/components/table/src/tr.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n isObject,\n isString,\n} from '@vuesax-alpha/utils'\nimport { useColorProp } from '@vuesax-alpha/hooks'\nimport type { TableModelValueType } from './table'\nimport type { EmitFn } from '@vuesax-alpha/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tableTrProps = buildProps({\n color: useColorProp,\n data: {\n type: definePropType<TableModelValueType>([String, Number, Object]),\n default: null,\n },\n isSelected: {\n type: Boolean,\n default: null,\n },\n notClickSelected: { type: Boolean },\n openExpandOnlyTd: { type: Boolean },\n} as const)\n\nexport type TableTrProps = ExtractPropTypes<typeof tableTrProps>\n\nexport const tableTrEmits = {\n click: (event: Event | MouseEvent) => event instanceof Event,\n selected: (value: TableModelValueType) =>\n isString(value) || isNumber(value) || isObject(value),\n}\n\nexport type TableTrEmits = typeof tableTrEmits\n\nexport type TableTrEmitFn = EmitFn<TableTrEmits>\n"],"names":[],"mappings":";;;;;;;AAYO,MAAM,eAAe,UAAW,CAAA;AAAA,EACrC,KAAO,EAAA,YAAA;AAAA,EACP,IAAM,EAAA;AAAA,IACJ,MAAM,cAAoC,CAAA,CAAC,MAAQ,EAAA,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IAClE,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,gBAAA,EAAkB,EAAE,IAAA,EAAM,OAAQ,EAAA;AAAA,EAClC,gBAAA,EAAkB,EAAE,IAAA,EAAM,OAAQ,EAAA;AACpC,CAAU,EAAA;AAIH,MAAM,YAAe,GAAA;AAAA,EAC1B,KAAA,EAAO,CAAC,KAAA,KAA8B,KAAiB,YAAA,KAAA;AAAA,EACvD,QAAA,EAAU,CAAC,KAAA,KACT,QAAS,CAAA,KAAK,KAAK,QAAS,CAAA,KAAK,CAAK,IAAA,QAAA,CAAS,KAAK,CAAA;AACxD;;;;"}