dlt-for-react 1.1.15 → 1.1.17
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/README.md +17 -1
- package/assets/HqCheckButton/index.less +13 -0
- package/assets/HqImage/index.less +11 -0
- package/assets/HqInputPicker/index.less +8 -0
- package/assets/selector/resultview/index.less +53 -0
- package/assets/selector/selectormodal/index.less +15 -0
- package/assets/selector/table/index.less +211 -0
- package/assets/selector/tree/index.less +138 -0
- package/assets/stuSelector/index.less +24 -0
- package/assets/teaSelector/index.less +4 -0
- package/lib/components/HqCascader/index.js +306 -0
- package/lib/components/HqCheckBox/index.js +375 -0
- package/lib/components/HqCheckButton/index.js +284 -0
- package/lib/components/HqConfirm/index.js +81 -0
- package/lib/components/HqFormItem/FormRules.js +27 -0
- package/lib/components/HqFormItem/index.js +309 -0
- package/lib/components/HqImage/index.js +553 -0
- package/lib/components/HqInputPicker/edit-page.js +585 -0
- package/lib/components/HqInputPicker/index.js +226 -0
- package/lib/components/HqInputPicker/input-const.js +134 -0
- package/lib/components/HqInputPicker/render.js +2496 -0
- package/lib/components/HqInputPicker/setting-checkbox.js +853 -0
- package/lib/components/HqInputPicker/setting-datepicker.js +430 -0
- package/lib/components/HqInputPicker/setting-datetimepicker.js +443 -0
- package/lib/components/HqInputPicker/setting-input.js +555 -0
- package/lib/components/HqInputPicker/setting-inputNumber.js +658 -0
- package/lib/components/HqInputPicker/setting-monthpicker.js +434 -0
- package/lib/components/HqInputPicker/setting-multiSelect.js +533 -0
- package/lib/components/HqInputPicker/setting-nhcascader.js +588 -0
- package/lib/components/HqInputPicker/setting-old-upload.js +428 -0
- package/lib/components/HqInputPicker/setting-radio.js +468 -0
- package/lib/components/HqInputPicker/setting-rangepicker.js +466 -0
- package/lib/components/HqInputPicker/setting-select.js +534 -0
- package/lib/components/HqInputPicker/setting-stu-selector.js +508 -0
- package/lib/components/HqInputPicker/setting-switch.js +274 -0
- package/lib/components/HqInputPicker/setting-tea-selector.js +508 -0
- package/lib/components/HqInputPicker/setting-textarea.js +619 -0
- package/lib/components/HqInputPicker/setting-timepicker.js +437 -0
- package/lib/components/HqInputPicker/setting-upload.js +795 -0
- package/lib/components/HqMultiSelect/index.js +495 -0
- package/lib/components/HqOldUpload/index.js +350 -0
- package/lib/components/HqSelect/getSelectName.js +20 -0
- package/lib/components/HqSelect/index.js +495 -0
- package/lib/components/HqSelector/HqLsrySelector/index.js +269 -267
- package/lib/components/HqSelector/HqRySelector/index.js +4 -2
- package/lib/components/HqSelector/HqWzSelector/index.js +4 -2
- package/lib/components/HqStuSelector/index.js +267 -0
- package/lib/components/HqTeaSelector/index.js +221 -0
- package/lib/components/KyCollapse/index.js +23 -24
- package/lib/components/KyContainerFrame/index.js +2 -2
- package/lib/components/KyEditableTable/component.js +38 -38
- package/lib/components/KyEditableTable/index.js +203 -181
- package/lib/components/KyExcel/index.js +191 -153
- package/lib/components/KyModal/index.js +43 -33
- package/lib/components/KyTable/AddFieldsModal.js +66 -59
- package/lib/components/KyTable/checkButtons.js +3 -13
- package/lib/components/KyTable/index.js +2 -2
- package/lib/components/KyTableCardList/AddFieldsModal.js +280 -282
- package/lib/components/KyTableCardList/index.js +2 -2
- package/lib/components/KyTree/index.js +7 -7
- package/lib/components/KyUpload/index.js +170 -165
- package/lib/components/NHSelector/ListSort/index.js +411 -0
- package/lib/components/NHSelector/index.js +636 -0
- package/lib/components/NHSelector/resultview/index.js +408 -0
- package/lib/components/NHSelector/selectormodal/index.js +303 -0
- package/lib/components/NHSelector/table/index.js +784 -0
- package/lib/components/NHSelector/tree/index.js +554 -0
- package/lib/index.js +155 -36
- package/lib/layouts/LeftMenu/index.js +6 -6
- package/lib/layouts/Login/index-pre.js +107 -103
- package/lib/layouts/Login/index.js +2 -2
- package/lib/layouts/Login/login.js +178 -172
- package/lib/layouts/NavigationBar/index.js +67 -67
- package/lib/layouts/Top/editPassWord.js +84 -64
- package/lib/layouts/Top/index.js +117 -117
- package/lib/layouts/TopMenu/index.js +53 -53
- package/lib/layouts/layout/index.js +115 -118
- package/lib/layouts/mixTop/index.js +95 -95
- package/lib/layouts/settingDrawer/index.js +96 -96
- package/lib/routes/AuthorizedRoute.js +33 -32
- package/lib/utils/NHCore.js +65 -65
- package/package.json +3 -3
- package/lib/utils/createUuid.js +0 -40
- package/lib/utils/getLoginUser.js +0 -10
- package/lib/utils/getSize.js +0 -27
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SwitchComponents = undefined;
|
|
7
7
|
|
|
8
|
-
var _treeSelect = require(
|
|
8
|
+
var _treeSelect = require("antd/lib/tree-select");
|
|
9
9
|
|
|
10
10
|
var _treeSelect2 = _interopRequireDefault(_treeSelect);
|
|
11
11
|
|
|
12
|
-
var _radio = require(
|
|
12
|
+
var _radio = require("antd/lib/radio");
|
|
13
13
|
|
|
14
14
|
var _radio2 = _interopRequireDefault(_radio);
|
|
15
15
|
|
|
16
|
-
var _datePicker = require(
|
|
16
|
+
var _datePicker = require("antd/lib/date-picker");
|
|
17
17
|
|
|
18
18
|
var _datePicker2 = _interopRequireDefault(_datePicker);
|
|
19
19
|
|
|
20
|
-
var _switch = require(
|
|
20
|
+
var _switch = require("antd/lib/switch");
|
|
21
21
|
|
|
22
22
|
var _switch2 = _interopRequireDefault(_switch);
|
|
23
23
|
|
|
24
|
-
var _inputNumber = require(
|
|
24
|
+
var _inputNumber = require("antd/lib/input-number");
|
|
25
25
|
|
|
26
26
|
var _inputNumber2 = _interopRequireDefault(_inputNumber);
|
|
27
27
|
|
|
28
|
-
var _input = require(
|
|
28
|
+
var _input = require("antd/lib/input");
|
|
29
29
|
|
|
30
30
|
var _input2 = _interopRequireDefault(_input);
|
|
31
31
|
|
|
32
|
-
var _extends2 = require(
|
|
32
|
+
var _extends2 = require("babel-runtime/helpers/extends");
|
|
33
33
|
|
|
34
34
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
35
35
|
|
|
36
|
-
var _select = require(
|
|
36
|
+
var _select = require("antd/lib/select");
|
|
37
37
|
|
|
38
38
|
var _select2 = _interopRequireDefault(_select);
|
|
39
39
|
|
|
40
|
-
require(
|
|
40
|
+
require("antd/lib/tree-select/style");
|
|
41
41
|
|
|
42
|
-
require(
|
|
42
|
+
require("antd/lib/radio/style");
|
|
43
43
|
|
|
44
|
-
require(
|
|
44
|
+
require("antd/lib/date-picker/style");
|
|
45
45
|
|
|
46
|
-
require(
|
|
46
|
+
require("antd/lib/switch/style");
|
|
47
47
|
|
|
48
|
-
require(
|
|
48
|
+
require("antd/lib/input-number/style");
|
|
49
49
|
|
|
50
|
-
require(
|
|
50
|
+
require("antd/lib/input/style");
|
|
51
51
|
|
|
52
|
-
require(
|
|
52
|
+
require("antd/lib/select/style");
|
|
53
53
|
|
|
54
|
-
require(
|
|
54
|
+
require("../../../assets/components/KyEditableTable/index.less");
|
|
55
55
|
|
|
56
|
-
var _react = require(
|
|
56
|
+
var _react = require("react");
|
|
57
57
|
|
|
58
58
|
var _react2 = _interopRequireDefault(_react);
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _HqSelect = require("../HqSelect");
|
|
61
61
|
|
|
62
|
-
var _debounce = require(
|
|
62
|
+
var _debounce = require("lodash/debounce");
|
|
63
63
|
|
|
64
64
|
var _debounce2 = _interopRequireDefault(_debounce);
|
|
65
65
|
|
|
@@ -68,7 +68,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
68
68
|
var Option = _select2.default.Option;
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var styles = { style: { width:
|
|
71
|
+
var styles = { style: { width: "100%" } };
|
|
72
72
|
|
|
73
73
|
var changeInputData = function changeInputData(value, dataIndex, form, record, func) {
|
|
74
74
|
delayedChange(value, dataIndex, form, record, func);
|
|
@@ -90,7 +90,7 @@ var SwitchComponents = exports.SwitchComponents = function SwitchComponents(type
|
|
|
90
90
|
var selectOptions = arguments[6];
|
|
91
91
|
|
|
92
92
|
switch (type) {
|
|
93
|
-
case
|
|
93
|
+
case "text":
|
|
94
94
|
return _react2.default.createElement(_input2.default, (0, _extends3.default)({}, config, styles, {
|
|
95
95
|
onClick: function onClick(e) {
|
|
96
96
|
var callback = config.callback;
|
|
@@ -107,9 +107,9 @@ var SwitchComponents = exports.SwitchComponents = function SwitchComponents(type
|
|
|
107
107
|
changeInputData(e.target.value, dataIndex, form, record, func);
|
|
108
108
|
} //监听失去焦点
|
|
109
109
|
}));
|
|
110
|
-
case
|
|
110
|
+
case "hidden":
|
|
111
111
|
return _react2.default.createElement(_input2.default, (0, _extends3.default)({}, config, styles));
|
|
112
|
-
case
|
|
112
|
+
case "number":
|
|
113
113
|
return _react2.default.createElement(_inputNumber2.default, (0, _extends3.default)({}, config, styles, {
|
|
114
114
|
onClick: function onClick(e) {
|
|
115
115
|
var callback = config.callback;
|
|
@@ -120,15 +120,15 @@ var SwitchComponents = exports.SwitchComponents = function SwitchComponents(type
|
|
|
120
120
|
changeInputData(value, dataIndex, form, record, func);
|
|
121
121
|
}
|
|
122
122
|
}));
|
|
123
|
-
case
|
|
123
|
+
case "switch":
|
|
124
124
|
return _react2.default.createElement(_switch2.default, config);
|
|
125
|
-
case
|
|
125
|
+
case "date":
|
|
126
126
|
return _react2.default.createElement(_datePicker2.default, (0, _extends3.default)({}, config, {
|
|
127
127
|
onChange: function onChange(value) {
|
|
128
128
|
changeInputData(value, dataIndex, form, record, func);
|
|
129
129
|
}
|
|
130
130
|
}));
|
|
131
|
-
case
|
|
131
|
+
case "select":
|
|
132
132
|
return _react2.default.createElement(
|
|
133
133
|
_select2.default,
|
|
134
134
|
(0, _extends3.default)({
|
|
@@ -138,8 +138,8 @@ var SwitchComponents = exports.SwitchComponents = function SwitchComponents(type
|
|
|
138
138
|
onChange: function onChange(value) {
|
|
139
139
|
changeInputData(value, dataIndex, form, record, func);
|
|
140
140
|
},
|
|
141
|
-
optionFilterProp:
|
|
142
|
-
placeholder:
|
|
141
|
+
optionFilterProp: "children",
|
|
142
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
143
143
|
showSearch: true,
|
|
144
144
|
allowClear: true,
|
|
145
145
|
style: { width: 200 }
|
|
@@ -152,7 +152,7 @@ var SwitchComponents = exports.SwitchComponents = function SwitchComponents(type
|
|
|
152
152
|
);
|
|
153
153
|
})
|
|
154
154
|
);
|
|
155
|
-
case
|
|
155
|
+
case "radio":
|
|
156
156
|
return _react2.default.createElement(
|
|
157
157
|
_radio2.default.Group,
|
|
158
158
|
(0, _extends3.default)({
|
|
@@ -185,25 +185,25 @@ var SwitchComponents = exports.SwitchComponents = function SwitchComponents(type
|
|
|
185
185
|
// >
|
|
186
186
|
// </Select>
|
|
187
187
|
;
|
|
188
|
-
case
|
|
189
|
-
return _react2.default.createElement(
|
|
190
|
-
style: { width:
|
|
188
|
+
case "nh-select":
|
|
189
|
+
return _react2.default.createElement(_HqSelect.HqSelect, (0, _extends3.default)({
|
|
190
|
+
style: { width: "100%" }
|
|
191
191
|
}, config, {
|
|
192
192
|
onChange: function onChange(value) {
|
|
193
193
|
changeInputData(value, dataIndex, form, record, func);
|
|
194
194
|
}
|
|
195
195
|
}));
|
|
196
|
-
case
|
|
196
|
+
case "tree-select":
|
|
197
197
|
return _react2.default.createElement(_treeSelect2.default, (0, _extends3.default)({
|
|
198
198
|
showSearch: true,
|
|
199
|
-
style: { width:
|
|
199
|
+
style: { width: "100%" },
|
|
200
200
|
treeData: selectOptions,
|
|
201
201
|
onChange: function onChange(value) {
|
|
202
202
|
changeInputData(value, dataIndex, form, record, func);
|
|
203
203
|
},
|
|
204
|
-
dropdownStyle: { maxHeight: 400, overflow:
|
|
205
|
-
treeNodeFilterProp:
|
|
206
|
-
placeholder:
|
|
204
|
+
dropdownStyle: { maxHeight: 400, overflow: "auto" },
|
|
205
|
+
treeNodeFilterProp: "title",
|
|
206
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
207
207
|
treeDefaultExpandAll: true,
|
|
208
208
|
allowClear: true
|
|
209
209
|
}, config, styles));
|