@tmesoft/data-screen-show 0.0.1 → 0.0.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 +14 -135
- package/dist/data-screen-show-lib.d.ts +103 -0
- package/dist/{data-screen-show.es.js → data-screen-show-lib.es.js} +2 -2
- package/dist/{data-screen-show.umd.js → data-screen-show-lib.umd.js} +2 -2
- package/package.json +16 -8
- package/dist/components/data-screen-show/components/index.d.ts +0 -13
- package/dist/components/data-screen-show/components/public/block-wrap/index.vue.d.ts +0 -33
- package/dist/components/data-screen-show/components/public/null-tips/index.vue.d.ts +0 -2
- package/dist/components/data-screen-show/components/screen/base-header/index.vue.d.ts +0 -24
- package/dist/components/data-screen-show/components/screen/custom-moveable/image-moveable/index.vue.d.ts +0 -16
- package/dist/components/data-screen-show/components/screen/custom-moveable/text-moveable/index.vue.d.ts +0 -16
- package/dist/components/data-screen-show/components/screen/custom-moveable/video-moveable/index.vue.d.ts +0 -16
- package/dist/components/data-screen-show/components/screen/equipment-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/experimental-communication-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/experimental-results-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/person-time-info/components/flip-number/index.vue.d.ts +0 -14
- package/dist/components/data-screen-show/components/screen/person-time-info/components/semester-counts/index.vue.d.ts +0 -2
- package/dist/components/data-screen-show/components/screen/person-time-info/components/today-counts/index.vue.d.ts +0 -2
- package/dist/components/data-screen-show/components/screen/person-time-info/index.vue.d.ts +0 -2
- package/dist/components/data-screen-show/components/screen/report-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/reservation-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/safe-module/components/chart-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/safe-module/components/dispose-detail/index.vue.d.ts +0 -2
- package/dist/components/data-screen-show/components/screen/safe-module/components/warn-count/index.vue.d.ts +0 -2
- package/dist/components/data-screen-show/components/screen/safe-module/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/scientific-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/components/screen/teachers-info/index.vue.d.ts +0 -4
- package/dist/components/data-screen-show/index.d.ts +0 -1
- package/dist/components/data-screen-show/index.vue.d.ts +0 -66
- package/dist/components/data-screen-show/types.d.ts +0 -58
- package/dist/components/index.d.ts +0 -25
- package/dist/data-screen-show.d.ts +0 -1
- package/dist/main.d.ts +0 -3
- /package/dist/{assets → public}/front/din-bold-2.ttf +0 -0
- /package/dist/{assets → public}/screen/appointment-open/icon.png +0 -0
- /package/dist/{assets → public}/screen/device-assets/icon.png +0 -0
- /package/dist/{assets → public}/screen/image/icon.png +0 -0
- /package/dist/{assets → public}/screen/lab-discuss/icon.png +0 -0
- /package/dist/{assets → public}/screen/lab-grade/icon.png +0 -0
- /package/dist/{assets → public}/screen/lab-number/card-bottom.png +0 -0
- /package/dist/{assets → public}/screen/lab-number/card-top.png +0 -0
- /package/dist/{assets → public}/screen/lab-number/icon.png +0 -0
- /package/dist/{assets → public}/screen/lab-number/semester-label.png +0 -0
- /package/dist/{assets → public}/screen/lab-number/today-label.png +0 -0
- /package/dist/{assets → public}/screen/lab-report/icon.png +0 -0
- /package/dist/{assets → public}/screen/normal-box.png +0 -0
- /package/dist/{assets → public}/screen/null-icon.png +0 -0
- /package/dist/{assets → public}/screen/research-result/icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/bg-image.png +0 -0
- /package/dist/{assets → public}/screen/safe/electricity-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/monitor-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/person-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/poison-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/safe-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/safe-warn.png +0 -0
- /package/dist/{assets → public}/screen/safe/smoke-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/warn-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/water-icon.png +0 -0
- /package/dist/{assets → public}/screen/safe/window-icon.png +0 -0
- /package/dist/{assets → public}/screen/teach-team/chart-icon.png +0 -0
- /package/dist/{assets → public}/screen/teach-team/icon.png +0 -0
- /package/dist/{assets → public}/screen/text/icon.png +0 -0
- /package/dist/{assets → public}/screen/video/icon.png +0 -0
- /package/dist/{assets → public}/screen/video/video-play.png +0 -0
package/README.md
CHANGED
|
@@ -5,146 +5,25 @@
|
|
|
5
5
|
|
|
6
6
|
## demo
|
|
7
7
|
```vue
|
|
8
|
-
|
|
9
|
-
import DataScreenShow from '@tmesoft/data-screen-show'
|
|
10
|
-
/**
|
|
11
|
-
* @description: 监听数据卡编辑、自定义卡上传、编辑事件
|
|
12
|
-
* @param type 卡类型
|
|
13
|
-
* @param id 卡id值
|
|
14
|
-
*/
|
|
15
|
-
const editBtnClick = (type:CardType,id:number)=>{
|
|
16
|
-
console.log(type,id,'editBtnClick')
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @description: 点击拖拽卡事件
|
|
20
|
-
* @param type 卡类型
|
|
21
|
-
* @param id 卡id值
|
|
22
|
-
*/
|
|
23
|
-
const changeActive = (type:CardType,id:number) => {
|
|
24
|
-
console.log(type,id,'changeActive')
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @description: 更新坐标信息
|
|
28
|
-
* @param coordinate 位置信息包括数据卡和自定义卡
|
|
29
|
-
* @return
|
|
30
|
-
*/
|
|
31
|
-
const addOrUpCoordinate = (coordinate:{dataCard:{ id: number; detail: IbigScreenCoordinate }[],customCard:{ id: number; detail: IbigScreenCoordinate }[]})=>{
|
|
32
|
-
console.log(coordinate)
|
|
33
|
-
}
|
|
34
|
-
const DataScreenShowRef = ref()
|
|
35
|
-
// 传入json数据
|
|
8
|
+
使用示例,参考App.vue文件
|
|
36
9
|
|
|
37
|
-
const DataScreenShowRef = ref()
|
|
38
|
-
onMounted(()=>{
|
|
39
|
-
DataScreenShowRef.value?.setDataCardListJson(
|
|
40
|
-
{'师资队伍' :{id:1,idEditBtn:true},
|
|
41
|
-
'科研成果':{id:2,idEditBtn:true},
|
|
42
|
-
'设备资产':{id:3,idEditBtn:false},
|
|
43
|
-
'预约开放':{id:4,idEditBtn:false},
|
|
44
|
-
'实验室运行':{id:5,idEditBtn:true},
|
|
45
|
-
'安全数据':{id:6,idEditBtn:false},
|
|
46
|
-
'实验人次':{id:7,idEditBtn:false},
|
|
47
|
-
'实验报告':{id:8,idEditBtn:false},
|
|
48
|
-
'实验成绩':{id:9,idEditBtn:false},
|
|
49
|
-
'实验交流':{id:10,idEditBtn:false}})})
|
|
50
|
-
// ------------------------------ 给子组件传递参数 ------------------------------
|
|
51
|
-
/**
|
|
52
|
-
* @description: 大屏标题
|
|
53
|
-
*/
|
|
54
|
-
const title = ref('智慧化实验室')
|
|
55
|
-
/**
|
|
56
|
-
* @description: 自定义卡列表坐标
|
|
57
|
-
*/
|
|
58
|
-
const customCardCoordinateList = ref([{"id":133,"detail":{"left":1129,"width":380,"top":397,"height":228}},
|
|
59
|
-
{"id":134,"detail":{"left":120,"width":308,"top":210,"height":273}},
|
|
60
|
-
{"id":135,"detail":{"left":649,"width":360,"top":235,"height":271}}])
|
|
61
|
-
/**
|
|
62
|
-
* @description: 自定义卡列表数据
|
|
63
|
-
* @param
|
|
64
|
-
* @return
|
|
65
|
-
*/
|
|
66
|
-
const _customCardList = [
|
|
67
|
-
{
|
|
68
|
-
"id": 133,
|
|
69
|
-
"bigScreenVersionId": 3,
|
|
70
|
-
"type": 1,
|
|
71
|
-
"name": "图片11111111111",
|
|
72
|
-
"detail": "{\"list\":[{\"name\":\"1686030913404(1).jpg\",\"url\":\"http://172.16.3.208:8802/tmeFile/ILIM/image/1662/5b793a456cc4016637bc75f9dd28a2b4.jpg\",\"size\":200911,\"uid\":1725945117909,\"status\":\"success\"},{\"name\":\"矢量智能对象2.png\",\"url\":\"http://172.16.3.208:8802/tmeFile/ILIM/image/1663/36bf622f16b1afe40d5e669870d06a92.png\",\"size\":291,\"uid\":1725945285946,\"status\":\"success\"}],\"swiperTime\":3}"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"id": 134,
|
|
76
|
-
"bigScreenVersionId": 3,
|
|
77
|
-
"type": 3,
|
|
78
|
-
"name": "文本1111111111111",
|
|
79
|
-
"detail": "{\"list\":[{\"value\":\"<p><span style=\\\"color: #ecf0f1;\\\">3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee</span></p>\\n<h1 style=\\\"padding: 18px 0px; font-weight: 400; line-height: 42px; color: #333333; border-bottom: 1px solid rgba(0, 0, 0, 0.08); font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff; font-size: 30px !important; margin: 0px 0px 20px !important 0px;\\\">公众平台服务号、订阅号、企业微信、小程序的相关说明</h1>\\n<section class=\\\"_135editor\\\" style=\\\"margin: 0px; padding: 0px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; font-size: 12px; background-color: #ffffff; border: 0px none; position: relative;\\\" data-tools=\\\"135编辑器\\\" data-id=\\\"90143\\\" data-color=\\\"rgb(12, 137, 24)\\\" data-custom=\\\"rgb(12, 137, 24)\\\">\\n<section style=\\\"margin: 0px; padding: 0px;\\\">\\n<section style=\\\"margin: 0px; padding: 0px 3px 0px 0px; display: inline-block; vertical-align: middle;\\\">\\n<section style=\\\"margin: 0px; padding: 0px; border-top: 3px solid transparent; border-left: 3px solid #666666; float: right;\\\"></section>\\n<section style=\\\"margin: 0px 3px 0px 0px; padding: 1em; background: #0c8918; color: #ffffff; transform: rotate(360deg);\\\">\\n<p class=\\\"autonum\\\" style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px;\\\" title=\\\"\\\" data-original-title=\\\"\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\">1</strong></p>\\n</section>\\n<section style=\\\"margin: -3px 0px 0px; padding: 0px; border-bottom: 3px solid transparent; border-left: 3px solid #666666; float: right;\\\"></section>\\n</section>\\n \\n<section style=\\\"margin: 0px 0px 0px -3em; padding: 0.8em 1em 0.8em 3em; display: inline-block; vertical-align: middle; background: #eeeeee; line-height: 1.5;\\\">\\n<p class=\\\"135brush\\\" style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px;\\\" data-brushtype=\\\"text\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\"> 公众号类型功能介绍</strong> </p>\\n</section>\\n</section>\\n</section>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"> </p>\\n<div style=\\\"margin: 0px; padding: 0px; max-width: 100%; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff; text-align: center;\\\"><img style=\\\"margin: 15px 0px 25px; padding: 0px; border: 1px solid #e5e5e5; outline: none; vertical-align: bottom; max-width: 100%; display: inline-block;\\\" src=\\\"http://file.service.qq.com/user-files/uploads/201708/d983e67521397c6a61fa196c1e378a38.jpg\\\" /></div>\\n<p> </p>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"> </p>\\n<section class=\\\"_135editor\\\" style=\\\"margin: 0px; padding: 0px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; font-size: 12px; background-color: #ffffff; border: 0px none; position: relative;\\\" data-tools=\\\"135编辑器\\\" data-id=\\\"90143\\\" data-color=\\\"rgb(12, 137, 24)\\\" data-custom=\\\"rgb(12, 137, 24)\\\">\\n<section style=\\\"margin: 0px; padding: 0px;\\\">\\n<section style=\\\"margin: 0px; padding: 0px 3px 0px 0px; display: inline-block; vertical-align: middle;\\\">\\n<section style=\\\"margin: 0px; padding: 0px; border-top: 3px solid transparent; border-left: 3px solid #666666; float: right;\\\"></section>\\n<section style=\\\"margin: 0px 3px 0px 0px; padding: 1em; background: #0c8918; color: #ffffff; transform: rotate(360deg);\\\">\\n<p class=\\\"autonum\\\" style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px;\\\" title=\\\"\\\" data-original-title=\\\"\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\">2</strong></p>\\n</section>\\n<section style=\\\"margin: -3px 0px 0px; padding: 0px; border-bottom: 3px solid transparent; border-left: 3px solid #666666; float: right;\\\"></section>\\n</section>\\n \\n<section style=\\\"margin: 0px 0px 0px -3em; padding: 0.8em 1em 0.8em 3em; display: inline-block; vertical-align: middle; background: #eeeeee; line-height: 1.5;\\\">\\n<p class=\\\"135brush\\\" style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px;\\\" data-brushtype=\\\"text\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\"> 服务号、订阅号功能区别 </strong></p>\\n</section>\\n</section>\\n</section>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff; text-align: center;\\\"><img style=\\\"margin: 15px 0px 25px; padding: 0px; border: 1px solid #e5e5e5; outline: none; vertical-align: bottom; max-width: 100%; display: inline-block;\\\" src=\\\"http://file.service.qq.com/user-files/uploads/201708/a12daf5a6a2cf4c01618569b1b9e5881.jpg\\\" /></p>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"> </p>\\n<section class=\\\"_135editor\\\" style=\\\"margin: 0px; padding: 0px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; font-size: 12px; background-color: #ffffff; border: 0px none; position: relative;\\\" data-tools=\\\"135编辑器\\\" data-id=\\\"90143\\\" data-color=\\\"rgb(12, 137, 24)\\\" data-custom=\\\"rgb(12, 137, 24)\\\">\\n<section style=\\\"margin: 0px; padding: 0px;\\\">\\n<section style=\\\"margin: 0px; padding: 0px 3px 0px 0px; display: inline-block; vertical-align: middle;\\\">\\n<section style=\\\"margin: 0px; padding: 0px; border-top: 3px solid transparent; border-left: 3px solid #666666; float: right;\\\"></section>\\n<section style=\\\"margin: 0px 3px 0px 0px; padding: 1em; background: #0c8918; color: #ffffff; transform: rotate(360deg);\\\">\\n<p class=\\\"autonum\\\" style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px;\\\" title=\\\"\\\" data-original-title=\\\"\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\">3</strong></p>\\n</section>\\n<section style=\\\"margin: -3px 0px 0px; padding: 0px; border-bottom: 3px solid transparent; border-left: 3px solid #666666; float: right;\\\"></section>\\n</section>\\n \\n<section style=\\\"margin: 0px 0px 0px -3em; padding: 0.8em 1em 0.8em 3em; display: inline-block; vertical-align: middle; background: #eeeeee; line-height: 1.5;\\\">\\n<p class=\\\"135brush\\\" style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px;\\\" data-brushtype=\\\"text\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\"> 小程序介绍</strong> </p>\\n</section>\\n</section>\\n</section>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\"> </strong></p>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"><strong style=\\\"margin: 0px; padding: 0px; font-size: 1em;\\\"> 主要优势</strong></p>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"> 1、用户可便捷地获取服务,无需安装或下载即可使用;</p>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"> 2、具有更丰富的功能和出色的使用体验;</p>\\n<p style=\\\"margin: 0px; padding: 0px; line-height: 24px; font-size: 15px; color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; background-color: #ffffff;\\\"> 3、封装一系列接口能力,帮助快速开发和迭代。</p>\\n<p><span style=\\\"color: #ecf0f1;\\\"><img style=\\\"color: #666666; font-family: 'PingFang SC', 'Microsoft Yahei', Avenir, 'Segoe UI', 'Hiragino Sans GB', STHeiti, 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; font-size: 15px; text-align: center; margin: 15px 0px 25px; padding: 0px; border: 1px solid #e5e5e5; outline: none; vertical-align: bottom; max-width: 100%; display: inline-block;\\\" src=\\\"http://file.service.qq.com/user-files/uploads/201708/df54931c8573912639ef393f44f65ece.jpg\\\" />ee</span></p>\",\"scroll\":true}],\"swiperTime\":20}"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"id": 135,
|
|
83
|
-
"bigScreenVersionId": 3,
|
|
84
|
-
"type": 2,
|
|
85
|
-
"name": "视频333333333333333333",
|
|
86
|
-
"detail": "{\"list\":[{\"name\":\"2minute-demo.mp4\",\"url\":\"http://172.16.3.208:8802/tmeFile/ILIM/video/1664/d12d99ae6eb88e4990e9d226c10b8428.mp4\",\"size\":2865389,\"uid\":1725946661731,\"status\":\"success\"}],\"isLoop\":true,\"volume\":true}"
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
const customCardList =ref<CustomListPage[]>( _customCardList?.length
|
|
90
|
-
? _customCardList.map(item => {
|
|
91
|
-
const detail = item.detail ? JSON.parse(item.detail) : {}
|
|
92
|
-
return {
|
|
93
|
-
id: item.id,
|
|
94
|
-
bigScreenVersionId: item.bigScreenVersionId,
|
|
95
|
-
type: item.type,
|
|
96
|
-
name: item.name,
|
|
97
|
-
list: detail?.list || [],
|
|
98
|
-
swiperTime: detail?.swiperTime,
|
|
99
|
-
isLoop: detail?.isLoop,
|
|
100
|
-
volume: detail?.volume,
|
|
101
|
-
isEdit: false
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
: [])
|
|
105
|
-
// 数据卡列表数据
|
|
106
|
-
const dataCardCoordinateList = ref([
|
|
107
|
-
{"id":1,"detail":{"left":0,"width":367,"top":75,"height":173}},
|
|
108
|
-
{"id":2,"detail":{"left":0,"width":365,"top":270,"height":172}},
|
|
109
|
-
{"id":3,"detail":{"left":0,"width":365,"top":455,"height":172}},
|
|
110
|
-
{"id":4,"detail":{"left":0,"width":379,"top":685,"height":179}},
|
|
111
|
-
{"id":5,"detail":{"left":370,"width":493,"top":75,"height":366}},
|
|
112
|
-
{"id":6,"detail":{"left":565,"width":540,"top":455,"height":158}},
|
|
113
|
-
{"id":7,"detail":{"left":865,"width":295,"top":70,"height":139}},
|
|
114
|
-
{"id":8,"detail":{"left":865,"width":365,"top":250,"height":172}},
|
|
115
|
-
{"id":9,"detail":{"left":1225,"width":276,"top":355,"height":131}},
|
|
116
|
-
{"id":10,"detail":{"left":895,"width":324,"top":695,"height":153}}])
|
|
117
|
-
// 当前拖拽卡片类型
|
|
118
|
-
const activeType = ref<CardType>()
|
|
119
|
-
// 当前拖拽卡片id
|
|
120
|
-
const activeId = ref<number>()
|
|
121
|
-
<!--template-->
|
|
122
|
-
<data-screen-show :customCardList="customCardList"
|
|
123
|
-
:customCardCoordinateList="customCardCoordinateList"
|
|
124
|
-
:dataCardCoordinateList="dataCardCoordinateList"
|
|
125
|
-
:activeType="activeType"
|
|
126
|
-
:activeId="activeId"
|
|
127
|
-
:title="title"
|
|
128
|
-
@addOrUpCoordinate="addOrUpCoordinate"
|
|
129
|
-
@changeActive="changeActive"
|
|
130
|
-
@editBtnClick="editBtnClick"
|
|
131
|
-
ref="DataScreenShowRef"
|
|
132
|
-
/>
|
|
133
|
-
```
|
|
134
10
|
|
|
135
11
|
## 方法
|
|
136
12
|
|
|
137
13
|
| Name | Description | type |
|
|
138
14
|
|--------------|-----------------|-------------------------------|
|
|
139
|
-
|
|
|
140
|
-
|
|
|
15
|
+
| chartResize | 页面改变大小时触发 | Function | |
|
|
16
|
+
| setDataCardJson | 获取组件内的数据卡json内容 | {
|
|
17
|
+
'师资队伍': 1,
|
|
18
|
+
'科研成果': 2,
|
|
19
|
+
'设备资产': 3,
|
|
20
|
+
'预约开放': 4,
|
|
21
|
+
'空间可视化': 5,
|
|
22
|
+
'安全数据': 6,
|
|
23
|
+
'实验人次': 7,
|
|
24
|
+
'实验报告': 8,
|
|
25
|
+
'实验成绩': 9,
|
|
26
|
+
'实验交流': 10
|
|
27
|
+
} |
|
|
141
28
|
|
|
142
29
|
|
|
143
|
-
## 事件
|
|
144
|
-
|
|
145
|
-
| Name | Description |
|
|
146
|
-
|------------|-------------------|
|
|
147
|
-
| addOrUpCoordinate | 更新坐标信息 |
|
|
148
|
-
| changeActive | 修改当前拖拽元素 |
|
|
149
|
-
| editBtnClick | 点击数据卡、自定义卡的编辑上传按钮 |
|
|
150
|
-
| handleTextScroll | 文字滚动 |
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { PropType as PropType_2 } from 'vue';
|
|
5
|
+
import { PublicProps } from 'vue';
|
|
6
|
+
|
|
7
|
+
declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
8
|
+
subTitle: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
pageTitle: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
dataCardIdListIds: {
|
|
17
|
+
type: PropType_2<number[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
updataCardCoordinateList: {
|
|
21
|
+
type: PropType_2<ICoordinateItem[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
customCardList: {
|
|
25
|
+
type: PropType_2<CustomListPage[]>;
|
|
26
|
+
default: () => never[];
|
|
27
|
+
};
|
|
28
|
+
}>, {
|
|
29
|
+
chartResize: () => void;
|
|
30
|
+
setDataCardJson: (_dataCardJson: any) => void;
|
|
31
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
32
|
+
subTitle: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
pageTitle: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
dataCardIdListIds: {
|
|
41
|
+
type: PropType_2<number[]>;
|
|
42
|
+
default: () => never[];
|
|
43
|
+
};
|
|
44
|
+
updataCardCoordinateList: {
|
|
45
|
+
type: PropType_2<ICoordinateItem[]>;
|
|
46
|
+
default: () => never[];
|
|
47
|
+
};
|
|
48
|
+
customCardList: {
|
|
49
|
+
type: PropType_2<CustomListPage[]>;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{}>, {
|
|
53
|
+
subTitle: string;
|
|
54
|
+
pageTitle: string;
|
|
55
|
+
dataCardIdListIds: number[];
|
|
56
|
+
updataCardCoordinateList: ICoordinateItem[];
|
|
57
|
+
customCardList: CustomListPage[];
|
|
58
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
59
|
+
|
|
60
|
+
declare function __VLS_template(): {
|
|
61
|
+
"main-floor"?(_: {}): any;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export declare interface CustomListPage {
|
|
71
|
+
id: number;
|
|
72
|
+
bigScreenVersionId: number;
|
|
73
|
+
type: EbigScreenCustomCardType;
|
|
74
|
+
name: string;
|
|
75
|
+
list: any[];
|
|
76
|
+
swiperTime?: number;
|
|
77
|
+
isLoop?: boolean;
|
|
78
|
+
volume?: boolean;
|
|
79
|
+
isEdit?: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export declare const DataScreenShow: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
83
|
+
|
|
84
|
+
export declare enum EbigScreenCustomCardType {
|
|
85
|
+
'图集' = 1,
|
|
86
|
+
'视频' = 2,
|
|
87
|
+
'文本' = 3
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export declare interface IbigScreenCoordinate {
|
|
91
|
+
left: number;
|
|
92
|
+
width: number;
|
|
93
|
+
top: number;
|
|
94
|
+
height: number;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare interface ICoordinateItem {
|
|
98
|
+
id: number;
|
|
99
|
+
width: number;
|
|
100
|
+
height: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { }
|