@chaoswise/business 0.0.8 → 0.0.10

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.
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Icon/Fill/Close-Circle-Fill</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="聚合搜索框" transform="translate(-1278.000000, -2867.000000)">
6
+ <rect fill="#FFFFFF" x="0" y="0" width="1920" height="3346"></rect>
7
+ <g id="7" opacity="0.800000012" transform="translate(120.000000, 2665.000000)">
8
+ <g id="搜索框备份-2" transform="translate(0.000000, 194.000000)">
9
+ <path d="M1214.00697,0.5 C1214.41913,0.5 1214.7922,0.667699564 1215.06223,0.938862019 C1215.33288,1.21063804 1215.5,1.58624721 1215.5,2.00138927 L1215.5,2.00138927 L1215.5,45.9986107 C1215.5,46.4131621 1215.33227,46.7885021 1215.0616,47.0603047 C1214.79133,47.3317133 1214.41826,47.5 1214.00697,47.5 L1214.00697,47.5 L1.99303181,47.5 C1.58086837,47.5 1.20779551,47.3323004 0.937765379,47.061138 C0.667124252,46.789362 0.5,46.4137528 0.5,45.9986107 L0.5,45.9986107 L0.5,2.00138927 C0.5,1.58683787 0.667729281,1.2114979 0.938396858,0.939695326 C1.20867209,0.668286734 1.58174111,0.5 1.99303181,0.5 L1.99303181,0.5 L1214.00697,0.5 Z" id="Rectangle-26-Copy-23备份" stroke="#FF4D4F" fill="#FFFFFF"></path>
10
+ <g id="Icon/Fill/Close-Circle-Fill" transform="translate(1158.000000, 8.000000)" fill="#000000">
11
+ <rect id="矩形" fill-rule="nonzero" opacity="0" x="0" y="0" width="12" height="12"></rect>
12
+ <path d="M6,0.75 C3.10078125,0.75 0.75,3.10078125 0.75,6 C0.75,8.89921875 3.10078125,11.25 6,11.25 C8.89921875,11.25 11.25,8.89921875 11.25,6 C11.25,3.10078125 8.89921875,0.75 6,0.75 Z M7.93828125,7.99453125 L7.16484375,7.99101563 L6,6.60234375 L4.83632812,7.98984375 L4.06171875,7.99335937 C4.01015625,7.99335937 3.96796875,7.95234375 3.96796875,7.89960937 C3.96796875,7.87734375 3.97617188,7.85625 3.99023438,7.83867187 L5.51484375,6.02226562 L3.99023438,4.20703125 C3.97617188,4.18945312 3.96796875,4.16835937 3.96796875,4.14609375 C3.96796875,4.09453125 4.01015625,4.05234375 4.06171875,4.05234375 L4.83632813,4.05585938 L6,5.44453125 L7.16367187,4.05703125 L7.93710937,4.05351563 C7.98867187,4.05351563 8.03085937,4.09453125 8.03085937,4.14726563 C8.03085937,4.16953125 8.02265625,4.190625 8.00859375,4.20820313 L6.48632812,6.0234375 L8.00976562,7.83984375 C8.02382813,7.85742188 8.03203125,7.87851562 8.03203125,7.90078125 C8.03203125,7.95234375 7.98984375,7.99453125 7.93828125,7.99453125 Z" id="形状" fill-opacity="0.25"></path>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import CloseAllIconSvg from "./assets/Close-Circle-Fill.svg";
3
+ var CloseAllIcon = function CloseAllIcon() {
4
+ return /*#__PURE__*/React.createElement(CloseAllIconSvg, null);
5
+ };
6
+ export default CloseAllIcon;
@@ -411,7 +411,10 @@ var DropDown = function DropDown(props) {
411
411
  return _historyDelete.apply(this, arguments);
412
412
  }
413
413
  var menu = /*#__PURE__*/React.createElement("div", {
414
- className: "aggregate-drop-down-wrap"
414
+ className: "aggregate-drop-down-wrap",
415
+ onClick: function onClick(e) {
416
+ e.stopPropagation();
417
+ }
415
418
  }, /*#__PURE__*/React.createElement("div", {
416
419
  className: "aggregate-drop-down"
417
420
  }, keyOptionValueNotEmpty && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -1,7 +1,7 @@
1
1
  .aggregate-search-switch-btn {
2
2
  border: @border-width-base @border-style-base @input-border-color;
3
3
  border-left: none;
4
- min-height: 26px;
4
+ min-height: 28px;
5
5
  cursor: pointer;
6
6
  background: rgba(0, 0, 0, 0.02);
7
7
  border-radius: 0 2px 2px 0;
@@ -10,6 +10,6 @@
10
10
  align-items: flex-start;
11
11
  align-self: stretch; // 使得高度和父元素一致
12
12
  img{
13
- transform: translateY(7px);
13
+ transform: translateY(8px);
14
14
  }
15
15
  }
@@ -71,7 +71,8 @@ var AggregateSearch = function AggregateSearch(_ref) {
71
71
  onHelpClick = _ref$onHelpClick === void 0 ? function () {} : _ref$onHelpClick,
72
72
  mode = _ref.mode,
73
73
  _ref$defaultMode = _ref.defaultMode,
74
- defaultMode = _ref$defaultMode === void 0 ? "tag" : _ref$defaultMode;
74
+ defaultMode = _ref$defaultMode === void 0 ? "tag" : _ref$defaultMode,
75
+ placeholder = _ref.placeholder;
75
76
  // 输入模式
76
77
  var _useState = useState(defaultMode),
77
78
  _useState2 = _slicedToArray(_useState, 2),
@@ -87,6 +88,11 @@ var AggregateSearch = function AggregateSearch(_ref) {
87
88
  setSelValue = _useState4[1];
88
89
  var container = useRef(null);
89
90
  var containerWrapperRef = useRef(null);
91
+ // 是否可编辑,若点击编辑区域外内容则不可编辑 todo:用于修复聚焦bug
92
+ var _useState5 = useState(true),
93
+ _useState6 = _slicedToArray(_useState5, 2),
94
+ contentEditable = _useState6[0],
95
+ setContentEditable = _useState6[1];
90
96
  // 是否正在输入中文
91
97
  var isComposing = useRef(false);
92
98
  var handleSyntaxCheck = /*#__PURE__*/function () {
@@ -167,7 +173,12 @@ var AggregateSearch = function AggregateSearch(_ref) {
167
173
  // 计算当前光标位置(纯文本模式)
168
174
  planeTextPosition = getCursorPosition(container.current); // 将纯文本模式转为html模式(语法解析器)
169
175
  htmlString = genHtmlAndSyntaxCheckResByString(inputStr);
170
- container.current.innerHTML = htmlString;
176
+ if (!htmlString.trim()) {
177
+ // 修复空状态placeholder
178
+ container.current.innerHTML = "";
179
+ } else {
180
+ container.current.innerHTML = htmlString;
181
+ }
171
182
  // 找到格式化后的光标位置
172
183
  if (planeTextPosition !== null) {
173
184
  _getCursorNodeAndInde3 = getCursorNodeAndIndex(container.current, planeTextPosition), targetNode = _getCursorNodeAndInde3.targetNode, targetIndex = _getCursorNodeAndInde3.targetIndex; // 设置光标位置
@@ -227,8 +238,14 @@ var AggregateSearch = function AggregateSearch(_ref) {
227
238
  // 监听点击事件(container以外的地方)
228
239
  useEffect(function () {
229
240
  var handleClick = function handleClick(e) {
230
- if (container.current && !container.current.contains(e.target)) {
241
+ // 可编辑文本框边框线e.target !== containerWrapperRef.current
242
+ if (container.current && !container.current.contains(e.target) && e.target !== containerWrapperRef.current) {
231
243
  setVisible(false);
244
+ setContentEditable(false);
245
+ } else {
246
+ var _container$current;
247
+ setContentEditable(true);
248
+ (_container$current = container.current) === null || _container$current === void 0 || _container$current.focus();
232
249
  }
233
250
  };
234
251
  document.addEventListener("click", handleClick);
@@ -250,9 +267,18 @@ var AggregateSearch = function AggregateSearch(_ref) {
250
267
  }
251
268
  handleValueChange(container.current.innerText, mode);
252
269
  };
270
+ var onKeyDown = function onKeyDown(e) {
271
+ var keyCode = e.keyCode;
272
+ if (keyCode === 13) {
273
+ // 回车阻止默认的换行行为
274
+ e.preventDefault();
275
+ onChange(e.target.innerText);
276
+ setVisible(false);
277
+ }
278
+ };
253
279
  return /*#__PURE__*/React.createElement(DropDown, {
254
280
  onHelpClick: onHelpClick,
255
- visible: visible && curMode === "tag",
281
+ visible: contentEditable && visible && curMode === "tag",
256
282
  keyOption: {
257
283
  value: dropStatus.key.isShow ? dropStatus.key.value : null,
258
284
  fetchFuc: fetchKeyList,
@@ -297,8 +323,11 @@ var AggregateSearch = function AggregateSearch(_ref) {
297
323
  ref: containerWrapperRef
298
324
  }, /*#__PURE__*/React.createElement("div", {
299
325
  spellCheck: false,
300
- onCompositionEnd: function onCompositionEnd() {
301
- return isComposing.current = false;
326
+ onCompositionEnd: function onCompositionEnd(e) {
327
+ isComposing.current = false;
328
+ // 输入中文结束再触发一次,保证文本框对应内容与当前返回值一致,选项效果不会丢失
329
+ handleValueChange(e.target.innerText);
330
+ onChange(e.target.innerText);
302
331
  },
303
332
  onCompositionStart: function onCompositionStart() {
304
333
  return isComposing.current = true;
@@ -306,12 +335,14 @@ var AggregateSearch = function AggregateSearch(_ref) {
306
335
  className: "aggregate-search-input",
307
336
  ref: container,
308
337
  "data-attr": "container",
309
- contentEditable: true,
338
+ "data-placeholder": placeholder,
339
+ contentEditable: contentEditable,
310
340
  suppressContentEditableWarning: true,
311
341
  onPaste: textInit // 只粘贴纯文本 去除html标签
312
342
  ,
313
343
  onInput: onInput,
314
- onFocus: onFocus
344
+ onFocus: onFocus,
345
+ onKeyDown: onKeyDown
315
346
  }), /*#__PURE__*/React.createElement(SwitchBtn, {
316
347
  onChange: onModeChange,
317
348
  mode: mode || selMode
@@ -345,6 +376,10 @@ AggregateSearch.propTypes = {
345
376
  /**
346
377
  * 删除历史记录回调,需要返回promise,async(id)=>Boolean
347
378
  */
348
- onHistoryDelete: PropTypes.func
379
+ onHistoryDelete: PropTypes.func,
380
+ /**
381
+ * 内容为空提示
382
+ */
383
+ placeholder: PropTypes.string
349
384
  };
350
385
  export default AggregateSearch;
@@ -25,8 +25,8 @@
25
25
  position: relative;
26
26
  padding: 0 10px;
27
27
  flex: 1;
28
- min-height: 26px;
29
- line-height: 24px;
28
+ min-height: 28px;
29
+ line-height: 26px;
30
30
  border: @border-width-base @border-style-base @input-border-color;
31
31
  border-radius: @border-radius-base 0 0 @border-radius-base;
32
32
 
@@ -41,20 +41,20 @@
41
41
  }
42
42
 
43
43
  &:empty:before {
44
- content: '搜索指标标识、维度、或通过筛选区筛选指标';
44
+ content: attr(data-placeholder);
45
45
  font-size: 12px;
46
46
  color: rgba(0, 0, 0, 0.45);
47
47
  line-height: 20px;
48
48
  }
49
49
 
50
- &:focus:before {
51
- content: none;
50
+ &:not(.syntax-error):focus:before { // 需要排除掉syntax-error的样式不然报错内容丢失
51
+ content: ""; // 不能为none,否则placeholder不显示
52
52
  }
53
53
 
54
54
  .tag-box {
55
55
  position: relative;
56
56
  background: #FFFFFF;
57
- border: 1px solid #E3E3E3;
57
+ border: @border-width-base @border-style-base #E3E3E3;
58
58
  border-radius: 2px;
59
59
  height: 18px;
60
60
  line-height: 16px;
@@ -92,6 +92,9 @@
92
92
  .tag-con-match {
93
93
  color: #FA8C16;
94
94
  }
95
+ &:not(.syntax-error):has(.tag-con-keyword_AND_OR:only-child){
96
+ border-color: transparent;
97
+ }
95
98
  }
96
99
  }
97
100
  }
@@ -99,8 +102,8 @@
99
102
 
100
103
  .syntax-error {
101
104
  // 语法错误,高亮样式
102
- border: 1px solid #FF4D4F !important;
103
-
105
+ border: @border-width-base @border-style-base @red-5 !important;
106
+ box-shadow: none !important;
104
107
  &:hover {
105
108
 
106
109
  // 伪类展示属性值
@@ -108,16 +111,17 @@
108
111
  content: attr(data-error);
109
112
  position: absolute;
110
113
  white-space: nowrap;
111
- bottom: 26px;
114
+ bottom: 28px;
112
115
  left: -1px;
113
116
  height: 20px;
114
117
  line-height: 20px;
115
118
  background: #FFF1F0;
116
- border: 1px solid #FF4D4F;
119
+ border: @border-width-base @border-style-base @red-5;
117
120
  border-radius: 0 0 2px 2px;
118
121
  font-size: 12px;
119
- color: #FF4D4F;
122
+ color: @red-5;
120
123
  padding: 0 10px;
124
+ min-width: 100px;
121
125
  }
122
126
  }
123
127
  }
@@ -122,10 +122,13 @@ export var genHtmlAndSyntaxCheckResByString = function genHtmlAndSyntaxCheckResB
122
122
  var hasMatch = matchIndex !== -1;
123
123
  html = tokenList.map(function (token, index) {
124
124
  var genClassName = function genClassName(typeClass) {
125
- var _classNames;
126
- return classNames((_classNames = {
127
- "tag-con": true
128
- }, _defineProperty(_classNames, typeClass, true), _defineProperty(_classNames, "tag-con-key", hasMatch ? index < matchIndex : false), _defineProperty(_classNames, "tag-con-key-last", matchIndex ? index === matchIndex - 1 : false), _defineProperty(_classNames, "tag-con-value", hasMatch ? index > matchIndex : false), _classNames));
125
+ return classNames(typeClass, {
126
+ "tag-con": true,
127
+ // [typeClass]: true,
128
+ "tag-con-key": hasMatch ? index < matchIndex : false,
129
+ "tag-con-key-last": matchIndex ? index === matchIndex - 1 : false,
130
+ "tag-con-value": hasMatch ? index > matchIndex : false
131
+ });
129
132
  };
130
133
  var genDataType = function genDataType(index) {
131
134
  if (hasMatch) {
@@ -140,42 +143,41 @@ export var genHtmlAndSyntaxCheckResByString = function genHtmlAndSyntaxCheckResB
140
143
  return "key";
141
144
  };
142
145
  var dataType = genDataType(index);
143
- var getEleProps = function getEleProps(type) {
144
- var _typeMap;
145
- var typeMap = (_typeMap = {}, _defineProperty(_typeMap, TOKEN_TYPES.MATCH, {
146
+ var getEleProps = function getEleProps(type, text) {
147
+ var typeMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TOKEN_TYPES.MATCH, {
146
148
  tagName: "span",
147
149
  props: {
148
150
  "class": genClassName("tag-con-match"),
149
151
  "data-attr": "match",
150
152
  "data-type": dataType
151
153
  }
152
- }), _defineProperty(_typeMap, TOKEN_TYPES.KEYWORD, {
154
+ }), TOKEN_TYPES.KEYWORD, {
153
155
  tagName: "span",
154
156
  props: {
155
- "class": genClassName("tag-con-keyword"),
157
+ "class": genClassName(text === "AND" || text === "OR" ? "tag-con-keyword tag-con-keyword_AND_OR" : "tag-con-keyword"),
156
158
  "data-attr": "keyword",
157
159
  "data-type": dataType
158
160
  }
159
- }), _defineProperty(_typeMap, TOKEN_TYPES.IDENTIFIER, {
161
+ }), TOKEN_TYPES.IDENTIFIER, {
160
162
  tagName: "span",
161
163
  props: {
162
164
  "class": genClassName("tag-con-identifier"),
163
165
  "data-attr": "identifier",
164
166
  "data-type": dataType
165
167
  }
166
- }), _defineProperty(_typeMap, TOKEN_TYPES.NONE, {
168
+ }), TOKEN_TYPES.NONE, {
167
169
  tagName: "span",
168
170
  props: {
169
171
  "class": genClassName("tag-con-none"),
170
172
  "data-attr": "none",
171
173
  "data-type": dataType
172
174
  }
173
- }), _typeMap);
175
+ });
174
176
  return typeMap[type];
175
177
  };
176
178
  var type = token.type,
177
179
  text = token.text;
178
- var curProps = getEleProps(type);
180
+ var curProps = getEleProps(type, text);
179
181
  var elePropsString = Object.entries(curProps.props).map(function (_ref) {
180
182
  var _ref2 = _slicedToArray(_ref, 2),
181
183
  key = _ref2[0],
@@ -1,79 +1,75 @@
1
- .wrapper {
2
- // width: 150px;
3
- height: 20px;
4
- font-size: 12px;
5
-
6
- .wrapper-inner {
7
- float: left;
8
- max-width: 85px;
1
+ .form-properties-box {
2
+ .wrapper {
9
3
  height: 20px;
10
- line-height: 18px;
11
- margin-right: 2px;
12
- margin-bottom: 4px;
13
- padding: 0 5px;
14
- background: #fafafa;
15
- border: 1px solid #d9d9d9;
16
- border-radius: 2px;
17
- cursor: pointer;
18
- overflow: hidden;
19
- text-overflow: ellipsis;
20
- white-space: nowrap;
21
- }
4
+ font-size: 12px;
22
5
 
23
- .wrapper-inner:last-child {
24
- margin-right: 0;
25
- }
6
+ .wrapper-inner {
7
+ float: left;
8
+ max-width: 85px;
9
+ height: 20px;
10
+ line-height: 18px;
11
+ margin-right: 2px;
12
+ margin-bottom: 4px;
13
+ padding: 0 5px;
14
+ background: #fafafa;
15
+ border: 1px solid #d9d9d9;
16
+ border-radius: 2px;
17
+ cursor: pointer;
18
+ overflow: hidden;
19
+ text-overflow: ellipsis;
20
+ white-space: nowrap;
21
+ }
26
22
 
27
- .wrapper-inner-fixed {
28
- float: left;
29
- // width: 30px;
30
- height: 20px;
31
- line-height: 18px;
32
- margin-right: 2px;
33
- padding: 0 6px;
34
- background: #fafafa;
35
- border: 1px solid #d9d9d9;
36
- border-radius: 2px;
37
- cursor: pointer;
23
+ .wrapper-inner:last-child {
24
+ margin-right: 0;
25
+ }
26
+
27
+ .wrapper-inner-fixed {
28
+ float: left;
29
+ height: 20px;
30
+ line-height: 18px;
31
+ margin-right: 2px;
32
+ padding: 0 6px;
33
+ background: #fafafa;
34
+ border: 1px solid #d9d9d9;
35
+ border-radius: 2px;
36
+ cursor: pointer;
37
+ }
38
38
  }
39
- }
40
39
 
41
- .ant-popover-inner-content:nth-child(4n) {
42
- margin-right: 0px;
43
- }
40
+ .@{ant-prefix}-popover-inner-content:nth-child(4n) {
41
+ margin-right: 0px;
42
+ }
44
43
 
45
- .inner {
46
- max-width: 450px;
47
- font-size: 12px;
44
+ .inner {
45
+ max-width: 450px;
46
+ font-size: 12px;
48
47
 
49
- .ant-popover-inner-content {
50
- float: left;
51
- // max-width: 85px;
52
- height: 20px;
53
- line-height: 18px;
54
- background: #fafafa;
55
- border: 1px solid #d9d9d9;
56
- border-radius: 2px;
57
- padding: 0 6px;
58
- margin: 0 2px 4px 0;
59
- cursor: pointer;
60
- // overflow: hidden;
61
- // text-overflow: ellipsis;
62
- // white-space: nowrap;
48
+ .@{ant-prefix}-popover-inner-content {
49
+ float: left;
50
+ height: 20px;
51
+ line-height: 18px;
52
+ background: #fafafa;
53
+ border: 1px solid #d9d9d9;
54
+ border-radius: 2px;
55
+ padding: 0 6px;
56
+ margin: 0 2px 4px 0;
57
+ cursor: pointer;
58
+ }
63
59
  }
64
- }
65
60
 
66
- .inner:after {
67
- /*伪元素是行内元素 正常浏览器清除浮动方法*/
68
- content: "";
69
- display: block;
70
- height: 0;
71
- clear: both;
72
- visibility: hidden;
73
- }
61
+ .inner:after {
62
+ /*伪元素是行内元素 正常浏览器清除浮动方法*/
63
+ content: "";
64
+ display: block;
65
+ height: 0;
66
+ clear: both;
67
+ visibility: hidden;
68
+ }
74
69
 
75
70
  .tag-wrapper-inner {
76
71
  .@{ant-prefix}-popover-inner-content {
77
72
  padding: 8px !important;
78
73
  }
74
+ }
79
75
  }
@@ -1,81 +1,74 @@
1
- .ciWrapper {
2
- // width: 150px;
3
- height: 28px;
4
- font-size: 12px;
5
- display: flex;
6
- // align-items: center;
7
- // margin-left: -6px;
1
+ .form-properties-box {
2
+ .ciWrapper {
3
+ height: 28px;
4
+ font-size: 12px;
5
+ display: flex;
8
6
 
9
- .wrapper-inner {
10
- float: left;
11
- max-width: 85px;
12
- height: 20px;
13
- line-height: 18px;
14
- margin-right: 2px;
15
- // margin-bottom: 4px;
16
- background: #fafafa;
17
- border: 1px solid #d9d9d9;
18
- border-radius: 2px;
19
- cursor: pointer;
20
- overflow: hidden;
21
- text-overflow: ellipsis;
22
- white-space: nowrap;
23
- }
7
+ .wrapper-inner {
8
+ float: left;
9
+ max-width: 85px;
10
+ height: 20px;
11
+ line-height: 18px;
12
+ margin-right: 2px;
13
+ background: #fafafa;
14
+ border: 1px solid #d9d9d9;
15
+ border-radius: 2px;
16
+ cursor: pointer;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ white-space: nowrap;
20
+ }
24
21
 
25
- .wrapper-inner:last-child {
26
- margin-right: 0;
27
- }
22
+ .wrapper-inner:last-child {
23
+ margin-right: 0;
24
+ }
28
25
 
29
- .wrapper-inner-fixed {
30
- float: left;
31
- // width: 30px;
32
- height: 20px;
33
- line-height: 18px;
34
- margin-right: 2px;
35
- padding: 0 6px;
36
- background: #fafafa;
37
- border: 1px solid #d9d9d9;
38
- border-radius: 2px;
39
- cursor: pointer;
26
+ .wrapper-inner-fixed {
27
+ float: left;
28
+ height: 20px;
29
+ line-height: 18px;
30
+ margin-right: 2px;
31
+ padding: 0 6px;
32
+ background: #fafafa;
33
+ border: 1px solid #d9d9d9;
34
+ border-radius: 2px;
35
+ cursor: pointer;
36
+ }
40
37
  }
41
- }
42
38
 
43
- .ant-popover-inner-content:nth-child(4n) {
44
- margin-right: 0px;
45
- }
39
+ .@{ant-prefix}-popover-inner-content:nth-child(4n) {
40
+ margin-right: 0px;
41
+ }
46
42
 
47
- .inner {
48
- max-width: 450px;
49
- font-size: 12px;
43
+ .inner {
44
+ max-width: 450px;
45
+ font-size: 12px;
50
46
 
51
- .ant-popover-inner-content {
52
- float: left;
53
- // max-width: 85px;
54
- height: 20px;
55
- line-height: 18px;
56
- background: #fafafa;
57
- border: 1px solid #d9d9d9;
58
- border-radius: 2px;
59
- padding: 0 6px;
60
- margin: 0 2px 4px 0;
61
- cursor: pointer;
62
- // overflow: hidden;
63
- // text-overflow: ellipsis;
64
- // white-space: nowrap;
47
+ .@{ant-prefix}-popover-inner-content {
48
+ float: left;
49
+ height: 20px;
50
+ line-height: 18px;
51
+ background: #fafafa;
52
+ border: 1px solid #d9d9d9;
53
+ border-radius: 2px;
54
+ padding: 0 6px;
55
+ margin: 0 2px 4px 0;
56
+ cursor: pointer;
57
+ }
65
58
  }
66
- }
67
59
 
68
- .inner:after {
69
- /*伪元素是行内元素 正常浏览器清除浮动方法*/
70
- content: "";
71
- display: block;
72
- height: 0;
73
- clear: both;
74
- visibility: hidden;
75
- }
60
+ .inner:after {
61
+ /*伪元素是行内元素 正常浏览器清除浮动方法*/
62
+ content: "";
63
+ display: block;
64
+ height: 0;
65
+ clear: both;
66
+ visibility: hidden;
67
+ }
76
68
 
77
69
  .tag-wrapper-inner {
78
70
  .@{ant-prefix}-popover-inner-content {
79
71
  padding: 8px !important;
80
72
  }
81
- }
73
+ }
74
+ }