easy3wui 1.5.89-beta7 → 1.5.89-beta9

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.
@@ -77,40 +77,40 @@
77
77
  .e3wFormPageWrapPC .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .e3wFootBtn:first-child {
78
78
  margin-left: 0;
79
79
  }
80
- .approval_flag_only .e3wFormPageWrapPC .bf-container {
80
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .bf-container {
81
81
  border: 1px solid #eee;
82
82
  }
83
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper {
83
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper {
84
84
  border-bottom: 1px solid var(--primary-color);
85
85
  height: auto;
86
86
  }
87
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper textarea {
87
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper textarea {
88
88
  border: none;
89
89
  padding: 0;
90
90
  }
91
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container {
91
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container {
92
92
  border: none;
93
93
  }
94
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content > div {
94
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content > div {
95
95
  padding-bottom: 0;
96
96
  }
97
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content {
97
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content {
98
98
  padding: 0;
99
99
  }
100
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-content {
100
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-content {
101
101
  padding-bottom: 0;
102
102
  }
103
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
103
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
104
104
  width: 100%;
105
105
  height: auto;
106
106
  }
107
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper .e3wFootBtn:first-child {
107
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper .e3wFootBtn:first-child {
108
108
  margin-left: 0;
109
109
  }
110
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
110
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
111
111
  border-bottom: 1px solid var(--primary-color);
112
112
  }
113
- .approval_flag_only .e3wFormPageWrapPC .ant-row.ant-form-item {
113
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .ant-row.ant-form-item {
114
114
  display: -ms-flexbox;
115
115
  display: flex;
116
116
  -ms-flex-direction: row;
package/assets/index.css CHANGED
@@ -2561,40 +2561,40 @@
2561
2561
  .e3wFormPageWrapPC .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .e3wFootBtn:first-child {
2562
2562
  margin-left: 0;
2563
2563
  }
2564
- .approval_flag_only .e3wFormPageWrapPC .bf-container {
2564
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .bf-container {
2565
2565
  border: 1px solid #eee;
2566
2566
  }
2567
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper {
2567
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper {
2568
2568
  border-bottom: 1px solid var(--primary-color);
2569
2569
  height: auto;
2570
2570
  }
2571
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper textarea {
2571
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper textarea {
2572
2572
  border: none;
2573
2573
  padding: 0;
2574
2574
  }
2575
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container {
2575
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container {
2576
2576
  border: none;
2577
2577
  }
2578
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content > div {
2578
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content > div {
2579
2579
  padding-bottom: 0;
2580
2580
  }
2581
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content {
2581
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-container .public-DraftEditor-content {
2582
2582
  padding: 0;
2583
2583
  }
2584
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-content {
2584
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"]:not([data-fieldtype="e3wFormCol_strTemplate"]) .ant-form-item:has(.ant-form-item-label) > .ant-form-item-control-wrapper .bf-content {
2585
2585
  padding-bottom: 0;
2586
2586
  }
2587
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
2587
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
2588
2588
  width: 100%;
2589
2589
  height: auto;
2590
2590
  }
2591
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper .e3wFootBtn:first-child {
2591
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper .e3wFootBtn:first-child {
2592
2592
  margin-left: 0;
2593
2593
  }
2594
- .approval_flag_only .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
2594
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .e3wFormCol[data-fieldtype][data-col-readflag="1"][data-fieldtype="e3wFormCol_strTemplate"] .e3wFormStrTemplate .ant-form-item > .ant-form-item-control-wrapper {
2595
2595
  border-bottom: 1px solid var(--primary-color);
2596
2596
  }
2597
- .approval_flag_only .e3wFormPageWrapPC .ant-row.ant-form-item {
2597
+ .approval_flag_only[data-e3wpagetype="approval"] .e3wFormPageWrapPC .ant-row.ant-form-item {
2598
2598
  display: -ms-flexbox;
2599
2599
  display: flex;
2600
2600
  -ms-flex-direction: row;
@@ -64,6 +64,12 @@ var _icon2 = _interopRequireDefault(_icon);
64
64
 
65
65
  require('antd/lib/icon/style');
66
66
 
67
+ var _popover = require('antd/lib/popover');
68
+
69
+ var _popover2 = _interopRequireDefault(_popover);
70
+
71
+ require('antd/lib/popover/style');
72
+
67
73
  var _notification = require('antd/lib/notification');
68
74
 
69
75
  var _notification2 = _interopRequireDefault(_notification);
@@ -106,7 +112,10 @@ var Easy3wButton = function (_Component) {
106
112
  func(e);
107
113
  }
108
114
  }, _this.getOneBtnObj = function (obj, index) {
109
- var btnType = obj.btnType;
115
+ var btnType = obj.btnType,
116
+ strPopoverContent = obj.strPopoverContent,
117
+ _obj$objPopoverConten = obj.objPopoverContent,
118
+ objPopoverContent = _obj$objPopoverConten === undefined ? {} : _obj$objPopoverConten;
110
119
 
111
120
  var typeProps = {};
112
121
  if (btnType) {
@@ -121,7 +130,7 @@ var Easy3wButton = function (_Component) {
121
130
  } else {
122
131
  typeProps = { type: 'primary' };
123
132
  }
124
- return _react2['default'].createElement(
133
+ var btnEle = _react2['default'].createElement(
125
134
  _button2['default'],
126
135
  (0, _extends3['default'])({
127
136
  onClick: function onClick(e) {
@@ -134,9 +143,17 @@ var Easy3wButton = function (_Component) {
134
143
  }),
135
144
  obj.cName
136
145
  );
146
+ return strPopoverContent ? _react2['default'].createElement(
147
+ _popover2['default'],
148
+ (0, _extends3['default'])({ placement: 'topRight', content: strPopoverContent }, objPopoverContent),
149
+ btnEle
150
+ ) : btnEle;
137
151
  }, _this.getOneBtnTypeObj = function (obj, index) {
138
152
  var props = obj.props,
139
- btnType = obj.btnType;
153
+ btnType = obj.btnType,
154
+ strPopoverContent = obj.strPopoverContent,
155
+ _obj$objPopoverConten2 = obj.objPopoverContent,
156
+ objPopoverContent = _obj$objPopoverConten2 === undefined ? {} : _obj$objPopoverConten2;
140
157
 
141
158
  var typeProps = {};
142
159
  if (btnType) {
@@ -151,7 +168,7 @@ var Easy3wButton = function (_Component) {
151
168
  } else {
152
169
  typeProps = { type: 'primary' };
153
170
  }
154
- return _react2['default'].createElement(
171
+ var btnEle = _react2['default'].createElement(
155
172
  _upload2['default'],
156
173
  props,
157
174
  _react2['default'].createElement(
@@ -168,11 +185,19 @@ var Easy3wButton = function (_Component) {
168
185
  obj.cName
169
186
  )
170
187
  );
188
+ return strPopoverContent ? _react2['default'].createElement(
189
+ _popover2['default'],
190
+ (0, _extends3['default'])({ placement: 'topRight', content: strPopoverContent }, objPopoverContent),
191
+ btnEle
192
+ ) : btnEle;
171
193
  }, _this.getOneBtnPopconfirmObj = function (obj, index) {
172
194
  var func = obj.func,
173
195
  cName = obj.cName,
174
196
  confirmContent = obj.confirmContent,
175
- btnType = obj.btnType;
197
+ btnType = obj.btnType,
198
+ strPopoverContent = obj.strPopoverContent,
199
+ _obj$objPopoverConten3 = obj.objPopoverContent,
200
+ objPopoverContent = _obj$objPopoverConten3 === undefined ? {} : _obj$objPopoverConten3;
176
201
 
177
202
  var typeProps = {};
178
203
  if (btnType) {
@@ -187,7 +212,7 @@ var Easy3wButton = function (_Component) {
187
212
  } else {
188
213
  typeProps = { type: 'primary' };
189
214
  }
190
- return _react2['default'].createElement(
215
+ var btnEle = _react2['default'].createElement(
191
216
  _popconfirm2['default'],
192
217
  { title: confirmContent, onConfirm: function onConfirm(e) {
193
218
  return _this.onClickFunc(e, func);
@@ -198,6 +223,11 @@ var Easy3wButton = function (_Component) {
198
223
  cName
199
224
  )
200
225
  );
226
+ return strPopoverContent ? _react2['default'].createElement(
227
+ _popover2['default'],
228
+ (0, _extends3['default'])({ placement: 'topRight', content: strPopoverContent }, objPopoverContent),
229
+ btnEle
230
+ ) : btnEle;
201
231
  }, _this.getDropdownArrObj = function (obj) {
202
232
  var cName = obj.cName,
203
233
  dropdownArr = obj.dropdownArr,
@@ -205,14 +235,22 @@ var Easy3wButton = function (_Component) {
205
235
  dropdownProps = _obj$dropdownProps === undefined ? {} : _obj$dropdownProps;
206
236
 
207
237
  var menuArr = dropdownArr.map(function (dropdown) {
208
- var func = dropdown.func;
209
-
238
+ var func = dropdown.func,
239
+ strPopoverContent = dropdown.strPopoverContent,
240
+ _dropdown$objPopoverC = dropdown.objPopoverContent,
241
+ objPopoverContent = _dropdown$objPopoverC === undefined ? {} : _dropdown$objPopoverC;
242
+
243
+ var menuItemCName = strPopoverContent ? _react2['default'].createElement(
244
+ _popover2['default'],
245
+ (0, _extends3['default'])({ placement: 'topRight', content: strPopoverContent }, objPopoverContent),
246
+ dropdown.cName
247
+ ) : dropdown.cName;
210
248
  return _react2['default'].createElement(
211
249
  _menu2['default'].Item,
212
250
  { key: cName, onClick: function onClick(e) {
213
251
  return _this.onClickFunc(e, func);
214
252
  } },
215
- dropdown.cName
253
+ menuItemCName
216
254
  );
217
255
  });
218
256
  var menuOverlay = _react2['default'].createElement(
@@ -240,12 +278,16 @@ var Easy3wButton = function (_Component) {
240
278
  dropdownArr = btn.dropdownArr;
241
279
 
242
280
  if (type) {
281
+ // 附件上传
243
282
  return _this.getOneBtnTypeObj(btn, index);
244
283
  } else if (dropdownArr) {
284
+ // 下拉按钮
245
285
  return _this.getDropdownArrObj(btn, index);
246
286
  } else if (confirmContent) {
287
+ // 二次确认
247
288
  return _this.getOneBtnPopconfirmObj(btn, index);
248
289
  } else {
290
+ // 单按钮
249
291
  return _this.getOneBtnObj(btn, index);
250
292
  }
251
293
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.89-beta7",
3
+ "version": "1.5.89-beta9",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",