easy3wui 1.5.22 → 1.5.23

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.
Files changed (70) hide show
  1. package/assets/btn.css +17 -0
  2. package/assets/captcha.css +5 -0
  3. package/assets/card.css +34 -0
  4. package/assets/exception.css +76 -0
  5. package/assets/flow.css +860 -0
  6. package/assets/formPage.css +15 -0
  7. package/assets/globalFooter.css +26 -0
  8. package/assets/globalHeader.css +69 -0
  9. package/assets/gridPage.css +93 -0
  10. package/assets/index.css +1454 -0
  11. package/assets/login.css +61 -0
  12. package/assets/loginLayout.css +115 -0
  13. package/assets/modal.css +0 -0
  14. package/assets/result.css +45 -0
  15. package/assets/userLayout.css +70 -0
  16. package/lib/Easy3wA/index.js +100 -0
  17. package/lib/Easy3wAESDecrypt/index.js +21 -0
  18. package/lib/Easy3wAESEncrypt/index.js +20 -0
  19. package/lib/Easy3wBlankLayout/index.js +114 -0
  20. package/lib/Easy3wButton/index.js +265 -0
  21. package/lib/Easy3wButtonOne/index.js +148 -0
  22. package/lib/Easy3wCaHandler/index.js +212 -0
  23. package/lib/Easy3wCaptcha/index.js +145 -0
  24. package/lib/Easy3wCard/index.js +66 -0
  25. package/lib/Easy3wDictCode/index.js +50 -0
  26. package/lib/Easy3wDownLoad/Easy3wFileView.js +82 -0
  27. package/lib/Easy3wDownLoad/Easy3wImgView.js +73 -0
  28. package/lib/Easy3wDownLoad/Easy3wPDFView.js +139 -0
  29. package/lib/Easy3wDownLoad/Easy3wRCView.js +65 -0
  30. package/lib/Easy3wDownLoad/index.js +315 -0
  31. package/lib/Easy3wException/403.js +21 -0
  32. package/lib/Easy3wException/404.js +21 -0
  33. package/lib/Easy3wException/500.js +21 -0
  34. package/lib/Easy3wException/index.js +94 -0
  35. package/lib/Easy3wException/typeConfig.js +23 -0
  36. package/lib/Easy3wFlow/index.js +546 -0
  37. package/lib/Easy3wFormPage/index.js +1591 -0
  38. package/lib/Easy3wGetCookie/index.js +14 -0
  39. package/lib/Easy3wGlobalFooter/index.js +73 -0
  40. package/lib/Easy3wGlobalHeader/index.js +148 -0
  41. package/lib/Easy3wGridCheckBox/index.js +69 -0
  42. package/lib/Easy3wGridDatePicker/index.js +90 -0
  43. package/lib/Easy3wGridDateTimePicker/index.js +122 -0
  44. package/lib/Easy3wGridInput/index.js +85 -0
  45. package/lib/Easy3wGridInputNumber/index.js +83 -0
  46. package/lib/Easy3wGridInputNumberFormat/index.js +93 -0
  47. package/lib/Easy3wGridPage/index.js +593 -0
  48. package/lib/Easy3wGridRadio/index.js +70 -0
  49. package/lib/Easy3wGridSelect/index.js +93 -0
  50. package/lib/Easy3wGridTextArea/index.js +84 -0
  51. package/lib/Easy3wInput/index.js +48 -0
  52. package/lib/Easy3wLogin/index.js +386 -0
  53. package/lib/Easy3wLoginLayout/index.js +628 -0
  54. package/lib/Easy3wModal/index.js +143 -0
  55. package/lib/Easy3wPositionButton/index.js +99 -0
  56. package/lib/Easy3wQryGrid/index.js +670 -0
  57. package/lib/Easy3wResult/index.js +77 -0
  58. package/lib/Easy3wSetCookie/index.js +13 -0
  59. package/lib/Easy3wSpin/index.js +69 -0
  60. package/lib/Easy3wTabs/index.js +89 -0
  61. package/lib/Easy3wTagSelect/index.js +238 -0
  62. package/lib/Easy3wTagSelect/index.less +120 -0
  63. package/lib/Easy3wUpload/index.js +507 -0
  64. package/lib/Easy3wUploadB/index copy 2.js +1011 -0
  65. package/lib/Easy3wUploadB/index copy.js +1020 -0
  66. package/lib/Easy3wUploadB/index.js +1039 -0
  67. package/lib/Easy3wUploadM/index.js +506 -0
  68. package/lib/Easy3wUserLayout/index.js +138 -0
  69. package/lib/index.js +383 -0
  70. package/package.json +1 -1
@@ -0,0 +1,143 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _extends2 = require('babel-runtime/helpers/extends');
6
+
7
+ var _extends3 = _interopRequireDefault(_extends2);
8
+
9
+ var _notification2 = require('antd/lib/notification');
10
+
11
+ var _notification3 = _interopRequireDefault(_notification2);
12
+
13
+ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
14
+
15
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
16
+
17
+ var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
18
+
19
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
20
+
21
+ var _inherits2 = require('babel-runtime/helpers/inherits');
22
+
23
+ var _inherits3 = _interopRequireDefault(_inherits2);
24
+
25
+ require('antd/lib/notification/style');
26
+
27
+ var _react = require('react');
28
+
29
+ var _react2 = _interopRequireDefault(_react);
30
+
31
+ var _antd = require('antd');
32
+
33
+ var _modal = require('antd/lib/modal');
34
+
35
+ var _modal2 = _interopRequireDefault(_modal);
36
+
37
+ require('antd/lib/modal/style');
38
+
39
+ var _dva = require('dva');
40
+
41
+ var _button = require('antd/lib/button');
42
+
43
+ var _button2 = _interopRequireDefault(_button);
44
+
45
+ require('antd/lib/button/style');
46
+
47
+ var _classnames = require('classnames');
48
+
49
+ var _classnames2 = _interopRequireDefault(_classnames);
50
+
51
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
52
+
53
+ var Easy3wModal = function (_Component) {
54
+ (0, _inherits3['default'])(Easy3wModal, _Component);
55
+
56
+ function Easy3wModal() {
57
+ var _temp, _this, _ret;
58
+
59
+ (0, _classCallCheck3['default'])(this, Easy3wModal);
60
+
61
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
62
+ args[_key] = arguments[_key];
63
+ }
64
+
65
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.onClickFunc = function (e, func) {
66
+ var globalLoading = _this.props.loadingFlag.global;
67
+ if (globalLoading) {
68
+ _notification3['default'].warning({
69
+ message: '温馨提示',
70
+ description: '正在后台处理,请稍后!',
71
+ duration: 3
72
+ });
73
+ } else {
74
+ func(e);
75
+ }
76
+ }, _this.getOneBtnObj = function (obj) {
77
+ return _react2['default'].createElement(
78
+ _button2['default'],
79
+ {
80
+ onClick: function onClick(e) {
81
+ return _this.onClickFunc(e, obj.func);
82
+ },
83
+ type: 'primary',
84
+ className: (0, _classnames2['default'])(['e3wFootBtn']),
85
+ loading: obj.loading
86
+ },
87
+ obj.cName
88
+ );
89
+ }, _this.getBtnObj = function () {
90
+ var footBtnArr = _this.props.footBtnArr;
91
+
92
+ var allBtn = footBtnArr.map(function (btn) {
93
+ return _this.getOneBtnObj(btn);
94
+ });
95
+ return _react2['default'].createElement(
96
+ 'div',
97
+ { style: { textAlign: 'center' } },
98
+ allBtn
99
+ );
100
+ }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
101
+ }
102
+
103
+ Easy3wModal.prototype.render = function render() {
104
+ var _props = this.props,
105
+ title = _props.title,
106
+ children = _props.children,
107
+ visible = _props.visible,
108
+ loadingFlag = _props.loadingFlag,
109
+ cancelHandler = _props.cancelHandler,
110
+ onOk = _props.onOk,
111
+ width = _props.width;
112
+
113
+ var btnObj = this.getBtnObj();
114
+ return _react2['default'].createElement(
115
+ _modal2['default'],
116
+ (0, _extends3['default'])({
117
+ title: title,
118
+ visible: visible,
119
+ confirmLoading: loadingFlag,
120
+ onCancel: cancelHandler,
121
+ onOk: onOk,
122
+ footer: btnObj,
123
+ width: width,
124
+ destroyOnClose: true,
125
+ style: { top: 20 }
126
+ }, this.props, {
127
+ afterClose: function afterClose() {
128
+ document.body.style.overflow = '';
129
+ }
130
+ }),
131
+ children
132
+ );
133
+ };
134
+
135
+ return Easy3wModal;
136
+ }(_react.Component);
137
+
138
+ exports['default'] = (0, _dva.connect)(function (state) {
139
+ return {
140
+ loadingFlag: state.loading
141
+ };
142
+ })(Easy3wModal);
143
+ module.exports = exports['default'];
@@ -0,0 +1,99 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
6
+
7
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
8
+
9
+ var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10
+
11
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12
+
13
+ var _inherits2 = require('babel-runtime/helpers/inherits');
14
+
15
+ var _inherits3 = _interopRequireDefault(_inherits2);
16
+
17
+ var _react = require('react');
18
+
19
+ var _react2 = _interopRequireDefault(_react);
20
+
21
+ var _classnames = require('classnames');
22
+
23
+ var _classnames2 = _interopRequireDefault(_classnames);
24
+
25
+ var _notification = require('antd/lib/notification');
26
+
27
+ var _notification2 = _interopRequireDefault(_notification);
28
+
29
+ require('antd/lib/notification/style');
30
+
31
+ var _dva = require('dva');
32
+
33
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
34
+
35
+ var Easy3wPositionButton = function (_Component) {
36
+ (0, _inherits3['default'])(Easy3wPositionButton, _Component);
37
+
38
+ function Easy3wPositionButton() {
39
+ var _temp, _this, _ret;
40
+
41
+ (0, _classCallCheck3['default'])(this, Easy3wPositionButton);
42
+
43
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
44
+ args[_key] = arguments[_key];
45
+ }
46
+
47
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.onClickFunc = function (e, func) {
48
+ var globalLoading = _this.props.loading.global;
49
+ if (globalLoading) {
50
+ _notification2['default'].warning({
51
+ message: '温馨提示',
52
+ description: '正在后台处理,请稍后!',
53
+ duration: 3
54
+ });
55
+ } else {
56
+ func(e);
57
+ }
58
+ }, _this.getOneBtnObj = function (obj, index) {
59
+ return _react2['default'].createElement(
60
+ 'a',
61
+ {
62
+ onClick: function onClick(e) {
63
+ return _this.onClickFunc(e, obj.func);
64
+ },
65
+ style: { color: obj.color ? obj.color : '', textShadow: obj.shadow ? obj.shadow : '', fontSize: obj.size ? obj.size : '' },
66
+ type: 'primary',
67
+ className: (0, _classnames2['default'])(['e3wPositionA']),
68
+ key: index
69
+ },
70
+ obj.cName
71
+ );
72
+ }, _this.getBtnObj = function () {
73
+ var aBtnArr = _this.props.aBtnArr;
74
+
75
+ var allBtn = aBtnArr.map(function (btn, index) {
76
+ return _this.getOneBtnObj(btn, index);
77
+ });
78
+ return allBtn;
79
+ }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
80
+ }
81
+
82
+ Easy3wPositionButton.prototype.render = function render() {
83
+ var btnObj = this.getBtnObj();
84
+ return _react2['default'].createElement(
85
+ 'div',
86
+ { className: 'positionDiv' },
87
+ btnObj
88
+ );
89
+ };
90
+
91
+ return Easy3wPositionButton;
92
+ }(_react.Component);
93
+
94
+ exports['default'] = (0, _dva.connect)(function (state) {
95
+ return {
96
+ loading: state.loading
97
+ };
98
+ })(Easy3wPositionButton);
99
+ module.exports = exports['default'];