@zgfe/business-lib 1.2.51-plat.4 → 1.2.51
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.
|
@@ -26,6 +26,7 @@ var BizPlatformSelector = function BizPlatformSelector(props) {
|
|
|
26
26
|
className: classPrefix
|
|
27
27
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
28
28
|
className: "".concat(classPrefix, "-select"),
|
|
29
|
+
overlayClassName: "".concat(classPrefix, "-select-overlay"),
|
|
29
30
|
options: props.valueOption && props.valueOption.length ? props.valueOption : platformOption,
|
|
30
31
|
overlayWidth: 134,
|
|
31
32
|
keyField: "key",
|
|
@@ -5,5 +5,18 @@
|
|
|
5
5
|
border-radius: 4px;
|
|
6
6
|
.biz-platform-selector-select .biz-select-handle-input {
|
|
7
7
|
background-color: #fff;
|
|
8
|
+
.biz-select-handle-content .biz-select-handle-icon .bsicon {
|
|
9
|
+
color: #9aa1a9;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.biz-platform-selector-select-overlay .biz-select-list-panel .biz-select-option {
|
|
14
|
+
.biz-select-option-icon .bsicon {
|
|
15
|
+
color: #9aa1a9;
|
|
16
|
+
}
|
|
17
|
+
&:hover {
|
|
18
|
+
.biz-select-option-icon .bsicon {
|
|
19
|
+
color: #165dff;
|
|
20
|
+
}
|
|
8
21
|
}
|
|
9
22
|
}
|
package/es/userGroup/overlay.js
CHANGED
|
@@ -130,7 +130,7 @@ var Overlay = function Overlay(_ref2) {
|
|
|
130
130
|
onClick: onClickAdd
|
|
131
131
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
132
132
|
type: "zengjia"
|
|
133
|
-
}), "\
|
|
133
|
+
}), "\u6DFB\u52A0\u5206\u7FA4")), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
|
|
134
134
|
data: showList || [],
|
|
135
135
|
itemHeight: 32,
|
|
136
136
|
itemKey: "id",
|
|
@@ -8,11 +8,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
9
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useEffect } from 'react';
|
|
11
|
+
import React, { useEffect, useContext } from 'react';
|
|
12
12
|
import './styles/index.less';
|
|
13
13
|
import { Space, Tooltip } from 'antd';
|
|
14
14
|
import BizUserGroup from '../userGroup';
|
|
15
15
|
import IconFont from '../icon/iconFont';
|
|
16
|
+
import BizGlobalDataContext from '../context';
|
|
16
17
|
import _ from 'lodash';
|
|
17
18
|
var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
|
|
18
19
|
var max = _ref.max,
|
|
@@ -21,6 +22,8 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
|
|
|
21
22
|
enableTags = _ref.enableTags,
|
|
22
23
|
title = _ref.title,
|
|
23
24
|
placeholder = _ref.placeholder;
|
|
25
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
26
|
+
currentApp = _useContext.currentApp;
|
|
24
27
|
var classPrefix = 'biz-user-group-header';
|
|
25
28
|
var _React$useState = React.useState([]),
|
|
26
29
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -55,7 +58,7 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
|
|
|
55
58
|
className: classPrefix
|
|
56
59
|
}, /*#__PURE__*/React.createElement("div", {
|
|
57
60
|
className: "".concat(classPrefix, "-title")
|
|
58
|
-
}, title || '分析用户群'), /*#__PURE__*/React.createElement(Space, {
|
|
61
|
+
}, title || (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '分析用户群' : '主体分群'), /*#__PURE__*/React.createElement(Space, {
|
|
59
62
|
size: 16,
|
|
60
63
|
className: "".concat(classPrefix, "-container")
|
|
61
64
|
}, [tempValue.map(function (item, i) {
|
|
@@ -74,7 +77,7 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
|
|
|
74
77
|
list[i].value = val;
|
|
75
78
|
setTempValue(list);
|
|
76
79
|
},
|
|
77
|
-
placeholder: placeholder
|
|
80
|
+
placeholder: placeholder || '请选择分群'
|
|
78
81
|
});
|
|
79
82
|
})], /*#__PURE__*/React.createElement(Tooltip, {
|
|
80
83
|
title: "\u6DFB\u52A0\u5206\u7FA4\u505A\u5BF9\u6BD4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.51
|
|
3
|
+
"version": "1.2.51",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^16.12.0 || ^17.0.0",
|
|
56
56
|
"yorkie": "^2.0.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1bffc8fa5a44ac2225b1ff96c3131f8deaae24d1",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|