@titaui/pc 1.7.12 → 1.7.16

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.
@@ -61,7 +61,6 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
61
61
  var scope = new Sentry.Scope();
62
62
  scope.setTag("error-level", "P".concat(this.props.errorLevel || 0));
63
63
  scope.setExtra("componentStack", errorInfo.componentStack);
64
- scope.setFingerprint(["react-components-errors"]);
65
64
  var eventId = Sentry.captureException(new Error(error), scope);
66
65
  this.setState({
67
66
  eventId: eventId
@@ -23,6 +23,10 @@ var _textarea = _interopRequireDefault(require("./form-fields/textarea"));
23
23
 
24
24
  var _radios = _interopRequireDefault(require("./form-fields/radios"));
25
25
 
26
+ var _dropdown = _interopRequireDefault(require("./form-fields/dropdown"));
27
+
28
+ var _group = _interopRequireDefault(require("./form-fields/group"));
29
+
26
30
  var _layout = require("./layout");
27
31
 
28
32
  require("./index.css");
@@ -120,7 +124,9 @@ var FormFields = {
120
124
  User: _user["default"],
121
125
  Duties: _duties["default"],
122
126
  Textarea: _textarea["default"],
123
- Radios: _radios["default"]
127
+ Radios: _radios["default"],
128
+ DropDown: _dropdown["default"],
129
+ GroupFields: _group["default"]
124
130
  }; //@ts-ignore
125
131
 
126
132
  Form.Fields = FormFields;
@@ -251,8 +251,10 @@ var _default = function _default(props) {
251
251
  if (!Message) {
252
252
  _toast["default"].Success("删除成功");
253
253
 
254
- refreshAll();
255
- updateKrs();
254
+ setTimeout(function () {
255
+ refreshAll();
256
+ updateKrs();
257
+ }, 500);
256
258
  } else {
257
259
  _toast["default"].Error(Message);
258
260
  }
@@ -39,13 +39,15 @@
39
39
  }
40
40
 
41
41
  .rc-select-multiple .rc-select-selector {
42
- padding: 0 12px;
42
+ height: unset;
43
+ padding: 7px 12px 0;
43
44
  border: 1px solid #DFE3EA;
44
45
  }
45
46
 
46
47
  .rc-select-multiple .rc-select-selector .rc-select-selection-overflow-item {
47
48
  display: flex;
48
49
  align-items: center;
50
+ margin-bottom: 7px;
49
51
  }
50
52
 
51
53
  .rc-select-selection-item-content {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.12",
3
+ "version": "1.7.16",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -24,7 +24,6 @@ class ErrorBoundary extends React.Component<PropsType, StateType> {
24
24
  const scope = new Sentry.Scope();
25
25
  scope.setTag("error-level", `P${this.props.errorLevel || 0}`);
26
26
  scope.setExtra("componentStack", errorInfo.componentStack);
27
- scope.setFingerprint(["react-components-errors"]);
28
27
  const eventId = Sentry.captureException(new Error(error), scope);
29
28
  this.setState({ eventId });
30
29
  }
@@ -98,6 +98,8 @@ const FormFields = {
98
98
  Duties: _FormFieldDuties,
99
99
  Textarea: _FormFieldTextarea,
100
100
  Radios: _FormFieldRadios,
101
+ DropDown:_FormFieldDropDown,
102
+ GroupFields:_FormFieldGroup,
101
103
  };
102
104
  //@ts-ignore
103
105
  Form.Fields = FormFields
@@ -126,8 +126,10 @@ export default props => {
126
126
  setDeleteModalVisible(false);
127
127
  if (!Message) {
128
128
  Toast.Success("删除成功");
129
- refreshAll()
130
- updateKrs()
129
+ setTimeout(() => {
130
+ refreshAll()
131
+ updateKrs()
132
+ }, 500)
131
133
  } else {
132
134
  Toast.Error(Message);
133
135
  }
@@ -38,12 +38,14 @@
38
38
  box-sizing: border-box;
39
39
  }
40
40
  .rc-select-multiple .rc-select-selector {
41
- padding: 0 12px;
41
+ height: unset;
42
+ padding: 7px 12px 0;
42
43
  border: 1px solid #DFE3EA;
43
44
  }
44
45
  .rc-select-multiple .rc-select-selector .rc-select-selection-overflow-item {
45
46
  display: flex;
46
47
  align-items: center;
48
+ margin-bottom: 7px;
47
49
  }
48
50
 
49
51
  .rc-select-selection-item-content{