@yueglobal/ui 1.0.10 → 1.0.11
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/assets/hs-wx.png +0 -0
- package/assets/hsgo-applet.png +0 -0
- package/assets/yldm-applet.png +0 -0
- package/assets/yxh-applet.png +0 -0
- package/package.json +1 -1
- package/yue-page-footer/index.d.ts +1 -0
- package/yue-page-footer/index.js +26 -4
- package/yue-page-footer/index.less +2 -1
- package/yue-page-header/index.d.ts +1 -0
- package/yue-page-header/index.js +3 -2
package/assets/hs-wx.png
CHANGED
|
Binary file
|
|
Binary file
|
package/assets/yldm-applet.png
CHANGED
|
Binary file
|
package/assets/yxh-applet.png
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/yue-page-footer/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Popover } from 'antd';
|
|
1
2
|
import React, { memo, useRef } from 'react';
|
|
2
3
|
import logoImg from "../assets/hs-logo.png";
|
|
3
4
|
import hsImg from "../assets/hs-wx.png";
|
|
5
|
+
import hsGoImg from "../assets/hsgo-applet.png";
|
|
4
6
|
import titleImg from "../assets/platform-logo.png";
|
|
5
7
|
import yldmImg from "../assets/yldm-applet.png";
|
|
6
8
|
import yxhImg from "../assets/yxh-applet.png";
|
|
@@ -10,7 +12,8 @@ import "./index.less";
|
|
|
10
12
|
import InfoModal from "./info-modal";
|
|
11
13
|
var Index = function Index(_ref) {
|
|
12
14
|
var _ref$width = _ref.width,
|
|
13
|
-
width = _ref$width === void 0 ? '80%' : _ref$width
|
|
15
|
+
width = _ref$width === void 0 ? '80%' : _ref$width,
|
|
16
|
+
unitName = _ref.unitName;
|
|
14
17
|
var modalRef = useRef(null);
|
|
15
18
|
var wxCodes = [{
|
|
16
19
|
label: '华商国际',
|
|
@@ -24,6 +27,10 @@ var Index = function Index(_ref) {
|
|
|
24
27
|
label: '粤选汇',
|
|
25
28
|
type: '小程序',
|
|
26
29
|
img: yxhImg
|
|
30
|
+
}, {
|
|
31
|
+
label: '华商GO',
|
|
32
|
+
type: '小程序',
|
|
33
|
+
img: hsGoImg
|
|
27
34
|
}];
|
|
28
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
36
|
className: "yue-page-footer"
|
|
@@ -70,15 +77,30 @@ var Index = function Index(_ref) {
|
|
|
70
77
|
className: "item"
|
|
71
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
72
79
|
className: "img-box"
|
|
80
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
81
|
+
placement: "top",
|
|
82
|
+
mouseEnterDelay: 0.5,
|
|
83
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
style: {
|
|
85
|
+
padding: 24
|
|
86
|
+
}
|
|
87
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
88
|
+
src: d.img,
|
|
89
|
+
alt: "",
|
|
90
|
+
style: {
|
|
91
|
+
height: 250
|
|
92
|
+
}
|
|
93
|
+
}))
|
|
73
94
|
}, /*#__PURE__*/React.createElement("img", {
|
|
74
95
|
src: d.img,
|
|
75
|
-
alt: ""
|
|
76
|
-
|
|
96
|
+
alt: "",
|
|
97
|
+
className: "img"
|
|
98
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
77
99
|
className: "info"
|
|
78
100
|
}, /*#__PURE__*/React.createElement("div", null, d.label), /*#__PURE__*/React.createElement("div", null, d.type)));
|
|
79
101
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
80
102
|
className: "copyright"
|
|
81
|
-
}, /*#__PURE__*/React.createElement("span", null, "\u4E3B\u529E\u5355\u4F4D\uFF1A
|
|
103
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u4E3B\u529E\u5355\u4F4D\uFF1A", unitName || '华商国际发展有限公司'), /*#__PURE__*/React.createElement("span", {
|
|
82
104
|
className: "vr"
|
|
83
105
|
}), /*#__PURE__*/React.createElement("span", null, "Copyright\xA9 2025 All Rights Reserved"), /*#__PURE__*/React.createElement("span", {
|
|
84
106
|
className: "vr"
|
package/yue-page-header/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["width", "backgroundColor", "rightContent", "onLocaleChange", "pageTitle", "pageIcon", "activeLabel"];
|
|
1
|
+
var _excluded = ["width", "backgroundColor", "rightContent", "onLocaleChange", "pageTitle", "pageIcon", "activeLabel", "logo"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -26,6 +26,7 @@ var Index = function Index(_ref) {
|
|
|
26
26
|
pageTitle = _ref.pageTitle,
|
|
27
27
|
pageIcon = _ref.pageIcon,
|
|
28
28
|
activeLabel = _ref.activeLabel,
|
|
29
|
+
logo = _ref.logo,
|
|
29
30
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
30
31
|
var _useState = useState('cn'),
|
|
31
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -109,7 +110,7 @@ var Index = function Index(_ref) {
|
|
|
109
110
|
alt: "",
|
|
110
111
|
className: "logo"
|
|
111
112
|
}), /*#__PURE__*/React.createElement("img", {
|
|
112
|
-
src: logoSvg,
|
|
113
|
+
src: logo || logoSvg,
|
|
113
114
|
alt: "",
|
|
114
115
|
className: "hs-logo"
|
|
115
116
|
})), /*#__PURE__*/React.createElement("div", {
|