@zgfe/business-lib 1.0.3 → 1.0.7
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/es/analysisLayout/index.js +3 -3
- package/es/assets/iconfont/demo.css +539 -0
- package/es/assets/iconfont/demo_index.html +832 -0
- package/es/assets/iconfont/iconfont.css +34 -30
- package/es/assets/iconfont/iconfont.js +15 -15
- package/es/assets/iconfont/iconfont.json +8 -1
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/attrConditions/components/stringList.js +2 -1
- package/es/attrConditions/components/valuesList.js +2 -2
- package/es/attributeSelector/index.js +2 -2
- package/es/attributeSelector/option.js +1 -1
- package/es/datePicker/datePicker.js +3 -3
- package/es/dialog/components/itemNode.js +2 -2
- package/es/dialog/components/list.js +1 -1
- package/es/dialog/components/selectToInput.js +5 -5
- package/es/dialog/components/tab.js +1 -1
- package/es/dialog/demo/index.js +7 -7
- package/es/icon/demo/index.d.ts +2 -0
- package/es/icon/demo/index.js +8 -0
- package/es/icon/demo/list.d.ts +2 -0
- package/es/icon/demo/list.js +28 -0
- package/es/icon/demo/list.less +32 -0
- package/es/{components → icon}/iconFont.d.ts +6 -1
- package/es/{components → icon}/iconFont.js +10 -4
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/searchInput/index.js +2 -2
- package/es/select/demo/group.js +2 -2
- package/es/select/demo/loading.d.ts +2 -0
- package/es/select/demo/loading.js +56 -0
- package/es/select/handle.js +2 -2
- package/es/select/option.js +3 -3
- package/es/select/overlay.js +34 -7
- package/es/select/styles/index.less +4 -0
- package/es/select/types.d.ts +2 -0
- package/es/targetConditionGroup/demo/group.js +1 -1
- package/es/targetSelector/editBox.js +2 -2
- package/es/targetSelector/index.js +3 -3
- package/es/targetSelector/optionIcon.js +1 -1
- package/es/targetSelector/optionMenu.js +4 -4
- package/es/userCondition/conditionTypeList.d.ts +1 -1
- package/es/userCondition/conditions/periodCondition.js +0 -1
- package/es/userCondition/conditions/propCondition.d.ts +2 -8
- package/es/userCondition/conditions/propCondition.js +73 -23
- package/es/userCondition/demo/index.js +11 -35
- package/es/userCondition/index.js +2 -5
- package/es/userCondition/types.d.ts +18 -1
- package/es/userCondition/util.d.ts +1 -0
- package/es/userCondition/util.js +19 -0
- package/es/userGroup/demo/group.js +1 -1
- package/es/userGroup/index.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@size: 64px;
|
|
2
|
+
.item {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
width: @size * 3;
|
|
5
|
+
height: 100px;
|
|
6
|
+
margin: 0 6px 6px 0;
|
|
7
|
+
padding-bottom: 12px;
|
|
8
|
+
text-align: center;
|
|
9
|
+
vertical-align: bottom;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
&:hover {
|
|
12
|
+
background: hsv(0, 0, 96%);
|
|
13
|
+
.icon {
|
|
14
|
+
font-size: 42px !important;
|
|
15
|
+
}
|
|
16
|
+
.label {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.icon {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: @size * 2;
|
|
24
|
+
height: @size;
|
|
25
|
+
line-height: @size;
|
|
26
|
+
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
27
|
+
}
|
|
28
|
+
.label {
|
|
29
|
+
font-size: 12px;
|
|
30
|
+
vertical-align: bottom;
|
|
31
|
+
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
32
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconFontProps } from '@ant-design/icons/lib/components/IconFont';
|
|
3
3
|
import '../assets/iconfont/iconfont.css';
|
|
4
|
-
|
|
4
|
+
interface Props extends IconFontProps {
|
|
5
|
+
family?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const IconFont: React.FC<Props>;
|
|
5
10
|
export default IconFont;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["className", "type"];
|
|
1
|
+
var _excluded = ["className", "type", "family"];
|
|
2
2
|
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
@@ -16,17 +16,23 @@ import '../assets/iconfont/iconfont.css';
|
|
|
16
16
|
var IconFont = function IconFont(props) {
|
|
17
17
|
var className = props.className,
|
|
18
18
|
type = props.type,
|
|
19
|
+
family = props.family,
|
|
19
20
|
rest = _objectWithoutProperties(props, _excluded);
|
|
20
21
|
|
|
21
22
|
var iconClassName = useMemo(function () {
|
|
22
|
-
return "
|
|
23
|
+
return "".concat(family, " ").concat(className, " ").concat(type);
|
|
23
24
|
}, [className, type]);
|
|
24
25
|
return /*#__PURE__*/React.createElement("span", _objectSpread({
|
|
25
|
-
className: iconClassName
|
|
26
|
+
className: iconClassName,
|
|
27
|
+
style: {
|
|
28
|
+
fontSize: "".concat(props.size, "px")
|
|
29
|
+
}
|
|
26
30
|
}, rest));
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
IconFont.defaultProps = {
|
|
30
|
-
className: ''
|
|
34
|
+
className: '',
|
|
35
|
+
family: 'bsicon',
|
|
36
|
+
size: 16
|
|
31
37
|
};
|
|
32
38
|
export default IconFont;
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="../typings.d.ts" />
|
|
2
|
-
import BizAnalysisLayout from './
|
|
2
|
+
import BizAnalysisLayout from './analysisLayout';
|
|
3
3
|
import BizUserGroup from './userGroup';
|
|
4
4
|
import BizTargetSelector from './targetSelector';
|
|
5
5
|
import BizEventSelector from './eventSelector/index';
|
|
@@ -12,7 +12,7 @@ import BizSelect from './select';
|
|
|
12
12
|
import BizDialog from './dialog';
|
|
13
13
|
import BizChart from './chart';
|
|
14
14
|
import BizTable from './table';
|
|
15
|
-
import IconFont from './
|
|
15
|
+
import IconFont from './icon/iconFont';
|
|
16
16
|
import { util, ajax } from './utils';
|
|
17
17
|
import theme from './assets/theme';
|
|
18
18
|
import convertAttributeData from './attributeSelector/util';
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import BizAnalysisLayout from './
|
|
1
|
+
import BizAnalysisLayout from './analysisLayout';
|
|
2
2
|
import BizUserGroup from './userGroup';
|
|
3
3
|
import BizTargetSelector from './targetSelector';
|
|
4
4
|
import BizEventSelector from './eventSelector/index';
|
|
@@ -11,7 +11,7 @@ import BizSelect from './select';
|
|
|
11
11
|
import BizDialog from './dialog';
|
|
12
12
|
import BizChart from './chart';
|
|
13
13
|
import BizTable from './table';
|
|
14
|
-
import IconFont from './
|
|
14
|
+
import IconFont from './icon/iconFont';
|
|
15
15
|
import { util, ajax } from './utils';
|
|
16
16
|
import theme from './assets/theme';
|
|
17
17
|
import convertAttributeData from './attributeSelector/util';
|
package/es/searchInput/index.js
CHANGED
|
@@ -15,11 +15,11 @@ var BizSearchInput = function BizSearchInput(props) {
|
|
|
15
15
|
className: className,
|
|
16
16
|
value: value,
|
|
17
17
|
prefix: /*#__PURE__*/React.createElement(IconFont, {
|
|
18
|
-
type: '
|
|
18
|
+
type: 'sousuo'
|
|
19
19
|
}),
|
|
20
20
|
allowClear: {
|
|
21
21
|
clearIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
22
|
-
type: '
|
|
22
|
+
type: 'qingchu'
|
|
23
23
|
})
|
|
24
24
|
},
|
|
25
25
|
placeholder: placeholder || '请输入',
|
package/es/select/demo/group.js
CHANGED
|
@@ -20,13 +20,13 @@ var option = Array(10).fill(1).map(function (group, i) {
|
|
|
20
20
|
value: i * 10 + i,
|
|
21
21
|
name: "option".concat(i * 10 + i).concat(group),
|
|
22
22
|
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
23
|
-
type: "
|
|
23
|
+
type: "shijianshuxing1"
|
|
24
24
|
})
|
|
25
25
|
}, {
|
|
26
26
|
value: i * 10 + i + 1,
|
|
27
27
|
name: "option".concat(i * 10 + i + 1),
|
|
28
28
|
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
29
|
-
type: "
|
|
29
|
+
type: "shijianshuxing1"
|
|
30
30
|
})
|
|
31
31
|
}]
|
|
32
32
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
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."); }
|
|
4
|
+
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
import React, { useEffect, useState } from 'react';
|
|
14
|
+
import { BizSelect } from '@zgfe/business-lib';
|
|
15
|
+
var stringOperate = Array(10).fill(1).map(function (_item, index) {
|
|
16
|
+
return {
|
|
17
|
+
name: "option".concat(index),
|
|
18
|
+
value: index
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
function getRemoteDat() {
|
|
23
|
+
return new Promise(function (resolve) {
|
|
24
|
+
setTimeout(function () {
|
|
25
|
+
resolve(stringOperate);
|
|
26
|
+
}, 3000);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default (function () {
|
|
31
|
+
var _useState = useState([]),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
options = _useState2[0],
|
|
34
|
+
setOptions = _useState2[1];
|
|
35
|
+
|
|
36
|
+
var _useState3 = useState(false),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
loading = _useState4[0],
|
|
39
|
+
setLoading = _useState4[1];
|
|
40
|
+
|
|
41
|
+
useEffect(function () {
|
|
42
|
+
setLoading(true);
|
|
43
|
+
getRemoteDat().then(function (data) {
|
|
44
|
+
setOptions(data);
|
|
45
|
+
setLoading(false);
|
|
46
|
+
});
|
|
47
|
+
}, []);
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizSelect, {
|
|
49
|
+
options: options,
|
|
50
|
+
labelField: "name",
|
|
51
|
+
keyField: "value",
|
|
52
|
+
enableSearch: true,
|
|
53
|
+
popupContainer: true,
|
|
54
|
+
loading: loading
|
|
55
|
+
}));
|
|
56
|
+
});
|
package/es/select/handle.js
CHANGED
|
@@ -12,7 +12,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
12
|
|
|
13
13
|
import { Input, Tag, Tooltip } from 'antd';
|
|
14
14
|
import React, { useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
15
|
-
import IconFont from '../
|
|
15
|
+
import IconFont from '../icon/iconFont';
|
|
16
16
|
import './styles/handle.less';
|
|
17
17
|
var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18
18
|
var placeholder = props.placeholder,
|
|
@@ -109,7 +109,7 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
109
109
|
className: "".concat(classPrefix, "-holder")
|
|
110
110
|
}, placeholder || '请选择'), /*#__PURE__*/React.createElement(IconFont, {
|
|
111
111
|
className: "".concat(classPrefix, "-expand-icon"),
|
|
112
|
-
type: '
|
|
112
|
+
type: 'xiangxia'
|
|
113
113
|
}));
|
|
114
114
|
});
|
|
115
115
|
SelectHandle.defaultProps = {
|
package/es/select/option.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { classPrefix } from '.';
|
|
3
|
-
import IconFont from '../
|
|
3
|
+
import IconFont from '../icon/iconFont';
|
|
4
4
|
import { util } from '../utils';
|
|
5
5
|
|
|
6
6
|
var SelectOption = function SelectOption(props) {
|
|
@@ -43,10 +43,10 @@ var SelectOption = function SelectOption(props) {
|
|
|
43
43
|
title: option[props.labelField]
|
|
44
44
|
}, multiple && (checked ? /*#__PURE__*/React.createElement(IconFont, {
|
|
45
45
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-checked"),
|
|
46
|
-
type: '
|
|
46
|
+
type: 'a-Property1xuanzhong'
|
|
47
47
|
}) : /*#__PURE__*/React.createElement(IconFont, {
|
|
48
48
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-check"),
|
|
49
|
-
type: '
|
|
49
|
+
type: 'a-Property1moren'
|
|
50
50
|
})), (option === null || option === void 0 ? void 0 : option.icon) && /*#__PURE__*/React.createElement("span", {
|
|
51
51
|
className: "".concat(classPrefix, "-option-icon")
|
|
52
52
|
}, option === null || option === void 0 ? void 0 : option.icon), /*#__PURE__*/React.createElement("span", {
|
package/es/select/overlay.js
CHANGED
|
@@ -11,6 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import React, { useEffect, useState } from 'react';
|
|
14
|
+
import { Spin } from 'antd';
|
|
14
15
|
import BizSearchInput from '../searchInput';
|
|
15
16
|
import { classPrefix } from './index';
|
|
16
17
|
import SelectOption from './option';
|
|
@@ -23,7 +24,8 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
23
24
|
extra = props.extra,
|
|
24
25
|
multiple = props.multiple,
|
|
25
26
|
disableItemList = props.disableItemList,
|
|
26
|
-
dropdownExtra = props.dropdownExtra
|
|
27
|
+
dropdownExtra = props.dropdownExtra,
|
|
28
|
+
loading = props.loading;
|
|
27
29
|
|
|
28
30
|
var _useState = useState(),
|
|
29
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -64,24 +66,37 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
setShowList(function () {
|
|
69
|
+
var list = [];
|
|
70
|
+
|
|
67
71
|
if (props.type === 'group') {
|
|
68
|
-
|
|
72
|
+
list = options.map(function (group) {
|
|
69
73
|
var groupDom = /*#__PURE__*/React.createElement(SelectOption, {
|
|
70
74
|
group: group,
|
|
71
75
|
key: group.name || String(Math.random())
|
|
72
76
|
});
|
|
73
77
|
var optionArr = getOptionDom(group.children, ids);
|
|
74
|
-
optionArr.unshift(groupDom);
|
|
78
|
+
optionArr.length && optionArr.unshift(groupDom);
|
|
75
79
|
return optionArr;
|
|
76
80
|
});
|
|
81
|
+
} else {
|
|
82
|
+
list = getOptionDom(options, ids);
|
|
77
83
|
}
|
|
78
84
|
|
|
79
|
-
|
|
85
|
+
if (options.length && !list.flat().length) {
|
|
86
|
+
var dom = /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "".concat(classPrefix, "-notfound"),
|
|
88
|
+
key: "notfound"
|
|
89
|
+
}, props.notFound ? props.notFound : '未找到匹配数据');
|
|
90
|
+
list = [dom];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return list;
|
|
80
94
|
});
|
|
81
95
|
}, [searchValue, options, current]);
|
|
82
96
|
|
|
83
97
|
function getOptionDom(data, ids) {
|
|
84
|
-
|
|
98
|
+
var optionsDom = [];
|
|
99
|
+
data.forEach(function (option) {
|
|
85
100
|
if (searchValue && !new RegExp(searchValue, 'i').test(option[labelField])) return;
|
|
86
101
|
var disabled = false;
|
|
87
102
|
disableItemList === null || disableItemList === void 0 ? void 0 : disableItemList.forEach(function (item) {
|
|
@@ -89,7 +104,7 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
89
104
|
disabled = true;
|
|
90
105
|
}
|
|
91
106
|
});
|
|
92
|
-
|
|
107
|
+
var dom = /*#__PURE__*/React.createElement(SelectOption, {
|
|
93
108
|
option: option,
|
|
94
109
|
labelField: labelField,
|
|
95
110
|
checked: current && ids.indexOf(option[keyField]) > -1,
|
|
@@ -103,7 +118,9 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
103
118
|
disabled: disabled,
|
|
104
119
|
key: option[keyField] || String(Math.random())
|
|
105
120
|
});
|
|
121
|
+
optionsDom.push(dom);
|
|
106
122
|
});
|
|
123
|
+
return optionsDom;
|
|
107
124
|
}
|
|
108
125
|
|
|
109
126
|
function onClick(option) {
|
|
@@ -141,6 +158,16 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
141
158
|
setSearchValue(v);
|
|
142
159
|
}
|
|
143
160
|
|
|
161
|
+
function render() {
|
|
162
|
+
if (loading) return /*#__PURE__*/React.createElement(Spin, null);
|
|
163
|
+
|
|
164
|
+
if (showList && showList.length) {
|
|
165
|
+
return showList;
|
|
166
|
+
} else {
|
|
167
|
+
return /*#__PURE__*/React.createElement("span", null, "\u6682\u65E0\u6570\u636E");
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
144
171
|
return /*#__PURE__*/React.createElement("div", {
|
|
145
172
|
className: "".concat(classPrefix, "-overlay")
|
|
146
173
|
}, props.enableSearch && !props.multiple && /*#__PURE__*/React.createElement(BizSearchInput, {
|
|
@@ -148,7 +175,7 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
148
175
|
onChange: onSearch
|
|
149
176
|
}), dropdownExtra, /*#__PURE__*/React.createElement("div", {
|
|
150
177
|
className: "".concat(classPrefix, "-list-panel")
|
|
151
|
-
},
|
|
178
|
+
}, render()));
|
|
152
179
|
};
|
|
153
180
|
|
|
154
181
|
export default SelectOverlay;
|
package/es/select/types.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ export default (function () {
|
|
|
121
121
|
}
|
|
122
122
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
123
123
|
className: "biz-icon",
|
|
124
|
-
type: '
|
|
124
|
+
type: 'tianjia1'
|
|
125
125
|
}), "\u6DFB\u52A0\u6307\u6807")));
|
|
126
126
|
}))), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("p", null, "\u5F53\u524D\u503C\uFF1A", JSON.stringify(target)));
|
|
127
127
|
});
|
|
@@ -13,7 +13,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
13
13
|
import { Button, Input, message } from 'antd';
|
|
14
14
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
15
15
|
import { classPrefix } from '.';
|
|
16
|
-
import IconFont from '../
|
|
16
|
+
import IconFont from '../icon/iconFont';
|
|
17
17
|
|
|
18
18
|
var BizEventNameEditBox = function BizEventNameEditBox(props) {
|
|
19
19
|
var inputRef = useRef(null);
|
|
@@ -62,7 +62,7 @@ var BizEventNameEditBox = function BizEventNameEditBox(props) {
|
|
|
62
62
|
allowClear: {
|
|
63
63
|
clearIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
64
64
|
className: "biz-icon",
|
|
65
|
-
type: '
|
|
65
|
+
type: 'qingchu'
|
|
66
66
|
})
|
|
67
67
|
},
|
|
68
68
|
onChange: onChange
|
|
@@ -101,13 +101,13 @@ var BizTargetSelector = function BizTargetSelector(props) {
|
|
|
101
101
|
className: "".concat(classPrefix, "-option-list")
|
|
102
102
|
}, /*#__PURE__*/React.createElement(BizTargetOptionIcon, {
|
|
103
103
|
name: "add",
|
|
104
|
-
icon: "
|
|
104
|
+
icon: "shaixuan",
|
|
105
105
|
title: "\u6DFB\u52A0\u7B5B\u9009",
|
|
106
106
|
enabled: enableAdd,
|
|
107
107
|
onClick: onClickIcon
|
|
108
108
|
}), /*#__PURE__*/React.createElement(BizTargetOptionIcon, {
|
|
109
109
|
name: "delete",
|
|
110
|
-
icon: "
|
|
110
|
+
icon: "qingchu",
|
|
111
111
|
title: "\u5220\u9664",
|
|
112
112
|
enabled: enableDelete,
|
|
113
113
|
onClick: onClickIcon
|
|
@@ -120,7 +120,7 @@ var BizTargetSelector = function BizTargetSelector(props) {
|
|
|
120
120
|
trigger: ['click']
|
|
121
121
|
}, /*#__PURE__*/React.createElement(BizTargetOptionIcon, {
|
|
122
122
|
name: "more",
|
|
123
|
-
icon: "
|
|
123
|
+
icon: "gengduocaozuo1",
|
|
124
124
|
title: "\u7F16\u8F91\u522B\u540D\u3001\u7B5B\u9009\u3001\u5220\u9664",
|
|
125
125
|
enabled: true
|
|
126
126
|
}))), showEditModal && /*#__PURE__*/React.createElement(BizEventNameEditBox, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from 'antd';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { classPrefix } from '.';
|
|
4
|
-
import IconFont from '../
|
|
4
|
+
import IconFont from '../icon/iconFont';
|
|
5
5
|
|
|
6
6
|
var BizTargetOptionIcon = function BizTargetOptionIcon(props) {
|
|
7
7
|
var enabled = props.enabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { classPrefix } from '.';
|
|
3
|
-
import IconFont from '../
|
|
3
|
+
import IconFont from '../icon/iconFont';
|
|
4
4
|
|
|
5
5
|
var BizTargetOptionMenu = function BizTargetOptionMenu(props) {
|
|
6
6
|
var _onClick = function onClick(name) {
|
|
@@ -15,7 +15,7 @@ var BizTargetOptionMenu = function BizTargetOptionMenu(props) {
|
|
|
15
15
|
return _onClick('edit');
|
|
16
16
|
}
|
|
17
17
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
18
|
-
type: "
|
|
18
|
+
type: "bianji"
|
|
19
19
|
}), /*#__PURE__*/React.createElement("span", null, "\u7F16\u8F91\u522B\u540D")), /*#__PURE__*/React.createElement("div", {
|
|
20
20
|
className: "".concat(classPrefix, "-divider")
|
|
21
21
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -24,14 +24,14 @@ var BizTargetOptionMenu = function BizTargetOptionMenu(props) {
|
|
|
24
24
|
return _onClick('add');
|
|
25
25
|
}
|
|
26
26
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
27
|
-
type: "
|
|
27
|
+
type: "shaixuan"
|
|
28
28
|
}), /*#__PURE__*/React.createElement("span", null, "\u6DFB\u52A0\u7B5B\u9009")), /*#__PURE__*/React.createElement("div", {
|
|
29
29
|
className: "".concat(classPrefix, "-menu-item ").concat(props.enableDelete ? '' : 'disabled'),
|
|
30
30
|
onClick: function onClick() {
|
|
31
31
|
return _onClick('delete');
|
|
32
32
|
}
|
|
33
33
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
34
|
-
type: "
|
|
34
|
+
type: "shanchu"
|
|
35
35
|
}), /*#__PURE__*/React.createElement("span", null, "\u5220\u9664\u6307\u6807")));
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -3,7 +3,7 @@ import './styles/conditionTypeList.less';
|
|
|
3
3
|
import { BizUserConditionT } from './types';
|
|
4
4
|
export interface ConditionTypeListPropsI {
|
|
5
5
|
onAdd: (type: BizUserConditionT.ConditionType) => void;
|
|
6
|
-
label?: string | React.
|
|
6
|
+
label?: string | React.ReactNode;
|
|
7
7
|
show?: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const ConditionTypeList: React.FC<ConditionTypeListPropsI>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PropConditionType } from '../types';
|
|
3
3
|
import './styles/propCondition.less';
|
|
4
|
-
|
|
5
|
-
isEvent?: boolean;
|
|
6
|
-
label?: string | React.ReactDOM;
|
|
7
|
-
eventId?: number;
|
|
8
|
-
attrs: BizUserConditionT.AttrCondition[];
|
|
9
|
-
}
|
|
10
|
-
declare const PropCondition: React.FC<PropConditionPropsI>;
|
|
4
|
+
declare const PropCondition: React.FC<PropConditionType.PropsI>;
|
|
11
5
|
export default PropCondition;
|