dlt-for-react 1.0.9 → 1.0.11
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 +49 -24
- package/lib/components/KyInputPicker/setting-checkbox.js +8 -7
- package/lib/components/KyInputPicker/setting-multiSelect.js +7 -5
- package/lib/components/KyInputPicker/setting-nhcascader.js +11 -6
- package/lib/components/KyInputPicker/setting-select.js +7 -5
- package/lib/components/KyInputPicker/setting-stu-selector.js +7 -5
- package/lib/components/KyInputPicker/setting-tea-selector.js +7 -5
- package/lib/layouts/Login/index-pre.js +279 -254
- package/lib/layouts/Login/index.js +2 -2
- package/lib/layouts/Login/login.js +541 -543
- package/lib/layouts/Top/index.js +2 -20
- package/lib/layouts/layout/index.js +442 -398
- package/lib/layouts/mixTop/index.js +2 -27
- package/lib/layouts/settingDrawer/fontChange.js +90 -78
- package/lib/layouts/settingDrawer/index.js +92 -92
- package/lib/utils/NHCore.js +19 -12
- package/lib/utils/NHFetch.js +4 -4
- package/lib/utils/index.js +40 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,45 +1,70 @@
|
|
|
1
1
|
#### 安装
|
|
2
|
+
|
|
2
3
|
cnpm install dlt-for-react --save
|
|
3
4
|
|
|
4
5
|
#### 发布
|
|
6
|
+
|
|
5
7
|
npm publish
|
|
6
8
|
|
|
7
|
-
## 前端dlt-for-react依赖包版本更新记录
|
|
9
|
+
## 前端 dlt-for-react 依赖包版本更新记录
|
|
8
10
|
|
|
9
|
-
##### 当前最新版本:1.0.
|
|
11
|
+
##### 当前最新版本:1.0.10
|
|
10
12
|
|
|
11
13
|
##### 安装依赖
|
|
14
|
+
|
|
12
15
|
> cnpm install dlt-for-react --save
|
|
13
16
|
|
|
14
17
|
##### 版本修改记录
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
1.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
#### V1.0.
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
|
|
19
|
+
#### V1.0.11—2023 年 10 月 20 日
|
|
20
|
+
|
|
21
|
+
1. 将 zhxg 服务修改未 hq 服务
|
|
22
|
+
2. 修复默认字号未知错误
|
|
23
|
+
|
|
24
|
+
#### V1.0.10—2023 年 10 月 19 日
|
|
25
|
+
|
|
26
|
+
1. 修改获取参数配置请求接口的服务
|
|
27
|
+
2. 将字号适配默认 54 号改成 75 号
|
|
28
|
+
3. 新增设备判断封装函数
|
|
29
|
+
|
|
30
|
+
#### V1.0.7—2023 年 10 月 12 日
|
|
31
|
+
|
|
32
|
+
1. 提交 HqLsrySelector 临时人员选择器组件
|
|
33
|
+
|
|
34
|
+
#### V1.0.6—2023 年 10 月 9 日
|
|
35
|
+
|
|
36
|
+
1. 修改 createUuid 参数 bug
|
|
37
|
+
|
|
38
|
+
#### V1.0.4—2023 年 9 月 28 日
|
|
39
|
+
|
|
40
|
+
1. 补充 KyBtnBox、KyCheckBox、KyCheckButton、KyCollapse、KyContainerFrame、KyEditableTable、KyEmpty、KyExcel、KyIcon、KyMore、KyTable 及 KyTitle 组件
|
|
41
|
+
|
|
42
|
+
#### V1.0.3—2023 年 9 月 28 日
|
|
43
|
+
|
|
44
|
+
1. 补充 KyInputPicker、KyModal、KyUpload 及 KyPreview 组件
|
|
45
|
+
|
|
46
|
+
#### V1.0.2—2023 年 9 月 27 日
|
|
47
|
+
|
|
24
48
|
1. 初始化组件
|
|
49
|
+
|
|
25
50
|
## 发布
|
|
26
51
|
|
|
27
|
-
### npm官网路径
|
|
52
|
+
### npm 官网路径
|
|
28
53
|
|
|
29
54
|
- 路径:https://www.npmjs.com/package/dlt-for-react
|
|
30
55
|
- 账号密码:yizhiqiang/yzq7900285
|
|
31
56
|
|
|
32
|
-
### cnpm路径
|
|
57
|
+
### cnpm 路径
|
|
33
58
|
|
|
34
59
|
- 路径:https://npmmirror.com/package/dlt-for-react
|
|
35
60
|
|
|
36
|
-
### 发布到NPM仓库(若npm已登录则忽略1、2、3步)
|
|
61
|
+
### 发布到 NPM 仓库(若 npm 已登录则忽略 1、2、3 步)
|
|
37
62
|
|
|
38
|
-
1. 在cmd执行:
|
|
63
|
+
1. 在 cmd 执行:
|
|
39
64
|
|
|
40
65
|
> npm config set registry https://registry.npmjs.org/
|
|
41
66
|
|
|
42
|
-
2. 在发布项目执行npm登录:
|
|
67
|
+
2. 在发布项目执行 npm 登录:
|
|
43
68
|
|
|
44
69
|
```
|
|
45
70
|
F:\webstrom\dlt-for-react>npm login
|
|
@@ -48,17 +73,17 @@ Password: lianyi@dev02
|
|
|
48
73
|
Email: (this IS public) lianyi_dev02@163.com
|
|
49
74
|
```
|
|
50
75
|
|
|
51
|
-
若提示需要one-time password就登录下方邮箱查看验证码,输入对应的one-time password即可,其他提示的话可能是密码输错了或网络问题;
|
|
76
|
+
若提示需要 one-time password 就登录下方邮箱查看验证码,输入对应的 one-time password 即可,其他提示的话可能是密码输错了或网络问题;
|
|
52
77
|
|
|
53
78
|
```
|
|
54
79
|
邮箱:lianyi_dev02@163.com
|
|
55
80
|
密码:lianyi@dev02 (用于接收验证码)
|
|
56
81
|
```
|
|
57
82
|
|
|
58
|
-
3. 在package.json中修改版本号
|
|
59
|
-
4. 执行npm publish命令`<br>`
|
|
83
|
+
3. 在 package.json 中修改版本号
|
|
84
|
+
4. 执行 npm publish 命令`<br>`
|
|
60
85
|
(切记先更新再发布,避免代码遗漏)
|
|
61
|
-
5. 手动同步到cnpm镜像`<br>`
|
|
86
|
+
5. 手动同步到 cnpm 镜像`<br>`
|
|
62
87
|
- 同步地址:https://npmmirror.com/sync/dlt-for-react
|
|
63
88
|
|
|
64
89
|
### 发布到公司私服仓库(敏捷开发平台使用私服拉取)
|
|
@@ -68,15 +93,15 @@ Email: (this IS public) lianyi_dev02@163.com
|
|
|
68
93
|
输入用户名、密码、邮箱
|
|
69
94
|
|
|
70
95
|
```
|
|
71
|
-
E:\git\dlt-for-react>npm login -registry=http://192.168.30.58:8081/repository/npm-repository/
|
|
96
|
+
E:\git\dlt-for-react>npm login -registry=http://192.168.30.58:8081/repository/npm-repository/
|
|
72
97
|
Username: xuegong-dev
|
|
73
98
|
Password: xuegongdev123
|
|
74
99
|
Email: xuwei@ly-sky.com
|
|
75
100
|
```
|
|
76
101
|
|
|
77
|
-
3. 在package.json中修改版本号
|
|
78
|
-
4. 执行npm publish -registry=http://192.168.30.58:8081/repository/npm-repository/`<br>`
|
|
102
|
+
3. 在 package.json 中修改版本号
|
|
103
|
+
4. 执行 npm publish -registry=http://192.168.30.58:8081/repository/npm-repository/`<br>`
|
|
79
104
|
(切记先更新再发布,避免代码遗漏)
|
|
80
105
|
5. 查看访问私服仓库查看是否成功`<br>`
|
|
81
106
|
|
|
82
|
-
- http://192.168.30.58:8081/#browse/browse:npm-repository:dlt-for-react
|
|
107
|
+
- http://192.168.30.58:8081/#browse/browse:npm-repository:dlt-for-react
|
|
@@ -465,8 +465,7 @@ var SettingCheckbox = function (_React$Component) {
|
|
|
465
465
|
fp.required = required;
|
|
466
466
|
fp.defaultValue = defaultValue;
|
|
467
467
|
fp.baseUrl = baseUrl;
|
|
468
|
-
fp.options = options;
|
|
469
|
-
fp.gridType = gridType, fp.columnsNum = columnsNum, this.setState({
|
|
468
|
+
fp.options = options;fp.gridType = gridType, fp.columnsNum = columnsNum, this.setState({
|
|
470
469
|
feature: this.props.initFeature,
|
|
471
470
|
defaultValueStr: defaultValueStr,
|
|
472
471
|
width: width,
|
|
@@ -695,7 +694,10 @@ var SettingCheckbox = function (_React$Component) {
|
|
|
695
694
|
),
|
|
696
695
|
_react2.default.createElement(
|
|
697
696
|
_tooltip2.default,
|
|
698
|
-
{
|
|
697
|
+
{
|
|
698
|
+
title: '不指定服务的情况下默认使用当前服务',
|
|
699
|
+
placement: 'top'
|
|
700
|
+
},
|
|
699
701
|
_react2.default.createElement(_icon2.default, { type: 'question-circle' })
|
|
700
702
|
)
|
|
701
703
|
),
|
|
@@ -707,8 +709,8 @@ var SettingCheckbox = function (_React$Component) {
|
|
|
707
709
|
dropdownMatchSelectWidth: false,
|
|
708
710
|
onChange: this.selectChange,
|
|
709
711
|
value: baseUrl,
|
|
710
|
-
baseUrl: this.props.serverUrl || 'api/
|
|
711
|
-
sign: this.props.serverSign || '
|
|
712
|
+
baseUrl: this.props.serverUrl || 'api/hq-xtgl',
|
|
713
|
+
sign: this.props.serverSign || 'hq_server_select'
|
|
712
714
|
})
|
|
713
715
|
)
|
|
714
716
|
),
|
|
@@ -845,6 +847,5 @@ var SettingCheckbox = function (_React$Component) {
|
|
|
845
847
|
}(_react2.default.Component);
|
|
846
848
|
|
|
847
849
|
SettingCheckbox.defaultProps = {
|
|
848
|
-
initFeature: ''
|
|
849
|
-
};
|
|
850
|
+
initFeature: '' };
|
|
850
851
|
exports.default = SettingCheckbox;
|
|
@@ -425,7 +425,10 @@ var SettingMultiSelect = function (_React$Component) {
|
|
|
425
425
|
),
|
|
426
426
|
_react2.default.createElement(
|
|
427
427
|
_tooltip2.default,
|
|
428
|
-
{
|
|
428
|
+
{
|
|
429
|
+
title: '不指定服务的情况下默认使用当前服务',
|
|
430
|
+
placement: 'top'
|
|
431
|
+
},
|
|
429
432
|
_react2.default.createElement(_icon2.default, { type: 'question-circle' })
|
|
430
433
|
)
|
|
431
434
|
),
|
|
@@ -436,8 +439,8 @@ var SettingMultiSelect = function (_React$Component) {
|
|
|
436
439
|
style: { marginLeft: 6, width: '200px' },
|
|
437
440
|
onChange: this.selectChange,
|
|
438
441
|
value: baseUrl,
|
|
439
|
-
baseUrl: this.props.serverUrl || 'api/
|
|
440
|
-
sign: this.props.serverSign || '
|
|
442
|
+
baseUrl: this.props.serverUrl || 'api/hq-xtgl',
|
|
443
|
+
sign: this.props.serverSign || 'hq_server_select'
|
|
441
444
|
})
|
|
442
445
|
)
|
|
443
446
|
),
|
|
@@ -527,6 +530,5 @@ var SettingMultiSelect = function (_React$Component) {
|
|
|
527
530
|
}(_react2.default.Component);
|
|
528
531
|
|
|
529
532
|
SettingMultiSelect.defaultProps = {
|
|
530
|
-
initFeature: ''
|
|
531
|
-
};
|
|
533
|
+
initFeature: '' };
|
|
532
534
|
exports.default = SettingMultiSelect;
|
|
@@ -451,7 +451,10 @@ var SettingNHCascader = function (_React$Component) {
|
|
|
451
451
|
),
|
|
452
452
|
_react2.default.createElement(
|
|
453
453
|
_tooltip2.default,
|
|
454
|
-
{
|
|
454
|
+
{
|
|
455
|
+
title: '不指定服务的情况下默认使用当前服务',
|
|
456
|
+
placement: 'top'
|
|
457
|
+
},
|
|
455
458
|
_react2.default.createElement(_icon2.default, { type: 'question-circle' })
|
|
456
459
|
)
|
|
457
460
|
),
|
|
@@ -462,8 +465,8 @@ var SettingNHCascader = function (_React$Component) {
|
|
|
462
465
|
style: { marginLeft: 6, width: '200px' },
|
|
463
466
|
onChange: this.selectChange,
|
|
464
467
|
value: baseUrl,
|
|
465
|
-
baseUrl: this.props.serverUrl || 'api/
|
|
466
|
-
sign: this.props.serverSign || '
|
|
468
|
+
baseUrl: this.props.serverUrl || 'api/hq-xtgl',
|
|
469
|
+
sign: this.props.serverSign || 'hq_server_select'
|
|
467
470
|
})
|
|
468
471
|
)
|
|
469
472
|
),
|
|
@@ -540,7 +543,10 @@ var SettingNHCascader = function (_React$Component) {
|
|
|
540
543
|
{ span: 6 },
|
|
541
544
|
_react2.default.createElement(
|
|
542
545
|
_checkbox2.default,
|
|
543
|
-
{
|
|
546
|
+
{
|
|
547
|
+
onChange: this.cascadeV5Change,
|
|
548
|
+
checked: threeOrMoreCascade
|
|
549
|
+
},
|
|
544
550
|
'\u652F\u6301\u4E09\u7EA7\u4EE5\u4E0A\u7EA7\u8054'
|
|
545
551
|
)
|
|
546
552
|
)
|
|
@@ -579,6 +585,5 @@ var SettingNHCascader = function (_React$Component) {
|
|
|
579
585
|
}(_react2.default.Component);
|
|
580
586
|
|
|
581
587
|
SettingNHCascader.defaultProps = {
|
|
582
|
-
initFeature: ''
|
|
583
|
-
};
|
|
588
|
+
initFeature: '' };
|
|
584
589
|
exports.default = SettingNHCascader;
|
|
@@ -426,7 +426,10 @@ var SettingSelect = function (_React$Component) {
|
|
|
426
426
|
),
|
|
427
427
|
_react2.default.createElement(
|
|
428
428
|
_tooltip2.default,
|
|
429
|
-
{
|
|
429
|
+
{
|
|
430
|
+
title: '不指定服务的情况下默认使用当前服务',
|
|
431
|
+
placement: 'top'
|
|
432
|
+
},
|
|
430
433
|
_react2.default.createElement(_icon2.default, { type: 'question-circle' })
|
|
431
434
|
)
|
|
432
435
|
),
|
|
@@ -439,8 +442,8 @@ var SettingSelect = function (_React$Component) {
|
|
|
439
442
|
onChange: this.selectChange,
|
|
440
443
|
value: baseUrl
|
|
441
444
|
// dataSource={systemApiType}
|
|
442
|
-
, baseUrl: this.props.serverUrl || 'api/
|
|
443
|
-
sign: this.props.serverSign || '
|
|
445
|
+
, baseUrl: this.props.serverUrl || 'api/hq-xtgl',
|
|
446
|
+
sign: this.props.serverSign || 'hq_server_select'
|
|
444
447
|
})
|
|
445
448
|
)
|
|
446
449
|
),
|
|
@@ -529,6 +532,5 @@ var SettingSelect = function (_React$Component) {
|
|
|
529
532
|
}(_react2.default.Component);
|
|
530
533
|
|
|
531
534
|
SettingSelect.defaultProps = {
|
|
532
|
-
initFeature: ''
|
|
533
|
-
};
|
|
535
|
+
initFeature: '' };
|
|
534
536
|
exports.default = SettingSelect;
|
|
@@ -426,7 +426,10 @@ var SettingStuSelector = function (_React$Component) {
|
|
|
426
426
|
),
|
|
427
427
|
_react2.default.createElement(
|
|
428
428
|
_tooltip2.default,
|
|
429
|
-
{
|
|
429
|
+
{
|
|
430
|
+
title: '不指定服务的情况下默认使用当前服务',
|
|
431
|
+
placement: 'top'
|
|
432
|
+
},
|
|
430
433
|
_react2.default.createElement(_icon2.default, { type: 'question-circle' })
|
|
431
434
|
)
|
|
432
435
|
),
|
|
@@ -438,8 +441,8 @@ var SettingStuSelector = function (_React$Component) {
|
|
|
438
441
|
dropdownMatchSelectWidth: false,
|
|
439
442
|
onChange: this.selectChange,
|
|
440
443
|
value: baseUrl,
|
|
441
|
-
baseUrl: this.props.serverUrl || 'api/
|
|
442
|
-
sign: this.props.serverSign || '
|
|
444
|
+
baseUrl: this.props.serverUrl || 'api/hq-xtgl',
|
|
445
|
+
sign: this.props.serverSign || 'hq_server_select'
|
|
443
446
|
})
|
|
444
447
|
)
|
|
445
448
|
),
|
|
@@ -502,6 +505,5 @@ var SettingStuSelector = function (_React$Component) {
|
|
|
502
505
|
}(_react2.default.Component);
|
|
503
506
|
|
|
504
507
|
SettingStuSelector.defaultProps = {
|
|
505
|
-
initFeature: ''
|
|
506
|
-
};
|
|
508
|
+
initFeature: '' };
|
|
507
509
|
exports.default = SettingStuSelector;
|
|
@@ -426,7 +426,10 @@ var SettingTeaSelector = function (_React$Component) {
|
|
|
426
426
|
),
|
|
427
427
|
_react2.default.createElement(
|
|
428
428
|
_tooltip2.default,
|
|
429
|
-
{
|
|
429
|
+
{
|
|
430
|
+
title: '不指定服务的情况下默认使用当前服务',
|
|
431
|
+
placement: 'top'
|
|
432
|
+
},
|
|
430
433
|
_react2.default.createElement(_icon2.default, { type: 'question-circle' })
|
|
431
434
|
)
|
|
432
435
|
),
|
|
@@ -438,8 +441,8 @@ var SettingTeaSelector = function (_React$Component) {
|
|
|
438
441
|
dropdownMatchSelectWidth: false,
|
|
439
442
|
onChange: this.selectChange,
|
|
440
443
|
value: baseUrl,
|
|
441
|
-
baseUrl: this.props.serverUrl || 'api/
|
|
442
|
-
sign: this.props.serverSign || '
|
|
444
|
+
baseUrl: this.props.serverUrl || 'api/hq-xtgl',
|
|
445
|
+
sign: this.props.serverSign || 'hq_server_select'
|
|
443
446
|
})
|
|
444
447
|
)
|
|
445
448
|
),
|
|
@@ -502,6 +505,5 @@ var SettingTeaSelector = function (_React$Component) {
|
|
|
502
505
|
}(_react2.default.Component);
|
|
503
506
|
|
|
504
507
|
SettingTeaSelector.defaultProps = {
|
|
505
|
-
initFeature: ''
|
|
506
|
-
};
|
|
508
|
+
initFeature: '' };
|
|
507
509
|
exports.default = SettingTeaSelector;
|