UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.46 kB
{"version":3,"file":"defaults.mjs","sources":["../../../../../../../packages/components/table/src/table-body/defaults.ts"],"sourcesContent":["import type { PropType } from 'vue'\nimport type { Store } from '../store'\nimport type {\n ColumnCls,\n ColumnStyle,\n DefaultRow,\n Table,\n} from '../table/defaults'\n\ninterface TableBodyProps<T> {\n store: Store<T>\n stripe?: boolean\n context: Table<T>\n rowClassName: ColumnCls<T>\n rowStyle: ColumnStyle<T>\n fixed: string\n highlight: boolean\n tooltipEffect: string\n}\n\nconst defaultProps = {\n store: {\n required: true,\n type: Object as PropType<TableBodyProps<DefaultRow>['store']>,\n },\n stripe: Boolean,\n tooltipEffect: String,\n context: {\n default: () => ({}),\n type: Object as PropType<TableBodyProps<DefaultRow>['context']>,\n },\n rowClassName: [String, Function] as PropType<\n TableBodyProps<DefaultRow>['rowClassName']\n >,\n rowStyle: [Object, Function] as PropType<\n TableBodyProps<DefaultRow>['rowStyle']\n >,\n fixed: {\n type: String,\n default: '',\n },\n highlight: Boolean,\n}\n\nexport { TableBodyProps }\nexport default defaultProps\n"],"names":[],"mappings":"MAoBM,eAAe;AAAA,EACnB,OAAO;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA;AAAA,EAER,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,SAAS;AAAA,IACP,SAAS;AAAO,IAChB,MAAM;AAAA;AAAA,EAER,cAAc,CAAC,QAAQ;AAAA,EAGvB,UAAU,CAAC,QAAQ;AAAA,EAGnB,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,WAAW;AAAA;;;;"}