@tmesoft/data-screen-show 1.0.0 → 1.0.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
@@ -232,43 +232,88 @@ target.style.top = `${top}rem`
232
232
  // 获取师资队伍、科研成果、设备资产数据
233
233
  getAllApiData()
234
234
  })
235
+ const renderPart = (id: number) => {
236
+ const isContainId = (id: number) => {
237
+ if (dataCardIdListIds.value?.length === 0) return false
238
+ return dataCardIdListIds.value?.some(item => item === id)
239
+ }
240
+ return isContainId(id)
241
+ }
242
+ const EscreenDataCardAllId = ref<any>({
243
+ 师资队伍: 1,
244
+ 科研成果: 2,
245
+ 设备资产: 3,
246
+ 预约开放: 4,
247
+ 空间可视化: 5,
248
+ 安全数据: 6,
249
+ 实验人次: 7,
250
+ 实验报告: 8,
251
+ 实验成绩: 9,
252
+ 实验交流: 10
253
+ })
235
254
 
236
255
  <!--template-->
237
- <DataScreenShow ref="dataScreenShowRef" :page-title="pageTitle" :sub-title="subTitle" :dataCardIdListIds="dataCardIdListIds" :customCardList="customCardList" >
238
- <template #main-floor>
239
- <div>3d楼层</div>
240
- </template>
241
- <!-- 预约开放 -->
242
- <template #reservation-info>
243
-
244
- <div>预约开放</div>
245
- </template>
246
- <!-- 安全模块-->
247
- <template #safe-module>
248
- <div>安全模块</div>
249
- </template>
250
-
251
-
252
- <!-- 实验人次 -->
253
- <template #person-time-info>
254
- <div>实验人次</div>
255
- </template>
256
-
257
- <!-- 实验报告 -->
258
- <template #report-info>
259
- <div>实验报告</div>
260
- </template>
261
-
262
- <!-- 实验成绩 -->
263
- <template #experimental-results-info>
264
- <div>实验成绩</div>
265
- </template>
256
+ <DataScreenShow ref="dataScreenShowRef" :page-title="pageTitle" :sub-title="subTitle" :dataCardIdListIds="dataCardIdListIds" :customCardList="customCardList" >
257
+ <!-- 预约开放 -->
258
+ <div
259
+ ref="reservationInfoRef"
260
+ class="info-item"
261
+ :class="`data-target${EscreenDataCardAllId?.预约开放}`"
262
+ v-if="renderPart(EscreenDataCardAllId?.预约开放)"
263
+ >
264
+ <!-- 3d 2d楼层模块 -->
265
+ <div
266
+ class="main-floor-container info-item"
267
+ v-if="renderPart(EscreenDataCardAllId?.空间可视化)"
268
+ :class="`data-target${EscreenDataCardAllId?.空间可视化}`"
269
+ >
270
+ 3d 2d楼层模块
271
+ </div>
272
+ <!-- 安全模块-->
273
+ <div class="info-item"
274
+ :class="`data-target${EscreenDataCardAllId?.安全数据}`"
275
+ v-if="renderPart(EscreenDataCardAllId?.安全数据)"
276
+ ref="safeRef" >
277
+ 安全模块
278
+ </div>
279
+ <!-- 实验人次 -->
280
+ <div
281
+ class="info-item"
282
+ :class="`data-target${EscreenDataCardAllId?.实验人次}`"
283
+ v-if="renderPart(EscreenDataCardAllId?.实验人次)"
284
+ >
285
+ 实验人次
266
286
 
267
- <!-- 实验交流 -->
268
- <template #experimental-communication>
269
- <div>实验交流</div>
270
- </template>
271
- </DataScreenShow>
287
+ </div>
288
+ <!-- 实验报告 -->
289
+ <div
290
+ ref="reportInfoRef"
291
+ :class="`data-target${EscreenDataCardAllId?.实验报告}`"
292
+ class="info-item"
293
+ v-if="renderPart(EscreenDataCardAllId?.实验报告)"
294
+ >
295
+ 实验报告
296
+ </div>
297
+ <!-- 实验成绩 -->
298
+ <div
299
+ ref="experimentalResultsInfoRef"
300
+ class="info-item"
301
+ :class="`data-target${EscreenDataCardAllId?.实验成绩}`"
302
+ v-if="renderPart(EscreenDataCardAllId?.实验成绩)"
303
+ >
304
+ 实验成绩
305
+ </div>
306
+ <!-- 实验交流 -->
307
+ <div
308
+ ref="experimentalCommunicationRef"
309
+ class="info-item"
310
+ :class="`data-target${EscreenDataCardAllId?.实验交流}`"
311
+ v-if="renderPart(EscreenDataCardAllId?.实验交流)"
312
+ >
313
+ 实验交流
314
+ </div>
315
+ </div>
316
+ </DataScreenShow>
272
317
 
273
318
 
274
319
  ```
@@ -49,13 +49,7 @@ customCardList: CustomListPage[];
49
49
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
50
50
 
51
51
  declare function __VLS_template(): {
52
- "reservation-info"?(_: {}): any;
53
- "main-floor"?(_: {}): any;
54
- "safe-module"?(_: {}): any;
55
- "person-time-info"?(_: {}): any;
56
- "report-info"?(_: {}): any;
57
- "experimental-results-info"?(_: {}): any;
58
- "experimental-communication"?(_: {}): any;
52
+ default?(_: {}): any;
59
53
  };
60
54
 
61
55
  declare type __VLS_WithTemplateSlots<T, S> = T & {