@voplus/morpho-workspace 6.0.38 → 6.0.39
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/tasks/components/TaskCheckActiveTab/index.js +1 -1
- package/es/modules/tasks/components/TaskCheckActiveTab/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckDoneTab/index.js +2 -2
- package/es/modules/tasks/components/TaskCheckDoneTab/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckItem/index.js +22 -14
- package/es/modules/tasks/components/TaskCheckItem/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckItem/index.less +14 -0
- package/es/modules/tasks/components/TaskCheckList/index.js +3 -3
- package/es/modules/tasks/components/TaskCheckList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckList/index.less +7 -1
- package/es/modules/tasks/components/TaskCheckNewForm/index.js +4 -3
- package/es/modules/tasks/components/TaskCheckNewForm/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckNewForm/index.less +5 -3
- package/package.json +1 -1
@@ -65,7 +65,7 @@ const TaskCheckActiveTab = (props) => {
|
|
65
65
|
key: "Due",
|
66
66
|
label: "Due",
|
67
67
|
children: (React.createElement(React.Fragment, null, state.dueList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
|
68
|
-
React.createElement(TaskCheckItem, { id: item.id
|
68
|
+
React.createElement(TaskCheckItem, { id: item.id })))))),
|
69
69
|
});
|
70
70
|
if (state.todayList.length)
|
71
71
|
items.push({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckActiveTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAiB,gBAAgB,EAAE,mBAAm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MAAM;YAC5B,KAAK,CAAC,IAAI,CAAC;gBACV,GAAG,EAAE,UAAU;gBACf,KAAK,EAAE,UAAU;gBACjB,QAAQ,EAAE,CACT,0CACE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACjC,oBAAC,iBAAiB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE;oBAC9B,oBAAC,aAAa,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,SAAG,CACnB,CACpB,CAAC,CACA,CACH;aACD,CAAC,CAAC;QAEJ,OAAO,CACN,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;YACpC,6BAAK,SAAS,EAAC,sBAAsB;gBACpC,oBAAC,QAAQ,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO;oBAC9B,oBAAC,QAAQ,IACR,SAAS,EAAC,sBAAsB,EAChC,QAAQ,EAAE,KAAK,EACf,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,EACvE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,oBAAC,kBAAkB,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAI,EAC/E,KAAK,EAAE,KAAK,GACX;oBACD,CAAC,KAAK,CAAC,MAAM,IAAI,oBAAC,KAAK,OAAG,CACjB,CACN,CACoB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -17,7 +17,7 @@ const TaskCheckDoneTab = (props) => {
|
|
17
17
|
includes: "tags",
|
18
18
|
filters: [
|
19
19
|
{ c: "ParentNodeId", o: "=", l: "And", v1: parentId },
|
20
|
-
{ c: "TaskStatus", o: "contains", l: "And", v1: "
|
20
|
+
{ c: "TaskStatus", o: "contains", l: "And", v1: JSON.stringify(["Done"]) },
|
21
21
|
/** 必須提供parent node id或assignee filter */
|
22
22
|
// {
|
23
23
|
// c: "Members",
|
@@ -54,7 +54,7 @@ const TaskCheckDoneTab = (props) => {
|
|
54
54
|
});
|
55
55
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
56
56
|
React.createElement(ListView, { renderId: props.parentId, asideable: false, headerProps: { visible: false }, renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id },
|
57
|
-
React.createElement(TaskCheckItem, { id: item.id
|
57
|
+
React.createElement(TaskCheckItem, { id: item.id }))) }))));
|
58
58
|
};
|
59
59
|
export default TaskCheckDoneTab;
|
60
60
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckDoneTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,gBAAgB,GAAG,CAAC,KAA2D,EAAE,EAAE;IACxF,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,KA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B,cAAc,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9C,CAAC;IACF,CAAC,CAAC,CAAC;IAEH,aAAa;IACb,mBAAmB,CAAC,CAAC,CAAgB,EAAE,GAAU,EAAE,EAAE;QACpD,IAAI,GAAG,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC5D,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC;YACjB,cAAc,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9C,CAAC;IACF,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACpC,oBAAC,QAAQ,IACR,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAE,KAAK,EAChB,WAAW,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzB,oBAAC,iBAAiB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE;gBAC9B,oBAAC,aAAa,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACX,CACpB,GACA,CACwB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -8,29 +8,37 @@ import FlagIcon from "@voplus/morpho-document/es/controls/data-icons/FlagIcon";
|
|
8
8
|
import { useTask, useTaskStore, useMetaStore } from "@voplus/morpho-document-core";
|
9
9
|
import dayjs from "dayjs";
|
10
10
|
import { State } from "./state";
|
11
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
12
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
11
13
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
12
14
|
import "./index.less";
|
13
15
|
const TaskCheckItem = (props) => {
|
14
16
|
const { id, dueDate } = props;
|
15
17
|
const [state] = useState(new State());
|
16
18
|
const meta = useMetaStore();
|
19
|
+
const { user } = useApplicationContext();
|
17
20
|
const taskStore = useTaskStore();
|
18
21
|
const task = useTask(id);
|
19
22
|
state.update(task);
|
20
|
-
return observe(() =>
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
React.createElement(
|
33
|
-
React.createElement(
|
23
|
+
return observe(() => {
|
24
|
+
var _a;
|
25
|
+
return (React.createElement(DocumentHeader, { id: id, flagVisible: false, tagsVisible: false, quickDataBarVisible: false, className: "task-check-item", clickNameEffect: "default", onMouse: (over) => (state.isHover = over), pre: React.createElement("div", null,
|
26
|
+
React.createElement(Checkbox, { checked: state.checked, onChange: async (e) => {
|
27
|
+
state.checked = e.target.checked;
|
28
|
+
await taskStore.edit(task.id, {
|
29
|
+
data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
|
30
|
+
error: (error) => message.error(error.message),
|
31
|
+
});
|
32
|
+
state.checked = task.taskStatus === "Done";
|
33
|
+
} }),
|
34
|
+
React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly })), tools: React.createElement(React.Fragment, null,
|
35
|
+
((_a = task.members) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: classnames("task-members", { hide: state.isHover, noDate: dueDate }) },
|
36
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, maxCount: 3, list: task.members, editable: false }))) : null,
|
37
|
+
dueDate && (React.createElement("span", { className: classnames("task-dueDate", { hide: state.isHover }) }, task.dueDate && dayjs(task.dueDate).format("DD MMM YYYY"))),
|
38
|
+
React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
|
39
|
+
React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
|
40
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(task) })))) }));
|
41
|
+
});
|
34
42
|
};
|
35
43
|
export default TaskCheckItem;
|
36
44
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,QAAQ,MAAM,yDAAyD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,cAAc,CAAC;AAEtB,MAAM,aAAa,GAAG,CAAC,KAItB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IACzB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEnB,OAAO,OAAO,CAAC,GAAG,EAAE,
|
1
|
+
{"version":3,"file":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AAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,CAAC,EACX,IAAI,EAAE,IAAI,CAAC,OAAO,EAClB,QAAQ,EAAE,KAAK,GACd,CACG,CACN,CAAC,CAAC,CAAC,IAAI;gBACP,OAAO,IAAI,CACX,8BAAM,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,IAClE,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CACpD,CACP;gBACD,6BAAK,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;oBACxE,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;wBAC9D,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CACvC,CACL,CACJ,GAEH,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -5,10 +5,24 @@
|
|
5
5
|
align-items: center;
|
6
6
|
background-color: transparent;
|
7
7
|
padding: 10px 20px 10px 20px;
|
8
|
+
.task-members {
|
9
|
+
opacity: 1;
|
10
|
+
// transition: opacity 0.3s;
|
11
|
+
flex-shrink: 0;
|
12
|
+
&.hide {
|
13
|
+
opacity: 0;
|
14
|
+
}
|
15
|
+
&.noDate {
|
16
|
+
flex: 1;
|
17
|
+
opacity: 1;
|
18
|
+
}
|
19
|
+
}
|
8
20
|
.task-dueDate {
|
21
|
+
width: 100px;
|
9
22
|
opacity: 1;
|
10
23
|
// transition: opacity 0.3s;
|
11
24
|
flex-shrink: 0;
|
25
|
+
text-align: right;
|
12
26
|
&.hide {
|
13
27
|
opacity: 0;
|
14
28
|
}
|
@@ -31,16 +31,16 @@ const TaskCheckList = (props) => {
|
|
31
31
|
List: false,
|
32
32
|
Filters: [
|
33
33
|
{ c: "ParentNodeId", o: "=", l: "And", v1: id },
|
34
|
-
{ c: "TaskStatus", o: "contains", l: "And", v1: "
|
34
|
+
{ c: "TaskStatus", o: "contains", l: "And", v1: JSON.stringify(["Done"]) },
|
35
35
|
],
|
36
36
|
});
|
37
37
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
38
38
|
React.createElement("div", { className: "task-check-list" },
|
39
39
|
React.createElement("div", { className: "task-check-header" },
|
40
40
|
React.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900" }, "Tasks"),
|
41
|
-
React.createElement("div",
|
41
|
+
React.createElement("div", { className: "task-check-tabbar" },
|
42
42
|
React.createElement(Popover, { content: React.createElement(React.Fragment, null, "Show Done Tasts") },
|
43
|
-
React.createElement(Button, {
|
43
|
+
React.createElement(Button, { onClick: onMore, className: "task-check-trigger" },
|
44
44
|
React.createElement(FAIcon, { icon: state.showTabbar ? faEllipsis : faEllipsisLight }))),
|
45
45
|
React.createElement(Button, { onClick: onCreate, className: "task-check-add" },
|
46
46
|
React.createElement(PlusOutlined, null)))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,C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,oBAAC,KAAK,IAAC,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,GAAI,CACrD,CACH;wBACD,QAAQ,EAAE,CACT,oBAAC,UAAU,IAAC,QAAQ;4BACnB,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,GAAI,CACnD,CACb;qBACD;iBACD,GACA;YACD,KAAK,CAAC,OAAO,IAAI,CACjB,oBAAC,gBAAgB,IAChB,QAAQ,EAAE,KAAK,CAAC,EAAE,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,EACvC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,GACpC,CACF,CACI,CACgB,CACvB,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED,SAAS,MAAM;QACd,KAAK,CAAC,UAAU,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,UAAU;YAAE,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IACnD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -9,9 +9,15 @@
|
|
9
9
|
justify-content: space-between;
|
10
10
|
padding: 10px 20px 10px 20px;
|
11
11
|
border-bottom: 1px solid #e6e6e6;
|
12
|
-
.task-check-
|
12
|
+
.task-check-tabbar {
|
13
|
+
display: flex;
|
14
|
+
}
|
15
|
+
.task-check-add,
|
16
|
+
.task-check-trigger {
|
17
|
+
width: 32px;
|
13
18
|
display: inline-flex;
|
14
19
|
align-items: center;
|
20
|
+
justify-content: center;
|
15
21
|
margin-left: 10px;
|
16
22
|
}
|
17
23
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import { Col, Spin, Form, Input, Row, message
|
2
|
+
import { Col, Spin, Form, Input, Row, message } from "antd";
|
3
3
|
import { State } from "./state";
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
5
5
|
import PresetDatePicker from "@voplus/morpho-ui/es/controls/PresetDatePicker";
|
@@ -24,7 +24,8 @@ const TaskCheckNewForm = (props) => {
|
|
24
24
|
React.createElement("div", { className: "task-due-date-content" },
|
25
25
|
state.dueDateString ? (React.createElement("div", { className: "due-val-content", onClick: () => (state.openDate = true) },
|
26
26
|
React.createElement("div", { className: "dueDate" }, "Due"),
|
27
|
-
React.createElement(React.Fragment, null, state.dueDateString))) : (React.createElement(
|
27
|
+
React.createElement(React.Fragment, null, state.dueDateString))) : (React.createElement("span", { onClick: () => (state.openDate = true), className: "task-due-date-bnt" },
|
28
|
+
React.createElement(FAIcon, { icon: faCalendar, size: "lg" }))),
|
28
29
|
React.createElement(PresetDatePicker, { className: "task-preset-date-picker", open: state.openDate, onChange: (preset, date) => {
|
29
30
|
state.params.DueDate = dayjs(date).format("YYYY-MM-DD");
|
30
31
|
state.dueDateString = preset ? preset : dayjs(date).format("YYYY-MM-DD");
|
@@ -33,7 +34,7 @@ const TaskCheckNewForm = (props) => {
|
|
33
34
|
if (inputlement) {
|
34
35
|
inputlement.focus();
|
35
36
|
}
|
36
|
-
}, style: { width: "100%" } }))))))))));
|
37
|
+
}, handleOpenChange: (open) => (state.openDate = open), style: { width: "100%" } }))))))))));
|
37
38
|
function onKeyDown(e) {
|
38
39
|
if (e.keyCode !== 27)
|
39
40
|
return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,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B;IAClB,SAAS,QAAQ;;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
:global {
|
4
4
|
.new-task-check-form {
|
5
|
-
padding: 10px
|
5
|
+
padding: 10px 16px 0;
|
6
6
|
.ant-form-item {
|
7
7
|
margin-bottom: 10px;
|
8
8
|
.task-due-date-content {
|
@@ -17,14 +17,16 @@
|
|
17
17
|
}
|
18
18
|
.task-due-date-bnt {
|
19
19
|
width: 40px;
|
20
|
-
|
20
|
+
height: 32px;
|
21
|
+
font-size: 20px;
|
21
22
|
cursor: pointer;
|
22
23
|
display: inline-flex;
|
23
24
|
align-items: center;
|
24
25
|
justify-content: center;
|
26
|
+
background-color: #fff;
|
25
27
|
}
|
26
28
|
.due-val-content {
|
27
|
-
min-width:
|
29
|
+
min-width: 32px;
|
28
30
|
line-height: 18px;
|
29
31
|
background-color: #fff;
|
30
32
|
cursor: pointer;
|