@titaui/pc 1.11.47 → 1.11.48

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.
@@ -25,6 +25,10 @@ var _context = require("../../context");
25
25
 
26
26
  var _getLocale = require("../../../../utils/getLocale");
27
27
 
28
+ var _requestV = require("../../../../utils/request-v1");
29
+
30
+ var _toast = _interopRequireDefault(require("../../../../components/toast"));
31
+
28
32
  var _progress = _interopRequireDefault(require("../../../progress"));
29
33
 
30
34
  var _util = require("../../util");
@@ -78,8 +82,14 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
78
82
  };
79
83
 
80
84
  var handleClickKrTitle = function handleClickKrTitle(id) {
81
- _drawerManager["default"].open("krDetail", {
82
- krId: id
85
+ (0, _requestV.taker)((0, _requestV.getApiUrl)("kr/getById?krId=".concat(id)), "GET").then(function (res) {
86
+ if (res !== null && res !== void 0 && res.Data) {
87
+ _drawerManager["default"].open("krDetail", {
88
+ krId: id
89
+ });
90
+ } else {
91
+ _toast["default"].Warning("该KR已被删除");
92
+ }
83
93
  });
84
94
  };
85
95
 
@@ -28,3 +28,7 @@
28
28
  line-height: 22px;
29
29
  color: #3f4755;
30
30
  }
31
+
32
+ .form-field-radio__radios-item {
33
+ display: flex;
34
+ }
@@ -33,17 +33,18 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
33
33
 
34
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
35
 
36
- var prefixCls = "form-field-radio";
36
+ var prefixCls = 'form-field-radio';
37
37
 
38
38
  var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
39
39
  var _props$className = props.className,
40
- className = _props$className === void 0 ? "" : _props$className,
40
+ className = _props$className === void 0 ? '' : _props$className,
41
41
  label = props.label,
42
42
  onChange = props.onChange,
43
43
  radios = props.radios,
44
44
  require = props.require,
45
45
  value = props.value,
46
- radioClass = props.radioClass;
46
+ _props$radioClass = props.radioClass,
47
+ radioClass = _props$radioClass === void 0 ? '' : _props$radioClass;
47
48
 
48
49
  var _useState = (0, _react.useState)(value),
49
50
  _useState2 = _slicedToArray(_useState, 2),
@@ -14,3 +14,7 @@
14
14
  justify-content: space-between;
15
15
  height: 17px;
16
16
  }
17
+
18
+ .confim-radio {
19
+ display: flex;
20
+ }
@@ -248,6 +248,7 @@ var ObjectType = /*#__PURE__*/function (_Component) {
248
248
 
249
249
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_radio.RadioGroup, {
250
250
  name: "okrType",
251
+ className: "confim-radio",
251
252
  labelText: (0, _getLocale.getLocale)("Mod_Type"),
252
253
  style: {
253
254
  marginBottom: 8
@@ -6,7 +6,7 @@
6
6
 
7
7
  .okr-detail-delete-confirm__option-text {
8
8
  font-size: 14px;
9
- color: #3F4755;
9
+ color: #3f4755;
10
10
  line-height: 22px;
11
11
  }
12
12
 
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  .okr-detail-delete-confirm__icon.tu-icon-singlebox-have {
26
- color: #BFC7D5;
26
+ color: #bfc7d5;
27
27
  }
28
28
 
29
29
  .okr-detail-delete-confirm__icon.tu-icon-wiki {
@@ -38,13 +38,17 @@
38
38
  margin-top: 10px;
39
39
  }
40
40
 
41
+ .okr-detail-delete-confirm .tita-radio:hover .tita-radio-inner {
42
+ color: #2879ff;
43
+ }
44
+
41
45
  .isApprovalDisabled {
42
46
  margin-bottom: 0;
43
47
  padding: 5px 24px;
44
48
  font-size: 14px;
45
49
  line-height: 22px;
46
- transition: all .3s ease-in;
47
- color: #BFC7D5;
50
+ transition: all 0.3s ease-in;
51
+ color: #bfc7d5;
48
52
  cursor: pointer;
49
53
  display: flex;
50
54
  align-items: center;
@@ -54,6 +58,6 @@
54
58
  .isApprovalDisabled .options-icon {
55
59
  margin-right: 12px;
56
60
  font-size: 14px;
57
- transition: all .3s ease-in;
61
+ transition: all 0.3s ease-in;
58
62
  color: #89919f;
59
63
  }
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  .titaui-radio-wrapper .titaui-radio:hover > .titaui-radio-inner {
33
- border: 1px solid #96d0fa;
33
+ border: 1px solid #2879ff;
34
34
  }
35
35
 
36
36
  .titaui-radio-wrapper .titaui-radio .titaui-radio-input {
@@ -59,14 +59,14 @@
59
59
  height: 10px;
60
60
  min-height: 10px;
61
61
  border-radius: 50%;
62
- background-color: #1687d9;
62
+ background-color: #2879ff;
63
63
  transform: scale(0);
64
64
  opacity: 0;
65
65
  transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
66
66
  }
67
67
 
68
68
  .titaui-radio-wrapper .titaui-radio .titaui-radio-input:checked + .titaui-radio-inner {
69
- border-color: #1687d9;
69
+ border-color: #2879ff;
70
70
  }
71
71
 
72
72
  .titaui-radio-wrapper .titaui-radio .titaui-radio-input:checked + .titaui-radio-inner:after {
@@ -43,7 +43,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
43
43
 
44
44
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
45
45
 
46
- var RadioWrapper = _styledComponents["default"].label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n color: #36434d;\n margin-right: 15px;\n box-sizing: border-box;\n display: flex;\n\n .label {\n position: relative;\n user-select: none;\n top: -2px;\n }\n"])));
46
+ var RadioWrapper = _styledComponents["default"].label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n color: #36434d;\n margin-right: 15px;\n box-sizing: border-box;\n display: inline-flex;\n\n .label {\n position: relative;\n user-select: none;\n top: -2px;\n }\n"])));
47
47
 
48
48
  var Radio = /*#__PURE__*/function (_Component) {
49
49
  _inherits(Radio, _Component);
@@ -65,7 +65,7 @@
65
65
  align-items: center;
66
66
  padding: 5px 8px;
67
67
  box-sizing: border-box;
68
- font-size: 14px;
68
+ font-size: 16px;
69
69
  color: #3f4755;
70
70
  line-height: 22px;
71
71
  cursor: pointer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.11.47",
3
+ "version": "1.11.48",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",