easy3wui 1.5.35-beta1 → 1.5.35-beta3

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.
@@ -0,0 +1,61 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .e3wLoginMain {
6
+ width: 368px;
7
+ margin: 0 auto;
8
+ z-index: 100;
9
+ }
10
+ .e3wLoginMain .e3wLoginTabs {
11
+ padding: 0 2px;
12
+ margin: 0 -2px;
13
+ }
14
+ .e3wLoginMain .e3wLoginTabs :global .ant-tabs-tab {
15
+ font-size: 16px;
16
+ line-height: 24px;
17
+ }
18
+ .e3wLoginMain .e3wLoginTabs :global .ant-input-affix-wrapper .ant-input:not(:first-child) {
19
+ padding-left: 34px;
20
+ }
21
+ .e3wLoginMain :global .ant-tabs .ant-tabs-bar {
22
+ border-bottom: 0;
23
+ margin-bottom: 24px;
24
+ text-align: center;
25
+ }
26
+ .e3wLoginMain :global .ant-form-item {
27
+ margin-bottom: 24px;
28
+ }
29
+ .e3wLoginMain :global .ant-tooltip-inner {
30
+ background-color: #fff;
31
+ }
32
+ .e3wLoginMain .e3wLoginPrefixIcon {
33
+ font-size: 14px;
34
+ color: rgba(0, 0, 0, 0.25);
35
+ }
36
+ .e3wLoginMain .e3wLoginAdditional {
37
+ text-align: left;
38
+ }
39
+ .e3wLoginMain .e3wLoginAdditional .e3wLoginForgot {
40
+ float: right;
41
+ margin-right: 12px;
42
+ }
43
+ .e3wLoginMain .e3wLoginAdditional .e3wLoginSubmit {
44
+ width: 100%;
45
+ margin-top: 24px;
46
+ display: block;
47
+ }
48
+ .e3wLoginMain .e3wLoginAdditional :global .ant-form-item-control {
49
+ line-height: 22px;
50
+ }
51
+ .e3wLoginMain .e3wLoginOther {
52
+ text-align: left;
53
+ line-height: 22px;
54
+ }
55
+ .e3wLoginMain .e3wLoginOther .e3wLoginRegister {
56
+ float: right;
57
+ margin-right: 12px;
58
+ }
59
+ .e3wLoginMain #pop {
60
+ color: #5468ae;
61
+ }
@@ -0,0 +1,115 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .e3wLoginLayoutHeader {
6
+ padding: 0 12px 0 0;
7
+ background: #fff;
8
+ box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
9
+ position: relative;
10
+ }
11
+ .e3wLoginLayoutHeader h1 {
12
+ color: #000;
13
+ display: inline-block;
14
+ vertical-align: middle;
15
+ font-size: 14px;
16
+ font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
17
+ font-weight: 400;
18
+ }
19
+ .e3wLoginLayoutLogo {
20
+ height: 64px;
21
+ position: relative;
22
+ line-height: 64px;
23
+ padding-left: 35px;
24
+ transition: all .3s;
25
+ background: #fff;
26
+ overflow: hidden;
27
+ }
28
+ .e3wLoginLayoutLogo img {
29
+ display: inline-block;
30
+ vertical-align: middle;
31
+ height: 24px;
32
+ }
33
+ .e3wLoginLayoutLogo h1 {
34
+ color: #fff;
35
+ display: inline-block;
36
+ vertical-align: middle;
37
+ font-size: 20px;
38
+ margin: 0 0 0 12px;
39
+ font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
40
+ font-weight: 600;
41
+ }
42
+ .e3wLoginLayoutTrigger {
43
+ font-size: 20px;
44
+ line-height: 64px;
45
+ cursor: pointer;
46
+ transition: all .3s;
47
+ padding: 0 24px;
48
+ }
49
+ .e3wLoginLayoutTrigger:hover {
50
+ background: #e6f7ff;
51
+ }
52
+ .e3wLoginLayoutRight {
53
+ float: right;
54
+ height: 100%;
55
+ }
56
+ .e3wLoginLayoutRight .schedule {
57
+ cursor: pointer;
58
+ padding: 12px 12px;
59
+ display: inline-block;
60
+ transition: all .3s;
61
+ height: 100%;
62
+ }
63
+ .e3wLoginLayoutRight .schedule > i {
64
+ font-size: 14px;
65
+ vertical-align: middle;
66
+ }
67
+ .e3wLoginLayoutRight .schedule:global(.ant-popover-open),
68
+ .e3wLoginLayoutRight .schedule:hover {
69
+ background: #e6f7ff;
70
+ }
71
+ .e3wLoginLayoutRight .e3wLoginLayoutAction {
72
+ cursor: pointer;
73
+ padding: 0 12px;
74
+ display: inline-block;
75
+ transition: all .3s;
76
+ height: 100%;
77
+ }
78
+ .e3wLoginLayoutRight .e3wLoginLayoutAction > i {
79
+ font-size: 14px;
80
+ vertical-align: middle;
81
+ }
82
+ .e3wLoginLayoutRight .e3wLoginLayoutAction:global(.ant-popover-open),
83
+ .e3wLoginLayoutRight .e3wLoginLayoutAction:hover {
84
+ background: #e6f7ff;
85
+ }
86
+ .e3wLoginLayoutRight .search {
87
+ padding: 0;
88
+ margin: 0 12px;
89
+ }
90
+ .e3wLoginLayoutRight .search:hover {
91
+ background: transparent;
92
+ }
93
+ .e3wLoginLayoutRight .e3wLoginLayoutAccount .e3wLoginLayoutAvatar {
94
+ margin: 20px 8px 20px 0;
95
+ color: #1890ff;
96
+ background: rgba(255, 255, 255, 0.85);
97
+ vertical-align: middle;
98
+ }
99
+ .e3wLoginLayoutRight .e3wLoginLayoutIcon {
100
+ font-size: 14px;
101
+ padding: 4px;
102
+ }
103
+ .e3wLoginLayoutMenu :global(.anticon) {
104
+ margin-right: 8px;
105
+ }
106
+ .e3wLoginLayoutMenu :global(.ant-dropdown-menu-item) {
107
+ width: 160px;
108
+ }
109
+ .e3wLoginLayoutSider {
110
+ min-height: 100vh;
111
+ box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
112
+ position: relative;
113
+ z-index: 10;
114
+ background: #21273f;
115
+ }
File without changes
@@ -0,0 +1,45 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .e3wResult {
6
+ text-align: center;
7
+ width: 72%;
8
+ margin: 0 auto;
9
+ }
10
+ .e3wResult .e3wResultIcon {
11
+ font-size: 72px;
12
+ line-height: 72px;
13
+ margin-bottom: 24px;
14
+ }
15
+ .e3wResult .e3wResultIcon > .e3wResultSuccess {
16
+ color: #52c41a;
17
+ }
18
+ .e3wResult .e3wResultIcon > .e3wResultError {
19
+ color: #f5222d;
20
+ }
21
+ .e3wResult .e3wResultTitle {
22
+ font-size: 24px;
23
+ color: rgba(0, 0, 0, 0.85);
24
+ font-weight: 500;
25
+ line-height: 32px;
26
+ margin-bottom: 16px;
27
+ }
28
+ .e3wResult .e3wResultDescription {
29
+ font-size: 14px;
30
+ line-height: 22px;
31
+ color: rgba(0, 0, 0, 0.45);
32
+ margin-bottom: 24px;
33
+ }
34
+ .e3wResult .e3wResultExtra {
35
+ background: #fafafa;
36
+ padding: 24px 40px;
37
+ border-radius: 2px;
38
+ text-align: left;
39
+ }
40
+ .e3wResult .e3wResultActions {
41
+ margin-top: 32px;
42
+ }
43
+ .e3wResult .e3wResultActions e3wResultButton:not(:last-child) {
44
+ margin-right: 8px;
45
+ }
@@ -0,0 +1,70 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .e3wUserLayoutContainer {
6
+ background: #f0f2f5;
7
+ width: 100%;
8
+ min-height: 100%;
9
+ background-repeat: no-repeat;
10
+ background-position: center;
11
+ background-size: 100%;
12
+ padding: 40px 0 0 0;
13
+ position: relative;
14
+ }
15
+ .e3wUserLayoutTop {
16
+ text-align: center;
17
+ }
18
+ .e3wUserLayoutHeader {
19
+ padding: 0 12px 0 0;
20
+ background: #fff;
21
+ box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
22
+ position: relative;
23
+ }
24
+ .e3wUserLayoutRight {
25
+ float: right;
26
+ height: 100%;
27
+ }
28
+ .e3wUserLayoutLogo {
29
+ float: left;
30
+ height: 100%;
31
+ line-height: 64px;
32
+ padding-left: 24px;
33
+ transition: all .3s;
34
+ overflow: hidden;
35
+ }
36
+ .e3wUserLayoutLogo img {
37
+ display: inline-block;
38
+ vertical-align: middle;
39
+ height: 32px;
40
+ }
41
+ .e3wUserLayoutLogo h1 {
42
+ color: #000;
43
+ display: inline-block;
44
+ vertical-align: middle;
45
+ font-size: 14px;
46
+ margin: 0 0 0 12px;
47
+ font-family: AppleSystemUIFont, 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
48
+ font-weight: 400;
49
+ }
50
+ .e3wUserLayoutTitle {
51
+ font-size: 33px;
52
+ color: rgba(0, 0, 0, 0.85);
53
+ font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
54
+ font-weight: 600;
55
+ position: relative;
56
+ top: 2px;
57
+ }
58
+ .e3wUserLayoutDesc {
59
+ font-size: 14px;
60
+ color: rgba(0, 0, 0, 0.45);
61
+ margin-top: 12px;
62
+ margin-bottom: 40px;
63
+ }
64
+ .e3wUserLayoutFooter {
65
+ bottom: 0px;
66
+ left: 0px;
67
+ width: 100%;
68
+ height: 50px;
69
+ z-index: 99;
70
+ }
@@ -516,6 +516,13 @@ var Easy3wFormPage = function (_Component) {
516
516
  var decoratorObj = {
517
517
  rules: [{ required: required, message: requiredMessage || '\u8BF7\u586B\u5199' + label }].concat(addRules)
518
518
  };
519
+ if (fieldType === 'braftEditor') {
520
+ decoratorObj = (0, _extends3['default'])({}, decoratorObj, {
521
+ trigger: 'onBlur',
522
+ // validateTrigger: 'onBlur',
523
+ rules: [{ required: required, message: requiredMessage || '\u8BF7\u586B\u5199' + label, validator: _this.validateContent }].concat(addRules)
524
+ });
525
+ }
519
526
  if (itemValue || itemValue === 0) {
520
527
  decoratorObj = (0, _extends3['default'])({}, decoratorObj, {
521
528
  initialValue: itemValue
@@ -1472,7 +1479,13 @@ var Easy3wFormPage = function (_Component) {
1472
1479
  if (readFlag || allReadFlag || cmptPros && cmptPros.readOnly) {
1473
1480
  cmptPros.controls = [];
1474
1481
  }
1475
- return _react2['default'].createElement(_braftEditor2['default'], (0, _extends3['default'])({ readOnly: readFlag || allReadFlag }, cmptPros));
1482
+ return _react2['default'].createElement(_braftEditor2['default'], (0, _extends3['default'])({ readOnly: readFlag || allReadFlag }, cmptPros, { style: { border: '1px solid #eee' } }));
1483
+ }, _this.validateContent = function (rule, value, callback) {
1484
+ if (value.isEmpty()) {
1485
+ callback(rule.message);
1486
+ } else {
1487
+ callback();
1488
+ }
1476
1489
  }, _this.cascaderHandler = function (item) {
1477
1490
  var cmptPros = item.cmptPros;
1478
1491
 
@@ -1684,6 +1697,8 @@ var Easy3wFormPage = function (_Component) {
1684
1697
 
1685
1698
  /** braftEditor start */
1686
1699
 
1700
+ // 文章内容校验
1701
+
1687
1702
  /** braftEditor end */
1688
1703
 
1689
1704
  /** cascader start */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.35-beta1",
3
+ "version": "1.5.35-beta3",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",