easy3wui 1.5.94-beta4 → 1.5.94
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/lib/Easy3wA/index.js +4 -9
- package/lib/Easy3wBlankLayout/index.js +45 -13
- package/lib/Easy3wButton/index.js +59 -13
- package/lib/Easy3wButtonOne/index.js +5 -9
- package/lib/Easy3wCaHandler/index.js +6 -10
- package/lib/Easy3wCard/indexM.js +3 -9
- package/lib/Easy3wCard/indexPC.js +3 -9
- package/lib/Easy3wDictCode/index.js +1 -5
- package/lib/Easy3wDownLoad/Easy3wFileView.js +3 -9
- package/lib/Easy3wDownLoad/Easy3wImgView.js +3 -9
- package/lib/Easy3wDownLoad/Easy3wPDFView.js +5 -11
- package/lib/Easy3wDownLoad/index.js +7 -3
- package/lib/Easy3wEditBigTable/Easy3wEditBigTableForm.js +12 -23
- package/lib/Easy3wEditBigTable/Editors/EditorsInputNumber.js +7 -0
- package/lib/Easy3wEditBigTable/index.js +28 -40
- package/lib/Easy3wException/index.js +6 -7
- package/lib/Easy3wException/typeConfig.js +3 -10
- package/lib/Easy3wFlow/index.js +15 -19
- package/lib/Easy3wFormPage/indexM.js +208 -626
- package/lib/Easy3wFormPage/indexPC.js +189 -608
- package/lib/Easy3wGetCookie/index.js +3 -10
- package/lib/Easy3wGetDesensitization/index.js +0 -7
- package/lib/Easy3wGlobalFooter/index.js +3 -8
- package/lib/Easy3wGlobalHeader/index.js +0 -4
- package/lib/Easy3wGridCheckBox/index.js +1 -5
- package/lib/Easy3wGridDatePicker/index.js +1 -5
- package/lib/Easy3wGridDateTimePicker/index.js +1 -5
- package/lib/Easy3wGridInput/index.js +2 -6
- package/lib/Easy3wGridInputAmount/index.js +1 -5
- package/lib/Easy3wGridInputDigit/index.js +1 -5
- package/lib/Easy3wGridInputEmail/index.js +1 -5
- package/lib/Easy3wGridInputNumber/index.js +1 -5
- package/lib/Easy3wGridInputNumberFormat/index.js +1 -5
- package/lib/Easy3wGridPage/index.js +0 -4
- package/lib/Easy3wGridPage/indexM.js +2 -8
- package/lib/Easy3wGridPage/indexPC.js +2 -8
- package/lib/Easy3wGridRadio/index.js +1 -5
- package/lib/Easy3wGridSelect/index.js +1 -5
- package/lib/Easy3wGridTextArea/index.js +1 -5
- package/lib/Easy3wInput/index.js +0 -4
- package/lib/Easy3wLogin/index.js +15 -19
- package/lib/Easy3wLoginLayout/index.js +0 -4
- package/lib/Easy3wModal/index.js +4 -8
- package/lib/Easy3wPositionButton/index.js +2 -6
- package/lib/Easy3wQryGrid/index.js +4 -8
- package/lib/Easy3wResult/index.js +0 -4
- package/lib/Easy3wRow/index.js +0 -4
- package/lib/Easy3wSetCookie/index.js +3 -10
- package/lib/Easy3wSpin/index.js +0 -4
- package/lib/Easy3wTagSelect/index.js +0 -4
- package/lib/Easy3wTree/index.js +1 -5
- package/lib/Easy3wUpload/index.js +72 -38
- package/lib/Easy3wUploadB/index.js +106 -64
- package/lib/Easy3wUploadM/index.js +75 -40
- package/lib/Easy3wUserLayout/index.js +28 -20
- package/lib/index.js +0 -9
- package/package.json +1 -1
- package/lib/Easy3wI18N/index.js +0 -56
- package/lib/Easy3wI18N/locales/index.js +0 -19
|
@@ -20,6 +20,10 @@ var _react2 = _interopRequireDefault(_react);
|
|
|
20
20
|
|
|
21
21
|
var _router = require('dva/router');
|
|
22
22
|
|
|
23
|
+
var _reactDocumentTitle = require('react-document-title');
|
|
24
|
+
|
|
25
|
+
var _reactDocumentTitle2 = _interopRequireDefault(_reactDocumentTitle);
|
|
26
|
+
|
|
23
27
|
var _icon = require('antd/lib/icon');
|
|
24
28
|
|
|
25
29
|
var _icon2 = _interopRequireDefault(_icon);
|
|
@@ -98,28 +102,32 @@ var Easy3wUserLayout = function (_React$PureComponent) {
|
|
|
98
102
|
copyrightContent
|
|
99
103
|
);
|
|
100
104
|
return _react2['default'].createElement(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
hadHaederFlag ? headerElem : '',
|
|
105
|
+
_reactDocumentTitle2['default'],
|
|
106
|
+
{ title: getPageTitle() },
|
|
104
107
|
_react2['default'].createElement(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
_layout2['default'],
|
|
109
|
+
null,
|
|
110
|
+
hadHaederFlag ? headerElem : '',
|
|
108
111
|
_react2['default'].createElement(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
112
|
+
Content,
|
|
113
|
+
{ className: (0, _classnames2['default'])(['e3wUserLayoutContainer']), style: { 'background-image': backImg } },
|
|
114
|
+
isParticle ? _react2['default'].createElement('div', { id: 'background', style: { position: 'absolute', width: '100%', minHeight: '420px', zIndex: 0 } }) : '',
|
|
115
|
+
_react2['default'].createElement(
|
|
116
|
+
_router.Switch,
|
|
117
|
+
null,
|
|
118
|
+
getRouteData('' + routeDataLayout).map(function (item) {
|
|
119
|
+
return _react2['default'].createElement(_router.Route, {
|
|
120
|
+
exact: item.exact,
|
|
121
|
+
key: item.path,
|
|
122
|
+
path: item.path,
|
|
123
|
+
component: item.component
|
|
124
|
+
});
|
|
125
|
+
}),
|
|
126
|
+
_react2['default'].createElement(_router.Redirect, { exact: true, from: '/', to: rootRedirectPath })
|
|
127
|
+
)
|
|
128
|
+
),
|
|
129
|
+
copyRightFlag ? _react2['default'].createElement(_Easy3wGlobalFooter2['default'], { className: (0, _classnames2['default'])(['e3wUserLayoutFooter']), links: links, copyright: copyright }) : ''
|
|
130
|
+
)
|
|
123
131
|
);
|
|
124
132
|
};
|
|
125
133
|
|
package/lib/index.js
CHANGED
|
@@ -470,13 +470,4 @@ Object.defineProperty(exports, 'Easy3wCol', {
|
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
472
|
|
|
473
|
-
var _Easy3wI18N = require('./Easy3wI18N');
|
|
474
|
-
|
|
475
|
-
Object.defineProperty(exports, 'Easy3wI18N', {
|
|
476
|
-
enumerable: true,
|
|
477
|
-
get: function get() {
|
|
478
|
-
return _interopRequireDefault(_Easy3wI18N)['default'];
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
|
|
482
473
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
package/package.json
CHANGED
package/lib/Easy3wI18N/index.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports['default'] = Easy3wI18N;
|
|
5
|
-
|
|
6
|
-
var _react = require('react');
|
|
7
|
-
|
|
8
|
-
var _react2 = _interopRequireDefault(_react);
|
|
9
|
-
|
|
10
|
-
var _i18n = require('utils/i18n');
|
|
11
|
-
|
|
12
|
-
var _i18n2 = _interopRequireDefault(_i18n);
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 递归处理 React 元素中的文本节点
|
|
18
|
-
* @param {*} element - React 元素、字符串、数字
|
|
19
|
-
* @param {(text: string) => React.ReactNode} processor - 文本处理函数
|
|
20
|
-
*/
|
|
21
|
-
function processTextInElement(element, processor, objParam) {
|
|
22
|
-
// 纯文本节点:直接处理
|
|
23
|
-
if (typeof element === 'string' || typeof element === 'number') {
|
|
24
|
-
return processor(element, element, objParam);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// React 元素:递归处理其 children
|
|
28
|
-
if (_react2['default'].isValidElement(element)) {
|
|
29
|
-
return _react2['default'].cloneElement.apply(_react2['default'], [element, element.props].concat(_react2['default'].Children.map(element.props.children, function (child) {
|
|
30
|
-
return processTextInElement(child, processor);
|
|
31
|
-
})));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// 其他类型(null, undefined, boolean 等)原样返回
|
|
35
|
-
return element;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function Easy3wI18N(strValue, objParam, value) {
|
|
39
|
-
// strValue 变量不转换的字符串
|
|
40
|
-
// value 变量转换的字符串
|
|
41
|
-
// objParam 字符串中的变量
|
|
42
|
-
var valueE = value || strValue; // 变量编译完成
|
|
43
|
-
if (typeof valueE === 'string') {
|
|
44
|
-
var tValue = _i18n2['default'].t(strValue, objParam);
|
|
45
|
-
if (tValue === strValue) {
|
|
46
|
-
return valueE;
|
|
47
|
-
} else {
|
|
48
|
-
return tValue;
|
|
49
|
-
}
|
|
50
|
-
} else if (_react2['default'].isValidElement(valueE)) {
|
|
51
|
-
return processTextInElement(valueE, Easy3wI18N, objParam);
|
|
52
|
-
} else {
|
|
53
|
-
return valueE;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
module.exports = exports['default'];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
|
|
5
|
-
var _enUS = require('./en-US');
|
|
6
|
-
|
|
7
|
-
var _enUS2 = _interopRequireDefault(_enUS);
|
|
8
|
-
|
|
9
|
-
var _zhCN = require('./zh-CN');
|
|
10
|
-
|
|
11
|
-
var _zhCN2 = _interopRequireDefault(_zhCN);
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
14
|
-
|
|
15
|
-
exports['default'] = {
|
|
16
|
-
'en-US': _enUS2['default'],
|
|
17
|
-
'zh-CN': _zhCN2['default']
|
|
18
|
-
};
|
|
19
|
-
module.exports = exports['default'];
|