@vtx/modals2 6.0.0-beta.15 → 6.0.0-beta.16
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.
|
@@ -17,6 +17,7 @@ import VmCustom from "../_components/vm-custom";
|
|
|
17
17
|
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
18
18
|
import VmVideo, { insertVideoTab } from "../_components/vm-video";
|
|
19
19
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
20
|
+
import useGetConfig from "../_hooks/useGetConfig";
|
|
20
21
|
import { CommonService } from "../_service";
|
|
21
22
|
import VtxBaseModal from "../vtx-base-modal";
|
|
22
23
|
import VtxDefaultModal from "../vtx-default-modal";
|
|
@@ -40,8 +41,12 @@ var smallPop = function smallPop(params) {
|
|
|
40
41
|
data: params
|
|
41
42
|
});
|
|
42
43
|
};
|
|
44
|
+
var tabs = [{
|
|
45
|
+
key: 'base',
|
|
46
|
+
title: translateLocaleText("t('vtxdefaultmodal.basicInformation')")
|
|
47
|
+
}];
|
|
43
48
|
export default (function (props) {
|
|
44
|
-
var
|
|
49
|
+
var _config$;
|
|
45
50
|
var visible = props.visible,
|
|
46
51
|
theme = props.theme,
|
|
47
52
|
title = props.title,
|
|
@@ -59,7 +64,9 @@ export default (function (props) {
|
|
|
59
64
|
setConfig = _useState4[1];
|
|
60
65
|
var _CommonService$useBas = CommonService.useBaseInfo(id),
|
|
61
66
|
info = _CommonService$useBas.info;
|
|
62
|
-
var
|
|
67
|
+
var _useGetConfig = useGetConfig(info === null || info === void 0 ? void 0 : info.typeCode, tabs),
|
|
68
|
+
tabsData = _useGetConfig.tabsData;
|
|
69
|
+
var _useGetChannels = useGetChannels("".concat((info === null || info === void 0 ? void 0 : info.typeCode) || 'wr', "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.code) && (tabsData === null || tabsData === void 0 ? void 0 : tabsData.findIndex(function (ele) {
|
|
63
70
|
return ele.key === 'video';
|
|
64
71
|
})) > -1),
|
|
65
72
|
channels = _useGetChannels.channels;
|