inl-ui 0.1.53 → 0.1.55
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 +49 -49
- package/dist/components/index.cjs +30 -5
- package/dist/components/index.js +12 -4
- package/dist/iconfont.js +1 -1
- package/dist/index.cjs +13 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -5
- package/dist/theme/index.js +70 -70
- package/dist/theme/scripts/dark-vars.js +21 -21
- package/dist/theme/scripts/default-vars.js +25 -25
- package/dist/theme/scripts/light-vars.js +22 -22
- package/dist/theme/style/color/bezierEasing.less +110 -110
- package/dist/theme/style/color/colorPalette.less +81 -81
- package/dist/theme/style/color/colors.less +162 -162
- package/dist/theme/style/color/tinyColor.less +1184 -1184
- package/dist/theme/style/compact.less +4 -4
- package/dist/theme/style/dark.less +4 -4
- package/dist/theme/style/default.less +4 -4
- package/dist/theme/style/index.less +2 -2
- package/dist/theme/style/index.tsx +2 -2
- package/dist/theme/style/themes/compact.less +295 -295
- package/dist/theme/style/themes/dark.less +790 -790
- package/dist/theme/style/themes/default.less +1067 -1067
- package/dist/theme/style/themes/index.less +7 -7
- package/dist/theme/style/themes/var-dark.less +343 -343
- package/dist/theme/style/themes/var-default.less +184 -184
- package/dist/theme/style/themes/variable.less +1122 -1122
- package/dist/theme/style/variable.less +4 -4
- package/dist/video/index.cjs +30 -5
- package/dist/video/index.js +12 -4
- package/package.json +3 -2
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
|
+
|
|
@@ -13,16 +13,32 @@ var dayjs = require('dayjs');
|
|
|
13
13
|
var qiankun = require('qiankun');
|
|
14
14
|
require('vite-plugin-qiankun');
|
|
15
15
|
var renderWithQiankun = require('vite-plugin-qiankun/dist/helper');
|
|
16
|
-
var EZUIKit = require('ezuikit-js');
|
|
17
16
|
var mobile = require('@sszj-temp/mobile');
|
|
18
17
|
var marked = require('marked');
|
|
19
18
|
|
|
20
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
20
|
|
|
21
|
+
function _interopNamespace(e) {
|
|
22
|
+
if (e && e.__esModule) return e;
|
|
23
|
+
var n = Object.create(null);
|
|
24
|
+
if (e) {
|
|
25
|
+
Object.keys(e).forEach(function (k) {
|
|
26
|
+
if (k !== 'default') {
|
|
27
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
28
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return e[k]; }
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
n["default"] = e;
|
|
36
|
+
return Object.freeze(n);
|
|
37
|
+
}
|
|
38
|
+
|
|
22
39
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
|
|
23
40
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
24
41
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
25
|
-
var EZUIKit__default = /*#__PURE__*/_interopDefaultLegacy(EZUIKit);
|
|
26
42
|
|
|
27
43
|
const config = {
|
|
28
44
|
prefix: "inl",
|
|
@@ -9650,7 +9666,9 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9650
9666
|
newDiv.style.top = mousedownEvent.offsetY + begin.top + "px";
|
|
9651
9667
|
boxDom.appendChild(newDiv);
|
|
9652
9668
|
const thumbnailDom = document.getElementById("thumbnail_" + uuid.value);
|
|
9669
|
+
const footerDom = document.getElementById("footer_" + uuid.value);
|
|
9653
9670
|
thumbnailDom.style.display = "none";
|
|
9671
|
+
footerDom.style.display = "none";
|
|
9654
9672
|
playerDom?.addEventListener("mousemove", mousemoveFun);
|
|
9655
9673
|
};
|
|
9656
9674
|
const mouseupFun = mouseupEvent => {
|
|
@@ -9660,7 +9678,9 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9660
9678
|
playerDom?.removeEventListener("mousemove", mousemoveFun);
|
|
9661
9679
|
newDiv.remove();
|
|
9662
9680
|
const thumbnailDom = document.getElementById("thumbnail_" + uuid.value);
|
|
9681
|
+
const footerDom = document.getElementById("footer_" + uuid.value);
|
|
9663
9682
|
thumbnailDom.style.display = "inline";
|
|
9683
|
+
footerDom.style.display = "flex";
|
|
9664
9684
|
const scaleX = Math.abs(mousemoveEvent.pageX - mousedownEvent.pageX) / boxDom.offsetWidth;
|
|
9665
9685
|
const scaleY = Math.abs(mousemoveEvent.pageY - mousedownEvent.pageY) / boxDom.offsetHeight;
|
|
9666
9686
|
const playerLeft = Math.min(mousedownEvent.offsetX, mousemoveEvent.offsetX) * -1 / scaleX;
|
|
@@ -9796,7 +9816,8 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9796
9816
|
"class": "value"
|
|
9797
9817
|
}, [info.displayValue && info.displayValue !== "null" ? info.displayValue + " " : ""]), vue.createVNode("div", null, [info.unit])]);
|
|
9798
9818
|
})]) : "", vue.createVNode("div", {
|
|
9799
|
-
"class": "footer-min"
|
|
9819
|
+
"class": "footer-min",
|
|
9820
|
+
"id": "footer_" + uuid.value
|
|
9800
9821
|
}, [vue.createVNode("div", {
|
|
9801
9822
|
"class": "name-min"
|
|
9802
9823
|
}, [vue.createVNode("span", null, [camera.value?.name])]), vue.createVNode("div", {
|
|
@@ -10434,8 +10455,12 @@ const CloudVideo = vue.defineComponent({
|
|
|
10434
10455
|
if (prop.template) {
|
|
10435
10456
|
opt.height = prop.height;
|
|
10436
10457
|
}
|
|
10437
|
-
|
|
10438
|
-
|
|
10458
|
+
Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('ezuikit-js')); }).then(async ({
|
|
10459
|
+
default: EZUIKit
|
|
10460
|
+
}) => {
|
|
10461
|
+
player = await new EZUIKit.EZUIKitPlayer(opt);
|
|
10462
|
+
_context.emit("complete", player);
|
|
10463
|
+
});
|
|
10439
10464
|
};
|
|
10440
10465
|
vue.onMounted(() => {
|
|
10441
10466
|
initVideo();
|
package/dist/components/index.js
CHANGED
|
@@ -9,7 +9,6 @@ import dayjs from 'dayjs';
|
|
|
9
9
|
import { loadMicroApp } from 'qiankun';
|
|
10
10
|
import 'vite-plugin-qiankun';
|
|
11
11
|
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper';
|
|
12
|
-
import EZUIKit from 'ezuikit-js';
|
|
13
12
|
import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
14
13
|
import { marked } from 'marked';
|
|
15
14
|
|
|
@@ -9639,7 +9638,9 @@ const VideoBoxV2 = defineComponent({
|
|
|
9639
9638
|
newDiv.style.top = mousedownEvent.offsetY + begin.top + "px";
|
|
9640
9639
|
boxDom.appendChild(newDiv);
|
|
9641
9640
|
const thumbnailDom = document.getElementById("thumbnail_" + uuid.value);
|
|
9641
|
+
const footerDom = document.getElementById("footer_" + uuid.value);
|
|
9642
9642
|
thumbnailDom.style.display = "none";
|
|
9643
|
+
footerDom.style.display = "none";
|
|
9643
9644
|
playerDom?.addEventListener("mousemove", mousemoveFun);
|
|
9644
9645
|
};
|
|
9645
9646
|
const mouseupFun = mouseupEvent => {
|
|
@@ -9649,7 +9650,9 @@ const VideoBoxV2 = defineComponent({
|
|
|
9649
9650
|
playerDom?.removeEventListener("mousemove", mousemoveFun);
|
|
9650
9651
|
newDiv.remove();
|
|
9651
9652
|
const thumbnailDom = document.getElementById("thumbnail_" + uuid.value);
|
|
9653
|
+
const footerDom = document.getElementById("footer_" + uuid.value);
|
|
9652
9654
|
thumbnailDom.style.display = "inline";
|
|
9655
|
+
footerDom.style.display = "flex";
|
|
9653
9656
|
const scaleX = Math.abs(mousemoveEvent.pageX - mousedownEvent.pageX) / boxDom.offsetWidth;
|
|
9654
9657
|
const scaleY = Math.abs(mousemoveEvent.pageY - mousedownEvent.pageY) / boxDom.offsetHeight;
|
|
9655
9658
|
const playerLeft = Math.min(mousedownEvent.offsetX, mousemoveEvent.offsetX) * -1 / scaleX;
|
|
@@ -9785,7 +9788,8 @@ const VideoBoxV2 = defineComponent({
|
|
|
9785
9788
|
"class": "value"
|
|
9786
9789
|
}, [info.displayValue && info.displayValue !== "null" ? info.displayValue + " " : ""]), createVNode("div", null, [info.unit])]);
|
|
9787
9790
|
})]) : "", createVNode("div", {
|
|
9788
|
-
"class": "footer-min"
|
|
9791
|
+
"class": "footer-min",
|
|
9792
|
+
"id": "footer_" + uuid.value
|
|
9789
9793
|
}, [createVNode("div", {
|
|
9790
9794
|
"class": "name-min"
|
|
9791
9795
|
}, [createVNode("span", null, [camera.value?.name])]), createVNode("div", {
|
|
@@ -10423,8 +10427,12 @@ const CloudVideo = defineComponent({
|
|
|
10423
10427
|
if (prop.template) {
|
|
10424
10428
|
opt.height = prop.height;
|
|
10425
10429
|
}
|
|
10426
|
-
|
|
10427
|
-
|
|
10430
|
+
import('ezuikit-js').then(async ({
|
|
10431
|
+
default: EZUIKit
|
|
10432
|
+
}) => {
|
|
10433
|
+
player = await new EZUIKit.EZUIKitPlayer(opt);
|
|
10434
|
+
_context.emit("complete", player);
|
|
10435
|
+
});
|
|
10428
10436
|
};
|
|
10429
10437
|
onMounted(() => {
|
|
10430
10438
|
initVideo();
|