@fewangsit/wangsvue-fats 1.0.0-alpha.68 → 1.0.0-alpha.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/timeline/Timeline.vue.d.ts +13 -1
- package/components/username/UserName.vue.d.ts +1 -1
- package/package.json +1 -1
- package/stats.html +1 -1
- package/wangsvue-fats.js +1567 -1559
- package/wangsvue-fats.system.js +39 -39
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
|
|
1
3
|
import { BadgeProps } from '../badge/Badge.vue.d';
|
|
2
4
|
import { JSONContent } from '../editor/Editor.vue.d';
|
|
3
5
|
import { ClassComponent } from '../ts-helpers';
|
|
@@ -76,6 +78,7 @@ export type TimelineItem = {
|
|
|
76
78
|
_id: string;
|
|
77
79
|
action: string;
|
|
78
80
|
createdAt: string;
|
|
81
|
+
username?: string;
|
|
79
82
|
user?: {
|
|
80
83
|
_id: string;
|
|
81
84
|
nickName: string;
|
|
@@ -102,6 +105,15 @@ export type TimelineProps = {
|
|
|
102
105
|
noFormatDate?: boolean;
|
|
103
106
|
};
|
|
104
107
|
|
|
108
|
+
export type TimelineSlots = {
|
|
109
|
+
/**
|
|
110
|
+
* Custom detail template.
|
|
111
|
+
*
|
|
112
|
+
* Use this slot if you want to configure your own detail value in each timeline
|
|
113
|
+
*/
|
|
114
|
+
detail(slotProps: { key: string; value?: TimelineItem['detail'] }): VNode[];
|
|
115
|
+
};
|
|
116
|
+
|
|
105
117
|
/**
|
|
106
118
|
* **WangsVue - Timeline**
|
|
107
119
|
*
|
|
@@ -114,7 +126,7 @@ export type TimelineProps = {
|
|
|
114
126
|
*/
|
|
115
127
|
declare class Timeline extends ClassComponent<
|
|
116
128
|
TimelineProps,
|
|
117
|
-
|
|
129
|
+
TimelineSlots,
|
|
118
130
|
unknown
|
|
119
131
|
> {}
|
|
120
132
|
|