inl-ui 0.1.43 → 0.1.45

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
+
@@ -8832,7 +8832,7 @@ const VideoPlayerV2 = vue.defineComponent({
8832
8832
  const renderVideo = () => {
8833
8833
  if (videoInfo2.value.brandTypeCode === "MP4") {
8834
8834
  return vue.createVNode("video", {
8835
- "id": `mp4Player_${uuid}`,
8835
+ "id": `videoPlayer_${uuid}`,
8836
8836
  "class": "videoComponent fill",
8837
8837
  "src": videoInfo2.value.mp4ResourcesPath,
8838
8838
  "autoplay": true,
@@ -12807,7 +12807,7 @@ async function audioToText(file) {
12807
12807
  }
12808
12808
  const {
12809
12809
  result
12810
- } = await fetch(`/api/chat/v1/translate/?path=${path}&session_hash=1`, {
12810
+ } = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
12811
12811
  headers,
12812
12812
  method: "POST"
12813
12813
  }).then(res => res.json());
@@ -8821,7 +8821,7 @@ const VideoPlayerV2 = defineComponent({
8821
8821
  const renderVideo = () => {
8822
8822
  if (videoInfo2.value.brandTypeCode === "MP4") {
8823
8823
  return createVNode("video", {
8824
- "id": `mp4Player_${uuid}`,
8824
+ "id": `videoPlayer_${uuid}`,
8825
8825
  "class": "videoComponent fill",
8826
8826
  "src": videoInfo2.value.mp4ResourcesPath,
8827
8827
  "autoplay": true,
@@ -12796,7 +12796,7 @@ async function audioToText(file) {
12796
12796
  }
12797
12797
  const {
12798
12798
  result
12799
- } = await fetch(`/api/chat/v1/translate/?path=${path}&session_hash=1`, {
12799
+ } = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
12800
12800
  headers,
12801
12801
  method: "POST"
12802
12802
  }).then(res => res.json());