@titaui/pc 1.11.14 → 1.11.17-beta.1
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/.husky/pre-commit +2 -2
- package/lib/components/avatar/name-avatar/index.css +1 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- package/lib/components/button/rect-btn/index.css +25 -11
- package/lib/components/button/rect-btn/index.js +8 -4
- package/lib/components/change-okr-modal/Item.js +1 -1
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/drawer/headerAction.js +5 -1
- package/lib/components/drawer/headerDrop.js +41 -4
- package/lib/components/drawer/index.css +44 -0
- package/lib/components/drawer/index.js +36 -7
- package/lib/components/dynamic/constant.js +4 -2
- package/lib/components/dynamic/dynamic-item/index.js +14 -2
- package/lib/components/dynamic/dynamic-list/index.js +1 -9
- package/lib/components/icon-button-list/index.css +2 -57
- package/lib/components/icon-button-list/index.js +8 -5
- package/lib/components/nav-top/index.js +6 -2
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +16 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +9 -1
- package/lib/components/okr-detail/components/header/index.js +9 -3
- package/lib/components/okr-detail/components/header/o-name.js +9 -3
- package/lib/components/okr-detail/components/o-classify.js +5 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +9 -6
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/index.js +12 -1
- package/lib/components/okr-detail/helper.js +62 -0
- package/lib/components/okr-detail/index.js +21 -2
- package/lib/components/okr-detail/okr-list/index.js +8 -3
- package/lib/components/okr-detail/request-apis.js +7 -1
- package/lib/components/okr-flow/child-node/index.css +60 -15
- package/lib/components/okr-flow/child-node/work-node.js +43 -6
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +26 -2
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +16 -10
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +41 -20
- package/lib/components/okr-flow/request-apis.js +11 -4
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/root-node/index.js +1 -1
- package/lib/components/okr-flow/utils/index.js +43 -26
- package/lib/components/okr-flow/utils/tree-handler.js +14 -3
- package/lib/components/okr-period-selector/select-cycle.js +23 -19
- package/lib/components/okrcase-library/index.css +6 -4
- package/lib/components/period-selector/index.js +3 -0
- package/lib/components/textarea/index.css +120 -0
- package/lib/components/textarea/index.js +257 -0
- package/lib/index.js +40 -0
- package/lib/pages/new-okr-list/header/common.js +52 -0
- package/lib/pages/new-okr-list/header/index.css +45 -0
- package/lib/pages/new-okr-list/header/index.js +38 -16
- package/lib/pages/new-okr-list/header/operate-record.js +124 -0
- package/lib/pages/new-okr-list/index.js +3 -1
- package/lib/pages/new-okr-list/list/index.js +19 -2
- package/lib/pages/new-okr-list/request-api.js +8 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +6 -1
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +60 -21
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +41 -18
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +10 -5
- package/lib/pages/okr-map/number-select/index.css +12 -9
- package/lib/pages/okr-map/number-select/index.js +1 -1
- package/lib/utils/format-time.js +8 -1
- package/lib/utils/open-data.js +5 -1
- package/package.json +1 -1
|
@@ -15,6 +15,12 @@ var _rootNode = _interopRequireDefault(require("../root-node"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
18
24
|
var nodeTypes = {
|
|
19
25
|
ChildNode: _childNode["default"],
|
|
20
26
|
RootNode: _rootNode["default"]
|
|
@@ -24,42 +30,53 @@ exports.nodeTypes = nodeTypes;
|
|
|
24
30
|
var getLayoutedElements = function getLayoutedElements(elements) {
|
|
25
31
|
var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "horizontal";
|
|
26
32
|
var isHorizontal = direction === "horizontal";
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
var dagreGraph = new _dagre["default"].graphlib.Graph();
|
|
30
|
-
dagreGraph.setDefaultEdgeLabel(function () {
|
|
31
|
-
return {};
|
|
33
|
+
var g = new _dagre["default"].graphlib.Graph({
|
|
34
|
+
compound: true
|
|
32
35
|
});
|
|
33
|
-
|
|
36
|
+
g.setGraph({
|
|
34
37
|
rankdir: isHorizontal ? "LR" : "TB",
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
nodesep: 12,
|
|
39
|
+
ranksep: 80
|
|
37
40
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
g.setDefaultEdgeLabel(function () {
|
|
42
|
+
return {};
|
|
43
|
+
});
|
|
44
|
+
elements.forEach(function (element) {
|
|
45
|
+
if ((0, _reactFlowRenderer.isNode)(element)) {
|
|
46
|
+
var _element$__rf, _element$__rf2;
|
|
47
|
+
|
|
48
|
+
// const { data,id } = element
|
|
49
|
+
// if(id!=="0"){
|
|
50
|
+
// const {parentId} = data
|
|
51
|
+
// if(parentId===0||parentId){
|
|
52
|
+
// g.setParent(id, parentId+"");
|
|
53
|
+
// }
|
|
54
|
+
// }
|
|
55
|
+
g.setNode(element.id, {
|
|
56
|
+
width: (_element$__rf = element.__rf) === null || _element$__rf === void 0 ? void 0 : _element$__rf.width,
|
|
57
|
+
height: (_element$__rf2 = element.__rf) === null || _element$__rf2 === void 0 ? void 0 : _element$__rf2.height
|
|
43
58
|
});
|
|
44
59
|
} else {
|
|
45
|
-
|
|
60
|
+
g.setEdge(element.source, element.target);
|
|
46
61
|
}
|
|
47
62
|
});
|
|
48
63
|
|
|
49
|
-
_dagre["default"].layout(
|
|
50
|
-
|
|
51
|
-
return elements.map(function (
|
|
52
|
-
if ((0, _reactFlowRenderer.isNode)(
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
_dagre["default"].layout(g);
|
|
65
|
+
|
|
66
|
+
return elements.map(function (element) {
|
|
67
|
+
if ((0, _reactFlowRenderer.isNode)(element)) {
|
|
68
|
+
var node = g.node(element.id);
|
|
69
|
+
return _objectSpread(_objectSpread({}, element), {}, {
|
|
70
|
+
targetPosition: isHorizontal ? "left" : "top",
|
|
71
|
+
sourcePosition: isHorizontal ? "right" : "bottom",
|
|
72
|
+
position: {
|
|
73
|
+
x: node.x - node.width / 2,
|
|
74
|
+
y: node.y - node.height / 2
|
|
75
|
+
}
|
|
76
|
+
});
|
|
60
77
|
}
|
|
61
78
|
|
|
62
|
-
return
|
|
79
|
+
return element;
|
|
63
80
|
});
|
|
64
81
|
};
|
|
65
82
|
|
|
@@ -130,6 +130,7 @@ exports.formatNodes = formatNodes;
|
|
|
130
130
|
|
|
131
131
|
var flatTree = function flatTree(current, elements, showkr) {
|
|
132
132
|
var isParentExpand = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
133
|
+
var parentId = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
133
134
|
if (!current) return;
|
|
134
135
|
var id = current.id,
|
|
135
136
|
data = current.data,
|
|
@@ -142,7 +143,12 @@ var flatTree = function flatTree(current, elements, showkr) {
|
|
|
142
143
|
elements.push({
|
|
143
144
|
id: "".concat(id),
|
|
144
145
|
type: "RootNode",
|
|
145
|
-
data: data
|
|
146
|
+
data: data,
|
|
147
|
+
isParent: true,
|
|
148
|
+
position: {
|
|
149
|
+
x: 0,
|
|
150
|
+
y: 0
|
|
151
|
+
}
|
|
146
152
|
});
|
|
147
153
|
} else {
|
|
148
154
|
var isChildExpand = false;
|
|
@@ -164,11 +170,16 @@ var flatTree = function flatTree(current, elements, showkr) {
|
|
|
164
170
|
elements.push({
|
|
165
171
|
id: "".concat(id),
|
|
166
172
|
type: "ChildNode",
|
|
173
|
+
position: {
|
|
174
|
+
x: 0,
|
|
175
|
+
y: 0
|
|
176
|
+
},
|
|
167
177
|
data: {
|
|
168
178
|
id: id,
|
|
169
179
|
data: data,
|
|
170
180
|
isParentExpand: isParentExpand,
|
|
171
181
|
isChildExpand: isChildExpand,
|
|
182
|
+
parentId: parentId,
|
|
172
183
|
modelType: modelType,
|
|
173
184
|
isSearchRes: isSearchRes
|
|
174
185
|
}
|
|
@@ -191,7 +202,7 @@ var flatTree = function flatTree(current, elements, showkr) {
|
|
|
191
202
|
source: "".concat(id),
|
|
192
203
|
target: "".concat(sub.id)
|
|
193
204
|
});
|
|
194
|
-
flatTree(sub, elements, showkr, current.modelType != "root");
|
|
205
|
+
flatTree(sub, elements, showkr, current.modelType != "root", id);
|
|
195
206
|
});
|
|
196
207
|
}
|
|
197
208
|
} else {
|
|
@@ -200,7 +211,7 @@ var flatTree = function flatTree(current, elements, showkr) {
|
|
|
200
211
|
source: "".concat(id),
|
|
201
212
|
target: "".concat(child.id)
|
|
202
213
|
});
|
|
203
|
-
flatTree(child, elements, showkr, current.modelType != "root");
|
|
214
|
+
flatTree(child, elements, showkr, current.modelType != "root", id);
|
|
204
215
|
}
|
|
205
216
|
});
|
|
206
217
|
}
|
|
@@ -49,7 +49,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
49
49
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
50
50
|
|
|
51
51
|
function _formatCycleData(periodParams, getCycleRange) {
|
|
52
|
-
if (!periodParams) return
|
|
52
|
+
if (!periodParams) return '';
|
|
53
53
|
var startDate = periodParams.startDate;
|
|
54
54
|
var endDate = periodParams.endDate;
|
|
55
55
|
|
|
@@ -58,7 +58,7 @@ function _formatCycleData(periodParams, getCycleRange) {
|
|
|
58
58
|
endDate = periodParams.endDate.slice(5);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
return "".concat(_periodSelector["default"].formatPeriod(periodParams)).concat(getCycleRange ? ",".concat(startDate, "~").concat(endDate) :
|
|
61
|
+
return "".concat(_periodSelector["default"].formatPeriod(periodParams)).concat(getCycleRange ? ",".concat(startDate, "~").concat(endDate) : '');
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
function CreateCycle(_ref) {
|
|
@@ -94,21 +94,21 @@ function CreateCycle(_ref) {
|
|
|
94
94
|
setCycleSetting = _useState4[1];
|
|
95
95
|
|
|
96
96
|
(0, _react.useEffect)(function () {
|
|
97
|
-
var settings = localStorage.getItem(
|
|
97
|
+
var settings = localStorage.getItem('OKR_CYCLE_SETTING');
|
|
98
98
|
|
|
99
99
|
if (settings) {
|
|
100
100
|
setCycleSetting(JSON.parse(settings));
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
var url = (0, _helper.getApiUrl)(
|
|
105
|
-
(0, _helper.taker)(url,
|
|
104
|
+
var url = (0, _helper.getApiUrl)('okr/cycleSetting');
|
|
105
|
+
(0, _helper.taker)(url, 'GET').then(function (res) {
|
|
106
106
|
if (res.Code == 1) {
|
|
107
107
|
setCycleSetting(res.Data);
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
}, []);
|
|
111
|
-
var cycleWrapperRef = (0, _react.useRef)(document.createElement(
|
|
111
|
+
var cycleWrapperRef = (0, _react.useRef)(document.createElement('div'));
|
|
112
112
|
|
|
113
113
|
var onPeriodSelectorChangeHandler = function onPeriodSelectorChangeHandler(c) {
|
|
114
114
|
setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), c));
|
|
@@ -148,13 +148,13 @@ function CreateCycle(_ref) {
|
|
|
148
148
|
},
|
|
149
149
|
ref: cycleWrapperRef,
|
|
150
150
|
style: {
|
|
151
|
-
backgroundColor:
|
|
152
|
-
boxShadow:
|
|
151
|
+
backgroundColor: 'white',
|
|
152
|
+
boxShadow: '0px 4px 12px 0px rgb(127 145 180 / 20%)',
|
|
153
153
|
borderRadius: 4
|
|
154
154
|
}
|
|
155
155
|
}, /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
156
156
|
style: {
|
|
157
|
-
width:
|
|
157
|
+
width: '100%'
|
|
158
158
|
},
|
|
159
159
|
selected: selfCycle,
|
|
160
160
|
showFullCycle: false,
|
|
@@ -176,9 +176,9 @@ function CreateCycle(_ref) {
|
|
|
176
176
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
177
|
className: "okr-detail-date-cycle__date-line",
|
|
178
178
|
style: {
|
|
179
|
-
borderBottom:
|
|
179
|
+
borderBottom: '1px solid #F0F2F5'
|
|
180
180
|
}
|
|
181
|
-
}, (0, _getLocale.getLocale)(
|
|
181
|
+
}, (0, _getLocale.getLocale)('Mod_StartDate'), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
182
182
|
format: "YYYY/MM/DD",
|
|
183
183
|
controlled: true,
|
|
184
184
|
onConfirm: onStartDateConfirmHandler,
|
|
@@ -193,7 +193,7 @@ function CreateCycle(_ref) {
|
|
|
193
193
|
className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
|
|
194
194
|
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
195
|
className: "okr-detail-date-cycle__date-line"
|
|
196
|
-
}, (0, _getLocale.getLocale)(
|
|
196
|
+
}, (0, _getLocale.getLocale)('Mod_EndDate'), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
197
197
|
format: "YYYY/MM/DD",
|
|
198
198
|
controlled: true,
|
|
199
199
|
onConfirm: onEndDateCOnfirmHandler,
|
|
@@ -208,8 +208,8 @@ function CreateCycle(_ref) {
|
|
|
208
208
|
className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
|
|
209
209
|
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
210
|
style: {
|
|
211
|
-
display:
|
|
212
|
-
justifyContent:
|
|
211
|
+
display: 'flex',
|
|
212
|
+
justifyContent: 'flex-end'
|
|
213
213
|
}
|
|
214
214
|
}, /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
215
215
|
size: "s",
|
|
@@ -217,15 +217,15 @@ function CreateCycle(_ref) {
|
|
|
217
217
|
marginRight: 12
|
|
218
218
|
},
|
|
219
219
|
onClick: onCancelClickHandler
|
|
220
|
-
}, (0, _getLocale.getLocale)(
|
|
220
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
221
221
|
size: "s",
|
|
222
222
|
type: "primary",
|
|
223
223
|
onClick: onSureClickHandler
|
|
224
|
-
}, (0, _getLocale.getLocale)(
|
|
224
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine'))));
|
|
225
225
|
} else {
|
|
226
|
-
return /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
226
|
+
return canEdit ? /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
227
227
|
style: {
|
|
228
|
-
width:
|
|
228
|
+
width: '100%'
|
|
229
229
|
},
|
|
230
230
|
selected: cycle,
|
|
231
231
|
showFullCycle: false,
|
|
@@ -245,7 +245,11 @@ function CreateCycle(_ref) {
|
|
|
245
245
|
btnRef: btnRef,
|
|
246
246
|
clickCallback: function clickCallback() {},
|
|
247
247
|
text: _formatCycleData(cycle, getCycleRange)
|
|
248
|
-
}))
|
|
248
|
+
})) : renderInnerContent({
|
|
249
|
+
btnRef: btnRef,
|
|
250
|
+
clickCallback: function clickCallback() {},
|
|
251
|
+
text: _formatCycleData(cycle, getCycleRange)
|
|
252
|
+
});
|
|
249
253
|
}
|
|
250
254
|
}
|
|
251
255
|
|
|
@@ -647,12 +647,14 @@
|
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
.okr-cases-library__pay-window__commit-order {
|
|
650
|
-
background: #
|
|
650
|
+
background: #ffffff;
|
|
651
651
|
border-radius: 8px;
|
|
652
|
-
border: 1px solid #
|
|
652
|
+
border: 1px solid #dfe3ea;
|
|
653
653
|
padding: 12px 20px;
|
|
654
|
-
color: #
|
|
654
|
+
color: #3f4755;
|
|
655
655
|
cursor: pointer;
|
|
656
|
+
display: flex;
|
|
657
|
+
align-items: center;
|
|
656
658
|
}
|
|
657
659
|
|
|
658
660
|
.okr-cases-library__pay-window__commit-order--wx {
|
|
@@ -660,7 +662,7 @@
|
|
|
660
662
|
}
|
|
661
663
|
|
|
662
664
|
.okr-cases-library__pay-window__commit-order--active {
|
|
663
|
-
border-color: #
|
|
665
|
+
border-color: #2879ff;
|
|
664
666
|
position: relative;
|
|
665
667
|
}
|
|
666
668
|
|
|
@@ -73,6 +73,8 @@ function PeriodSelector(_ref) {
|
|
|
73
73
|
wrapperStyle = _ref.wrapperStyle,
|
|
74
74
|
popClass = _ref.popClass,
|
|
75
75
|
style = _ref.style,
|
|
76
|
+
_ref$buttonClass = _ref.buttonClass,
|
|
77
|
+
buttonClass = _ref$buttonClass === void 0 ? "" : _ref$buttonClass,
|
|
76
78
|
_ref$noBorder = _ref.noBorder,
|
|
77
79
|
noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder;
|
|
78
80
|
|
|
@@ -174,6 +176,7 @@ function PeriodSelector(_ref) {
|
|
|
174
176
|
className: className
|
|
175
177
|
}, children || /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
176
178
|
type: "default",
|
|
179
|
+
className: buttonClass,
|
|
177
180
|
style: noBorder ? {
|
|
178
181
|
padding: "0",
|
|
179
182
|
border: "none"
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
.titaui-textArea {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
position: relative;
|
|
4
|
+
min-height: 36px;
|
|
5
|
+
background: #ffffff;
|
|
6
|
+
cursor: text;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding: 7px 0;
|
|
11
|
+
transition: border 0.2s ease 0.2s, box-shadow 0.2s ease 0.2s;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.titaui-textArea.has-error {
|
|
15
|
+
border: 1px solid #f05e5e !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-textArea:hover {
|
|
19
|
+
border: 1px solid #2879ff;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-textArea > input {
|
|
23
|
+
flex-grow: 1;
|
|
24
|
+
border: none;
|
|
25
|
+
padding: 0 12px;
|
|
26
|
+
margin: 0;
|
|
27
|
+
outline: none;
|
|
28
|
+
width: 0;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
color: #3f4755;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.titaui-textArea > input ::-webkit-input-placeholder {
|
|
35
|
+
color: #bfc7d5;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-textArea > input :-ms-input-placeholder {
|
|
39
|
+
color: #bfc7d5;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.titaui-textArea > input :-moz-input-placeholder {
|
|
43
|
+
color: #bfc7d5;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-textArea textarea {
|
|
47
|
+
flex: 1;
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
min-height: 20px;
|
|
50
|
+
border: none;
|
|
51
|
+
padding: 0;
|
|
52
|
+
margin: 0;
|
|
53
|
+
outline: none;
|
|
54
|
+
resize: none;
|
|
55
|
+
padding: 0 12px;
|
|
56
|
+
width: 100%;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
color: #3f4755;
|
|
60
|
+
word-break: break-all;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.titaui-textArea textarea ::-webkit-input-placeholder {
|
|
64
|
+
color: #bfc7d5;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.titaui-textArea textarea :-ms-input-placeholder {
|
|
68
|
+
color: #bfc7d5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.titaui-textArea textarea :-moz-input-placeholder {
|
|
72
|
+
color: #bfc7d5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.titaui-textArea.disabled {
|
|
76
|
+
background-color: rgba(240, 242, 245, 0.4);
|
|
77
|
+
border-color: #f0f2f5;
|
|
78
|
+
color: #bfc7d5;
|
|
79
|
+
cursor: default;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.titaui-textArea.disabled > input,
|
|
83
|
+
.titaui-textArea.disabled textarea,
|
|
84
|
+
.titaui-textArea.disabled .tail-wrapper {
|
|
85
|
+
color: #bfc7d5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.titaui-textArea.disabled:hover {
|
|
89
|
+
border-color: #f0f2f5;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.area-error {
|
|
93
|
+
border: 1px solid #f05e5e !important;
|
|
94
|
+
box-shadow: 0px 0px 6px 0px rgba(240, 94, 94, 0.3);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.area-focus {
|
|
98
|
+
border: 1px solid #2879ff !important;
|
|
99
|
+
box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.area-normal {
|
|
103
|
+
border: 1px solid #e9ecf0 !important;
|
|
104
|
+
box-shadow: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.inner {
|
|
108
|
+
overflow: auto;
|
|
109
|
+
display: flex;
|
|
110
|
+
flex: 1;
|
|
111
|
+
width: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.err-color {
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
font-weight: 400;
|
|
117
|
+
color: #f05e5e;
|
|
118
|
+
line-height: 18px;
|
|
119
|
+
padding-left: 12px;
|
|
120
|
+
}
|