@zgfe/business-lib 1.1.8 → 1.1.9-tag.0

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.
@@ -134,9 +134,18 @@
134
134
 
135
135
  .ant-picker-input > input {
136
136
  color: @text-color!important;
137
+ &[disabled] {
138
+ color: @disabled-color!important;
139
+ }
140
+ }
141
+
142
+ &.ant-picker-disabled {
143
+ span {
144
+ color: @disabled-color!important;
145
+ }
137
146
  }
138
147
 
139
- &:hover,
148
+ &:hover:not(.ant-picker-disabled),
140
149
  &.ant-picker-focused {
141
150
  .__default-hover() !important;
142
151
  border-color: @border-color-base!important;
@@ -5,13 +5,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import React, { useContext } from 'react';
8
- import { RightOutlined } from '@ant-design/icons';
9
8
  import BizEventSelector from '../../eventSelector';
10
9
  import RunTimesCondition from './runTimesCondition';
11
10
  import PeriodCondition from './periodCondition';
12
11
  import PropCondition from './propCondition';
13
12
  import './styles/eventCondition.less';
14
13
  import { BizUserConditionContext, classPrefix } from '..';
14
+ import { Tooltip } from 'antd';
15
+ import IconFont from '../../icon/iconFont';
15
16
 
16
17
  var EventCondition = function EventCondition(props) {
17
18
  var _useContext = useContext(BizUserConditionContext),
@@ -79,10 +80,14 @@ var EventCondition = function EventCondition(props) {
79
80
  placeholder: "\u9009\u62E9\u4E00\u4E2A\u4E8B\u4EF6",
80
81
  destroyPopupOnHide: true,
81
82
  defaultSelectAble: false
82
- })), /*#__PURE__*/React.createElement("div", {
83
+ })), /*#__PURE__*/React.createElement(Tooltip, {
84
+ title: "\u6DFB\u52A0\u7B5B\u9009"
85
+ }, /*#__PURE__*/React.createElement("div", {
83
86
  className: "".concat(classPrefix, "-event-condition-expand-attr"),
84
87
  onClick: onAddAttr
85
- }, /*#__PURE__*/React.createElement(RightOutlined, null))), /*#__PURE__*/React.createElement("div", {
88
+ }, /*#__PURE__*/React.createElement(IconFont, {
89
+ type: "shaixuan"
90
+ })))), /*#__PURE__*/React.createElement("div", {
86
91
  className: "".concat(classPrefix, "-event-condition-right")
87
92
  }, condition.attrs.length && condition.eventId ? /*#__PURE__*/React.createElement("div", {
88
93
  className: "".concat(classPrefix, "-event-condition-attrs")
@@ -44,6 +44,7 @@ export declare namespace BizUserConditionT {
44
44
  updateTime: string;
45
45
  del: number;
46
46
  labelGroup: string;
47
+ sequence: number;
47
48
  id: number;
48
49
  labelName: string;
49
50
  labelStatus: number;
@@ -133,22 +133,25 @@ export function buildSelectLayer(data) {
133
133
  };
134
134
  }
135
135
  export function buildTagsGroup(list) {
136
- var groupOrder = ['基本标签', '活跃标签', '行为标签', '预测标签', '其它标签'];
137
- var groupsMap = {};
138
136
  var options = [];
139
137
  list.forEach(function (label) {
140
- if (Object.hasOwn(groupsMap, label.labelGroup)) {
141
- groupsMap[label.labelGroup].children.push(_objectSpread({}, label));
138
+ if (!label.sequence) return;
139
+ var index = label.sequence - 1;
140
+
141
+ if (options[index]) {
142
+ options[index].children.push(label);
142
143
  } else {
143
- var group = {
144
+ options[index] = {
144
145
  labelGroup: label.labelGroup,
145
146
  children: [_objectSpread({}, label)]
146
147
  };
147
- groupsMap[label.labelGroup] = group;
148
148
  }
149
149
  });
150
- groupOrder.map(function (group) {
151
- groupsMap[group] && options.push(groupsMap[group]);
150
+ var result = [];
151
+ options.forEach(function (item) {
152
+ if (item) {
153
+ result.push(item);
154
+ }
152
155
  });
153
- return options;
156
+ return result;
154
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.8",
3
+ "version": "1.1.9-tag.0",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "9ae546a9e4964debc0c5b4e1f7d5cd7e6f262c6a"
63
+ "gitHead": "08bb7f7e9275ab13fe71dad9a9d3d30506ded9a2"
64
64
  }