inl-ui 0.1.47 → 0.1.49
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 +43 -23
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +43 -23
- package/dist/components/style.css +1 -1
- package/dist/iconfont.js +1 -1
- package/dist/index.cjs +44 -24
- package/dist/index.d.ts +3 -1
- package/dist/index.js +44 -24
- package/dist/style.css +2 -2
- 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/utils/index.cjs +1 -4
- package/dist/utils/index.js +1 -4
- package/dist/video/index.cjs +6 -2
- package/dist/video/index.js +6 -2
- package/dist/video/style.css +1 -1
- package/dist/videoMobile/style.css +1 -1
- package/package.json +2 -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
|
+
|
|
@@ -102,9 +102,6 @@ class ApiInstance {
|
|
|
102
102
|
...config$1
|
|
103
103
|
});
|
|
104
104
|
this.instance.interceptors.request.use(config2 => {
|
|
105
|
-
getUserinfo();
|
|
106
|
-
getToken();
|
|
107
|
-
getCorpId();
|
|
108
105
|
if (_.isPlainObject(config2.data)) {
|
|
109
106
|
for (const key in config2.data) {
|
|
110
107
|
if (config2.data[key] === void 0) {
|
|
@@ -119,7 +116,7 @@ class ApiInstance {
|
|
|
119
116
|
const commonHeaders = getCommonHeaders();
|
|
120
117
|
for (const key in commonHeaders) {
|
|
121
118
|
if (key !== "Content-Type") {
|
|
122
|
-
config2.headers[key] = commonHeaders[key];
|
|
119
|
+
config2.headers[key] = commonHeaders[key] || void 0;
|
|
123
120
|
}
|
|
124
121
|
}
|
|
125
122
|
return config2;
|
|
@@ -6464,15 +6461,20 @@ function useMicroApp(appList) {
|
|
|
6464
6461
|
entry: microAppDefine.entry,
|
|
6465
6462
|
container: `#${domId}`
|
|
6466
6463
|
});
|
|
6467
|
-
const microApp = {
|
|
6464
|
+
const microApp = vue.ref({
|
|
6468
6465
|
name: microAppName,
|
|
6469
6466
|
domId,
|
|
6470
6467
|
app,
|
|
6471
|
-
mounted: true
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6468
|
+
mounted: true,
|
|
6469
|
+
loading: true
|
|
6470
|
+
});
|
|
6471
|
+
loadAppList.value.push(microApp.value);
|
|
6472
|
+
loadedApp.set(microAppName, microApp.value);
|
|
6473
|
+
try {
|
|
6474
|
+
await app.mountPromise;
|
|
6475
|
+
} finally {
|
|
6476
|
+
microApp.value.loading = false;
|
|
6477
|
+
}
|
|
6476
6478
|
}, 10);
|
|
6477
6479
|
}, 100);
|
|
6478
6480
|
vue.watch(route, handleRouteChange, {
|
|
@@ -7173,10 +7175,16 @@ const PageContent = vue.defineComponent({
|
|
|
7173
7175
|
fullscreen: isFullscreen.value
|
|
7174
7176
|
}],
|
|
7175
7177
|
"ref": props.pageContainerRef
|
|
7176
|
-
}, [appDomList.value.map(item =>
|
|
7177
|
-
|
|
7178
|
-
"
|
|
7179
|
-
|
|
7178
|
+
}, [appDomList.value.map(item => {
|
|
7179
|
+
const microApp = loadAppList.value.find(a => a.domId === item.id);
|
|
7180
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
7181
|
+
"key": item.id,
|
|
7182
|
+
"id": item.id,
|
|
7183
|
+
"class": {
|
|
7184
|
+
loading: microApp && microApp.loading
|
|
7185
|
+
}
|
|
7186
|
+
}, null), [[vue.vShow, item.name === activeAppName.value]]);
|
|
7187
|
+
}), iframeList.value.map(item => {
|
|
7180
7188
|
const show = item.id === activeKey.value;
|
|
7181
7189
|
if (item.reqCode === 200 || item.reqCode === void 0) {
|
|
7182
7190
|
return vue.createVNode("iframe", {
|
|
@@ -7936,7 +7944,8 @@ const Login = vue.defineComponent({
|
|
|
7936
7944
|
bg: {
|
|
7937
7945
|
default: "",
|
|
7938
7946
|
type: String
|
|
7939
|
-
}
|
|
7947
|
+
},
|
|
7948
|
+
loginFn: Function
|
|
7940
7949
|
},
|
|
7941
7950
|
setup(prop, {
|
|
7942
7951
|
emit
|
|
@@ -7953,14 +7962,20 @@ const Login = vue.defineComponent({
|
|
|
7953
7962
|
vue.provide("platformLogo", prop.systemLogo);
|
|
7954
7963
|
const handleSubmit = async e => {
|
|
7955
7964
|
const LoginFun = new Login$1();
|
|
7956
|
-
const
|
|
7965
|
+
const params = {
|
|
7957
7966
|
username: e.username,
|
|
7958
7967
|
password: e.password
|
|
7959
|
-
}
|
|
7960
|
-
if (
|
|
7961
|
-
|
|
7962
|
-
|
|
7968
|
+
};
|
|
7969
|
+
if (prop.loginFn) {
|
|
7970
|
+
await prop.loginFn(params);
|
|
7971
|
+
} else {
|
|
7972
|
+
const res = await LoginFun.getTokenByCode(params);
|
|
7973
|
+
if (!res.data) {
|
|
7974
|
+
throw new Error("\u767B\u9646\u5931\u8D25");
|
|
7975
|
+
}
|
|
7963
7976
|
}
|
|
7977
|
+
antDesignVue.message.success("\u767B\u5F55\u6210\u529F");
|
|
7978
|
+
emit("login");
|
|
7964
7979
|
await vue.nextTick();
|
|
7965
7980
|
router.push("/");
|
|
7966
7981
|
};
|
|
@@ -7982,7 +7997,8 @@ const Login = vue.defineComponent({
|
|
|
7982
7997
|
"alt": ""
|
|
7983
7998
|
}, null)]) : vue.createVNode(leftImg, null, null), vue.createVNode(loginBox, {
|
|
7984
7999
|
"onSubmit": handleSubmit,
|
|
7985
|
-
"autoMsg": true
|
|
8000
|
+
"autoMsg": true,
|
|
8001
|
+
"loginFn": prop.loginFn
|
|
7986
8002
|
}, null)]), vue.createVNode("p", {
|
|
7987
8003
|
"class": "copyright-information"
|
|
7988
8004
|
}, [prop.copyright])]);
|
|
@@ -9713,6 +9729,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9713
9729
|
};
|
|
9714
9730
|
const showChangeDialog = vue.ref(false);
|
|
9715
9731
|
const checkChange = res => {
|
|
9732
|
+
camera.value = void 0;
|
|
9716
9733
|
showChangeDialog.value = false;
|
|
9717
9734
|
setNewCamera(res[0].uuid);
|
|
9718
9735
|
_context.emit("change", res[0].uuid);
|
|
@@ -9720,16 +9737,19 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9720
9737
|
const renderChangeCamera = () => {
|
|
9721
9738
|
return vue.createVNode(vue.resolveComponent("a-modal"), {
|
|
9722
9739
|
"title": "\u66F4\u6362\u6444\u50CF\u5934",
|
|
9740
|
+
"class": "",
|
|
9723
9741
|
"visible": showChangeDialog.value,
|
|
9724
9742
|
"footer": null,
|
|
9725
9743
|
"onCancel": () => {
|
|
9726
9744
|
showChangeDialog.value = false;
|
|
9727
9745
|
}
|
|
9728
9746
|
}, {
|
|
9729
|
-
default: () => [
|
|
9747
|
+
default: () => [vue.createVNode("div", {
|
|
9748
|
+
"class": "changeCameraDialog"
|
|
9749
|
+
}, [showChangeDialog.value ? vue.createVNode(Tree, {
|
|
9730
9750
|
"checkable": true,
|
|
9731
9751
|
"onCheckChange": checkChange
|
|
9732
|
-
}, null) : ""]
|
|
9752
|
+
}, null) : ""])]
|
|
9733
9753
|
});
|
|
9734
9754
|
};
|
|
9735
9755
|
return () => vue.createVNode("div", {
|
|
@@ -154,6 +154,7 @@ declare const _default$h: vue.DefineComponent<{
|
|
|
154
154
|
default: string;
|
|
155
155
|
type: StringConstructor;
|
|
156
156
|
};
|
|
157
|
+
loginFn: FunctionConstructor;
|
|
157
158
|
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "login"[], "login", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
158
159
|
isClould: {
|
|
159
160
|
default: boolean;
|
|
@@ -180,6 +181,7 @@ declare const _default$h: vue.DefineComponent<{
|
|
|
180
181
|
default: string;
|
|
181
182
|
type: StringConstructor;
|
|
182
183
|
};
|
|
184
|
+
loginFn: FunctionConstructor;
|
|
183
185
|
}>> & {
|
|
184
186
|
onLogin?: ((...args: any[]) => any) | undefined;
|
|
185
187
|
}, {
|
package/dist/components/index.js
CHANGED
|
@@ -91,9 +91,6 @@ class ApiInstance {
|
|
|
91
91
|
...config$1
|
|
92
92
|
});
|
|
93
93
|
this.instance.interceptors.request.use(config2 => {
|
|
94
|
-
getUserinfo();
|
|
95
|
-
getToken();
|
|
96
|
-
getCorpId();
|
|
97
94
|
if (isPlainObject$1(config2.data)) {
|
|
98
95
|
for (const key in config2.data) {
|
|
99
96
|
if (config2.data[key] === void 0) {
|
|
@@ -108,7 +105,7 @@ class ApiInstance {
|
|
|
108
105
|
const commonHeaders = getCommonHeaders();
|
|
109
106
|
for (const key in commonHeaders) {
|
|
110
107
|
if (key !== "Content-Type") {
|
|
111
|
-
config2.headers[key] = commonHeaders[key];
|
|
108
|
+
config2.headers[key] = commonHeaders[key] || void 0;
|
|
112
109
|
}
|
|
113
110
|
}
|
|
114
111
|
return config2;
|
|
@@ -6453,15 +6450,20 @@ function useMicroApp(appList) {
|
|
|
6453
6450
|
entry: microAppDefine.entry,
|
|
6454
6451
|
container: `#${domId}`
|
|
6455
6452
|
});
|
|
6456
|
-
const microApp = {
|
|
6453
|
+
const microApp = ref({
|
|
6457
6454
|
name: microAppName,
|
|
6458
6455
|
domId,
|
|
6459
6456
|
app,
|
|
6460
|
-
mounted: true
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6457
|
+
mounted: true,
|
|
6458
|
+
loading: true
|
|
6459
|
+
});
|
|
6460
|
+
loadAppList.value.push(microApp.value);
|
|
6461
|
+
loadedApp.set(microAppName, microApp.value);
|
|
6462
|
+
try {
|
|
6463
|
+
await app.mountPromise;
|
|
6464
|
+
} finally {
|
|
6465
|
+
microApp.value.loading = false;
|
|
6466
|
+
}
|
|
6465
6467
|
}, 10);
|
|
6466
6468
|
}, 100);
|
|
6467
6469
|
watch(route, handleRouteChange, {
|
|
@@ -7162,10 +7164,16 @@ const PageContent = defineComponent({
|
|
|
7162
7164
|
fullscreen: isFullscreen.value
|
|
7163
7165
|
}],
|
|
7164
7166
|
"ref": props.pageContainerRef
|
|
7165
|
-
}, [appDomList.value.map(item =>
|
|
7166
|
-
|
|
7167
|
-
"
|
|
7168
|
-
|
|
7167
|
+
}, [appDomList.value.map(item => {
|
|
7168
|
+
const microApp = loadAppList.value.find(a => a.domId === item.id);
|
|
7169
|
+
return withDirectives(createVNode("div", {
|
|
7170
|
+
"key": item.id,
|
|
7171
|
+
"id": item.id,
|
|
7172
|
+
"class": {
|
|
7173
|
+
loading: microApp && microApp.loading
|
|
7174
|
+
}
|
|
7175
|
+
}, null), [[vShow, item.name === activeAppName.value]]);
|
|
7176
|
+
}), iframeList.value.map(item => {
|
|
7169
7177
|
const show = item.id === activeKey.value;
|
|
7170
7178
|
if (item.reqCode === 200 || item.reqCode === void 0) {
|
|
7171
7179
|
return createVNode("iframe", {
|
|
@@ -7925,7 +7933,8 @@ const Login = defineComponent({
|
|
|
7925
7933
|
bg: {
|
|
7926
7934
|
default: "",
|
|
7927
7935
|
type: String
|
|
7928
|
-
}
|
|
7936
|
+
},
|
|
7937
|
+
loginFn: Function
|
|
7929
7938
|
},
|
|
7930
7939
|
setup(prop, {
|
|
7931
7940
|
emit
|
|
@@ -7942,14 +7951,20 @@ const Login = defineComponent({
|
|
|
7942
7951
|
provide("platformLogo", prop.systemLogo);
|
|
7943
7952
|
const handleSubmit = async e => {
|
|
7944
7953
|
const LoginFun = new Login$1();
|
|
7945
|
-
const
|
|
7954
|
+
const params = {
|
|
7946
7955
|
username: e.username,
|
|
7947
7956
|
password: e.password
|
|
7948
|
-
}
|
|
7949
|
-
if (
|
|
7950
|
-
|
|
7951
|
-
|
|
7957
|
+
};
|
|
7958
|
+
if (prop.loginFn) {
|
|
7959
|
+
await prop.loginFn(params);
|
|
7960
|
+
} else {
|
|
7961
|
+
const res = await LoginFun.getTokenByCode(params);
|
|
7962
|
+
if (!res.data) {
|
|
7963
|
+
throw new Error("\u767B\u9646\u5931\u8D25");
|
|
7964
|
+
}
|
|
7952
7965
|
}
|
|
7966
|
+
message.success("\u767B\u5F55\u6210\u529F");
|
|
7967
|
+
emit("login");
|
|
7953
7968
|
await nextTick();
|
|
7954
7969
|
router.push("/");
|
|
7955
7970
|
};
|
|
@@ -7971,7 +7986,8 @@ const Login = defineComponent({
|
|
|
7971
7986
|
"alt": ""
|
|
7972
7987
|
}, null)]) : createVNode(leftImg, null, null), createVNode(loginBox, {
|
|
7973
7988
|
"onSubmit": handleSubmit,
|
|
7974
|
-
"autoMsg": true
|
|
7989
|
+
"autoMsg": true,
|
|
7990
|
+
"loginFn": prop.loginFn
|
|
7975
7991
|
}, null)]), createVNode("p", {
|
|
7976
7992
|
"class": "copyright-information"
|
|
7977
7993
|
}, [prop.copyright])]);
|
|
@@ -9702,6 +9718,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9702
9718
|
};
|
|
9703
9719
|
const showChangeDialog = ref(false);
|
|
9704
9720
|
const checkChange = res => {
|
|
9721
|
+
camera.value = void 0;
|
|
9705
9722
|
showChangeDialog.value = false;
|
|
9706
9723
|
setNewCamera(res[0].uuid);
|
|
9707
9724
|
_context.emit("change", res[0].uuid);
|
|
@@ -9709,16 +9726,19 @@ const VideoBoxV2 = defineComponent({
|
|
|
9709
9726
|
const renderChangeCamera = () => {
|
|
9710
9727
|
return createVNode(resolveComponent("a-modal"), {
|
|
9711
9728
|
"title": "\u66F4\u6362\u6444\u50CF\u5934",
|
|
9729
|
+
"class": "",
|
|
9712
9730
|
"visible": showChangeDialog.value,
|
|
9713
9731
|
"footer": null,
|
|
9714
9732
|
"onCancel": () => {
|
|
9715
9733
|
showChangeDialog.value = false;
|
|
9716
9734
|
}
|
|
9717
9735
|
}, {
|
|
9718
|
-
default: () => [
|
|
9736
|
+
default: () => [createVNode("div", {
|
|
9737
|
+
"class": "changeCameraDialog"
|
|
9738
|
+
}, [showChangeDialog.value ? createVNode(Tree, {
|
|
9719
9739
|
"checkable": true,
|
|
9720
9740
|
"onCheckChange": checkChange
|
|
9721
|
-
}, null) : ""]
|
|
9741
|
+
}, null) : ""])]
|
|
9722
9742
|
});
|
|
9723
9743
|
};
|
|
9724
9744
|
return () => createVNode("div", {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.playVideos{display:flex;flex-direction:column;height:100%;padding-left:20px}.playVideos .operate{display:flex;justify-content:space-between;margin:5px 0}.playVideos .operate .button{cursor:pointer}.playVideos .grid{display:grid;flex:1;overflow:hidden}.playVideos .grid .video{background:#000;border:1px solid hsla(216,7%,59%,.3);height:100%;object-fit:fill;overflow:hidden;width:100%}.playVideos .grid.full{height:100%;left:0;position:fixed;top:0;width:100%;z-index:10}.playVideos .type1{grid-template-columns:1fr;grid-template-rows:1fr}.playVideos .type4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.playVideos .type8{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.playVideos .type8 .video:first-child{grid-column:1/4;grid-row:1/4}.playVideos .type9{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.playVideos .type13{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.playVideos .type13 .video:first-child{grid-column:1/3;grid-row:1/3}.playVideos .type16{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}@keyframes moveBottom{0%{bottom:0}to{bottom:-66px}}.videoComponent{background:#000;height:100%;left:0;position:relative;top:0;width:100%}.videoComponent.fill{object-fit:fill}.videoComponent.contain{object-fit:contain}.videoBox{height:100%;overflow:hidden;position:relative}.videoBox .videoStatic{height:100%;object-fit:fill;width:100%}.videoBox .thumbnail{background:#000;height:30%;left:70%;position:absolute;top:70%;width:30%}.videoBox .thumbnail .chooseField{border:1px solid red;height:100%;left:100%;position:absolute;top:100%;width:100%}.videoBox #tempDiv{border:2px solid red;position:absolute}.videoBox.alarm:before{border:2px solid #ea5858;box-shadow:inset 0 0 10px 8px rgba(234,88,88,.5);content:"";height:100%;pointer-events:none;position:absolute;top:0;width:100%;z-index:7}.videoBox:hover .selectFields{animation-duration:1s;animation-fill-mode:both;animation-name:moveBottom}.videoBox:hover .footer-min{display:flex}.videoBox:hover .footer-min .name-min span{display:block}.videoBox:hover .footer-min .tool{display:flex}.videoBox .selectFields{background:rgba(0,0,0,.3);bottom:0;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr;height:66px;position:absolute;width:100%}.videoBox .selectFields .info{border:0;color:#fff;line-height:33px;overflow:hidden;padding:0 5px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.videoBox .selectFields .info .value{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoBox .footer-min{align-items:center;backdrop-filter:blur(10px);background:hsla(0,0%,100%,.04);border-radius:4px 4px 0 0;bottom:0;display:none;height:44px;justify-content:space-between;position:absolute;width:100%}.videoBox .footer-min .name-min{align-items:center;display:flex;padding-left:15px}.videoBox .footer-min .name-min span{color:#fff;display:none;font-size:16px;font-weight:600}.videoBox .footer-min .tool{display:none}.videoBox .footer-min .tool img{cursor:pointer;height:20px;margin:3px 8px;width:20px}.videoBox .footer-min .tool .imgOut{align-items:center;border-radius:20%;cursor:pointer;display:flex;height:28px;justify-content:center;margin:0 3px;width:28px}.videoBox .footer-min .tool .active{background-color:hsla(0,0%,100%,.3)}.videoControls{align-items:center;display:flex;flex-direction:column;width:100%}.videoControls .videoControl{height:126px;position:relative;width:126px}.videoControls .videoControl .bg{height:100%;position:relative;width:100%}.videoControls .videoControl img{cursor:pointer;position:absolute}.videoControls .videoControl .up{left:52px;top:14px}.videoControls .videoControl .lup{left:26px;top:26px;transform:rotate(-45deg)}.videoControls .videoControl .rup{left:78px;top:27px;transform:rotate(45deg)}.videoControls .videoControl .left{left:14px;top:52px;transform:rotate(-90deg)}.videoControls .videoControl .right{left:90px;top:52px;transform:rotate(90deg)}.videoControls .videoControl .ldown{left:26px;top:78px;transform:rotate(215deg)}.videoControls .videoControl .down{left:52px;top:90px;transform:rotate(180deg)}.videoControls .videoControl .rdown{left:78px;top:78px;transform:rotate(135deg)}.videoControls .btns{background:#e0e7f2;border-radius:19px;height:28px;margin:8px 8px 0;padding:3px;width:56px}.videoControls .btns img{cursor:pointer;margin-right:1px}
|
|
1
|
+
.playVideos{display:flex;flex-direction:column;height:100%;padding-left:20px}.playVideos .operate{display:flex;justify-content:space-between;margin:5px 0}.playVideos .operate .button{cursor:pointer}.playVideos .grid{display:grid;flex:1;overflow:hidden}.playVideos .grid .video{background:#000;border:1px solid hsla(216,7%,59%,.3);height:100%;object-fit:fill;overflow:hidden;width:100%}.playVideos .grid.full{height:100%;left:0;position:fixed;top:0;width:100%;z-index:10}.playVideos .type1{grid-template-columns:1fr;grid-template-rows:1fr}.playVideos .type4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.playVideos .type8{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.playVideos .type8 .video:first-child{grid-column:1/4;grid-row:1/4}.playVideos .type9{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.playVideos .type13{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.playVideos .type13 .video:first-child{grid-column:1/3;grid-row:1/3}.playVideos .type16{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}@keyframes moveBottom{0%{bottom:0}to{bottom:-66px}}.videoComponent{background:#000;height:100%;left:0;position:relative;top:0;width:100%}.videoComponent.fill{object-fit:fill}.videoComponent.contain{object-fit:contain}.videoBox{height:100%;overflow:hidden;position:relative}.videoBox .videoStatic{height:100%;object-fit:fill;width:100%}.videoBox .thumbnail{background:#000;height:30%;left:70%;position:absolute;top:70%;width:30%}.videoBox .thumbnail .chooseField{border:1px solid red;height:100%;left:100%;position:absolute;top:100%;width:100%}.videoBox #tempDiv{border:2px solid red;position:absolute}.videoBox.alarm:before{border:2px solid #ea5858;box-shadow:inset 0 0 10px 8px rgba(234,88,88,.5);content:"";height:100%;pointer-events:none;position:absolute;top:0;width:100%;z-index:7}.videoBox:hover .selectFields{animation-duration:1s;animation-fill-mode:both;animation-name:moveBottom}.videoBox:hover .footer-min{display:flex}.videoBox:hover .footer-min .name-min span{display:block}.videoBox:hover .footer-min .tool{display:flex}.videoBox .selectFields{background:rgba(0,0,0,.3);bottom:0;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr;height:66px;position:absolute;width:100%}.videoBox .selectFields .info{border:0;color:#fff;line-height:33px;overflow:hidden;padding:0 5px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.videoBox .selectFields .info .value{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoBox .footer-min{align-items:center;backdrop-filter:blur(10px);background:hsla(0,0%,100%,.04);border-radius:4px 4px 0 0;bottom:0;display:none;height:44px;justify-content:space-between;position:absolute;width:100%}.videoBox .footer-min .name-min{align-items:center;display:flex;padding-left:15px}.videoBox .footer-min .name-min span{color:#fff;display:none;font-size:16px;font-weight:600}.videoBox .footer-min .tool{display:none}.videoBox .footer-min .tool img{cursor:pointer;height:20px;margin:3px 8px;width:20px}.videoBox .footer-min .tool .imgOut{align-items:center;border-radius:20%;cursor:pointer;display:flex;height:28px;justify-content:center;margin:0 3px;width:28px}.videoBox .footer-min .tool .active{background-color:hsla(0,0%,100%,.3)}.videoControls{align-items:center;display:flex;flex-direction:column;width:100%}.videoControls .videoControl{height:126px;position:relative;width:126px}.videoControls .videoControl .bg{height:100%;position:relative;width:100%}.videoControls .videoControl img{cursor:pointer;position:absolute}.videoControls .videoControl .up{left:52px;top:14px}.videoControls .videoControl .lup{left:26px;top:26px;transform:rotate(-45deg)}.videoControls .videoControl .rup{left:78px;top:27px;transform:rotate(45deg)}.videoControls .videoControl .left{left:14px;top:52px;transform:rotate(-90deg)}.videoControls .videoControl .right{left:90px;top:52px;transform:rotate(90deg)}.videoControls .videoControl .ldown{left:26px;top:78px;transform:rotate(215deg)}.videoControls .videoControl .down{left:52px;top:90px;transform:rotate(180deg)}.videoControls .videoControl .rdown{left:78px;top:78px;transform:rotate(135deg)}.videoControls .btns{background:#e0e7f2;border-radius:19px;height:28px;margin:8px 8px 0;padding:3px;width:56px}.videoControls .btns img{cursor:pointer;margin-right:1px}.changeCameraDialog{height:600px}
|
|
2
2
|
.videoAlarmDia.dark{background:linear-gradient(90deg,#3e7eff,#1e4e75 30%,#1e4e75 70%,#3e7eff);padding:1px}.videoAlarmDia.dark .ant-modal-close{color:#fff}.videoAlarmDia.dark .ant-modal-header{background-color:#22396f;border-bottom-color:transparent;padding-left:20px}.videoAlarmDia.dark .ant-modal-header .ant-modal-title{align-items:center;background-image:linear-gradient(90deg,#2852a8 0,rgba(40,82,168,0) 50%);color:#fff;display:flex;height:42px;padding-left:10px}.videoAlarmDia.dark .ant-modal-content{background-color:#22396f}.videoAlarmDia.dark .ant-modal-content .body,.videoAlarmDia.dark .ant-modal-content .body .alarmList .alarm .name,.videoAlarmDia.dark .ant-modal-content .body .alarmList .title,.videoAlarmDia.dark .ant-modal-content .body .themeImg{color:#fff}.videoAlarmDia.dark .ant-modal-content .body .tabs .tabContainer .allTab .tab{background:#ffffff1a;color:#fff}.videoAlarmDia.dark .ant-modal-content .body .tabs .tabContainer .allTab .tab.active{background:#3e7eff;color:#fff}.videoAlarmDia .ant-modal-body{padding-top:18px}.videoAlarmDia .body{display:flex;flex-direction:column;height:660px}.videoAlarmDia .body .title{color:#000;font-size:18px}.videoAlarmDia .body .themeImg{height:18px;margin-right:5px;width:18px}.videoAlarmDia .body .current{align-self:center;display:flex;height:400px;justify-content:center;margin:10px 0 25px;width:750px}.videoAlarmDia .body .current .grid{grid-gap:3px;background-color:transparent;display:grid;height:100%;overflow:hidden;width:100%}.videoAlarmDia .body .current .grid .videoBox{background-color:#000}.videoAlarmDia .body .alarmList{display:flex;flex-wrap:wrap;justify-content:flex-start;max-height:80px;overflow:auto}.videoAlarmDia .body .alarmList .title{font-size:14px;font-weight:600;margin-bottom:10px}.videoAlarmDia .body .alarmList .alarm{align-items:center;border-radius:5px;color:#000;cursor:pointer;height:24px;margin-bottom:10px;margin-right:10px;padding:5px}.videoAlarmDia .body .alarmList .alarm img{height:16px;margin-right:5px;width:16px}.videoAlarmDia .body .alarmList .alarm .name{font-size:14px;white-space:nowrap}.videoAlarmDia .body .alarmList .alarm1{background:rgba(234,88,88,.1);color:#354052}.videoAlarmDia .body .alarmList .alarm2{background:rgba(255,146,20,.1);color:#354052}.videoAlarmDia .body .alarmList .alarm3{background:rgba(255,196,20,.1);color:#354052}.videoAlarmDia .body .alarmList .alarm4{background:rgba(62,126,255,.1);color:#354052}.videoAlarmDia .body .tip{align-items:center;display:flex;margin:0}.videoAlarmDia .body .tip .sumNum{margin-right:16px}.videoAlarmDia .body .tip .timeNum{color:#3e7eff;font-weight:600;margin-right:5px}.videoAlarmDia .body .tabs{align-items:center;display:flex;margin:10px 0 5px}.videoAlarmDia .body .tabs .themeImg{cursor:pointer;overflow:visible}.videoAlarmDia .body .tabs .endIcon{margin-left:10px}.videoAlarmDia .body .tabs .tabContainer{display:flex;overflow:hidden}.videoAlarmDia .body .tabs .tabContainer .allTab{display:flex;height:40px;left:0;position:relative}.videoAlarmDia .body .tabs .tabContainer .allTab .tab{background:#f2f3f8;border-radius:4px;cursor:pointer;font-size:14px;height:32px;line-height:32px;margin-right:10px;padding:0 10px;position:relative;text-align:center;white-space:nowrap}.videoAlarmDia .body .tabs .tabContainer .allTab .tab.active{background:#1d33a2;color:#fff}.videoAlarmDia .body .tabs .tabContainer .allTab .tab.active:after{border:10px solid transparent;border-top-color:#1d33a2;content:"";height:0;left:50%;position:absolute;top:30px;width:0}.videoAlarmDia .body .numLine{align-items:center;display:flex}.videoAlarmDia .body .numLine .cameraNum{color:#3e7eff;font-weight:600}.videoAlarmDia .body .numLine .tipImg{height:18px;margin:0 5px 0 25px;width:18px}.videoAlarmDia .body .numLine .alarmNum{color:#fa4141;font-weight:600}.videoAlarmDia .body .otherAlarm{align-items:center;display:flex}.videoAlarmDia .body .otherAlarm .ant-tag{cursor:pointer;font-size:14px}.videoAlarmDia .body .otherAlarm .tipImg{height:18px;margin-right:5px;width:18px}.videoAlarmDia .body .otherAlarm .annotation{height:12px;margin:2px;width:12px}.videoAlarmDia .body .type1{grid-template-columns:1fr;grid-template-rows:1fr}.videoAlarmDia .body .type4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.videoAlarmDia .body .type8{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.videoAlarmDia .body .type8 .videoBox:first-child{grid-column:1/4;grid-row:1/4}.videoAlarmDia .body .type9{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.videoAlarmDia .body .type13{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.videoAlarmDia .body .type13 .videoBox:first-child{grid-column:1/3;grid-row:1/3}.videoAlarmDia .body .type16{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}
|
|
3
3
|
.cloudVideo{height:100%;width:100%}.cloudVideo.noControl .mobile-ez-ptz-container{display:none!important}
|