@tmesoft/data-screen-set 1.1.1 → 1.1.3
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/README.md +9 -4
- package/dist/data-screen-set-lib.d.ts +85 -0
- package/dist/data-screen-set-lib.es.js +38376 -37587
- package/dist/data-screen-set-lib.umd.js +73 -61
- package/dist/public/3d/border.png +0 -0
- package/dist/public/3d/icon.png +0 -0
- package/dist/public/3d/image.png +0 -0
- package/dist/public/3d/main/bg.png +0 -0
- package/dist/public/3d/main/device-icon.png +0 -0
- package/dist/public/3d/main/laboratory-icon.png +0 -0
- package/dist/public/3d/main/stage1.png +0 -0
- package/dist/public/3d/main/stage2.png +0 -0
- package/dist/public/appointment-open/image.png +0 -0
- package/dist/public/bg.png +0 -0
- package/dist/public/btn-active.png +0 -0
- package/dist/public/btn-hover.png +0 -0
- package/dist/public/device-assets/image.png +0 -0
- package/dist/public/dialog-bg.png +0 -0
- package/dist/public/dialog-bg1.png +0 -0
- package/dist/public/edit-hover-bg.png +0 -0
- package/dist/public/edit.png +0 -0
- package/dist/public/electricity-rank/image.png +0 -0
- package/dist/public/electricity-trend/image-2.png +0 -0
- package/dist/public/electricity-trend/image-3.png +0 -0
- package/dist/public/electricity-trend/image.png +0 -0
- package/dist/public/lab-discuss/icon.png +0 -0
- package/dist/public/lab-discuss/image.png +0 -0
- package/dist/public/lab-grade/image.png +0 -0
- package/dist/public/lab-number/icon.png +0 -0
- package/dist/public/lab-number/image.png +0 -0
- package/dist/public/lab-report/icon.png +0 -0
- package/dist/public/lab-report/image.png +0 -0
- package/dist/public/normal-box.png +0 -0
- package/dist/public/null-icon.png +0 -0
- package/dist/public/research-result/image.png +0 -0
- package/dist/public/safe/border.png +0 -0
- package/dist/public/safe/image.png +0 -0
- package/dist/public/setting.png +0 -0
- package/dist/public/teach-team/chart-icon.png +0 -0
- package/dist/public/teach-team/image.png +0 -0
- package/dist/public/thumbnail-upload-bg.png +0 -0
- package/dist/public/upload.png +0 -0
- package/dist/public/video/video-play.png +0 -0
- package/package.json +2 -2
- package/dist/public/edit-hover.png +0 -0
- package/dist/public/image-set.png +0 -0
- package/dist/public/seting.png +0 -0
package/README.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# data-screen-set
|
|
2
|
+
支持数据卡:用电排名、用电趋势、实验交流、实验成绩、仪器状态、安全、仪器使用、实验人次、
|
|
3
|
+
实验报告、实验室运行、师资队伍、设备资产、预约开放、教研成果;其他数据卡需在页面使用插槽编写
|
|
4
|
+
|
|
2
5
|
## 如何使用
|
|
3
6
|
用于渲染数据大屏设置
|
|
4
7
|
1. pnpm i @tmesoft/data-screen-set
|
|
5
8
|
|
|
6
9
|
## demo
|
|
10
|
+
|
|
11
|
+
[//]: # (App.vue文件)
|
|
7
12
|
```vue
|
|
8
13
|
<!--ts-->
|
|
9
14
|
import DataScreenSet from '@tmesoft/data-screen-set'
|
|
@@ -134,10 +139,10 @@ const activeId = ref<number>()
|
|
|
134
139
|
|
|
135
140
|
## 方法
|
|
136
141
|
|
|
137
|
-
| Name | Description
|
|
138
|
-
|
|
139
|
-
| setRootWidthHeight | 设置大屏宽高
|
|
140
|
-
| setDataCardListJson |
|
|
142
|
+
| Name | Description | type |
|
|
143
|
+
|--------------|----------------------------------------------------------------------------------------------------------|-------------------------------|
|
|
144
|
+
| setRootWidthHeight | 设置大屏宽高 | object {width:number,height:number} |
|
|
145
|
+
| setDataCardListJson | 需要显示的数据卡json配置项(idEditBtn:是否显示右侧编辑按钮。id:数据卡唯一值。isShowRealData用于师资队伍,设备资产,科研成果代表是否显示真实图表数据,目前hps项目使用真实图表) | |
|
|
141
146
|
|
|
142
147
|
|
|
143
148
|
## 事件
|
|
@@ -37,6 +37,27 @@ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any
|
|
|
37
37
|
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
38
38
|
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
39
39
|
of<T>(...items: T[]): T[];
|
|
40
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
41
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
42
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
43
|
+
};
|
|
44
|
+
default: () => never[];
|
|
45
|
+
};
|
|
46
|
+
dataCardList: {
|
|
47
|
+
type: {
|
|
48
|
+
(arrayLength: number): any[];
|
|
49
|
+
(...items: any[]): any[];
|
|
50
|
+
new (arrayLength: number): any[];
|
|
51
|
+
new (...items: any[]): any[];
|
|
52
|
+
isArray(arg: any): arg is any[];
|
|
53
|
+
readonly prototype: any[];
|
|
54
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
55
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
56
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
57
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
58
|
+
of<T>(...items: T[]): T[];
|
|
59
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
60
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
40
61
|
readonly [Symbol.species]: ArrayConstructor;
|
|
41
62
|
};
|
|
42
63
|
default: () => never[];
|
|
@@ -54,6 +75,8 @@ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any
|
|
|
54
75
|
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
55
76
|
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
56
77
|
of<T>(...items: T[]): T[];
|
|
78
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
79
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
57
80
|
readonly [Symbol.species]: ArrayConstructor;
|
|
58
81
|
};
|
|
59
82
|
default: () => never[];
|
|
@@ -89,6 +112,8 @@ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any
|
|
|
89
112
|
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
90
113
|
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
91
114
|
of<T>(...items: T[]): T[];
|
|
115
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
116
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
92
117
|
readonly [Symbol.species]: ArrayConstructor;
|
|
93
118
|
};
|
|
94
119
|
default: () => never[];
|
|
@@ -105,6 +130,18 @@ title: {
|
|
|
105
130
|
type: StringConstructor;
|
|
106
131
|
default: string;
|
|
107
132
|
};
|
|
133
|
+
theme: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
changeDataCardConfig: {
|
|
138
|
+
type: FunctionConstructor;
|
|
139
|
+
default: () => void;
|
|
140
|
+
};
|
|
141
|
+
changeCustomCardConfig: {
|
|
142
|
+
type: FunctionConstructor;
|
|
143
|
+
default: () => void;
|
|
144
|
+
};
|
|
108
145
|
}>, {
|
|
109
146
|
setRootWidthHeight: (rootWidthHeighObject: any) => void;
|
|
110
147
|
setDataCardListJson: (_dataCardListJson: any) => void;
|
|
@@ -145,6 +182,27 @@ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any
|
|
|
145
182
|
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
146
183
|
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
147
184
|
of<T>(...items: T[]): T[];
|
|
185
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
186
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
187
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
188
|
+
};
|
|
189
|
+
default: () => never[];
|
|
190
|
+
};
|
|
191
|
+
dataCardList: {
|
|
192
|
+
type: {
|
|
193
|
+
(arrayLength: number): any[];
|
|
194
|
+
(...items: any[]): any[];
|
|
195
|
+
new (arrayLength: number): any[];
|
|
196
|
+
new (...items: any[]): any[];
|
|
197
|
+
isArray(arg: any): arg is any[];
|
|
198
|
+
readonly prototype: any[];
|
|
199
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
200
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
201
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
202
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
203
|
+
of<T>(...items: T[]): T[];
|
|
204
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
205
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
148
206
|
readonly [Symbol.species]: ArrayConstructor;
|
|
149
207
|
};
|
|
150
208
|
default: () => never[];
|
|
@@ -162,6 +220,8 @@ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any
|
|
|
162
220
|
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
163
221
|
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
164
222
|
of<T>(...items: T[]): T[];
|
|
223
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
224
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
165
225
|
readonly [Symbol.species]: ArrayConstructor;
|
|
166
226
|
};
|
|
167
227
|
default: () => never[];
|
|
@@ -197,6 +257,8 @@ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any
|
|
|
197
257
|
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
198
258
|
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
199
259
|
of<T>(...items: T[]): T[];
|
|
260
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
261
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
200
262
|
readonly [Symbol.species]: ArrayConstructor;
|
|
201
263
|
};
|
|
202
264
|
default: () => never[];
|
|
@@ -213,16 +275,31 @@ title: {
|
|
|
213
275
|
type: StringConstructor;
|
|
214
276
|
default: string;
|
|
215
277
|
};
|
|
278
|
+
theme: {
|
|
279
|
+
type: StringConstructor;
|
|
280
|
+
default: string;
|
|
281
|
+
};
|
|
282
|
+
changeDataCardConfig: {
|
|
283
|
+
type: FunctionConstructor;
|
|
284
|
+
default: () => void;
|
|
285
|
+
};
|
|
286
|
+
changeCustomCardConfig: {
|
|
287
|
+
type: FunctionConstructor;
|
|
288
|
+
default: () => void;
|
|
289
|
+
};
|
|
216
290
|
}>> & Readonly<{
|
|
217
291
|
onEditBtnClick?: ((...args: any[]) => any) | undefined;
|
|
218
292
|
onAddOrUpCoordinate?: ((...args: any[]) => any) | undefined;
|
|
219
293
|
onChangeActive?: ((...args: any[]) => any) | undefined;
|
|
220
294
|
}>, {
|
|
221
295
|
title: string;
|
|
296
|
+
changeDataCardConfig: Function;
|
|
297
|
+
changeCustomCardConfig: Function;
|
|
222
298
|
customCardCoordinateList: {
|
|
223
299
|
id: number;
|
|
224
300
|
detail: IbigScreenCoordinate;
|
|
225
301
|
}[];
|
|
302
|
+
dataCardList: any[];
|
|
226
303
|
customCardList: CustomListPage[];
|
|
227
304
|
dataCardCoordinateList: {
|
|
228
305
|
id: number;
|
|
@@ -230,6 +307,7 @@ detail: IbigScreenCoordinate;
|
|
|
230
307
|
}[];
|
|
231
308
|
activeId: number;
|
|
232
309
|
activeType: CardType;
|
|
310
|
+
theme: string;
|
|
233
311
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
234
312
|
|
|
235
313
|
declare function __VLS_template(): {
|
|
@@ -267,6 +345,13 @@ export declare enum EbigScreenCustomCard {
|
|
|
267
345
|
'文本' = 3
|
|
268
346
|
}
|
|
269
347
|
|
|
348
|
+
/**
|
|
349
|
+
* 获取本地静态图片地址(用于动态引入图片)
|
|
350
|
+
* @param url 图片地址
|
|
351
|
+
* @returns 可正常访问的图片地址
|
|
352
|
+
*/
|
|
353
|
+
export declare const getAssetPath: (url: string) => string;
|
|
354
|
+
|
|
270
355
|
export declare interface IbigScreenCoordinate {
|
|
271
356
|
left: number;
|
|
272
357
|
width: number;
|