@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 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.10",
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"
@@ -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", {