@zhangdali1996/lr-map-viewer 0.0.8 → 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 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')