@ezuikit/player-theme 2.0.3-beta.2 → 2.1.0-beta.2
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/dist/constant.js +2 -2
- package/dist/index.js +34 -27
- package/dist/index.mjs +34 -27
- package/dist/index.umd.js +34 -27
- package/dist/style.js +2 -2
- package/package.json +1 -1
package/dist/constant.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.0
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.2
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -1746,7 +1746,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1746
1746
|
_this._lastVolume = _this._volume;
|
|
1747
1747
|
_this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
|
|
1748
1748
|
// 轻应用私有暂时不支持调节音量
|
|
1749
|
-
if (!(Utils.isMobile || _this._options.PLAY_TYPE
|
|
1749
|
+
if (!(Utils.isMobile || _this._options.PLAY_TYPE !== 'ezopen')) {
|
|
1750
1750
|
var _this__options_props4, _this__options_props5;
|
|
1751
1751
|
_this.picker = new Picker(_this.$container, {
|
|
1752
1752
|
getPopupContainer: function() {
|
|
@@ -1911,7 +1911,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1911
1911
|
if (this._lastVolume !== _volume) {
|
|
1912
1912
|
this._volume = _volume;
|
|
1913
1913
|
this._lastVolume = this._volume;
|
|
1914
|
-
if (this._progress)
|
|
1914
|
+
if (this._progress) {
|
|
1915
|
+
// 静音时进度条为 0
|
|
1916
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
1917
|
+
}
|
|
1915
1918
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
1916
1919
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
1917
1920
|
}
|
|
@@ -3186,7 +3189,14 @@ var en = {
|
|
|
3186
3189
|
{
|
|
3187
3190
|
iconId: 'volume',
|
|
3188
3191
|
part: 'left',
|
|
3189
|
-
defaultActive:
|
|
3192
|
+
defaultActive: 0,
|
|
3193
|
+
isrender: 1
|
|
3194
|
+
},
|
|
3195
|
+
{
|
|
3196
|
+
// flv 录制 2.1.0 新增
|
|
3197
|
+
iconId: 'record',
|
|
3198
|
+
part: 'left',
|
|
3199
|
+
defaultActive: 0,
|
|
3190
3200
|
isrender: 1
|
|
3191
3201
|
},
|
|
3192
3202
|
{
|
|
@@ -9630,7 +9640,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9630
9640
|
}
|
|
9631
9641
|
function _renderTheme(theme, data) {
|
|
9632
9642
|
return _async_to_generator$1(function() {
|
|
9633
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4,
|
|
9643
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9634
9644
|
return _ts_generator$1(this, function(_state) {
|
|
9635
9645
|
switch(_state.label){
|
|
9636
9646
|
case 0:
|
|
@@ -9792,26 +9802,23 @@ function _renderTheme(theme, data) {
|
|
|
9792
9802
|
hasPtz = list.some(function(item) {
|
|
9793
9803
|
return item.iconId === 'ptz';
|
|
9794
9804
|
});
|
|
9795
|
-
if (
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
}
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
}
|
|
9813
|
-
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9814
|
-
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9805
|
+
if (hasPtz || _needTimeLine) {
|
|
9806
|
+
theme._mobileExtend = new MobileExtend(theme.$container);
|
|
9807
|
+
if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
|
|
9808
|
+
_renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
|
|
9809
|
+
}
|
|
9810
|
+
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('rec')) && _needTimeLine) {
|
|
9811
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
|
|
9812
|
+
var _theme__mobileExtend;
|
|
9813
|
+
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
9814
|
+
});
|
|
9815
|
+
}
|
|
9816
|
+
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
9817
|
+
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
9818
|
+
}
|
|
9819
|
+
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9820
|
+
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9821
|
+
}
|
|
9815
9822
|
}
|
|
9816
9823
|
}
|
|
9817
9824
|
theme.emit(EVENTS.control.mountedControls);
|
|
@@ -11384,7 +11391,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11384
11391
|
zh: zh,
|
|
11385
11392
|
en: en
|
|
11386
11393
|
};
|
|
11387
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0
|
|
11394
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.2';
|
|
11388
11395
|
|
|
11389
11396
|
exports.Control = Control;
|
|
11390
11397
|
exports.EVENTS = EVENTS;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.0
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.2
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -1744,7 +1744,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1744
1744
|
_this._lastVolume = _this._volume;
|
|
1745
1745
|
_this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
|
|
1746
1746
|
// 轻应用私有暂时不支持调节音量
|
|
1747
|
-
if (!(Utils.isMobile || _this._options.PLAY_TYPE
|
|
1747
|
+
if (!(Utils.isMobile || _this._options.PLAY_TYPE !== 'ezopen')) {
|
|
1748
1748
|
var _this__options_props4, _this__options_props5;
|
|
1749
1749
|
_this.picker = new Picker(_this.$container, {
|
|
1750
1750
|
getPopupContainer: function() {
|
|
@@ -1909,7 +1909,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1909
1909
|
if (this._lastVolume !== _volume) {
|
|
1910
1910
|
this._volume = _volume;
|
|
1911
1911
|
this._lastVolume = this._volume;
|
|
1912
|
-
if (this._progress)
|
|
1912
|
+
if (this._progress) {
|
|
1913
|
+
// 静音时进度条为 0
|
|
1914
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
1915
|
+
}
|
|
1913
1916
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
1914
1917
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
1915
1918
|
}
|
|
@@ -3184,7 +3187,14 @@ var en = {
|
|
|
3184
3187
|
{
|
|
3185
3188
|
iconId: 'volume',
|
|
3186
3189
|
part: 'left',
|
|
3187
|
-
defaultActive:
|
|
3190
|
+
defaultActive: 0,
|
|
3191
|
+
isrender: 1
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
// flv 录制 2.1.0 新增
|
|
3195
|
+
iconId: 'record',
|
|
3196
|
+
part: 'left',
|
|
3197
|
+
defaultActive: 0,
|
|
3188
3198
|
isrender: 1
|
|
3189
3199
|
},
|
|
3190
3200
|
{
|
|
@@ -9628,7 +9638,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9628
9638
|
}
|
|
9629
9639
|
function _renderTheme(theme, data) {
|
|
9630
9640
|
return _async_to_generator$1(function() {
|
|
9631
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4,
|
|
9641
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9632
9642
|
return _ts_generator$1(this, function(_state) {
|
|
9633
9643
|
switch(_state.label){
|
|
9634
9644
|
case 0:
|
|
@@ -9790,26 +9800,23 @@ function _renderTheme(theme, data) {
|
|
|
9790
9800
|
hasPtz = list.some(function(item) {
|
|
9791
9801
|
return item.iconId === 'ptz';
|
|
9792
9802
|
});
|
|
9793
|
-
if (
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
}
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
}
|
|
9811
|
-
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9812
|
-
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9803
|
+
if (hasPtz || _needTimeLine) {
|
|
9804
|
+
theme._mobileExtend = new MobileExtend(theme.$container);
|
|
9805
|
+
if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
|
|
9806
|
+
_renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
|
|
9807
|
+
}
|
|
9808
|
+
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('rec')) && _needTimeLine) {
|
|
9809
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
|
|
9810
|
+
var _theme__mobileExtend;
|
|
9811
|
+
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
9812
|
+
});
|
|
9813
|
+
}
|
|
9814
|
+
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
9815
|
+
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
9816
|
+
}
|
|
9817
|
+
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
9818
|
+
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
9819
|
+
}
|
|
9813
9820
|
}
|
|
9814
9821
|
}
|
|
9815
9822
|
theme.emit(EVENTS.control.mountedControls);
|
|
@@ -11382,6 +11389,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11382
11389
|
zh: zh,
|
|
11383
11390
|
en: en
|
|
11384
11391
|
};
|
|
11385
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0
|
|
11392
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.2';
|
|
11386
11393
|
|
|
11387
11394
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.0
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.2
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -2995,7 +2995,7 @@
|
|
|
2995
2995
|
_this._lastVolume = _this._volume;
|
|
2996
2996
|
_this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
|
|
2997
2997
|
// 轻应用私有暂时不支持调节音量
|
|
2998
|
-
if (!(Utils.isMobile || _this._options.PLAY_TYPE
|
|
2998
|
+
if (!(Utils.isMobile || _this._options.PLAY_TYPE !== 'ezopen')) {
|
|
2999
2999
|
var _this__options_props4, _this__options_props5;
|
|
3000
3000
|
_this.picker = new Picker(_this.$container, {
|
|
3001
3001
|
getPopupContainer: function() {
|
|
@@ -3160,7 +3160,10 @@
|
|
|
3160
3160
|
if (this._lastVolume !== _volume) {
|
|
3161
3161
|
this._volume = _volume;
|
|
3162
3162
|
this._lastVolume = this._volume;
|
|
3163
|
-
if (this._progress)
|
|
3163
|
+
if (this._progress) {
|
|
3164
|
+
// 静音时进度条为 0
|
|
3165
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
3166
|
+
}
|
|
3164
3167
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
3165
3168
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
3166
3169
|
}
|
|
@@ -4814,7 +4817,14 @@
|
|
|
4814
4817
|
{
|
|
4815
4818
|
iconId: 'volume',
|
|
4816
4819
|
part: 'left',
|
|
4817
|
-
defaultActive:
|
|
4820
|
+
defaultActive: 0,
|
|
4821
|
+
isrender: 1
|
|
4822
|
+
},
|
|
4823
|
+
{
|
|
4824
|
+
// flv 录制 2.1.0 新增
|
|
4825
|
+
iconId: 'record',
|
|
4826
|
+
part: 'left',
|
|
4827
|
+
defaultActive: 0,
|
|
4818
4828
|
isrender: 1
|
|
4819
4829
|
},
|
|
4820
4830
|
{
|
|
@@ -12010,7 +12020,7 @@
|
|
|
12010
12020
|
}
|
|
12011
12021
|
function _renderTheme(theme, data) {
|
|
12012
12022
|
return _async_to_generator$1(function() {
|
|
12013
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4,
|
|
12023
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
12014
12024
|
return _ts_generator$1(this, function(_state) {
|
|
12015
12025
|
switch(_state.label){
|
|
12016
12026
|
case 0:
|
|
@@ -12172,26 +12182,23 @@
|
|
|
12172
12182
|
hasPtz = list.some(function(item) {
|
|
12173
12183
|
return item.iconId === 'ptz';
|
|
12174
12184
|
});
|
|
12175
|
-
if (
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
|
|
12185
|
-
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
}
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
}
|
|
12193
|
-
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
12194
|
-
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
12185
|
+
if (hasPtz || _needTimeLine) {
|
|
12186
|
+
theme._mobileExtend = new MobileExtend(theme.$container);
|
|
12187
|
+
if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
|
|
12188
|
+
_renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
|
|
12189
|
+
}
|
|
12190
|
+
if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('rec')) && _needTimeLine) {
|
|
12191
|
+
[].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
|
|
12192
|
+
var _theme__mobileExtend;
|
|
12193
|
+
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
12194
|
+
});
|
|
12195
|
+
}
|
|
12196
|
+
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
12197
|
+
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
12198
|
+
}
|
|
12199
|
+
if (Utils.isMobile && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions4.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
|
|
12200
|
+
theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
|
|
12201
|
+
}
|
|
12195
12202
|
}
|
|
12196
12203
|
}
|
|
12197
12204
|
theme.emit(EVENTS.control.mountedControls);
|
|
@@ -13764,7 +13771,7 @@
|
|
|
13764
13771
|
zh: zh,
|
|
13765
13772
|
en: en
|
|
13766
13773
|
};
|
|
13767
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0
|
|
13774
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.2';
|
|
13768
13775
|
|
|
13769
13776
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13770
13777
|
|
package/dist/style.js
CHANGED