inl-ui 0.1.8 → 0.1.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.
Files changed (37) hide show
  1. package/README.md +49 -49
  2. package/dist/components/index.cjs +7 -7
  3. package/dist/components/index.d.ts +9 -0
  4. package/dist/components/index.js +7 -7
  5. package/dist/iconfont.js +69 -69
  6. package/dist/index.cjs +8 -8
  7. package/dist/index.d.ts +10 -1
  8. package/dist/index.js +8 -8
  9. package/dist/theme/index.js +70 -70
  10. package/dist/theme/scripts/dark-vars.js +21 -21
  11. package/dist/theme/scripts/default-vars.js +25 -25
  12. package/dist/theme/scripts/light-vars.js +22 -22
  13. package/dist/theme/style/color/bezierEasing.less +110 -110
  14. package/dist/theme/style/color/colorPalette.less +81 -81
  15. package/dist/theme/style/color/colors.less +162 -162
  16. package/dist/theme/style/color/tinyColor.less +1184 -1184
  17. package/dist/theme/style/compact.less +4 -4
  18. package/dist/theme/style/dark.less +4 -4
  19. package/dist/theme/style/default.less +4 -4
  20. package/dist/theme/style/index.less +2 -2
  21. package/dist/theme/style/index.tsx +2 -2
  22. package/dist/theme/style/themes/compact.less +295 -295
  23. package/dist/theme/style/themes/dark.less +790 -790
  24. package/dist/theme/style/themes/default.less +1067 -1067
  25. package/dist/theme/style/themes/index.less +7 -7
  26. package/dist/theme/style/themes/var-dark.less +343 -343
  27. package/dist/theme/style/themes/var-default.less +184 -184
  28. package/dist/theme/style/themes/variable.less +1122 -1122
  29. package/dist/theme/style/variable.less +4 -4
  30. package/dist/video/index.cjs +7 -7
  31. package/dist/video/index.d.ts +9 -0
  32. package/dist/video/index.js +7 -7
  33. package/dist/videoMobile/index.cjs +4803 -0
  34. package/dist/videoMobile/index.d.ts +60 -0
  35. package/dist/videoMobile/index.js +4795 -0
  36. package/dist/videoMobile/style.css +1 -0
  37. package/package.json +1 -1
package/README.md CHANGED
@@ -1,49 +1,49 @@
1
- # 工业PC ui库
2
-
3
- 前端通用库,包括组件、hooks、utils等。
4
-
5
- ### 运行
6
-
7
- + 开发模式 yarn dev
8
- + 生产打包 yarn build
9
- + 生成文档 yarn build:docs
10
- + 打包图扑工具 yarn buildtp
11
-
12
- ### 使用方法
13
-
14
- ```javascript
15
- import inl from 'inl-ui';
16
- import 'inl-ui/dist/style.css';
17
-
18
- vue.use(inl)
19
- ```
20
-
21
-
22
-
23
- ### 激活主题
24
-
25
- **vite.config.ts**
26
-
27
- ```javascript
28
- const additionalData = require("inl-ui/dist/theme").default;
29
-
30
- ...
31
-
32
- css: {
33
- preprocessorOptions: {
34
- less: {
35
- javascriptEnabled: true,
36
- additionalData,
37
- },
38
- },
39
- },
40
- ```
41
-
42
- ### 文档链接
43
-
44
- ##### [组件文档](./src/components/README.md)
45
-
46
- ##### [hooks文档](./src/hooks/README.md)
47
-
48
- ##### [Utils文档](./src/utils/README.md)
49
-
1
+ # 工业PC ui库
2
+
3
+ 前端通用库,包括组件、hooks、utils等。
4
+
5
+ ### 运行
6
+
7
+ + 开发模式 yarn dev
8
+ + 生产打包 yarn build
9
+ + 生成文档 yarn build:docs
10
+ + 打包图扑工具 yarn buildtp
11
+
12
+ ### 使用方法
13
+
14
+ ```javascript
15
+ import inl from 'inl-ui';
16
+ import 'inl-ui/dist/style.css';
17
+
18
+ vue.use(inl)
19
+ ```
20
+
21
+
22
+
23
+ ### 激活主题
24
+
25
+ **vite.config.ts**
26
+
27
+ ```javascript
28
+ const additionalData = require("inl-ui/dist/theme").default;
29
+
30
+ ...
31
+
32
+ css: {
33
+ preprocessorOptions: {
34
+ less: {
35
+ javascriptEnabled: true,
36
+ additionalData,
37
+ },
38
+ },
39
+ },
40
+ ```
41
+
42
+ ### 文档链接
43
+
44
+ ##### [组件文档](./src/components/README.md)
45
+
46
+ ##### [hooks文档](./src/hooks/README.md)
47
+
48
+ ##### [Utils文档](./src/utils/README.md)
49
+
@@ -7482,11 +7482,11 @@ const props$8 = {
7482
7482
  require: false,
7483
7483
  default: "fill"
7484
7484
  },
7485
- // 定时器时间
7486
- // intervalTime: {
7487
- // type: Number,
7488
- // default: 3600000,
7489
- // },
7485
+ // token
7486
+ token: {
7487
+ type: String,
7488
+ default: ""
7489
+ },
7490
7490
  baseUrl: {
7491
7491
  type: String,
7492
7492
  default: ""
@@ -7564,12 +7564,12 @@ const VideoPlayerV2 = vue.defineComponent({
7564
7564
  }
7565
7565
  const detailRes = await axios__default["default"].get(`${_prop.baseUrl}/api/vms/v1/camera/getByUuid?uuid=${uuid2}`, {
7566
7566
  headers: {
7567
- token: sessionStorage.getItem("token") || ""
7567
+ token: _prop.token || sessionStorage.getItem("token") || ""
7568
7568
  }
7569
7569
  });
7570
7570
  const res = await axios__default["default"].get(`${_prop.baseUrl}/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid2}`, {
7571
7571
  headers: {
7572
- token: sessionStorage.getItem("token") || ""
7572
+ token: _prop.token || sessionStorage.getItem("token") || ""
7573
7573
  }
7574
7574
  });
7575
7575
  if (res.status === 200) {
@@ -395,6 +395,10 @@ declare const _default$a: vue.DefineComponent<{
395
395
  require: boolean;
396
396
  default: string;
397
397
  };
398
+ token: {
399
+ type: StringConstructor;
400
+ default: string;
401
+ };
398
402
  baseUrl: {
399
403
  type: StringConstructor;
400
404
  default: string;
@@ -412,6 +416,10 @@ declare const _default$a: vue.DefineComponent<{
412
416
  require: boolean;
413
417
  default: string;
414
418
  };
419
+ token: {
420
+ type: StringConstructor;
421
+ default: string;
422
+ };
415
423
  baseUrl: {
416
424
  type: StringConstructor;
417
425
  default: string;
@@ -421,6 +429,7 @@ declare const _default$a: vue.DefineComponent<{
421
429
  }, {
422
430
  fill: string;
423
431
  cameraConfig: Record<string, any>;
432
+ token: string;
424
433
  baseUrl: string;
425
434
  }, {}>;
426
435
 
@@ -7472,11 +7472,11 @@ const props$8 = {
7472
7472
  require: false,
7473
7473
  default: "fill"
7474
7474
  },
7475
- // 定时器时间
7476
- // intervalTime: {
7477
- // type: Number,
7478
- // default: 3600000,
7479
- // },
7475
+ // token
7476
+ token: {
7477
+ type: String,
7478
+ default: ""
7479
+ },
7480
7480
  baseUrl: {
7481
7481
  type: String,
7482
7482
  default: ""
@@ -7554,12 +7554,12 @@ const VideoPlayerV2 = defineComponent({
7554
7554
  }
7555
7555
  const detailRes = await axios.get(`${_prop.baseUrl}/api/vms/v1/camera/getByUuid?uuid=${uuid2}`, {
7556
7556
  headers: {
7557
- token: sessionStorage.getItem("token") || ""
7557
+ token: _prop.token || sessionStorage.getItem("token") || ""
7558
7558
  }
7559
7559
  });
7560
7560
  const res = await axios.get(`${_prop.baseUrl}/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid2}`, {
7561
7561
  headers: {
7562
- token: sessionStorage.getItem("token") || ""
7562
+ token: _prop.token || sessionStorage.getItem("token") || ""
7563
7563
  }
7564
7564
  });
7565
7565
  if (res.status === 200) {