@voplus/morpho-workspace 6.0.92 → 6.0.94
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/board/components/Board/index.js +5 -12
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/Board/state.d.ts +4 -1
- package/es/modules/board/components/Board/state.js +22 -1
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +18 -7
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.less +21 -22
- package/es/modules/board/components/BoardColumn/state.d.ts +4 -1
- package/es/modules/board/components/NewBoardColumnDialog/index.d.ts +7 -0
- package/es/modules/board/components/NewBoardColumnDialog/index.js +29 -0
- package/es/modules/board/components/NewBoardColumnDialog/index.js.map +1 -0
- package/es/modules/board/pages/BoardViewList/index.less +1 -1
- package/package.json +1 -1
@@ -3,14 +3,11 @@ import { BoardListContextState, BoardtListContext, useBoard, useBoardColumnListE
|
|
3
3
|
import { CreateDateFilter, DocumentStatusFilter, FlagFilter, } from "@voplus/morpho-document/es/controls/filters";
|
4
4
|
import { DragDropContext, Droppable } from "react-beautiful-dnd";
|
5
5
|
import { FilterOptionsContext, ListDataContext, useCreateListDataState, } from "@voplus/morpho-ui/es/data";
|
6
|
-
import { Input, Spin } from "antd";
|
7
6
|
import React, { useEffect, useState } from "react";
|
8
7
|
import { useLayout } from "@voplus/morpho-data";
|
9
8
|
import { Swiper, SwiperSlide } from "swiper/react";
|
10
|
-
import
|
9
|
+
import NewBoardColumnDialog from "../NewBoardColumnDialog";
|
11
10
|
import BoardColumn from "../BoardColumn";
|
12
|
-
import Card from "@voplus/morpho-ui/es/controls/Card";
|
13
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
14
11
|
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
15
12
|
import { Observer } from "mobx-react-lite";
|
16
13
|
import Panable from "@voplus/morpho-ui/es/controls/Panable";
|
@@ -59,7 +56,7 @@ const Board = (props) => {
|
|
59
56
|
},
|
60
57
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
61
58
|
ref: provided.innerRef, ...provided.droppableProps }, (_a = state.boardcolumns) === null || _a === void 0 ? void 0 :
|
62
|
-
_a.map((item, index) => (React.createElement(BoardColumn, { key: item.id, index: index, id: item.id, reload: state.reload, colorStyle: state.colorList[index %
|
59
|
+
_a.map((item, index) => (React.createElement(BoardColumn, { key: item.id, index: index, id: item.id, reload: state.reload, colorStyle: state.colorList[index % 5], destination: state.destination, source: state.source, onIds: (v) => state.onIds(v), onAdd: (parentId, type, name) => {
|
63
60
|
props.onAdd && props.onAdd(parentId, type, name);
|
64
61
|
} }))),
|
65
62
|
provided.placeholder));
|
@@ -72,7 +69,7 @@ const Board = (props) => {
|
|
72
69
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
73
70
|
ref: provided.innerRef, ...provided.droppableProps },
|
74
71
|
React.createElement(Swiper, { slidesPerView: "auto", centeredSlides: true, spaceBetween: 20, className: "mySwiper" }, (_a = state.boardcolumns) === null || _a === void 0 ? void 0 : _a.map((item, index) => (React.createElement(SwiperSlide, { key: index },
|
75
|
-
React.createElement(BoardColumn, { key: item.id, index: index, id: item.id, reload: state.reload, colorStyle: state.colorList[index %
|
72
|
+
React.createElement(BoardColumn, { key: item.id, index: index, id: item.id, reload: state.reload, colorStyle: state.colorList[index % 5], destination: state.destination, source: state.source, onIds: (v) => state.onIds(v) }))))),
|
76
73
|
provided.placeholder));
|
77
74
|
})))));
|
78
75
|
return observe(() => (React.createElement(BoardtListContext.Provider, { value: lists },
|
@@ -80,13 +77,9 @@ const Board = (props) => {
|
|
80
77
|
React.createElement("div", { className: styles["board-context"] },
|
81
78
|
React.createElement("div", { className: "board-list" },
|
82
79
|
React.createElement(DragDropContext, { onDragEnd: (result) => state.onDragEnd(result) }, board),
|
83
|
-
React.createElement("div", { className: "add-board-controls" }, state.addBoardColumnAble && (React.createElement(Spin, { spinning: state.addLoading },
|
84
|
-
React.createElement(Card, { className: "add-board-able", padding: "0 15px", style: { borderTop: ` solid 2px #3AC43A` } },
|
85
|
-
React.createElement(Input, { placeholder: "STATUS NAME", value: state.name, onChange: (e) => runInAction(() => (state.name = e.target.value)) }),
|
86
|
-
React.createElement(FAIcon, { icon: faCheck, onClick: () => state.onSave() }),
|
87
|
-
React.createElement(FAIcon, { icon: faTimes, onClick: () => runInAction(() => (state.addBoardColumnAble = false)) }))))),
|
88
80
|
data.status !== "Readonly" && (React.createElement("div", { className: "add-board" },
|
89
|
-
React.createElement("div", { onClick: () => runInAction(() => (state.addBoardColumnAble = true)) }, "+ ADD"))))
|
81
|
+
React.createElement("div", { onClick: () => runInAction(() => (state.addBoardColumnAble = true)) }, "+ ADD")))),
|
82
|
+
state.addBoardColumnAble && (React.createElement(NewBoardColumnDialog, { parentId: props.parentId, onCancel: () => (state.addBoardColumnAble = false) })))))));
|
90
83
|
/** BoardColumn filters name */
|
91
84
|
function onSearch(value) {
|
92
85
|
list.triggerSearch(value);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EA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AG,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,GACjD,CACF,CACI,CACoB,CACC,CAC7B,CAAC,CAAC;IAEH,+BAA+B;IAC/B,SAAS,QAAQ,CAAC,KAAa;QAC9B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,SAAS,UAAU;QAClB,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC;QACnF,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC3B,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO;YACjD,oBAAC,gBAAgB,IAChB,MAAM,EAAE,CAAC,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EACzD,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,UAAU,IACV,OAAO,EAAE;oBACR,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,GAAG;oBAC3C,oBAAC,UAAU,IAAC,GAAG,EAAC,YAAY,GAAG;oBAC/B,oBAAC,oBAAoB,IAAC,GAAG,EAAC,sBAAsB,GAAG;iBACnD,EACD,SAAS,EAAC,gBAAgB,GACzB,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -29,7 +29,10 @@ export declare class State {
|
|
29
29
|
/** move 目标数据 */
|
30
30
|
destination: any;
|
31
31
|
/** BoardColumn head border-top color */
|
32
|
-
colorList:
|
32
|
+
colorList: {
|
33
|
+
color: string;
|
34
|
+
background: string;
|
35
|
+
}[];
|
33
36
|
/** documentlist filter name */
|
34
37
|
filterName: string;
|
35
38
|
filterList?: FilterOption[];
|
@@ -86,7 +86,28 @@ export class State {
|
|
86
86
|
enumerable: true,
|
87
87
|
configurable: true,
|
88
88
|
writable: true,
|
89
|
-
value: [
|
89
|
+
value: [
|
90
|
+
{
|
91
|
+
color: "#8CA55F",
|
92
|
+
background: "#F1FDD9",
|
93
|
+
},
|
94
|
+
{
|
95
|
+
color: "#A28C5B",
|
96
|
+
background: "#FFFAEB",
|
97
|
+
},
|
98
|
+
{
|
99
|
+
color: "#217EB2",
|
100
|
+
background: "#E0EFFE",
|
101
|
+
},
|
102
|
+
{
|
103
|
+
color: "#945BA2",
|
104
|
+
background: "#F6EBFF",
|
105
|
+
},
|
106
|
+
{
|
107
|
+
color: "#8E3F42",
|
108
|
+
background: "#FEE8E5",
|
109
|
+
},
|
110
|
+
]
|
90
111
|
});
|
91
112
|
/** documentlist filter name */
|
92
113
|
Object.defineProperty(this, "filterName", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAW/B,MAAM,OAAO,KAAK;IAEjB,YAA2B,MAAwB,EAAU,SAAwB;QAAlE;;;;mBAAQ,MAAM;WAAkB;QAAE;;;;mBAAQ,SAAS;WAAe;QAD9E;;;;;WAAsB;QAIV;;;;mBAA+B,EAAE;WAAC;QAClC;;;;;WAAgC;QACnD,gBAAgB;QACG;;;;mBAAmB,EAAE;WAAC;QACzC,2BAA2B;QACR;;;;mBAAO,EAAE;WAAC;QACV;;;;mBAAS,KAAK;WAAC;QAClC,mCAAmC;QAChB;;;;mBAAa,KAAK;WAAC;QACtC,sBAAsB;QACH;;;;mBAAqB,KAAK;WAAC;QAC9C,eAAe;QACI;;;;;WAAY;QAC/B,gBAAgB;QACG;;;;;WAAiB;QACpC,wCAAwC;QACrB;;;;mBAAY,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAW/B,MAAM,OAAO,KAAK;IAEjB,YAA2B,MAAwB,EAAU,SAAwB;QAAlE;;;;mBAAQ,MAAM;WAAkB;QAAE;;;;mBAAQ,SAAS;WAAe;QAD9E;;;;;WAAsB;QAIV;;;;mBAA+B,EAAE;WAAC;QAClC;;;;;WAAgC;QACnD,gBAAgB;QACG;;;;mBAAmB,EAAE;WAAC;QACzC,2BAA2B;QACR;;;;mBAAO,EAAE;WAAC;QACV;;;;mBAAS,KAAK;WAAC;QAClC,mCAAmC;QAChB;;;;mBAAa,KAAK;WAAC;QACtC,sBAAsB;QACH;;;;mBAAqB,KAAK;WAAC;QAC9C,eAAe;QACI;;;;;WAAY;QAC/B,gBAAgB;QACG;;;;;WAAiB;QACpC,wCAAwC;QACrB;;;;mBAAY;gBAC9B;oBACC,KAAK,EAAE,SAAS;oBAChB,UAAU,EAAE,SAAS;iBACrB;gBACD;oBACC,KAAK,EAAE,SAAS;oBAChB,UAAU,EAAE,SAAS;iBACrB;gBACD;oBACC,KAAK,EAAE,SAAS;oBAChB,UAAU,EAAE,SAAS;iBACrB;gBACD;oBACC,KAAK,EAAE,SAAS;oBAChB,UAAU,EAAE,SAAS;iBACrB;gBACD;oBACC,KAAK,EAAE,SAAS;oBAChB,UAAU,EAAE,SAAS;iBACrB;aACD;WAAC;QACF,+BAA+B;QACZ;;;;mBAAa,EAAE;WAAC;QAChB;;;;mBAA8B,EAAE;WAAC;QACpD,2EAA2E;QACxD;;;;mBAAc,KAAK;WAAC;QAGhC;;;;mBAAuB,CAAC,CAAgB,EAAE,CAAY,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,CAAC;YACrB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,UAAW,CAAC,CAAC;QAC5C,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AA3KmB;IAAlB,UAAU;2CAA0C;AAClC;IAAlB,UAAU;8CAAwC;AAEhC;IAAlB,UAAU;kCAA8B;AAEtB;IAAlB,UAAU;mCAAkB;AACV;IAAlB,UAAU;qCAAuB;AAEf;IAAlB,UAAU;yCAA2B;AAEnB;IAAlB,UAAU;iDAAmC;AAE3B;IAAlB,UAAU;qCAAoB;AAEZ;IAAlB,UAAU;0CAAyB;AAEjB;IAAlB,UAAU;wCAqBT;AAEiB;IAAlB,UAAU;yCAAwB;AAChB;IAAlB,UAAU;yCAAyC;AAEjC;IAAlB,UAAU;0CAA4B;AAGhC;IADN,MAAM;mDAOL;AAGK;IADN,MAAM;mDAKL;AAGK;IADN,MAAM;6DAQL;AAIK;IADN,MAAM;qCAWL;AAIW;IADZ,MAAM;sCA6DN;AAGc;IAAd,MAAM;kCAON;AAOD;IADC,QAAQ;oCAQR"}
|
@@ -2,6 +2,9 @@ import { State } from "./state";
|
|
2
2
|
import { Checkbox, Input, Spin, Tooltip } from "antd";
|
3
3
|
import React, { useState } from "react";
|
4
4
|
import { useBoardColumn, useBoardColumnStore } from "../../../../data/board";
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
+
import { faEllipsis } from "@fortawesome/pro-light-svg-icons";
|
7
|
+
import { faGripVertical } from "@fortawesome/pro-solid-svg-icons";
|
5
8
|
import AddDocDropdown from "@voplus/morpho-document/es/components/AddDocDropdown";
|
6
9
|
import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
|
7
10
|
import { Draggable } from "react-beautiful-dnd";
|
@@ -16,7 +19,7 @@ import { runInAction } from "mobx";
|
|
16
19
|
import styles from "./index.less";
|
17
20
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
18
21
|
const BoardColumn = (props) => {
|
19
|
-
const { index, destination, source } = { ...props };
|
22
|
+
const { index, destination, source, colorStyle } = { ...props };
|
20
23
|
const documentStore = useDocumentStore();
|
21
24
|
const boardStore = useBoardColumnStore();
|
22
25
|
const [state] = useState(new State(boardStore, documentStore));
|
@@ -28,18 +31,26 @@ const BoardColumn = (props) => {
|
|
28
31
|
return (React.createElement("div", { className: classnames(styles["board-column"], snapshot.isDragging && "action"),
|
29
32
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
30
33
|
ref: provided.innerRef, ...provided.draggableProps },
|
31
|
-
React.createElement("div", { className: "content-top"
|
32
|
-
|
33
|
-
|
34
|
+
React.createElement("div", { className: "content-top" },
|
35
|
+
React.createElement("span", { className: "drag-icon", ...provided.dragHandleProps,
|
36
|
+
// avoid mouse down propagate to panable
|
37
|
+
onMouseDown: (e) => e.stopPropagation() },
|
38
|
+
React.createElement(FAIcon, { icon: faGripVertical, color: "#CBCBCB" })),
|
34
39
|
React.createElement("div", { className: "board-name" },
|
35
40
|
state.checked && (React.createElement(Checkbox, { onChange: state.onCheckAllChange, checked: state.checkAll })),
|
36
41
|
state.editable ? (React.createElement(Spin, { spinning: state.loading },
|
37
|
-
React.createElement(Input.TextArea, { autoSize: true, autoFocus: true, value: state.name, onBlur: () => state.save(), onChange: (e) => runInAction(() => (state.name = e.target.value)) }))) : (React.createElement("div", { className: "task-card-title", onClick: state.onEdit
|
42
|
+
React.createElement(Input.TextArea, { autoSize: true, autoFocus: true, value: state.name, onBlur: () => state.save(), onChange: (e) => runInAction(() => (state.name = e.target.value)) }))) : (React.createElement("div", { className: "task-card-title", onClick: state.onEdit, style: {
|
43
|
+
color: colorStyle === null || colorStyle === void 0 ? void 0 : colorStyle.color,
|
44
|
+
background: colorStyle === null || colorStyle === void 0 ? void 0 : colorStyle.background,
|
45
|
+
} }, ((_a = state.boardcolumn.name) === null || _a === void 0 ? void 0 : _a.length) > 15 ? (React.createElement(Tooltip, { title: state.boardcolumn.name, placement: "topLeft" },
|
38
46
|
React.createElement("span", null, state.boardcolumn.name))) : (state.boardcolumn.name))),
|
39
47
|
!state.editable && React.createElement("span", { className: "board-length" }, state.documents)),
|
40
48
|
React.createElement("div", { className: "board-control" },
|
41
|
-
React.createElement(ToolBar, { id: state.boardcolumn.id, moreProps: {
|
42
|
-
|
49
|
+
React.createElement(ToolBar, { id: state.boardcolumn.id, moreProps: {
|
50
|
+
closeAside: true,
|
51
|
+
icon: React.createElement(FAIcon, { icon: faEllipsis, color: "#CBCBCB" }),
|
52
|
+
} }),
|
53
|
+
React.createElement(AddDocDropdown, { id: props.id, className: "board-drodown", iconColor: colorStyle === null || colorStyle === void 0 ? void 0 : colorStyle.color,
|
43
54
|
// onCancelClick={() => state.cancel()}
|
44
55
|
onItemClick: (val) => state.onItemClick(val) }))),
|
45
56
|
React.createElement(Scrollbars, { autoHide: true },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KA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ACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -1,8 +1,12 @@
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
2
|
+
|
1
3
|
.board-column {
|
2
4
|
min-width: 290px;
|
3
5
|
margin: 8px;
|
4
6
|
display: flex;
|
5
7
|
flex-direction: column;
|
8
|
+
background-color: #ebf5ff;
|
9
|
+
border-radius: 5px;
|
6
10
|
|
7
11
|
&:global(.action) {
|
8
12
|
opacity: 0.5;
|
@@ -26,11 +30,13 @@
|
|
26
30
|
.content-top {
|
27
31
|
width: 290px;
|
28
32
|
display: flex;
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
33
|
+
padding: 15px 12px 20px 0;
|
34
|
+
|
35
|
+
.drag-icon {
|
36
|
+
display: inline-flex;
|
37
|
+
align-items: center;
|
38
|
+
padding: 0 8px 0 10px;
|
39
|
+
}
|
34
40
|
|
35
41
|
.board-name {
|
36
42
|
flex: 1;
|
@@ -41,12 +47,14 @@
|
|
41
47
|
overflow: hidden;
|
42
48
|
|
43
49
|
.task-card-title {
|
44
|
-
height: 50px;
|
50
|
+
// height: 50px;
|
45
51
|
display: block;
|
46
52
|
overflow: hidden;
|
47
53
|
text-overflow: ellipsis;
|
48
54
|
white-space: nowrap;
|
49
55
|
cursor: text;
|
56
|
+
border-radius: 2px;
|
57
|
+
padding: 4px 10px;
|
50
58
|
}
|
51
59
|
|
52
60
|
.ant-spin-container {
|
@@ -60,20 +68,14 @@
|
|
60
68
|
|
61
69
|
.board-length {
|
62
70
|
display: inline-block;
|
63
|
-
height: 20px;
|
64
71
|
font-size: 14px;
|
65
|
-
|
66
|
-
|
67
|
-
line-height: 18px;
|
68
|
-
padding: 0 8px;
|
69
|
-
border-radius: 15px;
|
70
|
-
border: solid 1px #888888;
|
71
|
-
margin-left: 15px;
|
72
|
+
color: #5d5d5d;
|
73
|
+
margin-left: 8px;
|
72
74
|
}
|
73
75
|
|
74
76
|
span {
|
75
77
|
font-size: 16px;
|
76
|
-
color: #000;
|
78
|
+
// color: #000;
|
77
79
|
}
|
78
80
|
|
79
81
|
.board-control {
|
@@ -130,9 +132,7 @@
|
|
130
132
|
flex: 1;
|
131
133
|
display: flex;
|
132
134
|
flex-direction: column;
|
133
|
-
|
134
|
-
border: 8px;
|
135
|
-
padding-bottom: 0;
|
135
|
+
padding: 0 12px;
|
136
136
|
transition: background-color 0.2s ease, opacity 0.1s ease;
|
137
137
|
user-select: none;
|
138
138
|
width: 290px;
|
@@ -147,9 +147,8 @@
|
|
147
147
|
}
|
148
148
|
|
149
149
|
.link-container {
|
150
|
-
border-radius: 2px;
|
151
150
|
min-height: 40px;
|
152
|
-
margin-bottom:
|
151
|
+
margin-bottom: 12px;
|
153
152
|
user-select: none;
|
154
153
|
|
155
154
|
/* anchor overrides */
|
@@ -257,7 +256,7 @@
|
|
257
256
|
|
258
257
|
.new-sub-doc {
|
259
258
|
width: 290px;
|
260
|
-
padding: 0;
|
259
|
+
padding: 0 12px;
|
261
260
|
|
262
261
|
.ant-form-item {
|
263
262
|
margin-bottom: 0;
|
@@ -268,4 +267,4 @@
|
|
268
267
|
}
|
269
268
|
}
|
270
269
|
}
|
271
|
-
}
|
270
|
+
}
|
@@ -8,7 +8,10 @@ export type BoardColumnProps = {
|
|
8
8
|
/** BoardColumn item index */
|
9
9
|
index: number;
|
10
10
|
/** BoardColumn head border-top color */
|
11
|
-
colorStyle?:
|
11
|
+
colorStyle?: {
|
12
|
+
color: string;
|
13
|
+
background: string;
|
14
|
+
};
|
12
15
|
/** move 目标数据 */
|
13
16
|
destination?: any;
|
14
17
|
/** move 原数据 */
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { Form, Modal, Input, message } from "antd";
|
4
|
+
import { useBoardColumnStore } from "../../../../data/board";
|
5
|
+
const NewBoardColumnDialog = (props) => {
|
6
|
+
const [name, setName] = useState("");
|
7
|
+
const [loading, setLoading] = useState(false);
|
8
|
+
const store = useBoardColumnStore();
|
9
|
+
return observe(() => (React.createElement(Modal, { title: "New Board Column Dialog", okText: "Create", className: "new-boardColumn-dialog", open: true, destroyOnClose: true, onOk: onOk, confirmLoading: loading, onCancel: props.onCancel },
|
10
|
+
React.createElement(Form, { layout: "vertical" },
|
11
|
+
React.createElement(Form.Item, { label: "Name" },
|
12
|
+
React.createElement(Input, { onChange: (e) => setName(e.target.value) }))))));
|
13
|
+
async function onOk() {
|
14
|
+
var _a, _b;
|
15
|
+
(_a = props.onCreate) === null || _a === void 0 ? void 0 : _a.call(props, name);
|
16
|
+
if (!name)
|
17
|
+
return message.warning("Title is required");
|
18
|
+
setLoading(true);
|
19
|
+
await store.create({
|
20
|
+
data: { Name: name, ParentId: props.parentId },
|
21
|
+
error: "message",
|
22
|
+
});
|
23
|
+
setName("");
|
24
|
+
setLoading(false);
|
25
|
+
return (_b = props.onCancel) === null || _b === void 0 ? void 0 : _b.call(props);
|
26
|
+
}
|
27
|
+
};
|
28
|
+
export default NewBoardColumnDialog;
|
29
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/NewBoardColumnDialog/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,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,oBAAoB,GAAG,CAAC,KAI7B,EAAE,EAAE;IACJ,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,CAAC,OA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