@tmesoft/data-screen-show 1.1.7 → 1.2.1

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 CHANGED
@@ -8,10 +8,22 @@
8
8
 
9
9
 
10
10
  # data-screen-show
11
+ 1.1.0至1.2.0之间版本为功能扩展过程中的产出,不建议使用,1.2.0之后版本为正式发布版本
11
12
  ## 如何使用
12
13
  目前用于ilim、rlim、hps-102d数据大屏项目,用于大屏显示
13
14
  1. pnpm i @tmesoft/data-screen-show
14
15
 
16
+ ## 版本说明
17
+ 1.1.0以后的版本改动较大,新增加了theme主题,新增dataCardList入参替换原有dataCardIdListIds用于数据卡显示,如需升级请务必传入dataCardList,否则部分数据卡无法正常显示
18
+
19
+ ## 更新说明
20
+ ### V1.2.0
21
+ 1. 新增dataCardList入参替换原有dataCardIdListIds用于数据卡显示
22
+ 2. 增加theme主题风格适配(目前支持科技蓝、冰川青、香槟金配色)
23
+ 3. 视频自定义卡增加自动播放功能(有声音的视频可能会被浏览器禁止自动播放)
24
+ 4. 新增卡片-人员介绍自定义卡
25
+ 5. 新增卡片-通知公告数据卡
26
+
15
27
  ## demo
16
28
  ```vue
17
29
  <!--src/view/index.vue文件-->
@@ -23,6 +35,13 @@ import {CustomListPage} from "./components";
23
35
  const pageTitle= 'ilim数据大屏'
24
36
  // 副标题
25
37
  const subTitle = 'ILIM-100智慧实验室信息化管理系统'
38
+
39
+ // 传入主题
40
+ const theme = ref('blue')
41
+
42
+ // 数据卡显示数据来源
43
+ const dataCardInfoData = ref<any>({})
44
+
26
45
  // ------------------------------ 数据卡‘师资队伍、科研成果、设备资产’数据 ------------------------------
27
46
  // 设备资产数据
28
47
  const equipmentInfoData = ref<any>({
@@ -164,6 +183,8 @@ const data = {
164
183
  }
165
184
  // 所有的数据卡id集合
166
185
  const dataCardIdListIds = ref<number[]>([])
186
+ // 所有的数据卡id集合
187
+ const dataCardList = ref<any[]>([])
167
188
  // 自定义卡数据变量
168
189
  const customCardList = ref<CustomListPage[]>([])
169
190
  // 大屏显示组件el
@@ -183,7 +204,9 @@ dataScreenShowRef.value?.setDataCardJson( {
183
204
  })
184
205
  // ------------------------------ 以下是对data数据进行处理、获取需要的数据(目前处理方式相同);设置位置信息 ------------------------------
185
206
  // 数据卡数据ids
186
- dataCardIdListIds.value = data?.dataCardIdList?.length ? data.dataCardIdList : []
207
+ dataCardIdListIds.value = data?.dataCardIdList?.length ? data.dataCardIdList : []
208
+ // 数据卡列表
209
+ dataCardList.value = data?.dataCardList || []
187
210
  // 位置信息
188
211
  const coordinate = data.coordinate ? JSON.parse(data.coordinate) : {}
189
212
  // 主容器宽高
@@ -263,7 +286,16 @@ const EscreenDataCardAllId = ref<any>({
263
286
  })
264
287
 
265
288
  <!--template-->
266
- <DataScreenShow ref="dataScreenShowRef" :page-title="pageTitle" :sub-title="subTitle" :dataCardIdListIds="dataCardIdListIds" :customCardList="customCardList" >
289
+ <DataScreenShow
290
+ ref="dataScreenShowRef"
291
+ :customCardList="customCardList"
292
+ :dataCardIdListIds="dataCardIdListIds"
293
+ :dataCardInfoData="dataCardInfoData"
294
+ :dataCardList="dataCardList"
295
+ :page-title="pageTitle"
296
+ :sub-title="subTitle"
297
+ :theme="theme"
298
+ >
267
299
  <!-- 预约开放 -->
268
300
  <div
269
301
  ref="reservationInfoRef"
@@ -335,9 +367,12 @@ const EscreenDataCardAllId = ref<any>({
335
367
  | setJSON | 设置所有可能显示的数据卡 | | {'师资队伍': 1,} |
336
368
  ## 传值
337
369
 
338
- | Name | Description | type | default |
339
- |-----------|-----------------|--------|---------|
340
- | pageTitle | 标题 | string | ‘’ |
341
- | subTitle | 副标题标题 | string | ‘’ |
342
- | dataCardIdListIds | 需要显示在页面的数据卡id集合 | string | ‘’ |
343
- | customCardList | 自定义卡数据列表 | CustomListPage[] | [] |
370
+ | Name | Description | type | default |
371
+ |-------------------|-----------------|------------------|---------|
372
+ | pageTitle | 标题 | string | ‘’ |
373
+ | subTitle | 副标题标题 | string | ‘’ |
374
+ | theme | 主题 | string | ‘’ |
375
+ | dataCardIdListIds | 需要显示在页面的数据卡id集合 | string | ‘’ |
376
+ | customCardList | 自定义卡数据列表 | CustomListPage[] | [] |
377
+ | dataCardList | 数据卡列表 | any[] | [] |
378
+ | dataCardInfoData | 数据卡显示数据来源 | any | {} |