@vtx/player 1.10.8 → 1.10.9
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/lib/api/types.d.ts +3 -0
- package/lib/components/download-tag/index.d.ts +9 -0
- package/lib/components/download-tag/index.js +156 -0
- package/lib/components/download-tag/index.js.map +1 -0
- package/lib/components/download-tag/style/css.js +4 -0
- package/lib/components/download-tag/style/css.js.map +1 -0
- package/lib/components/download-tag/style/index.css +104 -0
- package/lib/components/download-tag/style/index.d.ts +1 -0
- package/lib/components/download-tag/style/index.js +4 -0
- package/lib/components/download-tag/style/index.js.map +1 -0
- package/lib/components/download-tag/style/index.less +125 -0
- package/lib/config.js +1 -1
- package/lib/config.js.map +1 -1
- package/lib/history-control/index.d.ts +1 -0
- package/lib/history-control/index.js +6 -3
- package/lib/history-control/index.js.map +1 -1
- package/lib/history-control-v2/components/grid-item/index.js +17 -4
- package/lib/history-control-v2/components/grid-item/index.js.map +1 -1
- package/lib/history-control-v2/interface.d.ts +1 -0
- package/lib/history-control-v2/utils.js +6 -3
- package/lib/history-control-v2/utils.js.map +1 -1
- package/lib/icons/index.css +4 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/index.js +15 -3
- package/lib/icons/index.js.map +1 -1
- package/lib/icons/index.less +8 -2
- package/lib/utils/index.js +2 -1
- package/lib/utils/index.js.map +1 -1
- package/package.json +1 -1
package/lib/api/types.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ export interface GetHistoryUrlResp {
|
|
|
104
104
|
code: string;
|
|
105
105
|
beginTime: string;
|
|
106
106
|
endTime: string;
|
|
107
|
+
extendedProperties?: any;
|
|
107
108
|
}
|
|
108
109
|
/** 获取历史地址Params */
|
|
109
110
|
export interface GetHistoryUrlParams {
|
|
@@ -128,6 +129,8 @@ export interface GetHistoryUrlParams {
|
|
|
128
129
|
token?: string;
|
|
129
130
|
/** 是否有id */
|
|
130
131
|
hasLabel?: boolean;
|
|
132
|
+
/** 拓展字段 */
|
|
133
|
+
extendedProperties?: any;
|
|
131
134
|
}
|
|
132
135
|
/** 获取海康视频V2版本播放url */
|
|
133
136
|
export interface GetHKV2Url {
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _icons = require("../../icons");
|
|
10
|
+
var _button = _interopRequireDefault(require("antd/lib/button"));
|
|
11
|
+
var _form = _interopRequireDefault(require("antd/lib/form"));
|
|
12
|
+
var _message = _interopRequireDefault(require("antd/lib/message"));
|
|
13
|
+
var _popover = _interopRequireDefault(require("antd/lib/popover"));
|
|
14
|
+
var _timePicker = _interopRequireDefault(require("antd/lib/time-picker"));
|
|
15
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
18
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
20
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
23
|
+
var DownloadTag = function DownloadTag(props) {
|
|
24
|
+
var show = props.show,
|
|
25
|
+
setDownLloadShow = props.setDownLloadShow,
|
|
26
|
+
channel = props.channel;
|
|
27
|
+
var _Form$useForm = _form["default"].useForm(),
|
|
28
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
29
|
+
form = _Form$useForm2[0];
|
|
30
|
+
(0, _react.useEffect)(function () {
|
|
31
|
+
if (channel === null || channel === void 0 ? void 0 : channel.startTime) {
|
|
32
|
+
form.setFieldsValue({
|
|
33
|
+
startTime: (0, _moment["default"])(channel.startTime),
|
|
34
|
+
endTime: (0, _moment["default"])(channel.endTime)
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}, [channel, form]);
|
|
38
|
+
var onFinish = function onFinish(values) {
|
|
39
|
+
var startTime = values.startTime,
|
|
40
|
+
endTime = values.endTime;
|
|
41
|
+
if (startTime >= endTime) {
|
|
42
|
+
_message["default"].warning('开始时间应该小于结束时间');
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
var diffInMs = (0, _moment["default"])(endTime).diff((0, _moment["default"])(startTime), 'minutes');
|
|
46
|
+
if (diffInMs > 60) {
|
|
47
|
+
_message["default"].warning('下载时间间隔不能超过2小时');
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
var url = channel.extendedProperties.downloadInfoDTO.downloadUrl.replace(/starttime=[^&]*/, "starttime=".concat(startTime.format('YYYY_M_D_H_m_s'))).replace(/endtime=[^&]*/, "endtime=".concat(endTime.format('YYYY_M_D_H_m_s')));
|
|
51
|
+
window.open(url);
|
|
52
|
+
};
|
|
53
|
+
var onCancel = function onCancel() {
|
|
54
|
+
setDownLloadShow(false);
|
|
55
|
+
form.resetFields();
|
|
56
|
+
};
|
|
57
|
+
return (0, _jsxRuntime.jsx)(_popover["default"], Object.assign({
|
|
58
|
+
placement: "topRight",
|
|
59
|
+
title: null,
|
|
60
|
+
open: show,
|
|
61
|
+
overlayClassName: "set-tag-video",
|
|
62
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
63
|
+
return triggerNode.parentElement;
|
|
64
|
+
},
|
|
65
|
+
content: (0, _jsxRuntime.jsx)("div", Object.assign({
|
|
66
|
+
className: "set-tag-video-popover"
|
|
67
|
+
}, {
|
|
68
|
+
children: (0, _jsxRuntime.jsxs)(_form["default"], Object.assign({
|
|
69
|
+
name: "basic",
|
|
70
|
+
form: form,
|
|
71
|
+
labelCol: {
|
|
72
|
+
span: 8
|
|
73
|
+
},
|
|
74
|
+
wrapperCol: {
|
|
75
|
+
span: 16
|
|
76
|
+
},
|
|
77
|
+
onFinish: onFinish,
|
|
78
|
+
autoComplete: "off"
|
|
79
|
+
}, {
|
|
80
|
+
children: [(0, _jsxRuntime.jsx)(_form["default"].Item, Object.assign({
|
|
81
|
+
label: "\u5F00\u59CB\u65F6\u95F4",
|
|
82
|
+
name: "startTime",
|
|
83
|
+
rules: [{
|
|
84
|
+
required: true,
|
|
85
|
+
message: '请输入开始时间'
|
|
86
|
+
}]
|
|
87
|
+
}, {
|
|
88
|
+
children: (0, _jsxRuntime.jsx)(_timePicker["default"], {
|
|
89
|
+
placeholder: "\u8BF7\u8F93\u5165\u5F00\u59CB\u65F6\u95F4",
|
|
90
|
+
style: {
|
|
91
|
+
width: '100%'
|
|
92
|
+
},
|
|
93
|
+
popupClassName: "dataPickerWrap",
|
|
94
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
95
|
+
return triggerNode.parentNode;
|
|
96
|
+
},
|
|
97
|
+
allowClear: false
|
|
98
|
+
})
|
|
99
|
+
})), (0, _jsxRuntime.jsx)(_form["default"].Item, Object.assign({
|
|
100
|
+
label: "\u7ED3\u675F\u65F6\u95F4",
|
|
101
|
+
name: "endTime",
|
|
102
|
+
rules: [{
|
|
103
|
+
required: true,
|
|
104
|
+
message: '请输入结束时间'
|
|
105
|
+
}]
|
|
106
|
+
}, {
|
|
107
|
+
children: (0, _jsxRuntime.jsx)(_timePicker["default"], {
|
|
108
|
+
placeholder: "\u8BF7\u8F93\u5165\u5F00\u59CB\u65F6\u95F4",
|
|
109
|
+
style: {
|
|
110
|
+
width: '100%'
|
|
111
|
+
},
|
|
112
|
+
popupClassName: "dataPickerWrap",
|
|
113
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
114
|
+
return triggerNode.parentNode;
|
|
115
|
+
},
|
|
116
|
+
allowClear: false
|
|
117
|
+
})
|
|
118
|
+
})), (0, _jsxRuntime.jsx)(_form["default"].Item, Object.assign({
|
|
119
|
+
wrapperCol: {
|
|
120
|
+
offset: 10,
|
|
121
|
+
span: 14
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
children: (0, _jsxRuntime.jsxs)("div", Object.assign({
|
|
125
|
+
className: "btn"
|
|
126
|
+
}, {
|
|
127
|
+
children: [(0, _jsxRuntime.jsx)(_button["default"], Object.assign({
|
|
128
|
+
type: "ghost",
|
|
129
|
+
onClick: onCancel
|
|
130
|
+
}, {
|
|
131
|
+
children: "\u53D6\u6D88"
|
|
132
|
+
})), (0, _jsxRuntime.jsx)(_button["default"], Object.assign({
|
|
133
|
+
type: "primary",
|
|
134
|
+
htmlType: "submit"
|
|
135
|
+
}, {
|
|
136
|
+
children: "\u786E\u5B9A"
|
|
137
|
+
}))]
|
|
138
|
+
}))
|
|
139
|
+
}))]
|
|
140
|
+
}))
|
|
141
|
+
}))
|
|
142
|
+
}, {
|
|
143
|
+
children: (0, _jsxRuntime.jsx)("div", Object.assign({
|
|
144
|
+
onClick: function onClick() {
|
|
145
|
+
setDownLloadShow(!show);
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
children: (0, _jsxRuntime.jsx)(_icons.DownloadIcon, {
|
|
149
|
+
active: show
|
|
150
|
+
})
|
|
151
|
+
}))
|
|
152
|
+
}));
|
|
153
|
+
};
|
|
154
|
+
DownloadTag.displayName = 'downloadTag';
|
|
155
|
+
var _default = exports["default"] = DownloadTag;
|
|
156
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_jsxRuntime","require","_react","_icons","_button","_interopRequireDefault","_form","_message","_popover","_timePicker","_moment","e","__esModule","_slicedToArray","r","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","t","toString","call","slice","constructor","name","Array","from","test","length","n","l","Symbol","iterator","i","u","f","o","next","Object","done","push","value","isArray","DownloadTag","props","show","setDownLloadShow","channel","_Form$useForm","Form","useForm","_Form$useForm2","form","useEffect","startTime","setFieldsValue","moment","endTime","onFinish","values","message","warning","diffInMs","diff","url","extendedProperties","downloadInfoDTO","downloadUrl","replace","concat","format","window","open","onCancel","resetFields","_jsx","Popover","assign","placement","title","overlayClassName","getPopupContainer","triggerNode","parentElement","content","className","children","_jsxs","labelCol","span","wrapperCol","autoComplete","Item","label","rules","required","TimePicker","placeholder","style","width","popupClassName","parentNode","allowClear","offset","Button","type","onClick","htmlType","DownloadIcon","active","displayName","_default","exports"],"sources":["components/download-tag/index.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect } from 'react';\nimport { DownloadIcon } from '../../icons';\nimport Button from 'antd/lib/button';\nimport Form from 'antd/lib/form';\nimport message from 'antd/lib/message';\nimport Popover from 'antd/lib/popover';\nimport TimePicker from 'antd/lib/time-picker';\nimport moment from 'moment';\nconst DownloadTag = (props) => {\n const { show, setDownLloadShow, channel } = props;\n const [form] = Form.useForm();\n useEffect(() => {\n if (channel === null || channel === void 0 ? void 0 : channel.startTime) {\n form.setFieldsValue({\n startTime: moment(channel.startTime),\n endTime: moment(channel.endTime),\n });\n }\n }, [channel, form]);\n const onFinish = (values) => {\n const { startTime, endTime } = values;\n if (startTime >= endTime) {\n message.warning('开始时间应该小于结束时间');\n return;\n }\n const diffInMs = moment(endTime).diff(moment(startTime), 'minutes');\n if (diffInMs > 60) {\n message.warning('下载时间间隔不能超过2小时');\n return;\n }\n const url = channel.extendedProperties.downloadInfoDTO.downloadUrl\n .replace(/starttime=[^&]*/, `starttime=${startTime.format('YYYY_M_D_H_m_s')}`)\n .replace(/endtime=[^&]*/, `endtime=${endTime.format('YYYY_M_D_H_m_s')}`);\n window.open(url);\n };\n const onCancel = () => {\n setDownLloadShow(false);\n form.resetFields();\n };\n return (_jsx(Popover, Object.assign({ placement: \"topRight\", title: null, open: show, overlayClassName: \"set-tag-video\", getPopupContainer: (triggerNode) => triggerNode.parentElement, content: _jsx(\"div\", Object.assign({ className: \"set-tag-video-popover\" }, { children: _jsxs(Form, Object.assign({ name: \"basic\", form: form, labelCol: { span: 8 }, wrapperCol: { span: 16 }, onFinish: onFinish, autoComplete: \"off\" }, { children: [_jsx(Form.Item, Object.assign({ label: \"\\u5F00\\u59CB\\u65F6\\u95F4\", name: \"startTime\", rules: [{ required: true, message: '请输入开始时间' }] }, { children: _jsx(TimePicker, { placeholder: \"\\u8BF7\\u8F93\\u5165\\u5F00\\u59CB\\u65F6\\u95F4\", style: { width: '100%' }, popupClassName: \"dataPickerWrap\", getPopupContainer: (triggerNode) => triggerNode.parentNode, allowClear: false }) })), _jsx(Form.Item, Object.assign({ label: \"\\u7ED3\\u675F\\u65F6\\u95F4\", name: \"endTime\", rules: [{ required: true, message: '请输入结束时间' }] }, { children: _jsx(TimePicker, { placeholder: \"\\u8BF7\\u8F93\\u5165\\u5F00\\u59CB\\u65F6\\u95F4\", style: { width: '100%' }, popupClassName: \"dataPickerWrap\", getPopupContainer: (triggerNode) => triggerNode.parentNode, allowClear: false }) })), _jsx(Form.Item, Object.assign({ wrapperCol: { offset: 10, span: 14 } }, { children: _jsxs(\"div\", Object.assign({ className: \"btn\" }, { children: [_jsx(Button, Object.assign({ type: \"ghost\", onClick: onCancel }, { children: \"\\u53D6\\u6D88\" })), _jsx(Button, Object.assign({ type: \"primary\", htmlType: \"submit\" }, { children: \"\\u786E\\u5B9A\" }))] })) }))] })) })) }, { children: _jsx(\"div\", Object.assign({ onClick: () => {\n setDownLloadShow(!show);\n } }, { children: _jsx(DownloadIcon, { active: show }) })) })));\n};\nDownloadTag.displayName = 'downloadTag';\nexport default DownloadTag;\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,QAAA,GAAAF,sBAAA,CAAAJ,OAAA;AACA,IAAAO,QAAA,GAAAH,sBAAA,CAAAJ,OAAA;AACA,IAAAQ,WAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,OAAA,GAAAL,sBAAA,CAAAJ,OAAA;AAA4B,SAAAI,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,eAAAC,CAAA,EAAAH,CAAA,WAAAI,eAAA,CAAAD,CAAA,KAAAE,qBAAA,CAAAF,CAAA,EAAAH,CAAA,KAAAM,2BAAA,CAAAH,CAAA,EAAAH,CAAA,KAAAO,gBAAA;AAAA,SAAAA,iBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAH,CAAA,EAAAM,CAAA,Q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,GAAAC,OAAA,cACzBrE,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","names":["require"],"sources":["components/download-tag/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
.set-tag-video .ant-popover-inner-content {
|
|
2
|
+
background-color: #131d27;
|
|
3
|
+
padding: 0px;
|
|
4
|
+
}
|
|
5
|
+
.set-tag-video .ant-popover-arrow-content {
|
|
6
|
+
background-color: #131d27;
|
|
7
|
+
}
|
|
8
|
+
.set-tag-video .ant-popover-arrow-content::before {
|
|
9
|
+
background-color: #131d27;
|
|
10
|
+
}
|
|
11
|
+
.set-tag-video .ant-form-item-label > label {
|
|
12
|
+
color: #fff;
|
|
13
|
+
}
|
|
14
|
+
.set-tag-video .ant-form-item {
|
|
15
|
+
margin-bottom: 16px;
|
|
16
|
+
}
|
|
17
|
+
.set-tag-video .ant-input {
|
|
18
|
+
color: #fff;
|
|
19
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
20
|
+
background-color: #131d27;
|
|
21
|
+
}
|
|
22
|
+
.set-tag-video .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
|
|
23
|
+
.set-tag-video .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
|
|
24
|
+
background-color: #131d27;
|
|
25
|
+
}
|
|
26
|
+
.set-tag-video .ant-btn-ghost {
|
|
27
|
+
color: #fff;
|
|
28
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
29
|
+
}
|
|
30
|
+
.set-tag-video .ant-picker {
|
|
31
|
+
background-color: #131d27;
|
|
32
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
33
|
+
}
|
|
34
|
+
.set-tag-video .ant-picker .ant-picker-suffix {
|
|
35
|
+
background-color: #131d27;
|
|
36
|
+
color: #bfbfbf;
|
|
37
|
+
}
|
|
38
|
+
.set-tag-video .ant-picker-input > input {
|
|
39
|
+
color: #fff;
|
|
40
|
+
}
|
|
41
|
+
.set-tag-video .ant-picker-clear {
|
|
42
|
+
color: #fff;
|
|
43
|
+
background-color: #131d27;
|
|
44
|
+
}
|
|
45
|
+
.set-tag-video .ant-picker-status-error.ant-picker,
|
|
46
|
+
.set-tag-video .ant-picker-status-error.ant-picker:not([disabled]):hover {
|
|
47
|
+
background-color: #131d27;
|
|
48
|
+
}
|
|
49
|
+
.set-tag-video .set-tag-video-popover {
|
|
50
|
+
padding: 16px 16px 1px 16px;
|
|
51
|
+
}
|
|
52
|
+
.set-tag-video .set-tag-video-popover .btn {
|
|
53
|
+
display: -webkit-box;
|
|
54
|
+
display: -ms-flexbox;
|
|
55
|
+
display: flex;
|
|
56
|
+
-ms-flex-pack: distribute;
|
|
57
|
+
justify-content: space-around;
|
|
58
|
+
}
|
|
59
|
+
.dataPickerWrap .ant-picker-panel {
|
|
60
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
61
|
+
}
|
|
62
|
+
.dataPickerWrap .ant-picker-panel-container {
|
|
63
|
+
background-color: #131d27;
|
|
64
|
+
}
|
|
65
|
+
.dataPickerWrap .ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner {
|
|
66
|
+
color: #fff;
|
|
67
|
+
}
|
|
68
|
+
.dataPickerWrap .ant-picker-time-panel-column:not(:first-child) {
|
|
69
|
+
border-left: 1px solid rgba(255, 255, 255, 0.15);
|
|
70
|
+
}
|
|
71
|
+
.dataPickerWrap .ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover {
|
|
72
|
+
background-color: #58646a;
|
|
73
|
+
}
|
|
74
|
+
.dataPickerWrap .ant-btn-primary[disabled],
|
|
75
|
+
.dataPickerWrap .ant-btn-primary[disabled]:hover,
|
|
76
|
+
.dataPickerWrap .ant-btn-primary[disabled]:focus,
|
|
77
|
+
.dataPickerWrap .ant-btn-primary[disabled]:active {
|
|
78
|
+
background-color: #c1c1c1;
|
|
79
|
+
border: 1px solid #c1c1c1;
|
|
80
|
+
}
|
|
81
|
+
.dataPickerWrap .ant-picker-time-panel-column > li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner {
|
|
82
|
+
background-color: #58646a;
|
|
83
|
+
}
|
|
84
|
+
.dataPickerWrap .ant-picker-panel .ant-picker-footer {
|
|
85
|
+
border-top: 1px solid rgba(255, 255, 255, 0.15);
|
|
86
|
+
}
|
|
87
|
+
.dataPickerWrap ::-webkit-scrollbar {
|
|
88
|
+
width: 6px;
|
|
89
|
+
height: 6px;
|
|
90
|
+
}
|
|
91
|
+
.dataPickerWrap ::-webkit-scrollbar-track {
|
|
92
|
+
background: transparent;
|
|
93
|
+
border-radius: 5px;
|
|
94
|
+
}
|
|
95
|
+
.dataPickerWrap ::-webkit-scrollbar-thumb {
|
|
96
|
+
background: rgba(255, 255, 255, 0.45);
|
|
97
|
+
border-radius: 5px;
|
|
98
|
+
}
|
|
99
|
+
.dataPickerWrap ::-webkit-scrollbar-corner {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
}
|
|
102
|
+
.dataPickerWrap ::-webkit-scrollbar-thumb:hover {
|
|
103
|
+
background: rgba(255, 255, 255, 0.65);
|
|
104
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["require"],"sources":["components/download-tag/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@color: #fff;
|
|
2
|
+
@background-color: #131d27;
|
|
3
|
+
@border: 1px solid rgba(255,255,255,0.15);;
|
|
4
|
+
.set-tag-video {
|
|
5
|
+
//气泡
|
|
6
|
+
.ant-popover-inner-content {
|
|
7
|
+
background-color: @background-color;
|
|
8
|
+
padding: 0px;
|
|
9
|
+
}
|
|
10
|
+
.ant-popover-arrow-content {
|
|
11
|
+
background-color: @background-color;
|
|
12
|
+
&::before {
|
|
13
|
+
background-color: @background-color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//form表单
|
|
17
|
+
.ant-form-item-label > label {
|
|
18
|
+
color: @color;
|
|
19
|
+
}
|
|
20
|
+
.ant-form-item {
|
|
21
|
+
margin-bottom: 16px;
|
|
22
|
+
}
|
|
23
|
+
//输入框
|
|
24
|
+
.ant-input {
|
|
25
|
+
color: @color;
|
|
26
|
+
border: @border;
|
|
27
|
+
background-color: @background-color;
|
|
28
|
+
}
|
|
29
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
|
|
30
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
|
|
31
|
+
background-color: @background-color;
|
|
32
|
+
}
|
|
33
|
+
//按钮
|
|
34
|
+
.ant-btn-ghost {
|
|
35
|
+
color: @color;
|
|
36
|
+
border: @border;
|
|
37
|
+
}
|
|
38
|
+
//时间选中器外部样式
|
|
39
|
+
.ant-picker {
|
|
40
|
+
background-color: @background-color;
|
|
41
|
+
border: @border;
|
|
42
|
+
.ant-picker-suffix {
|
|
43
|
+
background-color: @background-color;
|
|
44
|
+
color: #bfbfbf;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.ant-picker-input > input {
|
|
48
|
+
color: @color;
|
|
49
|
+
}
|
|
50
|
+
.ant-picker-clear {
|
|
51
|
+
color: @color;
|
|
52
|
+
background-color: @background-color;
|
|
53
|
+
}
|
|
54
|
+
.ant-picker-status-error.ant-picker,
|
|
55
|
+
.ant-picker-status-error.ant-picker:not([disabled]):hover {
|
|
56
|
+
background-color: @background-color;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.set-tag-video-popover {
|
|
60
|
+
padding: 16px 16px 1px 16px;
|
|
61
|
+
.btn {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: space-around;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.dataPickerWrap {
|
|
68
|
+
//时间选中器内部样式
|
|
69
|
+
.ant-picker-panel {
|
|
70
|
+
border: @border;
|
|
71
|
+
}
|
|
72
|
+
.ant-picker-panel-container {
|
|
73
|
+
background-color: @background-color;
|
|
74
|
+
}
|
|
75
|
+
.ant-picker-time-panel-column
|
|
76
|
+
> li.ant-picker-time-panel-cell
|
|
77
|
+
.ant-picker-time-panel-cell-inner {
|
|
78
|
+
color: @color;
|
|
79
|
+
}
|
|
80
|
+
.ant-picker-time-panel-column:not(:first-child) {
|
|
81
|
+
border-left: @border;
|
|
82
|
+
}
|
|
83
|
+
.ant-picker-time-panel-column
|
|
84
|
+
> li.ant-picker-time-panel-cell
|
|
85
|
+
.ant-picker-time-panel-cell-inner:hover {
|
|
86
|
+
background-color: #58646a;
|
|
87
|
+
}
|
|
88
|
+
.ant-btn-primary[disabled],
|
|
89
|
+
.ant-btn-primary[disabled]:hover,
|
|
90
|
+
.ant-btn-primary[disabled]:focus,
|
|
91
|
+
.ant-btn-primary[disabled]:active {
|
|
92
|
+
background-color: #c1c1c1;
|
|
93
|
+
border: 1px solid #c1c1c1;
|
|
94
|
+
}
|
|
95
|
+
.ant-picker-time-panel-column
|
|
96
|
+
> li.ant-picker-time-panel-cell-selected
|
|
97
|
+
.ant-picker-time-panel-cell-inner {
|
|
98
|
+
background-color: #58646a;
|
|
99
|
+
}
|
|
100
|
+
.ant-picker-panel .ant-picker-footer {
|
|
101
|
+
border-top: @border;
|
|
102
|
+
}
|
|
103
|
+
::-webkit-scrollbar {
|
|
104
|
+
width: 6px;
|
|
105
|
+
height: 6px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
::-webkit-scrollbar-track {
|
|
109
|
+
background: transparent;
|
|
110
|
+
border-radius: 5px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
::-webkit-scrollbar-thumb {
|
|
114
|
+
background: rgba(255, 255, 255, 0.45);
|
|
115
|
+
border-radius: 5px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
::-webkit-scrollbar-corner {
|
|
119
|
+
background-color: transparent;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
::-webkit-scrollbar-thumb:hover {
|
|
123
|
+
background: rgba(255, 255, 255, 0.65);
|
|
124
|
+
}
|
|
125
|
+
}
|
package/lib/config.js
CHANGED
|
@@ -7,6 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
var globalCfg = window.VtxPublicServiceAddress || {};
|
|
8
8
|
var _default = exports["default"] = {
|
|
9
9
|
//资源地址
|
|
10
|
-
visPlugin: (globalCfg === null || globalCfg === void 0 ? void 0 : globalCfg.visPlugin) ? globalCfg.visPlugin : '
|
|
10
|
+
visPlugin: (globalCfg === null || globalCfg === void 0 ? void 0 : globalCfg.visPlugin) ? globalCfg.visPlugin : '.'
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","_default","exports","visPlugin"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\nexport default {\n //资源地址\n visPlugin: (globalCfg === null || globalCfg === void 0 ? void 0 : globalCfg.visPlugin) ? globalCfg.visPlugin : '
|
|
1
|
+
{"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","_default","exports","visPlugin"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\nexport default {\n //资源地址\n visPlugin: (globalCfg === null || globalCfg === void 0 ? void 0 : globalCfg.visPlugin) ? globalCfg.visPlugin : '.',\n};\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAGC,MAAM,CAACC,uBAAuB,IAAI,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cACxC;EACX;EACAC,SAAS,EAAE,CAACL,SAAS,KAAK,IAAI,IAAIA,SAAS,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,SAAS,CAACK,SAAS,IAAIL,SAAS,CAACK,SAAS,GAAG;AACnH,CAAC","ignoreList":[]}
|
|
@@ -42,7 +42,8 @@ var DEFAULT_PLAY_PARAMS = {
|
|
|
42
42
|
deviceCode: '',
|
|
43
43
|
deviceIp: '',
|
|
44
44
|
devicePort: '',
|
|
45
|
-
streamType: '0'
|
|
45
|
+
streamType: '0',
|
|
46
|
+
extendedProperties: {}
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
48
49
|
* 历史视频控制器
|
|
@@ -123,7 +124,8 @@ var HistoryControl = exports.HistoryControl = /*#__PURE__*/(0, _react.forwardRef
|
|
|
123
124
|
devicePort: result.devicePort,
|
|
124
125
|
streamType: result.streamType,
|
|
125
126
|
type: result.player,
|
|
126
|
-
hkType: result.hkType
|
|
127
|
+
hkType: result.hkType,
|
|
128
|
+
extendedProperties: result.extendedProperties
|
|
127
129
|
}
|
|
128
130
|
};
|
|
129
131
|
// 如果没有list,只有url,则直接播放url
|
|
@@ -239,7 +241,8 @@ var HistoryControl = exports.HistoryControl = /*#__PURE__*/(0, _react.forwardRef
|
|
|
239
241
|
devicePort: record.devicePort,
|
|
240
242
|
deviceId: record.deviceId,
|
|
241
243
|
type: record.type,
|
|
242
|
-
hkType: record.hkType
|
|
244
|
+
hkType: record.hkType,
|
|
245
|
+
extendedProperties: record.extendedProperties
|
|
243
246
|
};
|
|
244
247
|
if (record.hkType === 'HK_CAR_CLOUD_V2') {
|
|
245
248
|
GetHKV2Url({
|