-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (28 loc) · 1.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!--
* @Author: wangqi01 [email protected]
* @Date: 2024-10-16 13:50:18
* @LastEditors: wangqi01 [email protected]
* @LastEditTime: 2024-11-04 18:12:44
* @FilePath: \vanilla-demo\index.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<!-- <script type="module" src="src/webcomponent/.js"></script> -->
<script type="module">
import viewer from '/src/webcomponent/viewer-webcomponent.js'
viewer.show()
</script>
<viewer-webcomponent options="{toolbar: false}"
images="['src/assets/tibet-1.jpg', 'src/assets/tibet-2.jpg', 'src/assets/tibet-3.jpg', 'src/assets/tibet-4.jpg', 'src/assets/tibet-5.jpg', 'src/assets/tibet-6.jpg', 'src/assets/tibet-7.jpg', 'src/assets/tibet-8.jpg', 'src/assets/tibet-9.jpg']">
<span slot="slotName">这是真正的slot</slot>
</viewer-webcomponent>
</body>
</html>