easy3wmui 0.0.2 → 0.0.4-3.beta1
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/assets/index.css +400 -67
- package/assets/mCard.css +4 -0
- package/assets/mFormPage.css +32 -47
- package/assets/mGridPage.css +72 -4
- package/assets/mInsideLayout.css +2 -2
- package/assets/mLogin.css +58 -0
- package/assets/mPagination.css +36 -0
- package/assets/mSpin.css +9 -11
- package/assets/mTable.css +97 -0
- package/assets/mUserLayout.css +9 -3
- package/lib/Easy3wMButton/index.less +3 -3
- package/lib/Easy3wMCaptcha/index.js +80 -80
- package/lib/Easy3wMCard/index.less +3 -3
- package/lib/Easy3wMDownLoad/Easy3wMFileView.js +9 -12
- package/lib/Easy3wMDownLoad/Easy3wMImgView.js +13 -16
- package/lib/Easy3wMDownLoad/Easy3wMPDFView.js +13 -16
- package/lib/Easy3wMDownLoad/index.js +50 -49
- package/lib/Easy3wMFormPage/index.js +422 -389
- package/lib/Easy3wMFormPage/index.less +45 -45
- package/lib/Easy3wMGlobalFooter/index.js +3 -3
- package/lib/Easy3wMGlobalFooter/index.less +1 -1
- package/lib/Easy3wMGridPage/index copy.js +298 -0
- package/lib/Easy3wMGridPage/index.js +461 -158
- package/lib/Easy3wMGridPage/index.less +5 -6
- package/lib/Easy3wMInsideLayout/index.js +7 -3
- package/lib/Easy3wMInsideLayout/index.less +3 -3
- package/lib/Easy3wMLogin/index.js +218 -63
- package/lib/Easy3wMPagination/index.js +283 -0
- package/lib/Easy3wMSpin/index.js +6 -9
- package/lib/Easy3wMSpin/index.less +13 -13
- package/lib/Easy3wMTable/index.js +609 -0
- package/lib/Easy3wMUserLayout/index.less +13 -9
- package/lib/index.js +9 -0
- package/package.json +2 -2
package/assets/mGridPage.css
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
|
-
#Easy3wMGridPage .
|
|
2
|
-
|
|
1
|
+
#Easy3wMGridPage .easy3wMGridPageStepper {
|
|
2
|
+
display: -ms-flexbox;
|
|
3
|
+
display: flex;
|
|
4
|
+
-ms-flex-direction: row;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
-ms-flex-pack: justify;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
-ms-flex-align: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
background: #fff;
|
|
3
11
|
}
|
|
4
|
-
#Easy3wMGridPage .
|
|
5
|
-
|
|
12
|
+
#Easy3wMGridPage .easy3wMGridPageStepper .emgpsBtn {
|
|
13
|
+
-ms-flex: 1;
|
|
14
|
+
flex: 1;
|
|
15
|
+
border: 1px solid #000;
|
|
16
|
+
color: #000;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
text-align: center;
|
|
19
|
+
padding: 7px 0;
|
|
20
|
+
margin-right: 3px;
|
|
21
|
+
}
|
|
22
|
+
#Easy3wMGridPage .easy3wMGridPageStepper .emgpsBtn:last-child {
|
|
23
|
+
margin-right: 0;
|
|
24
|
+
}
|
|
25
|
+
#Easy3wMGridPage .easy3wMGridPageStepper .emgpsBtn.emgpsBtnDisable {
|
|
26
|
+
border: 1px solid #999;
|
|
27
|
+
color: #999;
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
}
|
|
30
|
+
#Easy3wMGridPage .easy3wMGridPageStepper .emgpsBtn.emgpsBtnActive {
|
|
31
|
+
border: 1px solid var(--adm-color-primary);
|
|
32
|
+
color: var(--adm-color-primary);
|
|
33
|
+
}
|
|
34
|
+
#Easy3wMGridPage .easy3wMGridPageStepper .emgpsBtnNo {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
#Easy3wMGridPage .adm-collapse-panel-content > .adm-collapse-panel-content-inner > .adm-list-item > .adm-list-item-content > .adm-list-item-content-main {
|
|
38
|
+
-ms-flex: auto;
|
|
39
|
+
flex: auto;
|
|
40
|
+
max-width: none;
|
|
41
|
+
}
|
|
42
|
+
#Easy3wMGridPage .adm-collapse-panel-header > .adm-list-item-content > .adm-list-item-content-main {
|
|
43
|
+
color: var(--adm-color-text);
|
|
44
|
+
-ms-flex: auto;
|
|
45
|
+
flex: auto;
|
|
46
|
+
max-width: none;
|
|
47
|
+
}
|
|
48
|
+
#Easy3wMGridPage .adm-list-item-content-main {
|
|
49
|
+
color: var(--adm-color-weak);
|
|
50
|
+
-ms-flex: none;
|
|
51
|
+
flex: none;
|
|
52
|
+
max-width: 70%;
|
|
53
|
+
}
|
|
54
|
+
#Easy3wMGridPage .adm-list-item-content-extra {
|
|
55
|
+
-ms-flex: auto;
|
|
56
|
+
flex: auto;
|
|
57
|
+
max-width: none;
|
|
58
|
+
text-align: right;
|
|
59
|
+
}
|
|
60
|
+
#Easy3wMGridPage .e3wmLongText .adm-list-item-content-main {
|
|
61
|
+
max-width: none;
|
|
62
|
+
-ms-flex: auto;
|
|
63
|
+
flex: auto;
|
|
64
|
+
}
|
|
65
|
+
#Easy3wMGridPage .e3wmLongText .adm-list-item-content-main .adm-list-item-title {
|
|
66
|
+
padding-bottom: 12px;
|
|
67
|
+
}
|
|
68
|
+
#Easy3wMGridPage .e3wmLongText .adm-list-item-content-main .adm-list-item-description {
|
|
69
|
+
color: var(--adm-color-text);
|
|
70
|
+
}
|
|
71
|
+
#Easy3wMGridPage .adm-list-item-description {
|
|
72
|
+
border-top: var(--border-top);
|
|
73
|
+
padding-top: 12px;
|
|
6
74
|
}
|
package/assets/mInsideLayout.css
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#Easy3wMLogin {
|
|
2
|
+
width: 360px;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
}
|
|
5
|
+
#Easy3wMLogin .adm-tabs-tab {
|
|
6
|
+
width: -moz-fit-content;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
}
|
|
9
|
+
#Easy3wMLogin .adm-tabs-header {
|
|
10
|
+
background: none;
|
|
11
|
+
margin-bottom: 12px;
|
|
12
|
+
}
|
|
13
|
+
#Easy3wMLogin .adm-input-element {
|
|
14
|
+
height: 40px;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
padding: 0 12px;
|
|
17
|
+
border: 1px solid #d9d9d9;
|
|
18
|
+
}
|
|
19
|
+
#Easy3wMLogin .errorMsgReal {
|
|
20
|
+
background: #fff1f0;
|
|
21
|
+
border: 1px solid #ffa39e;
|
|
22
|
+
padding: 3px 12px;
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
}
|
|
25
|
+
#Easy3wMLogin .adm-button {
|
|
26
|
+
height: 40px;
|
|
27
|
+
}
|
|
28
|
+
#Easy3wMLogin .adm-form {
|
|
29
|
+
--border-bottom: 0;
|
|
30
|
+
--border-top: 0;
|
|
31
|
+
--border-inner: 0;
|
|
32
|
+
}
|
|
33
|
+
#Easy3wMLogin .adm-form .adm-list-body {
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
#Easy3wMLogin .adm-form .adm-list-body .adm-list-item {
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
}
|
|
39
|
+
#Easy3wMLogin .adm-form .adm-list-body .adm-list-item .adm-list-item-content-extra {
|
|
40
|
+
padding-left: 0;
|
|
41
|
+
}
|
|
42
|
+
#Easy3wMLogin .adm-form .adm-list-body .adm-list-item .adm-list-item-content-extra .adm-button {
|
|
43
|
+
--adm-button-border-color: #d9d9d9;
|
|
44
|
+
width: 120px;
|
|
45
|
+
border: 1px solid var(--adm-button-border-color);
|
|
46
|
+
border-left: 0;
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
}
|
|
49
|
+
#Easy3wMLogin .funArea {
|
|
50
|
+
text-align: right;
|
|
51
|
+
margin-bottom: 24px;
|
|
52
|
+
}
|
|
53
|
+
#Easy3wMLogin .funArea > a {
|
|
54
|
+
padding-right: 12px;
|
|
55
|
+
}
|
|
56
|
+
#Easy3wMLogin .funArea > a:last-child {
|
|
57
|
+
padding-right: 0;
|
|
58
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#Easy3wMPagination .easy3wMGridPageStepper {
|
|
2
|
+
display: -ms-flexbox;
|
|
3
|
+
display: flex;
|
|
4
|
+
-ms-flex-direction: row;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
-ms-flex-align: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
-ms-flex-pack: justify;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
padding: 12px;
|
|
11
|
+
}
|
|
12
|
+
#Easy3wMPagination .easy3wMGridPageStepper .emgpsBtn {
|
|
13
|
+
-ms-flex: 1;
|
|
14
|
+
flex: 1;
|
|
15
|
+
border: 1px solid #000;
|
|
16
|
+
color: #000;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
text-align: center;
|
|
19
|
+
padding: 7px 0;
|
|
20
|
+
margin-right: 3px;
|
|
21
|
+
}
|
|
22
|
+
#Easy3wMPagination .easy3wMGridPageStepper .emgpsBtn:last-child {
|
|
23
|
+
margin-right: 0;
|
|
24
|
+
}
|
|
25
|
+
#Easy3wMPagination .easy3wMGridPageStepper .emgpsBtn.emgpsBtnDisable {
|
|
26
|
+
border: 1px solid #999;
|
|
27
|
+
color: #999;
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
}
|
|
30
|
+
#Easy3wMPagination .easy3wMGridPageStepper .emgpsBtn.emgpsBtnActive {
|
|
31
|
+
border: 1px solid var(--adm-color-primary);
|
|
32
|
+
color: var(--adm-color-primary);
|
|
33
|
+
}
|
|
34
|
+
#Easy3wMPagination .easy3wMGridPageStepper .emgpsBtnNo {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
package/assets/mSpin.css
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
#Easy3wMSpin {
|
|
2
2
|
position: fixed;
|
|
3
|
-
background:
|
|
4
|
-
top:
|
|
5
|
-
|
|
6
|
-
left:
|
|
7
|
-
right: 0;
|
|
3
|
+
background: #fff;
|
|
4
|
+
top: 92px;
|
|
5
|
+
left: 49%;
|
|
6
|
+
margin-left: -69px;
|
|
8
7
|
z-index: 9999;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
--size: 48px;
|
|
8
|
+
text-align: center;
|
|
9
|
+
padding: 12px 24px;
|
|
10
|
+
color: var(--adm-color-primary);
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
15
13
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
#Easy3wMTable {
|
|
2
|
+
--padding: 6px;
|
|
3
|
+
}
|
|
4
|
+
#Easy3wMTable .queryCriteria .more {
|
|
5
|
+
padding: 0 12px;
|
|
6
|
+
}
|
|
7
|
+
#Easy3wMTable .queryCriteria .adm-button {
|
|
8
|
+
font-size: var(--adm-font-size-7);
|
|
9
|
+
}
|
|
10
|
+
#Easy3wMTable .queryCriteria .adm-list-item-content-extra {
|
|
11
|
+
font-size: var(--adm-font-size-7);
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
#Easy3wMTable .queryCriteriaBtn {
|
|
15
|
+
margin-top: 24px;
|
|
16
|
+
}
|
|
17
|
+
#Easy3wMTable .singleItem .itemAttr {
|
|
18
|
+
display: -ms-flexbox;
|
|
19
|
+
display: flex;
|
|
20
|
+
-ms-flex-align: stretch;
|
|
21
|
+
align-items: stretch;
|
|
22
|
+
-ms-flex-pack: start;
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
padding-bottom: var(--padding);
|
|
25
|
+
}
|
|
26
|
+
#Easy3wMTable .singleItem .itemAttr .attrLabel {
|
|
27
|
+
width: auto;
|
|
28
|
+
max-width: 70%;
|
|
29
|
+
-ms-flex: none;
|
|
30
|
+
flex: none;
|
|
31
|
+
padding-right: var(--padding);
|
|
32
|
+
color: var(--adm-color-weak);
|
|
33
|
+
}
|
|
34
|
+
#Easy3wMTable .singleItem .itemAttr .attrKey {
|
|
35
|
+
text-align: right;
|
|
36
|
+
-ms-flex: auto;
|
|
37
|
+
flex: auto;
|
|
38
|
+
color: var(--adm-color-text);
|
|
39
|
+
font-size: var(--adm-font-size-7);
|
|
40
|
+
}
|
|
41
|
+
#Easy3wMTable .singleItem .itemAttr .attrKey.clickable {
|
|
42
|
+
color: var(--adm-color-primary);
|
|
43
|
+
}
|
|
44
|
+
#Easy3wMTable .singleItem .itemAttr:last-child {
|
|
45
|
+
padding-bottom: 0;
|
|
46
|
+
}
|
|
47
|
+
#Easy3wMTable .singleItem .itemAttr.clickable {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
color: var(--adm-color-primary);
|
|
50
|
+
}
|
|
51
|
+
#Easy3wMTable .singleItem .itemAttr.clickable .attrLabel {
|
|
52
|
+
color: var(--adm-color-primary);
|
|
53
|
+
}
|
|
54
|
+
#Easy3wMTable .singleItem .itemAttr.clickable .attrKey {
|
|
55
|
+
color: var(--adm-color-primary);
|
|
56
|
+
}
|
|
57
|
+
#Easy3wMTable .easy3wMGridPageStepper {
|
|
58
|
+
display: -ms-flexbox;
|
|
59
|
+
display: flex;
|
|
60
|
+
-ms-flex-direction: row;
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
-ms-flex-align: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
-ms-flex-pack: justify;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
padding: 12px;
|
|
67
|
+
}
|
|
68
|
+
#Easy3wMTable .easy3wMGridPageStepper .emgpsBtn {
|
|
69
|
+
-ms-flex: 1;
|
|
70
|
+
flex: 1;
|
|
71
|
+
border: 1px solid #000;
|
|
72
|
+
color: #000;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
text-align: center;
|
|
75
|
+
padding: 7px 0;
|
|
76
|
+
margin-right: 3px;
|
|
77
|
+
}
|
|
78
|
+
#Easy3wMTable .easy3wMGridPageStepper .emgpsBtn:last-child {
|
|
79
|
+
margin-right: 0;
|
|
80
|
+
}
|
|
81
|
+
#Easy3wMTable .easy3wMGridPageStepper .emgpsBtn.emgpsBtnDisable {
|
|
82
|
+
border: 1px solid #999;
|
|
83
|
+
color: #999;
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
}
|
|
86
|
+
#Easy3wMTable .easy3wMGridPageStepper .emgpsBtn.emgpsBtnActive {
|
|
87
|
+
border: 1px solid var(--adm-color-primary);
|
|
88
|
+
color: var(--adm-color-primary);
|
|
89
|
+
}
|
|
90
|
+
#Easy3wMTable .easy3wMGridPageStepper .emgpsBtnNo {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
#Easy3wMTable .easy3wMGridPageStepper .adm-button {
|
|
94
|
+
font-size: var(--adm-font-size-7);
|
|
95
|
+
padding-left: 24px;
|
|
96
|
+
padding-right: 24px;
|
|
97
|
+
}
|
package/assets/mUserLayout.css
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
#Easy3wMUserLayout {
|
|
2
|
+
display: -ms-flexbox;
|
|
3
|
+
display: flex;
|
|
4
|
+
-ms-flex-direction: column;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
1
8
|
#Easy3wMUserLayout .Easy3wMUserLayoutContent {
|
|
2
|
-
background-color: #f0f2f5;
|
|
3
9
|
width: 100%;
|
|
4
|
-
min-height: 100%;
|
|
5
10
|
background-repeat: no-repeat;
|
|
6
11
|
background-position: center;
|
|
7
12
|
background-size: 100%;
|
|
8
|
-
|
|
13
|
+
-ms-flex-positive: 1;
|
|
14
|
+
flex-grow: 1;
|
|
9
15
|
}
|
|
@@ -31,91 +31,91 @@ var _antdMobile = require('antd-mobile');
|
|
|
31
31
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
32
32
|
|
|
33
33
|
var Easy3wMCaptcha = function (_Component) {
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
34
|
+
(0, _inherits3['default'])(Easy3wMCaptcha, _Component);
|
|
35
|
+
|
|
36
|
+
function Easy3wMCaptcha(props) {
|
|
37
|
+
(0, _classCallCheck3['default'])(this, Easy3wMCaptcha);
|
|
38
|
+
|
|
39
|
+
var _this = (0, _possibleConstructorReturn3['default'])(this, _Component.call(this, props));
|
|
40
|
+
|
|
41
|
+
_this.renderCode = function () {
|
|
42
|
+
var expression = '';
|
|
43
|
+
var result = '';
|
|
44
|
+
if (_this.props.captchaType === 'Calculation') {
|
|
45
|
+
// 计算
|
|
46
|
+
result = 0;
|
|
47
|
+
var Calpre = Math.round(Math.random() * 100);
|
|
48
|
+
var Calafter = Math.round(Math.random() * 100);
|
|
49
|
+
var codeCal = ['-', '+', 'x'];
|
|
50
|
+
var i = Math.round(Math.random() * 2);
|
|
51
|
+
switch (codeCal[i]) {
|
|
52
|
+
case '-':
|
|
53
|
+
expression = Calpre + '-' + Calafter;
|
|
54
|
+
result = Calpre - Calafter;
|
|
55
|
+
break;
|
|
56
|
+
case '+':
|
|
57
|
+
expression = Calpre + '+' + Calafter;
|
|
58
|
+
result = Calpre + Calafter;
|
|
59
|
+
break;
|
|
60
|
+
case 'x':
|
|
61
|
+
expression = Calpre + 'x' + Calafter;
|
|
62
|
+
result = Calpre * Calafter;
|
|
63
|
+
break;
|
|
64
|
+
default:
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
} else if (_this.props.captchaType === 'Normal') {
|
|
68
|
+
// 正常
|
|
69
|
+
result = '';
|
|
70
|
+
var strBx = 'ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789';
|
|
71
|
+
var codeNormal = strBx.split('');
|
|
72
|
+
for (var _i = 0; _i < _this.props.csize; _i += 1) {
|
|
73
|
+
result += codeNormal[Math.round(Math.random() * (strBx.length - 1))];
|
|
74
|
+
}
|
|
75
|
+
expression = result.toLowerCase(); // 表达式小写化
|
|
76
|
+
}
|
|
77
|
+
_this.props.touchCaptchaResult(expression); // 将验证码返回给调用组件
|
|
78
|
+
_this.setState({
|
|
79
|
+
expression: expression
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
_this.state = {
|
|
84
|
+
expression: '' // 表达示
|
|
85
|
+
};
|
|
86
|
+
return _this;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
Easy3wMCaptcha.prototype.componentDidMount = function componentDidMount() {
|
|
90
|
+
this.renderCode();
|
|
91
|
+
};
|
|
92
|
+
// 生成随机码
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
Easy3wMCaptcha.prototype.render = function render() {
|
|
96
|
+
var expression = this.state.expression;
|
|
97
|
+
|
|
98
|
+
return _react2['default'].createElement(
|
|
99
|
+
_button2['default'],
|
|
100
|
+
{
|
|
101
|
+
size: 'small',
|
|
102
|
+
onClick: this.renderCode,
|
|
103
|
+
htmlType: 'button'
|
|
104
|
+
},
|
|
105
|
+
expression
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
return Easy3wMCaptcha;
|
|
110
110
|
}(_react.Component);
|
|
111
111
|
|
|
112
112
|
Easy3wMCaptcha.defaultProps = {
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
csize: 4, // 验证码长度
|
|
114
|
+
captchaType: 'Normal' // 正常验证码类型
|
|
115
115
|
};
|
|
116
116
|
Easy3wMCaptcha.propTypes = { // 限制变量类型
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
csize: _propTypes2['default'].number,
|
|
118
|
+
captchaType: _propTypes2['default'].oneOf(['Calculation', 'Normal'])
|
|
119
119
|
};
|
|
120
120
|
exports['default'] = Easy3wMCaptcha;
|
|
121
121
|
module.exports = exports['default'];
|
|
@@ -50,17 +50,14 @@ var Easy3wMFileView = function (_PureComponent) {
|
|
|
50
50
|
fileName = _props.fileName;
|
|
51
51
|
|
|
52
52
|
var actions = [{ onClick: this.cancelHandler, text: '关闭' }];
|
|
53
|
-
return _react2['default'].createElement(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
destroyOnClose: true
|
|
62
|
-
},
|
|
63
|
-
_react2['default'].createElement(
|
|
53
|
+
return _react2['default'].createElement(_Easy3wMModal2['default'], {
|
|
54
|
+
title: fileName,
|
|
55
|
+
visible: visible,
|
|
56
|
+
onClose: this.cancelHandler,
|
|
57
|
+
width: '100%',
|
|
58
|
+
actions: actions,
|
|
59
|
+
destroyOnClose: true,
|
|
60
|
+
content: _react2['default'].createElement(
|
|
64
61
|
'div',
|
|
65
62
|
null,
|
|
66
63
|
_react2['default'].createElement('iframe', {
|
|
@@ -74,7 +71,7 @@ var Easy3wMFileView = function (_PureComponent) {
|
|
|
74
71
|
scrolling: 'yes'
|
|
75
72
|
})
|
|
76
73
|
)
|
|
77
|
-
);
|
|
74
|
+
});
|
|
78
75
|
};
|
|
79
76
|
|
|
80
77
|
return Easy3wMFileView;
|
|
@@ -18,14 +18,14 @@ var _react = require('react');
|
|
|
18
18
|
|
|
19
19
|
var _react2 = _interopRequireDefault(_react);
|
|
20
20
|
|
|
21
|
-
var _Easy3wMModal = require('../Easy3wMModal');
|
|
22
|
-
|
|
23
|
-
var _Easy3wMModal2 = _interopRequireDefault(_Easy3wMModal);
|
|
24
|
-
|
|
25
21
|
var _reactImages = require('react-images');
|
|
26
22
|
|
|
27
23
|
var _reactImages2 = _interopRequireDefault(_reactImages);
|
|
28
24
|
|
|
25
|
+
var _Easy3wMModal = require('../Easy3wMModal');
|
|
26
|
+
|
|
27
|
+
var _Easy3wMModal2 = _interopRequireDefault(_Easy3wMModal);
|
|
28
|
+
|
|
29
29
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
30
30
|
|
|
31
31
|
var Easy3wMImgView = function (_PureComponent) {
|
|
@@ -54,18 +54,15 @@ var Easy3wMImgView = function (_PureComponent) {
|
|
|
54
54
|
fileName = _props.fileName;
|
|
55
55
|
|
|
56
56
|
var actions = [{ onClick: this.cancelHandler, text: '关闭' }];
|
|
57
|
-
return _react2['default'].createElement(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
_react2['default'].createElement(_reactImages2['default'], { views: [{ src: fileURL }] })
|
|
68
|
-
);
|
|
57
|
+
return _react2['default'].createElement(_Easy3wMModal2['default'], {
|
|
58
|
+
title: fileName,
|
|
59
|
+
visible: visible,
|
|
60
|
+
onClose: this.cancelHandler,
|
|
61
|
+
width: '100%',
|
|
62
|
+
actions: actions,
|
|
63
|
+
destroyOnClose: true,
|
|
64
|
+
content: _react2['default'].createElement(_reactImages2['default'], { views: [{ src: fileURL }] })
|
|
65
|
+
});
|
|
69
66
|
};
|
|
70
67
|
|
|
71
68
|
return Easy3wMImgView;
|
|
@@ -22,14 +22,14 @@ var _react = require('react');
|
|
|
22
22
|
|
|
23
23
|
var _react2 = _interopRequireDefault(_react);
|
|
24
24
|
|
|
25
|
-
var _Easy3wMModal = require('../Easy3wMModal');
|
|
26
|
-
|
|
27
|
-
var _Easy3wMModal2 = _interopRequireDefault(_Easy3wMModal);
|
|
28
|
-
|
|
29
25
|
var _reactPdf = require('react-pdf');
|
|
30
26
|
|
|
31
27
|
var _antdMobile = require('antd-mobile');
|
|
32
28
|
|
|
29
|
+
var _Easy3wMModal = require('../Easy3wMModal');
|
|
30
|
+
|
|
31
|
+
var _Easy3wMModal2 = _interopRequireDefault(_Easy3wMModal);
|
|
32
|
+
|
|
33
33
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
34
34
|
|
|
35
35
|
var Easy3wMPDFView = function (_PureComponent) {
|
|
@@ -101,17 +101,14 @@ var Easy3wMPDFView = function (_PureComponent) {
|
|
|
101
101
|
numPages = _state.numPages;
|
|
102
102
|
|
|
103
103
|
var actions = [{ onClick: this.previousPage, text: '上一页' }, { onClick: this.nextPage, text: '下一页' }, { onClick: this.cancelHandler, text: '关闭' }];
|
|
104
|
-
return _react2['default'].createElement(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
destroyOnClose: true
|
|
113
|
-
},
|
|
114
|
-
_react2['default'].createElement(
|
|
104
|
+
return _react2['default'].createElement(_Easy3wMModal2['default'], {
|
|
105
|
+
title: fileName,
|
|
106
|
+
visible: visible,
|
|
107
|
+
onClose: this.cancelHandler,
|
|
108
|
+
width: '100%',
|
|
109
|
+
actions: actions,
|
|
110
|
+
destroyOnClose: true,
|
|
111
|
+
content: _react2['default'].createElement(
|
|
115
112
|
'div',
|
|
116
113
|
null,
|
|
117
114
|
_react2['default'].createElement(
|
|
@@ -139,7 +136,7 @@ var Easy3wMPDFView = function (_PureComponent) {
|
|
|
139
136
|
)
|
|
140
137
|
)
|
|
141
138
|
)
|
|
142
|
-
);
|
|
139
|
+
});
|
|
143
140
|
};
|
|
144
141
|
|
|
145
142
|
return Easy3wMPDFView;
|