@titaui/pc 1.9.8 → 1.9.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.
|
@@ -19,6 +19,8 @@ var _could = _interopRequireDefault(require("../image/could"));
|
|
|
19
19
|
|
|
20
20
|
var _getLocale = require("../../../utils/getLocale");
|
|
21
21
|
|
|
22
|
+
var _bsGlobal = require("../../../utils/bs-global");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -42,6 +44,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
42
44
|
var ComponentId = 'Enterprise-Focus-Hotspots';
|
|
43
45
|
|
|
44
46
|
function WordCloudComponent() {
|
|
47
|
+
var versionInfo = (0, _bsGlobal.getBSGlobal)("tenantAuthentication");
|
|
48
|
+
|
|
45
49
|
var _useState = (0, _react.useState)([]),
|
|
46
50
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47
51
|
wordsData = _useState2[0],
|
|
@@ -81,7 +85,7 @@ function WordCloudComponent() {
|
|
|
81
85
|
content: (0, _getLocale.getLocale)('HP_Hotcompanies'),
|
|
82
86
|
iconUrl: require("../image/Collaboration.png"),
|
|
83
87
|
tips: (0, _getLocale.getLocale)('HP_Theenterprise')
|
|
84
|
-
}, wordsData.length === 0 && /*#__PURE__*/_react["default"].createElement(_commenComponents.Advice, {
|
|
88
|
+
}, versionInfo.Version === 1 && wordsData.length === 0 && /*#__PURE__*/_react["default"].createElement(_commenComponents.Advice, {
|
|
85
89
|
styles: {
|
|
86
90
|
"float": 'right'
|
|
87
91
|
},
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import lvMask from '../image/lv'
|
|
|
7
7
|
import couldMask from '../image/could'
|
|
8
8
|
import titaMask from '../image/tita-mask'
|
|
9
9
|
import { getLocale } from "../../../utils/getLocale";
|
|
10
|
+
import { getBSGlobal } from "../../../utils/bs-global";
|
|
10
11
|
|
|
11
12
|
const ComponentId = 'Enterprise-Focus-Hotspots'
|
|
12
13
|
|
|
@@ -14,6 +15,7 @@ const ComponentId = 'Enterprise-Focus-Hotspots'
|
|
|
14
15
|
|
|
15
16
|
export default function WordCloudComponent() {
|
|
16
17
|
|
|
18
|
+
const versionInfo = getBSGlobal("tenantAuthentication");
|
|
17
19
|
const [wordsData, setWordsData] = useState<WordsData>([])
|
|
18
20
|
|
|
19
21
|
useEffect(() => {
|
|
@@ -40,7 +42,7 @@ export default function WordCloudComponent() {
|
|
|
40
42
|
iconUrl={require('../image/Collaboration.png')}
|
|
41
43
|
tips={getLocale('HP_Theenterprise')}
|
|
42
44
|
>
|
|
43
|
-
{wordsData.length === 0 && (
|
|
45
|
+
{versionInfo.Version === 1 && wordsData.length === 0 && (
|
|
44
46
|
<Advice
|
|
45
47
|
styles={{ float: 'right' }}
|
|
46
48
|
link="https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true"
|