@yueglobal/ui 1.0.9 → 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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/assets/hs-wx.png CHANGED
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yueglobal/ui",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "粤链全球 - react组件库",
5
5
  "license": "MIT",
6
6
  "module": "index.js",
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import './index.less';
3
3
  export interface YuePageFooterProps {
4
4
  width?: string | number;
5
+ unitName?: string;
5
6
  }
6
7
  declare const _default: React.NamedExoticComponent<YuePageFooterProps>;
7
8
  export default _default;
@@ -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"
@@ -62,7 +69,7 @@ var Index = function Index(_ref) {
62
69
  className: "contacts"
63
70
  }, /*#__PURE__*/React.createElement("div", {
64
71
  className: "title"
65
- }, "\u8054\u7CFB\u6216\u5173\u6CE8\u6211\u4EEC"), /*#__PURE__*/React.createElement("div", null, "\u516C\u53F8\u90AE\u7BB1\uFF1AGWHSGJ001@outlook.com"), /*#__PURE__*/React.createElement("div", null, "\u516C\u53F8\u5730\u5740\uFF1A\u5E7F\u4E1C\u7701\u5E7F\u5DDE\u5E02\u5929\u6CB3\u533A\u5174\u56FD\u8DEF21\u53F7\u5E7F\u7269\u4E2D\u5FC322\u697C"), /*#__PURE__*/React.createElement("div", null, "\u5DE5\u4F5C\u65F6\u95F4\uFF1A9:00\u201318:00")), /*#__PURE__*/React.createElement("div", {
72
+ }, "\u8054\u7CFB\u6216\u5173\u6CE8\u6211\u4EEC"), /*#__PURE__*/React.createElement("div", null, "\u516C\u53F8\u90AE\u7BB1\uFF1Asinogoglobal@163.com"), /*#__PURE__*/React.createElement("div", null, "\u516C\u53F8\u5730\u5740\uFF1A\u5E7F\u4E1C\u7701\u5E7F\u5DDE\u5E02\u5929\u6CB3\u533A\u5174\u56FD\u8DEF21\u53F7\u5E7F\u7269\u4E2D\u5FC322\u697C"), /*#__PURE__*/React.createElement("div", null, "\u5DE5\u4F5C\u65F6\u95F4\uFF1A9:00\u201318:00")), /*#__PURE__*/React.createElement("div", {
66
73
  className: "wx-code-list"
67
74
  }, wxCodes.map(function (d) {
68
75
  return /*#__PURE__*/React.createElement("div", {
@@ -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
- })), /*#__PURE__*/React.createElement("div", {
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\u534E\u5546\u56FD\u9645\u53D1\u5C55\u6709\u9650\u516C\u53F8"), /*#__PURE__*/React.createElement("span", {
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"
@@ -121,8 +121,9 @@
121
121
  align-items: center;
122
122
  justify-content: center;
123
123
 
124
- img {
124
+ .img {
125
125
  height: 80px;
126
+ cursor: pointer;
126
127
  }
127
128
  }
128
129
 
@@ -20,6 +20,7 @@ export interface YuePageHeaderProps {
20
20
  locale: string;
21
21
  }) => void;
22
22
  subMenuLayout?: 'vertical' | 'horizontal';
23
+ logo?: string;
23
24
  }
24
25
  declare const _default: React.NamedExoticComponent<YuePageHeaderProps>;
25
26
  export default _default;
@@ -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", {