smartyz-web-sdk 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.
Files changed (2) hide show
  1. package/README.md +23 -31
  2. package/package.json +6 -18
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Smart Web SDK 🚀
1
+ # smartyz Web SDK 🚀
2
2
 
3
3
  ---
4
4
 
@@ -6,52 +6,48 @@
6
6
 
7
7
  ```bash
8
8
  # 选择你喜欢的包管理器
9
- npm install smart-web-sdk vue@^3 ant-design-vue@^3
9
+ npm install smartyz-web-sdk
10
10
  # 或
11
- yarn add smart-web-sdk vue@^3 ant-design-vue@^3
11
+ yarn add smartyz-web-sdk
12
12
  # 或
13
- pnpm add smart-web-sdk vue@^3 ant-design-vue@^3
13
+ pnpm add smartyz-web-sdk
14
+
14
15
  ```
15
16
 
16
17
  ---
17
18
 
18
- ## 🚀 快速使用
19
-
20
- ### 全量引入(推荐用于快速原型开发)
21
-
22
- ```javascript
23
- // main.js
24
- import { createApp } from "vue";
25
- import SmartWebUI from "smart-web-sdk";
26
- import "smart-web-sdk/dist/style.css";
27
- const app = createApp(App);
28
- app.use(SmartWebUI);
29
- ```
30
-
31
19
  ### 按需引入(推荐用于生产环境)
32
20
 
33
21
  ```javascript
34
22
  // 组件文件中
35
- import { MyButton, MyInput } from "smart-web-sdk";
23
+ import { UavComponent } from "smartyz-web-sdk";
36
24
  ```
37
25
 
38
- ---
39
-
40
26
  ## 🛠 开发指南
41
27
 
42
28
  ```javascript
43
- <UavComponent vacApiIpPort="192.168.2.123:8007" deviceId="11010800002000000230" :useExternalData="false"
44
- :virtualCameraList="cameraList" rtspDevice="deviceId" :elevation="0" :active="panelActive"
45
- @update:active="panelActive = $event" @uav-selected="handleUavSelect" droneWsUrl="localhost:8088/droneWs"
46
- droneListAPiUrl="http://127.0.0.1:3000/drone.json" :uavShow="showHideStatus"
47
- @update:uavShow="showHideStatus = $event" @close="handleUavClose" />
29
+ <UavComponent
30
+ vacApiIpPort="192.168.2.123:8007"
31
+ deviceId="11010800002000000230"
32
+ :useExternalData="false"
33
+ :virtualCameraList="cameraList"
34
+ rtspDevice="deviceId"
35
+ :elevation="0"
36
+ :active="panelActive"
37
+ @update:active="panelActive = $event"
38
+ @uav-selected="handleUavSelect"
39
+ droneWsUrl="localhost:8088/droneWs"
40
+ droneListAPiUrl="http://127.0.0.1:3000/drone.json"
41
+ :uavShow="showHideStatus"
42
+ @update:uavShow="showHideStatus = $event"
43
+ @close="handleUavClose"/>
48
44
  ```
49
45
 
50
46
  ### 本地开发
51
47
 
52
48
  ```bash
53
- git clone xxxxx/smart-web-sdk.git
54
- cd smart-web-sdk
49
+ git clone xxxxx/smartyz-web-sdk.git
50
+ cd smartyz-web-sdk
55
51
  npm install
56
52
  npm dev
57
53
  ```
@@ -67,7 +63,3 @@ npm build
67
63
  ```bash
68
64
  npm test
69
65
  ```
70
-
71
- ---
72
-
73
- ## ❓ 常见问题
package/package.json CHANGED
@@ -1,29 +1,25 @@
1
1
  {
2
2
  "name": "smartyz-web-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
- "description": "规自局三维融合组件包",
5
+ "description": "组件化",
6
6
  "keywords": [
7
7
  "cesium",
8
8
  "无人机",
9
9
  "视频融合",
10
10
  "组件"
11
11
  ],
12
- "repository": {
13
- "type": "git",
14
- "url": "#"
15
- },
16
12
  "license": "MIT",
17
13
  "author": "hengyuan_tech",
18
14
  "type": "module",
19
15
  "exports": {
20
16
  ".": {
21
17
  "import": "./dist/smart-web-sdk.es.js",
22
- "require": "./dist/smart-web-sdk.umd.js"
18
+ "require": "./dist/smartyz-web-sdk.umd.js"
23
19
  },
24
20
  "./*": "./dist/*"
25
21
  },
26
- "main": "./dist/smart-web-sdk.umd.js",
22
+ "main": "./dist/smartyz-web-sdk.umd.js",
27
23
  "files": [
28
24
  "dist"
29
25
  ],
@@ -37,17 +33,9 @@
37
33
  "dependencies": {
38
34
  "@ant-design/icons-vue": "^7.0.1",
39
35
  "@vueuse/core": "^13.1.0",
40
- "ant-design-vue": "^4.2.6",
41
- "axios": "^1.9.0",
42
36
  "cesium": "^1.141.0",
43
- "dayjs": "^1.11.13",
44
- "echarts": "^5.6.0",
45
- "echarts-wordcloud": "^2.1.0",
46
- "gsap": "^3.13.0",
47
- "lodash-es": "^4.17.21",
48
37
  "sass": "^1.86.1",
49
38
  "uuid": "^11.1.0",
50
- "video-time-slider": "^1.1.1",
51
39
  "vue": "^3.5.13",
52
40
  "vue-request": "^2.0.4"
53
41
  },
@@ -63,5 +51,5 @@
63
51
  "vue": "^3.0.0",
64
52
  "ant-design-vue": "^4.2.6"
65
53
  },
66
- "module": "./dist/smart-web-sdk.es.js"
67
- }
54
+ "module": "./dist/smartyz-web-sdk.es.js"
55
+ }