@zhangdali1996/lr-map-viewer 0.0.9 → 0.0.10
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 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -23,6 +23,17 @@ npm install @zhangdali1996/lr-map-viewer
|
|
|
23
23
|
|
|
24
24
|
`vue` 和 `element-plus` 作为 `peerDependencies` 提供,要求使用方项目自行安装。
|
|
25
25
|
|
|
26
|
+
安装后请显式引入组件库样式:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
说明:
|
|
33
|
+
|
|
34
|
+
- 这部分样式对应组件库自身的布局、面板、占位态等 UI。
|
|
35
|
+
- 龙软 SDK 的 `/editorapp`、`/resource` 静态资源及其中的样式,仍需由实施方单独提供。
|
|
36
|
+
|
|
26
37
|
## 静态资源放置
|
|
27
38
|
|
|
28
39
|
该包不会携带龙软 SDK 的大体积静态资源。以下目录需要由实施方单独提供给客户:
|
|
@@ -80,6 +91,7 @@ const lr3dConfig = {
|
|
|
80
91
|
|
|
81
92
|
```vue
|
|
82
93
|
<script setup>
|
|
94
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
83
95
|
import { LrMapViewer } from '@zhangdali1996/lr-map-viewer'
|
|
84
96
|
|
|
85
97
|
const credentialKey = 'your_credential_key'
|
|
@@ -119,6 +131,7 @@ const lr3dConfig = {
|
|
|
119
131
|
|
|
120
132
|
```vue
|
|
121
133
|
<script setup>
|
|
134
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
122
135
|
import { LrMapViewer } from '@zhangdali1996/lr-map-viewer'
|
|
123
136
|
|
|
124
137
|
const credentialKey = 'your_credential_key'
|
|
@@ -154,6 +167,7 @@ const map2dConfig = {
|
|
|
154
167
|
```vue
|
|
155
168
|
<script setup>
|
|
156
169
|
import { ref } from 'vue'
|
|
170
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
157
171
|
import { LrMapViewer } from '@zhangdali1996/lr-map-viewer'
|
|
158
172
|
|
|
159
173
|
const activeMode = ref('2d')
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhangdali1996/lr-map-viewer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"main": "./dist/lr-map-viewer.js",
|
|
10
10
|
"module": "./dist/lr-map-viewer.js",
|
|
11
|
+
"style": "./dist/lr-map-viewer.css",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"import": "./dist/lr-map-viewer.js",
|
|
14
15
|
"default": "./dist/lr-map-viewer.js"
|
|
15
16
|
},
|
|
17
|
+
"./style.css": "./dist/lr-map-viewer.css",
|
|
16
18
|
"./package.json": "./package.json"
|
|
17
19
|
},
|
|
18
20
|
"scripts": {
|