@ibiz-template-plugin/ibiz-file-previewer 0.0.14 → 0.0.15
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.
|
@@ -15,6 +15,10 @@ interface IFilePreviewerDataWithURL {
|
|
|
15
15
|
* 预览文件分类
|
|
16
16
|
*/
|
|
17
17
|
cat?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 预览内容
|
|
20
|
+
*/
|
|
21
|
+
content?: string;
|
|
18
22
|
/**
|
|
19
23
|
* 预览文件URL
|
|
20
24
|
*/
|
|
@@ -40,6 +44,35 @@ interface IFilePreviewerDataWithID {
|
|
|
40
44
|
* 预览文件URL
|
|
41
45
|
*/
|
|
42
46
|
url?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 预览内容
|
|
49
|
+
*/
|
|
50
|
+
content?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 文件预览组件配置项 - 通过 直接内容 预览(仅识别content和name参数)
|
|
54
|
+
*/
|
|
55
|
+
interface IFilePreviewerDataWithContent {
|
|
56
|
+
/**
|
|
57
|
+
* 预览内容
|
|
58
|
+
*/
|
|
59
|
+
content: string;
|
|
60
|
+
/**
|
|
61
|
+
* 预览文件ID
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
/**
|
|
65
|
+
* 预览文件名称
|
|
66
|
+
*/
|
|
67
|
+
name?: string;
|
|
68
|
+
/**
|
|
69
|
+
* 预览文件分类
|
|
70
|
+
*/
|
|
71
|
+
cat?: string;
|
|
72
|
+
/**
|
|
73
|
+
* 预览文件URL
|
|
74
|
+
*/
|
|
75
|
+
url?: string;
|
|
43
76
|
}
|
|
44
77
|
/**
|
|
45
78
|
* 定义通用属性接口
|
|
@@ -94,5 +127,5 @@ export interface IFilePreviewerOption {
|
|
|
94
127
|
/**
|
|
95
128
|
* 文件预览组件配置项
|
|
96
129
|
*/
|
|
97
|
-
export type IFilePreviewerData = IFilePreviewerDataWithURL | IFilePreviewerDataWithID;
|
|
130
|
+
export type IFilePreviewerData = IFilePreviewerDataWithURL | IFilePreviewerDataWithID | IFilePreviewerDataWithContent;
|
|
98
131
|
export {};
|