component-shipinlv 2.2.13 → 2.2.15
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/Ad/index.js +6 -4
- package/dist/Ad/index.less +4 -0
- package/package.json +1 -1
package/dist/Ad/index.js
CHANGED
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import { useRequest } from "@umijs/hooks";
|
5
5
|
import * as AdController from "../service/api/AdController";
|
6
6
|
import React, { useRef, useState } from 'react';
|
7
|
-
import { LoadingOutlined, WarningOutlined } from "@ant-design/icons";
|
7
|
+
import { LoadingOutlined, SoundOutlined, WarningOutlined } from "@ant-design/icons";
|
8
8
|
import "./index.less";
|
9
9
|
import { Image } from "antd";
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -102,7 +102,7 @@ var Ad = function Ad(_ref) {
|
|
102
102
|
children: [/*#__PURE__*/_jsx(WarningOutlined, {
|
103
103
|
className: "reload"
|
104
104
|
}), " \u91CD\u8BD5"]
|
105
|
-
}) : loading ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : /*#__PURE__*/_jsx("div", {
|
105
|
+
}) : loading ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : currentItem.id > 0 && /*#__PURE__*/_jsx("div", {
|
106
106
|
className: "adList",
|
107
107
|
onMouseEnter: function onMouseEnter() {
|
108
108
|
return clearTimeout(timerRef.current);
|
@@ -110,7 +110,7 @@ var Ad = function Ad(_ref) {
|
|
110
110
|
onMouseLeave: function onMouseLeave() {
|
111
111
|
return onLoop();
|
112
112
|
},
|
113
|
-
children: /*#__PURE__*/
|
113
|
+
children: /*#__PURE__*/_jsxs("a", {
|
114
114
|
href: currentItem.url,
|
115
115
|
target: "_blank",
|
116
116
|
onClick: function onClick(e) {
|
@@ -120,7 +120,9 @@ var Ad = function Ad(_ref) {
|
|
120
120
|
return false;
|
121
121
|
}
|
122
122
|
},
|
123
|
-
children:
|
123
|
+
children: [/*#__PURE__*/_jsx(SoundOutlined, {
|
124
|
+
className: "iconSound"
|
125
|
+
}), " ", currentItem.title]
|
124
126
|
})
|
125
127
|
}), /*#__PURE__*/_jsx(Image, {
|
126
128
|
style: {
|
package/dist/Ad/index.less
CHANGED