@titaui/pc 1.15.20-beta.4 → 1.15.20-beta.5
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/lib/components/nav-top/components/app-center/images/quick.svg +30 -0
- package/lib/components/nav-top/components/app-center/index.css +8 -0
- package/lib/components/quick-entrance/index.css +19 -2
- package/lib/components/quick-entrance/index.js +29 -24
- package/package.json +1 -1
- package/lib/components/quick-entrance/render-checkbox.js +0 -35
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>OKR 目标</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="93.0938721%" y1="100%" x2="58.0596924%" y2="57.6904297%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#FFD15E" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#FFC637" offset="78.8761029%"></stop>
|
|
8
|
+
<stop stop-color="#FFC32C" offset="100%"></stop>
|
|
9
|
+
</linearGradient>
|
|
10
|
+
</defs>
|
|
11
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
12
|
+
<g id="快捷入口" transform="translate(-136.000000, -98.000000)">
|
|
13
|
+
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
14
|
+
<g id="编组-21" transform="translate(120.000000, 32.000000)">
|
|
15
|
+
<g id="OKR-目标" transform="translate(16.000000, 12.000000)">
|
|
16
|
+
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background" fill="url(#linearGradient-1)"></path>
|
|
17
|
+
<g id="验收标准规范库" transform="translate(4.000000, 4.000000)" fill-rule="nonzero">
|
|
18
|
+
<rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="24" height="24"></rect>
|
|
19
|
+
<g id="闪电">
|
|
20
|
+
<rect id="矩形" fill="#F6BD16" opacity="0" x="0" y="0" width="24" height="24"></rect>
|
|
21
|
+
<path d="M11.9573624,15.9479022 L8.20069499,15.9479022 C7.71022824,15.9479022 7.37189483,15.4569688 7.5464282,14.9989353 L11.2792956,5.2008001 C11.3826842,4.9294091 11.6429117,4.75000001 11.9333291,4.75000001 L18.232397,4.75000001 C18.729397,4.75000001 19.0681971,5.25353345 18.8805971,5.7139002 L16.7070967,11.0488346 L20.7988308,11.0488346 C21.4005976,11.0488346 21.7216643,11.758168 21.3247642,12.2103681 L9.50537109,21.8832397 C9.01770434,22.4390398 8.11353748,21.9574397 8.30277086,21.2427395 L11.9573624,15.9479022 Z" id="路径" fill-opacity="0.4" fill="#FFFFFF"></path>
|
|
22
|
+
<path d="M9.95736238,13.9479022 L6.20069499,13.9479022 C5.71022824,13.9479022 5.37189483,13.4569688 5.5464282,12.9989353 L9.27929559,3.2008001 C9.38268419,2.9294091 9.64291165,2.75000001 9.93332906,2.75000001 L16.232397,2.75000001 C16.729397,2.75000001 17.0681971,3.25353345 16.8805971,3.7139002 L14.7070967,9.04883456 L18.7988308,9.04883456 C19.4005976,9.04883456 19.7216643,9.75816804 19.3247642,10.2103681 L9.29282894,21.6413704 C8.80516218,22.1971705 7.90099532,21.7155704 8.0902287,21.0008702 L9.95736238,13.9479022 Z" id="路径" fill="#FFFFFF"></path>
|
|
23
|
+
</g>
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
background-size: contain;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
.app-center__app-item-icon--quick {
|
|
50
|
+
background-image: url("./images/quick.svg");
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
.app-center__app-item-icon--chart {
|
|
50
54
|
background-image: url(./images/chart.svg);
|
|
51
55
|
}
|
|
@@ -137,6 +141,10 @@
|
|
|
137
141
|
padding: 0 16px;
|
|
138
142
|
}
|
|
139
143
|
|
|
144
|
+
.app-center__app-item--quick:hover {
|
|
145
|
+
background-color: rgba(255, 178, 0, 0.1);
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
.app-center__app-item--okr:hover, .app-center__app-item--demo:hover {
|
|
141
149
|
background-color: rgba(40, 121, 255, 0.1);
|
|
142
150
|
}
|
|
@@ -35,21 +35,31 @@
|
|
|
35
35
|
.titaui-quick-entrance-dialog__content__left-wrapper {
|
|
36
36
|
margin-top: 20px;
|
|
37
37
|
overflow-y: scroll;
|
|
38
|
+
overflow-y: overlay;
|
|
38
39
|
height: 95%;
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
.titaui-quick-entrance-dialog__content__left-wrapper::-webkit-scrollbar {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-quick-entrance-dialog__content__left-wrapper:hover::-webkit-scrollbar {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
.titaui-quick-entrance-dialog__content__left__item:nth-child(1) {
|
|
42
51
|
padding-top: 0px;
|
|
43
52
|
}
|
|
44
53
|
|
|
45
54
|
.titaui-quick-entrance-dialog__content__left__item {
|
|
46
|
-
padding: 20px
|
|
55
|
+
padding: 20px 20px 0 20px;
|
|
47
56
|
}
|
|
48
57
|
|
|
49
58
|
.titaui-quick-entrance-dialog__content__left__item__menu-one {
|
|
50
59
|
display: flex;
|
|
51
60
|
flex-direction: row;
|
|
52
61
|
align-items: center;
|
|
62
|
+
margin-bottom: 8px;
|
|
53
63
|
}
|
|
54
64
|
|
|
55
65
|
.titaui-quick-entrance-dialog__content__left__item__menu-one__icon {
|
|
@@ -77,12 +87,19 @@
|
|
|
77
87
|
border-radius: 8px;
|
|
78
88
|
}
|
|
79
89
|
|
|
90
|
+
.titaui-quick-entrance-dialog__content__left__item__menu-two:hover {
|
|
91
|
+
background: #F0F4FA;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
}
|
|
94
|
+
|
|
80
95
|
.titaui-quick-entrance-dialog__content__left__item__menu-two__title {
|
|
81
96
|
margin-left: 36px;
|
|
82
97
|
}
|
|
83
98
|
|
|
84
99
|
.titaui-quick-entrance-dialog__content__left__item__menu-two__checkbox {
|
|
100
|
+
display: inline-block;
|
|
85
101
|
padding-top: 10px;
|
|
102
|
+
padding-right: 6px;
|
|
86
103
|
}
|
|
87
104
|
|
|
88
105
|
.titaui-quick-entrance-dialog__content__right {
|
|
@@ -90,7 +107,7 @@
|
|
|
90
107
|
border-left: 1px solid #DFE3EA;
|
|
91
108
|
height: 100%;
|
|
92
109
|
box-sizing: border-box;
|
|
93
|
-
padding:
|
|
110
|
+
padding: 20px 20px;
|
|
94
111
|
overflow-y: scroll;
|
|
95
112
|
}
|
|
96
113
|
|
|
@@ -21,7 +21,7 @@ var _bsGlobal = require("../../utils/bs-global");
|
|
|
21
21
|
|
|
22
22
|
var _requestApi = require("./request-api");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
25
25
|
|
|
26
26
|
require("./index.css");
|
|
27
27
|
|
|
@@ -158,8 +158,27 @@ var QuickEntranceDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
|
|
|
158
158
|
return true;
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
-
var
|
|
162
|
-
var
|
|
161
|
+
var isCheckedById = function isCheckedById(id, appId) {
|
|
162
|
+
var index = entrancelist.findIndex(function (item) {
|
|
163
|
+
return item.id === id;
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
if (index !== -1) {
|
|
167
|
+
return true;
|
|
168
|
+
} else {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var handleClickMenuTwoItem = function handleClickMenuTwoItem(item) {
|
|
174
|
+
var findItem = entrancelist.find(function (i) {
|
|
175
|
+
return i.id === item.id;
|
|
176
|
+
});
|
|
177
|
+
var isChecked = true;
|
|
178
|
+
|
|
179
|
+
if (findItem) {
|
|
180
|
+
isChecked = false;
|
|
181
|
+
}
|
|
163
182
|
|
|
164
183
|
var newEntrancelist = _toConsumableArray(entrancelist);
|
|
165
184
|
|
|
@@ -190,18 +209,6 @@ var QuickEntranceDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
|
|
|
190
209
|
}
|
|
191
210
|
};
|
|
192
211
|
|
|
193
|
-
var _isCheckedById = function isCheckedById(id, appId) {
|
|
194
|
-
var index = entrancelist.findIndex(function (item) {
|
|
195
|
-
return item.id === id;
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
if (index !== -1) {
|
|
199
|
-
return true;
|
|
200
|
-
} else {
|
|
201
|
-
return false;
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
|
|
205
212
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
206
213
|
wrapClassName: "".concat(preCls, "__wrap"),
|
|
207
214
|
noFooterLine: true,
|
|
@@ -231,19 +238,17 @@ var QuickEntranceDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
|
|
|
231
238
|
className: "".concat(preCls, "__content__left__item__menu-one__title")
|
|
232
239
|
}, item.title)), item.children.length > 0 && item.children.map(function (i) {
|
|
233
240
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
234
|
-
className: "".concat(preCls, "__content__left__item__menu-two")
|
|
241
|
+
className: "".concat(preCls, "__content__left__item__menu-two"),
|
|
242
|
+
onClick: function onClick() {
|
|
243
|
+
return handleClickMenuTwoItem(i);
|
|
244
|
+
}
|
|
235
245
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
236
246
|
className: "".concat(preCls, "__content__left__item__menu-two__title")
|
|
237
247
|
}, i.title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
238
248
|
className: "".concat(preCls, "__content__left__item__menu-two__checkbox")
|
|
239
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
240
|
-
|
|
241
|
-
return
|
|
242
|
-
},
|
|
243
|
-
entrancelist: entrancelist,
|
|
244
|
-
item: i,
|
|
245
|
-
handleOnchangeCheckBox: function handleOnchangeCheckBox(e) {
|
|
246
|
-
return _handleOnchangeCheckBox(e, i);
|
|
249
|
+
}, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
250
|
+
checked: function checked() {
|
|
251
|
+
return isCheckedById(i.id, i.appId);
|
|
247
252
|
}
|
|
248
253
|
})));
|
|
249
254
|
}));
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
11
|
-
|
|
12
|
-
require("./index.css");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var RenderCheckbox = function RenderCheckbox(props) {
|
|
17
|
-
var item = props.item,
|
|
18
|
-
handleOnchangeCheckBox = props.handleOnchangeCheckBox,
|
|
19
|
-
isCheckedById = props.isCheckedById;
|
|
20
|
-
return (
|
|
21
|
-
/*#__PURE__*/
|
|
22
|
-
//@ts-ignore
|
|
23
|
-
_react["default"].createElement(_checkbox["default"], {
|
|
24
|
-
checked: function checked() {
|
|
25
|
-
return isCheckedById(item.id, item.appId);
|
|
26
|
-
},
|
|
27
|
-
onChange: function onChange(e) {
|
|
28
|
-
return handleOnchangeCheckBox(e, item);
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var _default = RenderCheckbox;
|
|
35
|
-
exports["default"] = _default;
|