inl-ui 0.1.28 → 0.1.29

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
@@ -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
+
@@ -8737,6 +8737,9 @@ const VideoPlayerV2 = vue.defineComponent({
8737
8737
  };
8738
8738
  }, 500);
8739
8739
  };
8740
+ _context.expose({
8741
+ videoFull
8742
+ });
8740
8743
  const videoInfo2 = vue.ref({});
8741
8744
  const stopPlay = () => {
8742
8745
  if (play) {
@@ -8773,15 +8776,6 @@ const VideoPlayerV2 = vue.defineComponent({
8773
8776
  videoElement.load();
8774
8777
  }
8775
8778
  };
8776
- const releaseUrl = vue.ref("");
8777
- const release = async () => {
8778
- const res = await axios__default["default"].get(releaseUrl.value);
8779
- return res;
8780
- };
8781
- _context.expose({
8782
- videoFull,
8783
- release
8784
- });
8785
8779
  const getVideoDetail = async camera => {
8786
8780
  let uuid2 = "";
8787
8781
  if (camera && Object.keys(camera).length && typeof camera === "object") {
@@ -8808,7 +8802,6 @@ const VideoPlayerV2 = vue.defineComponent({
8808
8802
  } = detailRes;
8809
8803
  if (res.data.data[0]) {
8810
8804
  data.data.webrtcTemplateMerged = res.data.data[0];
8811
- releaseUrl.value = res.data.data[1];
8812
8805
  data.data.mediaServerPo.url = res.data.data[2];
8813
8806
  videoInfo2.value = {
8814
8807
  ...data.data,
@@ -8726,6 +8726,9 @@ const VideoPlayerV2 = defineComponent({
8726
8726
  };
8727
8727
  }, 500);
8728
8728
  };
8729
+ _context.expose({
8730
+ videoFull
8731
+ });
8729
8732
  const videoInfo2 = ref({});
8730
8733
  const stopPlay = () => {
8731
8734
  if (play) {
@@ -8762,15 +8765,6 @@ const VideoPlayerV2 = defineComponent({
8762
8765
  videoElement.load();
8763
8766
  }
8764
8767
  };
8765
- const releaseUrl = ref("");
8766
- const release = async () => {
8767
- const res = await axios$2.get(releaseUrl.value);
8768
- return res;
8769
- };
8770
- _context.expose({
8771
- videoFull,
8772
- release
8773
- });
8774
8768
  const getVideoDetail = async camera => {
8775
8769
  let uuid2 = "";
8776
8770
  if (camera && Object.keys(camera).length && typeof camera === "object") {
@@ -8797,7 +8791,6 @@ const VideoPlayerV2 = defineComponent({
8797
8791
  } = detailRes;
8798
8792
  if (res.data.data[0]) {
8799
8793
  data.data.webrtcTemplateMerged = res.data.data[0];
8800
- releaseUrl.value = res.data.data[1];
8801
8794
  data.data.mediaServerPo.url = res.data.data[2];
8802
8795
  videoInfo2.value = {
8803
8796
  ...data.data,