+
-
@@ -26,140 +26,10 @@ import { ObjectUtils } from 'primevue/utils';
export default {
name: 'Timeline',
extends: BaseComponent,
- props: {
- value: null,
- align: {
- mode: String,
- default: 'left'
- },
- layout: {
- mode: String,
- default: 'vertical'
- },
- dataKey: null
- },
methods: {
getKey(item, index) {
return this.dataKey ? ObjectUtils.resolveFieldData(item, this.dataKey) : index;
}
- },
- computed: {
- containerClass() {
- return ['p-timeline p-component', 'p-timeline-' + this.align, 'p-timeline-' + this.layout];
- }
}
};
-
-