fmui-base 2.3.36 → 2.3.37
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/README.md +1 -0
- package/lib/form/form.js +6 -2
- package/lib/process_list/processList.js +9 -10
- package/lib/select_input/selectInput.js +2 -10
- package/lib/select_input/selectInput.less +87 -103
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/form.js
CHANGED
|
@@ -4337,7 +4337,10 @@ var PageHome = function (_React$Component) {
|
|
|
4337
4337
|
)
|
|
4338
4338
|
)
|
|
4339
4339
|
)
|
|
4340
|
-
) :
|
|
4340
|
+
) :
|
|
4341
|
+
|
|
4342
|
+
// 单行文本:未配置 textLineFeed 时默认自动换行(与 PC 属性设置默认「是」一致)
|
|
4343
|
+
!this.state.itemParam.dataAttr || this.state.itemParam.dataAttr.textLineFeed == null || this.state.itemParam.dataAttr.textLineFeed === '' || this.state.itemParam.dataAttr.textLineFeed == 'yes' ? _react2.default.createElement(
|
|
4341
4344
|
'div',
|
|
4342
4345
|
{ className: t.state.itemParam.fieldId, style: t.state.itemParam.formStyleObj.contentStyle == null ? {} : t.state.itemParam.formStyleObj.contentStyle },
|
|
4343
4346
|
_react2.default.createElement(
|
|
@@ -4401,7 +4404,7 @@ var PageHome = function (_React$Component) {
|
|
|
4401
4404
|
)
|
|
4402
4405
|
)
|
|
4403
4406
|
),
|
|
4404
|
-
_react2.default.createElement('div', { className: 't-FBH t-PL16 t-fw', dangerouslySetInnerHTML: { __html: t.state.itemParam.value } }),
|
|
4407
|
+
_react2.default.createElement('div', { className: 't-FBH t-PL16 t-fw ueditor-content', dangerouslySetInnerHTML: { __html: t.state.itemParam.value } }),
|
|
4405
4408
|
t.state.itemParam.isVerifySing == "1" ? _react2.default.createElement('i', { className: 'iconfont icon-checked t-PT10', style: { color: 'green' } }) : t.state.itemParam.isVerifySing == "2" ? _react2.default.createElement('i', { className: 'iconfont icon-close t-PT10', style: { color: 'red' } }) : ""
|
|
4406
4409
|
) : _react2.default.createElement(
|
|
4407
4410
|
'div',
|
|
@@ -5040,6 +5043,7 @@ var PageHome = function (_React$Component) {
|
|
|
5040
5043
|
required: false,
|
|
5041
5044
|
canAdd: false,
|
|
5042
5045
|
canDel: false,
|
|
5046
|
+
canDownload: true,
|
|
5043
5047
|
initIds: t.state.itemParam.noteFileIds,
|
|
5044
5048
|
limitNo: '5',
|
|
5045
5049
|
fileSizeLimit: '10',
|
|
@@ -356,9 +356,15 @@ var ListItem = function (_React$Component) {
|
|
|
356
356
|
var checkIsNotComplete = true;
|
|
357
357
|
var urgencyTag = false;
|
|
358
358
|
var tagClass = '';
|
|
359
|
-
if (data.type == 0) {
|
|
360
|
-
//待办
|
|
361
|
-
|
|
359
|
+
if (data.type == 0 || data.type == 2) {
|
|
360
|
+
//待办 / 已办:缓急角标
|
|
361
|
+
if (data.type == 0) {
|
|
362
|
+
checkIsNotComplete = true;
|
|
363
|
+
} else if (data.status == 2) {
|
|
364
|
+
checkIsNotComplete = false;
|
|
365
|
+
} else {
|
|
366
|
+
checkIsNotComplete = true;
|
|
367
|
+
}
|
|
362
368
|
if (data.urgency == '90') {
|
|
363
369
|
urgencyTag = true;
|
|
364
370
|
tagClass = 'label label-danger';
|
|
@@ -381,13 +387,6 @@ var ListItem = function (_React$Component) {
|
|
|
381
387
|
} else {
|
|
382
388
|
checkIsNotComplete = true;
|
|
383
389
|
}
|
|
384
|
-
} else if (data.type == 2) {
|
|
385
|
-
//已办
|
|
386
|
-
if (data.status == 2) {
|
|
387
|
-
checkIsNotComplete = false;
|
|
388
|
-
} else {
|
|
389
|
-
checkIsNotComplete = true;
|
|
390
|
-
}
|
|
391
390
|
} else if (data.type == 3) {
|
|
392
391
|
//已阅
|
|
393
392
|
if (data.status == 2) {
|
|
@@ -393,21 +393,13 @@ var SelectInput = function (_React$Component) {
|
|
|
393
393
|
{ className: 'dd-select-input-option-text' },
|
|
394
394
|
option.text
|
|
395
395
|
),
|
|
396
|
-
showInput ? _react2.default.createElement('
|
|
396
|
+
showInput ? _react2.default.createElement('input', {
|
|
397
397
|
className: 'dd-select-input-text',
|
|
398
|
-
|
|
398
|
+
type: 'text',
|
|
399
399
|
value: _this3.state.inputValues[optionValue] || ''
|
|
400
400
|
// 输入框只有在当前项已选中且 readOnly=false 时才允许输入。
|
|
401
401
|
, disabled: inputDisabled,
|
|
402
|
-
ref: function ref(el) {
|
|
403
|
-
if (el) {
|
|
404
|
-
el.style.height = 'auto';
|
|
405
|
-
el.style.height = el.scrollHeight + 'px';
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
402
|
onChange: function onChange(e) {
|
|
409
|
-
e.target.style.height = 'auto';
|
|
410
|
-
e.target.style.height = e.target.scrollHeight + 'px';
|
|
411
403
|
_this3.handleInputChange(optionValue, e.target.value);
|
|
412
404
|
},
|
|
413
405
|
onBlur: function onBlur() {
|
|
@@ -1,103 +1,87 @@
|
|
|
1
|
-
.dd-select-input-field {
|
|
2
|
-
width: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.dd-select-input-option {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
flex:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border-bottom:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
font-size: 14px;
|
|
89
|
-
line-height: 1.4;
|
|
90
|
-
background-color: transparent;
|
|
91
|
-
white-space: pre-wrap;
|
|
92
|
-
word-break: break-all;
|
|
93
|
-
overflow-wrap: anywhere;
|
|
94
|
-
resize: none;
|
|
95
|
-
overflow: hidden;
|
|
96
|
-
field-sizing: content;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.dd-select-input-text:disabled {
|
|
100
|
-
color: #333;
|
|
101
|
-
border-bottom-color: #eee;
|
|
102
|
-
cursor: not-allowed;
|
|
103
|
-
}
|
|
1
|
+
.dd-select-input-field {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.dd-select-input-option {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
margin: 8px 0;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dd-select-input-native {
|
|
13
|
+
position: absolute;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dd-select-input-icon {
|
|
19
|
+
position: relative;
|
|
20
|
+
flex: 0 0 18px;
|
|
21
|
+
width: 18px;
|
|
22
|
+
height: 18px;
|
|
23
|
+
margin-right: 8px;
|
|
24
|
+
border: 1px solid #c7ced9;
|
|
25
|
+
background: #fff;
|
|
26
|
+
transition: all .2s ease;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dd-select-input-icon.radio {
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dd-select-input-icon.checkbox {
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dd-select-input-option.checked .dd-select-input-icon {
|
|
39
|
+
border-color: #3480fb;
|
|
40
|
+
background: #3480fb;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dd-select-input-option.checked .dd-select-input-icon.radio::after {
|
|
44
|
+
content: '';
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 50%;
|
|
47
|
+
left: 50%;
|
|
48
|
+
width: 8px;
|
|
49
|
+
height: 8px;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
background: #fff;
|
|
52
|
+
transform: translate(-50%, -50%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dd-select-input-option.checked .dd-select-input-icon.checkbox::after {
|
|
56
|
+
content: '';
|
|
57
|
+
position: absolute;
|
|
58
|
+
left: 5px;
|
|
59
|
+
top: 1px;
|
|
60
|
+
width: 5px;
|
|
61
|
+
height: 10px;
|
|
62
|
+
border: solid #fff;
|
|
63
|
+
border-width: 0 2px 2px 0;
|
|
64
|
+
transform: rotate(45deg);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dd-select-input-option-text {
|
|
68
|
+
margin-right: 8px;
|
|
69
|
+
min-width: 32px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dd-select-input-text {
|
|
73
|
+
flex: 1;
|
|
74
|
+
min-width: 120px;
|
|
75
|
+
border: none;
|
|
76
|
+
border-bottom: 1px solid #ddd;
|
|
77
|
+
outline: none;
|
|
78
|
+
padding: 4px 2px;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dd-select-input-text:disabled {
|
|
84
|
+
color: #333;
|
|
85
|
+
border-bottom-color: #eee;
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|