@dfsj/components 3.7.0-beta.5 → 3.7.1
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/CHANGELOG.md +176 -136
- package/dist/components/Boards/src/Boards.vue.d.ts +10 -10
- package/dist/components/Boards/src/Boards.vue2.js +10 -10
- package/dist/components/Boards/src/hooKs/useStyle.js +5 -5
- package/dist/components/Boards/src/props.d.ts +4 -4
- package/dist/components/Boards/src/props.js +1 -1
- package/dist/components/ClickOutSide/src/ClickOutSide.vue.d.ts +7 -0
- package/dist/components/ClickOutSide/src/ClickOutSide.vue2.js +1 -1
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue2.js +2 -2
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue2.js +7 -7
- package/dist/components/DatePicker/src/index.js +4 -4
- package/dist/components/Descriptions/src/Descriptions.vue2.js +4 -4
- package/dist/components/Editor/src/Editor.vue2.js +3 -2
- package/dist/components/Form/src/Form.vue.d.ts +6 -6
- package/dist/components/Form/src/Form.vue2.js +22 -21
- package/dist/components/Form/src/components/useRenderCheckbox.js +8 -8
- package/dist/components/Form/src/components/useRenderRadio.js +8 -8
- package/dist/components/Form/src/components/useRenderSelect.js +11 -11
- package/dist/components/Form/src/helper/index.js +7 -7
- package/dist/components/Form/src/useForm.js +9 -9
- package/dist/components/Highlight/src/Highlight.vue.d.ts +41 -0
- package/dist/components/Highlight/src/Highlight.vue2.js +4 -4
- package/dist/components/Icon/src/Icon.vue2.js +3 -2
- package/dist/components/InputPassword/src/InputPassword.vue2.js +1 -1
- package/dist/components/Modal/src/BasicModal.vue.d.ts +2 -2
- package/dist/components/Modal/src/BasicModal.vue2.js +11 -11
- package/dist/components/Modal/src/components/ModalHeader.vue2.js +2 -2
- package/dist/components/Modal/src/hooks/useModalDrag.js +1 -1
- package/dist/components/Modal/src/hooks/useTimeout.js +1 -1
- package/dist/components/Modal/src/props.js +1 -1
- package/dist/components/Modal/src/utils/index.js +1 -1
- package/dist/components/NodeAxis/src/CanvasNodeRender.js +36 -36
- package/dist/components/NodeAxis/src/NodeAxis.d.ts +12 -0
- package/dist/components/NodeAxis/src/NodeAxis.vue2.js +1 -1
- package/dist/components/NodeAxis/src/NodeModel.js +10 -10
- package/dist/components/NodeAxis/src/NodeRender.js +3 -3
- package/dist/components/NodeAxis/src/TimerNodePlayer.js +4 -4
- package/dist/components/Stateful/src/Stateful.vue2.js +6 -6
- package/dist/components/Stateful/src/props.js +1 -1
- package/dist/components/Table/src/Table.vue.d.ts +13 -3
- package/dist/components/Table/src/Table.vue2.js +12 -11
- package/dist/components/Table/src/components/ColumnSetting.vue2.js +16 -16
- package/dist/components/Table/src/components/TableActions.vue2.js +1 -1
- package/dist/components/Table/src/useTable.js +6 -6
- package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +1 -1
- package/dist/components/UnifyChart/src/UnifyChart.vue2.js +2 -2
- package/dist/components/UnifyChart/src/hooks/useLoader.js +5 -5
- package/dist/components/UnifyChart/src/hooks/useRender.js +3 -3
- package/dist/components/UnifyChart/src/props.js +1 -1
- package/dist/components/Video/src/VideoPlayer.vue2.js +6 -6
- package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +5 -5
- package/dist/components/Video/src/abstract/VideoControl.js +13 -13
- package/dist/components/Video/src/control/DaHua.js +8 -8
- package/dist/components/Video/src/control/Hikvision.js +12 -12
- package/dist/components/Visual/src/BufferLayerPlayer.js +11 -11
- package/dist/components/Visual/src/ResolvableLayerProvider.js +5 -5
- package/dist/components/Visual/src/resolvers/IntervalResolver.js +9 -9
- package/dist/components/Visual/src/utils/NodeMath.js +1 -1
- package/dist/components/Windows/src/ModalWrap.vue2.js +4 -4
- package/dist/components/Windows/src/Windows.vue2.js +2 -2
- package/dist/components/src/components/Modal/src/props.d.ts +1 -1
- package/dist/components/src/components/NodeAxis/src/BCanvasNodeRender.d.ts +19 -0
- package/dist/directives/clickOutside.js +3 -3
- package/dist/directives/repeatClick.js +1 -1
- package/dist/directives/resizable.js +4 -4
- package/dist/index.min.css +2 -2
- package/dist/node_modules/.pnpm/{@vueuse_core@10.11.1_vue@3.5.12_typescript@5.6.2_ → @vueuse_core@10.11.1_vue@3.5.13_typescript@5.7.3_}/node_modules/@vueuse/core/index.js +20 -20
- package/dist/node_modules/.pnpm/{@vueuse_shared@10.11.1_vue@3.5.12_typescript@5.6.2_ → @vueuse_shared@10.11.1_vue@3.5.13_typescript@5.7.3_}/node_modules/@vueuse/shared/index.js +1 -1
- package/package.json +66 -69
- package/dist/components/src/utils/propTypes.d.ts +0 -10
- /package/dist/components/{Descriptions → src/components/Descriptions}/src/Descriptions.vue.d.ts +0 -0
- /package/dist/components/{Windows → src/components/Windows}/src/ModalWrap.vue.d.ts +0 -0
|
@@ -2,17 +2,18 @@ import { defineComponent, ref, onMounted, unref, computed, watch, withDirectives
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import { ElImage, ElPagination, ElTable, ElTableColumn, ElConfigProvider, ElCard, ElEmpty } from 'element-plus';
|
|
4
4
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { getSlot } from '@dfsj/utils';
|
|
6
|
+
import propTypes from 'vue-types';
|
|
6
7
|
import { setIndex } from './helper/index.js';
|
|
7
8
|
import { set, get } from 'lodash-es';
|
|
8
9
|
import './components/TableActions.vue.js';
|
|
9
10
|
import script$1 from './components/TableActions.vue2.js';
|
|
10
11
|
|
|
11
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done:
|
|
12
|
-
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) :
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
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) : undefined; } }
|
|
13
14
|
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; }
|
|
14
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
17
|
function _isSlot(s) {
|
|
17
18
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
18
19
|
}
|
|
@@ -221,7 +222,7 @@ var script = defineComponent({
|
|
|
221
222
|
var elTableRef = ref();
|
|
222
223
|
onMounted(function () {
|
|
223
224
|
var tableRef = unref(elTableRef);
|
|
224
|
-
emit('register', tableRef === null || tableRef ===
|
|
225
|
+
emit('register', tableRef === null || tableRef === undefined ? undefined : tableRef.$parent, elTableRef);
|
|
225
226
|
});
|
|
226
227
|
var pageSizeRef = ref(props.pageSize);
|
|
227
228
|
var currentPageRef = ref(props.currentPage);
|
|
@@ -369,10 +370,10 @@ var script = defineComponent({
|
|
|
369
370
|
return item === v.field;
|
|
370
371
|
});
|
|
371
372
|
}
|
|
372
|
-
return children && children.length ? _renderTreeTableColumn(children) : props !== null && props !==
|
|
373
|
+
return children && children.length ? _renderTreeTableColumn(children) : props !== null && props !== undefined && (_props$slots = props.slots) !== null && _props$slots !== undefined && _props$slots["default"] ? (_props$slots2 = props.slots)["default"].apply(_props$slots2, arguments) : v !== null && v !== undefined && v.formatter ? v === null || v === undefined || (_v$formatter = v.formatter) === null || _v$formatter === undefined ? undefined : _v$formatter.call(v, data.row, data.column, get(data.row, v.field), data.$index) : isImageUrl ? renderPreview(get(data.row, v.field)) : get(data.row, v.field);
|
|
373
374
|
}
|
|
374
375
|
};
|
|
375
|
-
if (props !== null && props !==
|
|
376
|
+
if (props !== null && props !== undefined && (_props$slots3 = props.slots) !== null && _props$slots3 !== undefined && _props$slots3.header) {
|
|
376
377
|
slots['header'] = function () {
|
|
377
378
|
var _props$slots4;
|
|
378
379
|
return (_props$slots4 = props.slots).header.apply(_props$slots4, arguments);
|
|
@@ -456,7 +457,7 @@ var script = defineComponent({
|
|
|
456
457
|
field: v.field,
|
|
457
458
|
index: data.$index
|
|
458
459
|
});
|
|
459
|
-
return children && children.length ? _renderTreeTableColumn(children) : _slots ? _slots : _props !== null && _props !==
|
|
460
|
+
return children && children.length ? _renderTreeTableColumn(children) : _slots ? _slots : _props !== null && _props !== undefined && (_props$slots5 = _props.slots) !== null && _props$slots5 !== undefined && _props$slots5["default"] ? (_props$slots6 = _props.slots)["default"].apply(_props$slots6, arguments) : v !== null && v !== undefined && v.formatter ? v === null || v === undefined || (_v$formatter2 = v.formatter) === null || _v$formatter2 === undefined ? undefined : _v$formatter2.call(v, data.row, data.column, get(data.row, v.field), data.$index) : isImageUrl ? renderPreview(get(data.row, v.field)) : get(data.row, v.field);
|
|
460
461
|
}
|
|
461
462
|
};
|
|
462
463
|
if (getSlot(slots, "".concat(v.field, "-header"))) {
|
|
@@ -470,13 +471,13 @@ var script = defineComponent({
|
|
|
470
471
|
return _slots;
|
|
471
472
|
};
|
|
472
473
|
}
|
|
473
|
-
if (_props !== null && _props !==
|
|
474
|
+
if (_props !== null && _props !== undefined && (_props$slots7 = _props.slots) !== null && _props$slots7 !== undefined && _props$slots7.header) {
|
|
474
475
|
columSlots['header'] = function () {
|
|
475
476
|
var _props$slots8;
|
|
476
477
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
477
478
|
args[_key] = arguments[_key];
|
|
478
479
|
}
|
|
479
|
-
return (_props$slots8 = _props.slots) === null || _props$slots8 ===
|
|
480
|
+
return (_props$slots8 = _props.slots) === null || _props$slots8 === undefined ? undefined : _props$slots8.header.apply(_props$slots8, args);
|
|
480
481
|
};
|
|
481
482
|
}
|
|
482
483
|
return createVNode(ElTableColumn, mergeProps({
|
|
@@ -516,7 +517,7 @@ var script = defineComponent({
|
|
|
516
517
|
"class": "h-full w-full overflow-hidden flex flex-col box-border"
|
|
517
518
|
}, [unref(getProps).customContent ? createVNode("div", {
|
|
518
519
|
"class": "flex flex-wrap"
|
|
519
|
-
}, [(_unref6 = unref(getProps)) !== null && _unref6 !==
|
|
520
|
+
}, [(_unref6 = unref(getProps)) !== null && _unref6 !== undefined && (_unref6 = _unref6.data) !== null && _unref6 !== undefined && _unref6.length ? (_unref7 = unref(getProps)) === null || _unref7 === undefined ? undefined : _unref7.data.map(function (item) {
|
|
520
521
|
var cardSlots = {
|
|
521
522
|
"default": function _default() {
|
|
522
523
|
return getSlot(slots, 'content', item);
|
|
@@ -69,17 +69,17 @@ var script = defineComponent({
|
|
|
69
69
|
var handleCheckedColumnsChange = function handleCheckedColumnsChange(value) {
|
|
70
70
|
var _unref2, _unref3;
|
|
71
71
|
var checkedCount = value.length;
|
|
72
|
-
checkAll.value = checkedCount === ((_unref2 = unref(defaultCheckColumns)) === null || _unref2 ===
|
|
73
|
-
isIndeterminate.value = checkedCount > 0 && checkedCount < ((_unref3 = unref(defaultCheckColumns)) === null || _unref3 ===
|
|
72
|
+
checkAll.value = checkedCount === ((_unref2 = unref(defaultCheckColumns)) === null || _unref2 === undefined ? undefined : _unref2.length);
|
|
73
|
+
isIndeterminate.value = checkedCount > 0 && checkedCount < ((_unref3 = unref(defaultCheckColumns)) === null || _unref3 === undefined ? undefined : _unref3.length);
|
|
74
74
|
};
|
|
75
75
|
var confirm = function confirm() {
|
|
76
76
|
var _cloneDeep;
|
|
77
|
-
var newColumns = (_cloneDeep = cloneDeep(unref(settingColumns))) === null || _cloneDeep ===
|
|
77
|
+
var newColumns = (_cloneDeep = cloneDeep(unref(settingColumns))) === null || _cloneDeep === undefined ? undefined : _cloneDeep.map(function (item) {
|
|
78
78
|
var _unref4, _unref5;
|
|
79
|
-
var fixed = (_unref4 = unref(settingColumns)) === null || _unref4 ===
|
|
79
|
+
var fixed = (_unref4 = unref(settingColumns)) === null || _unref4 === undefined || (_unref4 = _unref4.find(function (col) {
|
|
80
80
|
return col.field === item.field;
|
|
81
|
-
})) === null || _unref4 ===
|
|
82
|
-
item.hidden = !!!((_unref5 = unref(checkColumns)) !== null && _unref5 !==
|
|
81
|
+
})) === null || _unref4 === undefined ? undefined : _unref4.fixed;
|
|
82
|
+
item.hidden = !!!((_unref5 = unref(checkColumns)) !== null && _unref5 !== undefined && _unref5.includes(item.field));
|
|
83
83
|
item.fixed = fixed ? fixed : undefined;
|
|
84
84
|
return item;
|
|
85
85
|
});
|
|
@@ -92,28 +92,28 @@ var script = defineComponent({
|
|
|
92
92
|
var initColumns = function initColumns(columns) {
|
|
93
93
|
var _unref6, _unref7, _unref8, _unref9, _unref10;
|
|
94
94
|
var isReStore = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
95
|
-
var newColumns = columns === null || columns ===
|
|
95
|
+
var newColumns = columns === null || columns === undefined ? undefined : columns.filter(function (item) {
|
|
96
96
|
if (!isReStore) {
|
|
97
|
-
item.fixed = item.fixed !==
|
|
97
|
+
item.fixed = item.fixed !== undefined ? item.fixed : undefined;
|
|
98
98
|
}
|
|
99
99
|
return item.type && !DEFAULT_FILTER_COLUMN.includes(item.type) || !item.type;
|
|
100
100
|
});
|
|
101
|
-
if (!((_unref6 = unref(oldColumns)) !== null && _unref6 !==
|
|
101
|
+
if (!((_unref6 = unref(oldColumns)) !== null && _unref6 !== undefined && _unref6.length)) {
|
|
102
102
|
oldColumns.value = cloneDeep(newColumns);
|
|
103
103
|
}
|
|
104
104
|
settingColumns.value = cloneDeep(newColumns);
|
|
105
|
-
hiddenColumns.value = cloneDeep(columns === null || columns ===
|
|
105
|
+
hiddenColumns.value = cloneDeep(columns === null || columns === undefined ? undefined : columns.filter(function (item) {
|
|
106
106
|
return item.type && DEFAULT_FILTER_COLUMN.includes(item.type);
|
|
107
107
|
}));
|
|
108
|
-
defaultCheckColumns.value = ((_unref7 = unref(settingColumns)) === null || _unref7 ===
|
|
108
|
+
defaultCheckColumns.value = ((_unref7 = unref(settingColumns)) === null || _unref7 === undefined ? undefined : _unref7.map(function (item) {
|
|
109
109
|
return item.field;
|
|
110
110
|
})) || [];
|
|
111
|
-
checkColumns.value = ((_unref8 = unref(settingColumns)) === null || _unref8 ===
|
|
111
|
+
checkColumns.value = ((_unref8 = unref(settingColumns)) === null || _unref8 === undefined || (_unref8 = _unref8.filter(function (item) {
|
|
112
112
|
return !item.hidden;
|
|
113
|
-
})) === null || _unref8 ===
|
|
113
|
+
})) === null || _unref8 === undefined ? undefined : _unref8.map(function (item) {
|
|
114
114
|
return item.field;
|
|
115
115
|
})) || [];
|
|
116
|
-
if (((_unref9 = unref(checkColumns)) === null || _unref9 ===
|
|
116
|
+
if (((_unref9 = unref(checkColumns)) === null || _unref9 === undefined ? undefined : _unref9.length) === ((_unref10 = unref(defaultCheckColumns)) === null || _unref10 === undefined ? undefined : _unref10.length)) {
|
|
117
117
|
checkAll.value = true;
|
|
118
118
|
isIndeterminate.value = false;
|
|
119
119
|
}
|
|
@@ -168,7 +168,7 @@ var script = defineComponent({
|
|
|
168
168
|
}, {
|
|
169
169
|
"default": withCtx(function () {
|
|
170
170
|
var _settingColumns$value;
|
|
171
|
-
return [createTextVNode(toDisplayString(checkColumns.value.length) + " / " + toDisplayString((_settingColumns$value = settingColumns.value) === null || _settingColumns$value ===
|
|
171
|
+
return [createTextVNode(toDisplayString(checkColumns.value.length) + " / " + toDisplayString((_settingColumns$value = settingColumns.value) === null || _settingColumns$value === undefined ? undefined : _settingColumns$value.length), 1)];
|
|
172
172
|
}),
|
|
173
173
|
_: 1
|
|
174
174
|
})]), createVNode(unref(ElText), null, {
|
|
@@ -176,7 +176,7 @@ var script = defineComponent({
|
|
|
176
176
|
return _cache[4] || (_cache[4] = [createTextVNode("固定 / 排序")]);
|
|
177
177
|
}),
|
|
178
178
|
_: 1
|
|
179
|
-
})]), (_settingColumns$value2 = settingColumns.value) !== null && _settingColumns$value2 !==
|
|
179
|
+
})]), (_settingColumns$value2 = settingColumns.value) !== null && _settingColumns$value2 !== undefined && _settingColumns$value2.length ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(VueDraggable), {
|
|
180
180
|
modelValue: settingColumns.value,
|
|
181
181
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) {
|
|
182
182
|
return settingColumns.value = $event;
|
|
@@ -78,7 +78,7 @@ var script = defineComponent({
|
|
|
78
78
|
"command": v
|
|
79
79
|
}, {
|
|
80
80
|
"default": function _default() {
|
|
81
|
-
return [sizeMap === null || sizeMap ===
|
|
81
|
+
return [sizeMap === null || sizeMap === undefined ? undefined : sizeMap[v]];
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
});
|
|
@@ -8,7 +8,7 @@ var t = function t(v) {
|
|
|
8
8
|
};
|
|
9
9
|
var useTable = function useTable(config) {
|
|
10
10
|
var _config$immediate = config.immediate,
|
|
11
|
-
immediate = _config$immediate ===
|
|
11
|
+
immediate = _config$immediate === undefined ? true : _config$immediate;
|
|
12
12
|
var loading = ref(false);
|
|
13
13
|
var currentPage = ref(1);
|
|
14
14
|
var pageSize = ref(10);
|
|
@@ -74,7 +74,7 @@ var useTable = function useTable(config) {
|
|
|
74
74
|
loading.value = true;
|
|
75
75
|
_context2.prev = 1;
|
|
76
76
|
_context2.next = 4;
|
|
77
|
-
return config === null || config ===
|
|
77
|
+
return config === null || config === undefined ? undefined : config.fetchDataApi();
|
|
78
78
|
case 4:
|
|
79
79
|
res = _context2.sent;
|
|
80
80
|
console.log('fetchDataApi res', res);
|
|
@@ -116,7 +116,7 @@ var useTable = function useTable(config) {
|
|
|
116
116
|
return getTable();
|
|
117
117
|
case 3:
|
|
118
118
|
table = _context3.sent;
|
|
119
|
-
table === null || table ===
|
|
119
|
+
table === null || table === undefined || table.setProps(props);
|
|
120
120
|
case 5:
|
|
121
121
|
case "end":
|
|
122
122
|
return _context3.stop();
|
|
@@ -138,7 +138,7 @@ var useTable = function useTable(config) {
|
|
|
138
138
|
return getTable();
|
|
139
139
|
case 2:
|
|
140
140
|
table = _context4.sent;
|
|
141
|
-
table === null || table ===
|
|
141
|
+
table === null || table === undefined || table.setColumn(columnProps);
|
|
142
142
|
case 4:
|
|
143
143
|
case "end":
|
|
144
144
|
return _context4.stop();
|
|
@@ -160,7 +160,7 @@ var useTable = function useTable(config) {
|
|
|
160
160
|
return getTable();
|
|
161
161
|
case 2:
|
|
162
162
|
table = _context5.sent;
|
|
163
|
-
table === null || table ===
|
|
163
|
+
table === null || table === undefined || table.addColumn(tableColumn, index);
|
|
164
164
|
case 4:
|
|
165
165
|
case "end":
|
|
166
166
|
return _context5.stop();
|
|
@@ -182,7 +182,7 @@ var useTable = function useTable(config) {
|
|
|
182
182
|
return getTable();
|
|
183
183
|
case 2:
|
|
184
184
|
table = _context6.sent;
|
|
185
|
-
table === null || table ===
|
|
185
|
+
table === null || table === undefined || table.delColumn(field);
|
|
186
186
|
case 4:
|
|
187
187
|
case "end":
|
|
188
188
|
return _context6.stop();
|
|
@@ -48,7 +48,7 @@ var script = defineComponent({
|
|
|
48
48
|
}
|
|
49
49
|
var hasTool = function hasTool(tool) {
|
|
50
50
|
var _toolbox$value;
|
|
51
|
-
return toolbox === null || toolbox ===
|
|
51
|
+
return toolbox === null || toolbox === undefined || (_toolbox$value = toolbox.value) === null || _toolbox$value === undefined ? undefined : _toolbox$value.includes(tool);
|
|
52
52
|
};
|
|
53
53
|
return function (_ctx, _cache) {
|
|
54
54
|
return openBlock(), createElementBlock("div", {
|
|
@@ -8,7 +8,7 @@ import script$1 from '../../Stateful/src/Stateful.vue2.js';
|
|
|
8
8
|
import script$2 from './ChartToolbox.vue2.js';
|
|
9
9
|
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
var script = defineComponent({
|
|
13
13
|
__name: 'UnifyChart',
|
|
14
14
|
props: unifyChartProps,
|
|
@@ -21,7 +21,7 @@ var script = defineComponent({
|
|
|
21
21
|
_toRefs.stateful;
|
|
22
22
|
var compState = computed(function () {
|
|
23
23
|
var _props$stateful;
|
|
24
|
-
return (_props$stateful = props.stateful) === null || _props$stateful ===
|
|
24
|
+
return (_props$stateful = props.stateful) === null || _props$stateful === undefined ? undefined : _props$stateful.stringify;
|
|
25
25
|
});
|
|
26
26
|
var chartHooks = props.chartHooks,
|
|
27
27
|
convert = props.convert;
|
|
@@ -8,18 +8,18 @@ import { isEmpty, isNullOrUnDef } from '@dfsj/utils';
|
|
|
8
8
|
|
|
9
9
|
function useLoader(props, _ref) {
|
|
10
10
|
var _ref$immediate = _ref.immediate,
|
|
11
|
-
immediate = _ref$immediate ===
|
|
11
|
+
immediate = _ref$immediate === undefined ? true : _ref$immediate,
|
|
12
12
|
_ref$condition = _ref.condition,
|
|
13
|
-
condition = _ref$condition ===
|
|
13
|
+
condition = _ref$condition === undefined ? {} : _ref$condition,
|
|
14
14
|
_ref$watchCondition = _ref.watchCondition,
|
|
15
|
-
watchCondition = _ref$watchCondition ===
|
|
15
|
+
watchCondition = _ref$watchCondition === undefined ? true : _ref$watchCondition;
|
|
16
16
|
var datasource = ref();
|
|
17
17
|
var stateful = new State(datasource.value != null ? StateEnum.FULL : StateEnum.NONE);
|
|
18
18
|
var ins = getCurrentInstance();
|
|
19
19
|
watch(function () {
|
|
20
20
|
return stateful.state;
|
|
21
21
|
}, function (value) {
|
|
22
|
-
if (ins !== null && ins !==
|
|
22
|
+
if (ins !== null && ins !== undefined && ins.emit) {
|
|
23
23
|
ins.emit('update:loading', stateful.isLoading);
|
|
24
24
|
}
|
|
25
25
|
}, {
|
|
@@ -41,7 +41,7 @@ function useLoader(props, _ref) {
|
|
|
41
41
|
while (1) switch (_context.prev = _context.next) {
|
|
42
42
|
case 0:
|
|
43
43
|
stateful.loading();
|
|
44
|
-
if (!((_props$options = props.options) !== null && _props$options !==
|
|
44
|
+
if (!((_props$options = props.options) !== null && _props$options !== undefined && _props$options.loader)) {
|
|
45
45
|
_context.next = 17;
|
|
46
46
|
break;
|
|
47
47
|
}
|
|
@@ -6,11 +6,11 @@ function useRender(config, datasource, toolbox) {
|
|
|
6
6
|
var getInstance = config.getInstance,
|
|
7
7
|
setOptions = config.setOptions,
|
|
8
8
|
_config$transform = config.transform,
|
|
9
|
-
transform = _config$transform ===
|
|
9
|
+
transform = _config$transform === undefined ? function (d) {
|
|
10
10
|
return d;
|
|
11
11
|
} : _config$transform,
|
|
12
12
|
_config$createOptions = config.createOptions,
|
|
13
|
-
createOptions = _config$createOptions ===
|
|
13
|
+
createOptions = _config$createOptions === undefined ? function (p) {
|
|
14
14
|
return p;
|
|
15
15
|
} : _config$createOptions,
|
|
16
16
|
assemble = config.assemble,
|
|
@@ -21,7 +21,7 @@ function useRender(config, datasource, toolbox) {
|
|
|
21
21
|
instance: getInstance,
|
|
22
22
|
toggleTable: toggleTable,
|
|
23
23
|
toggleStatistic: toggleStatistic,
|
|
24
|
-
toolbox: toolbox !== null && toolbox !==
|
|
24
|
+
toolbox: toolbox !== null && toolbox !== undefined ? toolbox : [EToolbox.Download, EToolbox.Table, EToolbox.Statistic]
|
|
25
25
|
};
|
|
26
26
|
});
|
|
27
27
|
function refreshCharts(data) {
|
|
@@ -3,11 +3,11 @@ import { defineComponent, ref, getCurrentInstance, onMounted, nextTick, toRaw, u
|
|
|
3
3
|
import './VideoPlayerToolbar.vue.js';
|
|
4
4
|
import { EventEnum } from './enums/CommonEnum.js';
|
|
5
5
|
import VideoFactory from './control/VideoFactory.js';
|
|
6
|
-
import
|
|
6
|
+
import propTypes from 'vue-types';
|
|
7
7
|
import script$1 from './VideoPlayerToolbar.vue2.js';
|
|
8
8
|
|
|
9
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
var _hoisted_1 = {
|
|
12
12
|
style: {
|
|
13
13
|
"color": "white"
|
|
@@ -31,7 +31,7 @@ var script = defineComponent({
|
|
|
31
31
|
var isPlay = ref(false);
|
|
32
32
|
var isFullscreen = ref(false);
|
|
33
33
|
var props = __props;
|
|
34
|
-
var componentId = (_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance ===
|
|
34
|
+
var componentId = (_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance === undefined ? undefined : _getCurrentInstance.uid;
|
|
35
35
|
onMounted(function () {
|
|
36
36
|
nextTick(function () {
|
|
37
37
|
instance = VideoFactory.create(props.videoType, _objectSpread({
|
|
@@ -55,12 +55,12 @@ var script = defineComponent({
|
|
|
55
55
|
function stop() {
|
|
56
56
|
var _instance, _instance$stop;
|
|
57
57
|
console.log('props.control', instance);
|
|
58
|
-
(_instance = instance) === null || _instance ===
|
|
58
|
+
(_instance = instance) === null || _instance === undefined || (_instance$stop = _instance.stop) === null || _instance$stop === undefined || _instance$stop.call(_instance);
|
|
59
59
|
}
|
|
60
60
|
function play() {
|
|
61
61
|
var _instance2, _instance2$play;
|
|
62
62
|
console.log('props.control', instance);
|
|
63
|
-
(_instance2 = instance) === null || _instance2 ===
|
|
63
|
+
(_instance2 = instance) === null || _instance2 === undefined || (_instance2$play = _instance2.play) === null || _instance2$play === undefined || _instance2$play.call(_instance2);
|
|
64
64
|
}
|
|
65
65
|
function toggleFullScreen() {
|
|
66
66
|
isFullscreen.value = !isFullscreen.value;
|
|
@@ -68,7 +68,7 @@ var script = defineComponent({
|
|
|
68
68
|
}
|
|
69
69
|
onBeforeUnmount(function () {
|
|
70
70
|
var _instance3, _instance3$dispose;
|
|
71
|
-
(_instance3 = instance) === null || _instance3 ===
|
|
71
|
+
(_instance3 = instance) === null || _instance3 === undefined || (_instance3$dispose = _instance3.dispose) === null || _instance3$dispose === undefined || _instance3$dispose.call(_instance3);
|
|
72
72
|
instance = null;
|
|
73
73
|
});
|
|
74
74
|
function downloadFile() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, toRefs, computed, openBlock, createElementBlock, renderSlot, createVNode, unref, mergeProps, withModifiers } from 'vue';
|
|
2
|
-
import { useFullscreen } from '../../../node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.
|
|
2
|
+
import { useFullscreen } from '../../../node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/core/index.js';
|
|
3
3
|
import '../../Icon/src/Icon.vue.js';
|
|
4
4
|
import '../../Icon/src/SvgIcon.vue.js';
|
|
5
|
-
import
|
|
5
|
+
import propTypes from 'vue-types';
|
|
6
6
|
import script$1 from '../../Icon/src/Icon.vue2.js';
|
|
7
7
|
|
|
8
8
|
var _hoisted_1 = {
|
|
@@ -36,16 +36,16 @@ var script = defineComponent({
|
|
|
36
36
|
function playToggle() {
|
|
37
37
|
if (isPlay.value) {
|
|
38
38
|
var _props$stop;
|
|
39
|
-
(_props$stop = props.stop) === null || _props$stop ===
|
|
39
|
+
(_props$stop = props.stop) === null || _props$stop === undefined || _props$stop.call(props);
|
|
40
40
|
} else {
|
|
41
41
|
var _props$play;
|
|
42
|
-
(_props$play = props.play) === null || _props$play ===
|
|
42
|
+
(_props$play = props.play) === null || _props$play === undefined || _props$play.call(props);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
function fullToggle() {
|
|
46
46
|
var _props$toggleFullscre;
|
|
47
47
|
toggleDom();
|
|
48
|
-
(_props$toggleFullscre = props.toggleFullscreenFn) === null || _props$toggleFullscre ===
|
|
48
|
+
(_props$toggleFullscre = props.toggleFullscreenFn) === null || _props$toggleFullscre === undefined || _props$toggleFullscre.call(props);
|
|
49
49
|
}
|
|
50
50
|
return function (_ctx, _cache) {
|
|
51
51
|
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default"), createVNode(unref(script$1), mergeProps({
|
|
@@ -13,19 +13,19 @@ var VideoControl = /*#__PURE__*/function (_Observable) {
|
|
|
13
13
|
var _this;
|
|
14
14
|
_classCallCheck(this, VideoControl);
|
|
15
15
|
_this = _callSuper(this, VideoControl);
|
|
16
|
-
_defineProperty(_this, "ip",
|
|
17
|
-
_defineProperty(_this, "port",
|
|
18
|
-
_defineProperty(_this, "channel",
|
|
19
|
-
_defineProperty(_this, "streamType",
|
|
20
|
-
_defineProperty(_this, "username",
|
|
21
|
-
_defineProperty(_this, "password",
|
|
22
|
-
_defineProperty(_this, "wrapEl",
|
|
23
|
-
_defineProperty(_this, "isPlayback",
|
|
24
|
-
_defineProperty(_this, "playbackIndex",
|
|
25
|
-
_defineProperty(_this, "state",
|
|
26
|
-
_defineProperty(_this, "player",
|
|
27
|
-
_defineProperty(_this, "needPlugin",
|
|
28
|
-
_defineProperty(_this, "needLogin",
|
|
16
|
+
_defineProperty(_this, "ip", undefined);
|
|
17
|
+
_defineProperty(_this, "port", undefined);
|
|
18
|
+
_defineProperty(_this, "channel", undefined);
|
|
19
|
+
_defineProperty(_this, "streamType", undefined);
|
|
20
|
+
_defineProperty(_this, "username", undefined);
|
|
21
|
+
_defineProperty(_this, "password", undefined);
|
|
22
|
+
_defineProperty(_this, "wrapEl", undefined);
|
|
23
|
+
_defineProperty(_this, "isPlayback", undefined);
|
|
24
|
+
_defineProperty(_this, "playbackIndex", undefined);
|
|
25
|
+
_defineProperty(_this, "state", undefined);
|
|
26
|
+
_defineProperty(_this, "player", undefined);
|
|
27
|
+
_defineProperty(_this, "needPlugin", undefined);
|
|
28
|
+
_defineProperty(_this, "needLogin", undefined);
|
|
29
29
|
console.log('opt', opt);
|
|
30
30
|
_this.ip = opt.ip;
|
|
31
31
|
_this.port = opt.port;
|
|
@@ -8,8 +8,8 @@ import VideoControl from '../abstract/VideoControl.js';
|
|
|
8
8
|
import { EventEnum } from '../enums/CommonEnum.js';
|
|
9
9
|
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
12
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e, _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
var DEF = {
|
|
15
15
|
ip: '172.168.1.247',
|
|
@@ -24,8 +24,8 @@ var DaHua = /*#__PURE__*/function (_VideoControl) {
|
|
|
24
24
|
var _this;
|
|
25
25
|
_classCallCheck(this, DaHua);
|
|
26
26
|
_this = _callSuper(this, DaHua, [_objectSpread(_objectSpread({}, DEF), opts)]);
|
|
27
|
-
_defineProperty(_this, "canvasEl",
|
|
28
|
-
_defineProperty(_this, "videoEl",
|
|
27
|
+
_defineProperty(_this, "canvasEl", undefined);
|
|
28
|
+
_defineProperty(_this, "videoEl", undefined);
|
|
29
29
|
_this.isPlayback = false;
|
|
30
30
|
_this.playbackIndex = 0;
|
|
31
31
|
_this.generateEl();
|
|
@@ -49,7 +49,7 @@ var DaHua = /*#__PURE__*/function (_VideoControl) {
|
|
|
49
49
|
key: "removeEl",
|
|
50
50
|
value: function removeEl() {
|
|
51
51
|
var remove = function remove(el) {
|
|
52
|
-
var parent = el === null || el ===
|
|
52
|
+
var parent = el === null || el === undefined ? undefined : el.parentNode;
|
|
53
53
|
if (parent) {
|
|
54
54
|
parent.removeChild(el);
|
|
55
55
|
}
|
|
@@ -77,7 +77,7 @@ var DaHua = /*#__PURE__*/function (_VideoControl) {
|
|
|
77
77
|
key: "stop",
|
|
78
78
|
value: function stop() {
|
|
79
79
|
var _this$player, _this$player$pause;
|
|
80
|
-
this === null || this ===
|
|
80
|
+
this === null || this === undefined || (_this$player = this.player) === null || _this$player === undefined || (_this$player$pause = _this$player.pause) === null || _this$player$pause === undefined || _this$player$pause.call(_this$player);
|
|
81
81
|
this.dispatch(EventEnum.PAUSE, {
|
|
82
82
|
type: 'Pause',
|
|
83
83
|
target: this
|
|
@@ -143,8 +143,8 @@ var DaHua = /*#__PURE__*/function (_VideoControl) {
|
|
|
143
143
|
type: 'dispose',
|
|
144
144
|
target: this
|
|
145
145
|
});
|
|
146
|
-
this.player && ((_this$player2 = this.player) === null || _this$player2 ===
|
|
147
|
-
this.player && ((_this$player3 = this.player) === null || _this$player3 ===
|
|
146
|
+
this.player && ((_this$player2 = this.player) === null || _this$player2 === undefined || (_this$player2$stop = _this$player2.stop) === null || _this$player2$stop === undefined ? undefined : _this$player2$stop.call(_this$player2));
|
|
147
|
+
this.player && ((_this$player3 = this.player) === null || _this$player3 === undefined || (_this$player3$close = _this$player3.close) === null || _this$player3$close === undefined ? undefined : _this$player3$close.call(_this$player3));
|
|
148
148
|
this.removeEl();
|
|
149
149
|
this.player = null;
|
|
150
150
|
}
|
|
@@ -8,8 +8,8 @@ import VideoControl from '../abstract/VideoControl.js';
|
|
|
8
8
|
import { EventEnum } from '../enums/CommonEnum.js';
|
|
9
9
|
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
12
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e, _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
var DEF = {
|
|
15
15
|
ip: '172.168.1.247',
|
|
@@ -29,11 +29,11 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
|
|
|
29
29
|
_classCallCheck(this, Hikvision);
|
|
30
30
|
var def = _objectSpread(_objectSpread({}, DEF), opts);
|
|
31
31
|
_this = _callSuper(this, Hikvision, [def]);
|
|
32
|
-
_defineProperty(_this, "width",
|
|
33
|
-
_defineProperty(_this, "height",
|
|
34
|
-
_defineProperty(_this, "elId",
|
|
35
|
-
_defineProperty(_this, "container",
|
|
36
|
-
_defineProperty(_this, "szBasePath",
|
|
32
|
+
_defineProperty(_this, "width", undefined);
|
|
33
|
+
_defineProperty(_this, "height", undefined);
|
|
34
|
+
_defineProperty(_this, "elId", undefined);
|
|
35
|
+
_defineProperty(_this, "container", undefined);
|
|
36
|
+
_defineProperty(_this, "szBasePath", undefined);
|
|
37
37
|
_this.isPlayback = false;
|
|
38
38
|
_this.playbackIndex = 0;
|
|
39
39
|
_this.needPlugin = true;
|
|
@@ -84,7 +84,7 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
|
|
|
84
84
|
value: function generateEl() {
|
|
85
85
|
var _this$width, _this$height;
|
|
86
86
|
this.container = document.createElement('div');
|
|
87
|
-
this.container.style.cssText = "width: ".concat((_this$width = this.width) !== null && _this$width !==
|
|
87
|
+
this.container.style.cssText = "width: ".concat((_this$width = this.width) !== null && _this$width !== undefined ? _this$width : '100%', ";height: ").concat((_this$height = this.height) !== null && _this$height !== undefined ? _this$height : '100%', ";");
|
|
88
88
|
this.container.setAttribute('id', this.pluginElId);
|
|
89
89
|
if (this.wrapEl) {
|
|
90
90
|
this.wrapEl.appendChild(this.container);
|
|
@@ -94,7 +94,7 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
|
|
|
94
94
|
key: "removeEl",
|
|
95
95
|
value: function removeEl() {
|
|
96
96
|
var remove = function remove(el) {
|
|
97
|
-
var parent = el === null || el ===
|
|
97
|
+
var parent = el === null || el === undefined ? undefined : el.parentNode;
|
|
98
98
|
if (parent) {
|
|
99
99
|
parent.removeChild(el);
|
|
100
100
|
}
|
|
@@ -123,7 +123,7 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
|
|
|
123
123
|
value: function play() {
|
|
124
124
|
var _WebVideoCtrl,
|
|
125
125
|
_this2 = this;
|
|
126
|
-
var oWndInfo = (_WebVideoCtrl = WebVideoCtrl) === null || _WebVideoCtrl ===
|
|
126
|
+
var oWndInfo = (_WebVideoCtrl = WebVideoCtrl) === null || _WebVideoCtrl === undefined ? undefined : _WebVideoCtrl.I_GetWindowStatus(0);
|
|
127
127
|
var startRealPlay = function startRealPlay() {
|
|
128
128
|
WebVideoCtrl.I_StartRealPlay(_this2.identify, {
|
|
129
129
|
iStreamType: _this2.streamType,
|
|
@@ -199,7 +199,7 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
|
|
|
199
199
|
port = this.port,
|
|
200
200
|
username = this.username,
|
|
201
201
|
password = this.password;
|
|
202
|
-
(_WebVideoCtrl2 = WebVideoCtrl) === null || _WebVideoCtrl2 ===
|
|
202
|
+
(_WebVideoCtrl2 = WebVideoCtrl) === null || _WebVideoCtrl2 === undefined || _WebVideoCtrl2.I_Login(ip, 1, port, username, password, {
|
|
203
203
|
timeout: 3000,
|
|
204
204
|
success: function success(xmlDoc) {
|
|
205
205
|
console.log('登录成功', xmlDoc);
|
|
@@ -219,7 +219,7 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
|
|
|
219
219
|
value: function logout() {
|
|
220
220
|
var _WebVideoCtrl3,
|
|
221
221
|
_this5 = this;
|
|
222
|
-
(_WebVideoCtrl3 = WebVideoCtrl) === null || _WebVideoCtrl3 ===
|
|
222
|
+
(_WebVideoCtrl3 = WebVideoCtrl) === null || _WebVideoCtrl3 === undefined || _WebVideoCtrl3.I_Logout(this.identify).then(function () {
|
|
223
223
|
console.log('退出成功');
|
|
224
224
|
}, function () {
|
|
225
225
|
console.log('退出失败');
|