easy3wui 1.5.86 → 1.5.87
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/CHANGELOG.md +189 -0
- package/HISTORY.md +8 -0
- package/LICENSE.md +3 -3
- package/README.md +27 -26
- package/lib/Easy3wTagSelect/index.less +120 -120
- package/lib/Easy3wTree/index.js +16 -16
- package/lib/Easy3wUIConfig/index.js +2 -1
- package/lib/Easy3wUpload/index.js +4 -3
- package/lib/Easy3wUploadB/index.js +7 -4
- package/lib/Easy3wUploadM/index.js +4 -3
- package/package.json +122 -122
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 6
|
|
3
|
+
title: 更新日志
|
|
4
|
+
toc: false
|
|
5
|
+
timeline: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#### 版本号说明
|
|
10
|
+
* 次版本号:带有新特性的向下兼容的版本。
|
|
11
|
+
* 主版本号:含有破坏性更新和新特性。
|
|
12
|
+
## 1.1.105
|
|
13
|
+
`2018-12-20`
|
|
14
|
+
|
|
15
|
+
- Easy3wFormPage
|
|
16
|
+
- 🌟 增加必填校验自定义文案属性:requiredMessage
|
|
17
|
+
- 🌟 TextArea增加autosize属性
|
|
18
|
+
- Easy3wQryGrid
|
|
19
|
+
- 点重置后查询
|
|
20
|
+
---
|
|
21
|
+
## 1.1.101
|
|
22
|
+
`2018-12-12`
|
|
23
|
+
|
|
24
|
+
- Easy3wFormPage
|
|
25
|
+
- 🌟 树选择默认提示改为:请输入关键字或点击三角箭头展开后选择
|
|
26
|
+
---Easy3wFormPage
|
|
27
|
+
---
|
|
28
|
+
## 1.1.100
|
|
29
|
+
`2018-11-29`
|
|
30
|
+
|
|
31
|
+
- Easy3wGridInputNumber
|
|
32
|
+
- 🌟 设置默认宽度
|
|
33
|
+
---
|
|
34
|
+
## 1.1.92
|
|
35
|
+
`2018-11-21`
|
|
36
|
+
|
|
37
|
+
- Easy3wUpload
|
|
38
|
+
- 🌟 超过限制大小不显示选择的附件
|
|
39
|
+
- Easy3wUploadM
|
|
40
|
+
- 🌟 超过限制大小不显示选择的附件
|
|
41
|
+
- Easy3wGridPage
|
|
42
|
+
- 🌟 Tooltip文本换行
|
|
43
|
+
---
|
|
44
|
+
## 1.1.90
|
|
45
|
+
`2018-10-30`
|
|
46
|
+
|
|
47
|
+
- Easy3wUserLayout
|
|
48
|
+
- 🔥 动态粒子背景
|
|
49
|
+
- Easy3wUploadB
|
|
50
|
+
- 🌟 大附件上传成功后进度条消失
|
|
51
|
+
---
|
|
52
|
+
## 1.1.83
|
|
53
|
+
`2018-10-25`
|
|
54
|
+
|
|
55
|
+
- Easy3wModel
|
|
56
|
+
- 🔥 底部按钮居中
|
|
57
|
+
- Easy3wFlow
|
|
58
|
+
- 🌟 非必须的步骤边框虚化
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 1.1.77
|
|
62
|
+
`2018-10-17`
|
|
63
|
+
|
|
64
|
+
- Easy3wGridPage
|
|
65
|
+
- 🔥 固定列重复显示问题解决
|
|
66
|
+
- Easy3wUpload
|
|
67
|
+
- 🌟 大附件初始值bug修复
|
|
68
|
+
- 🌟大附件增加上传成功回调方法:uploadDoneCallback(uploadName, fileInfo, newList);
|
|
69
|
+
- Easy3wFlow
|
|
70
|
+
- 🌟 流程向导url加密
|
|
71
|
+
- Easy3wCaHandler
|
|
72
|
+
- 🌟 增加获取供方名称接口:getSupplierName
|
|
73
|
+
- Easy3wCaptcha
|
|
74
|
+
- 🌟 验证码字体大小固定
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 1.1.61
|
|
78
|
+
`2018-10-09`
|
|
79
|
+
|
|
80
|
+
- Easy3wUpload
|
|
81
|
+
- 🔥 附件大小为0不得上传
|
|
82
|
+
- Easy3wModal
|
|
83
|
+
- 🌟 增加默认到顶部的距离为20px
|
|
84
|
+
- Easy3wGridDateTimePicker
|
|
85
|
+
- 🔥 默认选中时间为9点
|
|
86
|
+
- Easy3wFormPage
|
|
87
|
+
- 🔥 增加getValueFromEvent属性
|
|
88
|
+
- 🔥 时间组件修改,默认选中时间为9点
|
|
89
|
+
---
|
|
90
|
+
## 1.1.52
|
|
91
|
+
`2018-09-27`
|
|
92
|
+
|
|
93
|
+
- Easy3wModal
|
|
94
|
+
- 增加destroyOnClose属性。
|
|
95
|
+
- Easy3wFlow
|
|
96
|
+
- 增加不重新获取流程数据参数。
|
|
97
|
+
- 去除流程向导的loading。
|
|
98
|
+
- Easy3wCaHandler
|
|
99
|
+
- 🔥增加CA服务组件。
|
|
100
|
+
- Easy3wCaHandler
|
|
101
|
+
- 🔥增加CA服务组件。
|
|
102
|
+
- Easy3wGetCookie
|
|
103
|
+
- 🔥增加获取cookie组件。
|
|
104
|
+
- Easy3wUploadB
|
|
105
|
+
- 🔥增加大附件上传组件。
|
|
106
|
+
## 1.1.35
|
|
107
|
+
`2018-09-17`
|
|
108
|
+
|
|
109
|
+
- Easy3wGridPage
|
|
110
|
+
- 🌟 如果列表需要固定表头则在Easy3wGridPage中添加属性:scroll={{ y: num, x: num }}并给添加类名:ClassName="scrollY",
|
|
111
|
+
列表横向滚动不需要自行添加滚动属性,整体列表为自适应宽度,如有表头fixed固定,表头不需要添加width属性
|
|
112
|
+
- Easy3wButton
|
|
113
|
+
- 🔥 增加dropdownArr属性,可设置下拉按钮组。
|
|
114
|
+
---
|
|
115
|
+
## 1.1.29
|
|
116
|
+
`2018-09-13`
|
|
117
|
+
|
|
118
|
+
- Easy3wFormPage
|
|
119
|
+
- 🌟 改为紧凑型表单。
|
|
120
|
+
- 🌟 增加rowAftBtnFlag属性。
|
|
121
|
+
- Easy3wGridPage
|
|
122
|
+
- 🌟 选中后返回的参数增加两个属性:selected:选中或取消选中,changeRows:改变的行。
|
|
123
|
+
------
|
|
124
|
+
## 1.1.19
|
|
125
|
+
`2018-09-12`
|
|
126
|
+
|
|
127
|
+
- 修复登录样式问题
|
|
128
|
+
- 去除console.log
|
|
129
|
+
---
|
|
130
|
+
## 1.1.15
|
|
131
|
+
`2018-09-08`
|
|
132
|
+
|
|
133
|
+
- Easy3wButton
|
|
134
|
+
- 🔥 增加btnType属性,可设置按钮类别,当btnType未设置时为主按钮,当btnType: secondary时为次按钮。
|
|
135
|
+
- Easy3wGridInputNumber
|
|
136
|
+
- 🐞 修复输入校验的bug。
|
|
137
|
+
- Easy3wGridPage
|
|
138
|
+
- 🐞 修复选择后返回数据错误的bug。
|
|
139
|
+
- 🌟 优化选择的方法。
|
|
140
|
+
---
|
|
141
|
+
## 1.1.6
|
|
142
|
+
`2018-08-27`
|
|
143
|
+
-
|
|
144
|
+
- Easy3wUploadM
|
|
145
|
+
- 🐞 修复默认附件不能下载的bug。
|
|
146
|
+
- 🌟 增加按钮前的扩展属性:extend,用于扩展上传按钮前的功能。
|
|
147
|
+
- 🌟 增加按钮后的扩展属性:extendBack,用于扩展上传按钮后的功能。
|
|
148
|
+
- 🌟 增加上传成功的回调 uploadDoneCallback(uploadName, fileList, file)。
|
|
149
|
+
- 🌟 增加删除的回调removeCallback(uploadName, file)。
|
|
150
|
+
-
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 1.1.2
|
|
154
|
+
`2018-08-21`
|
|
155
|
+
-
|
|
156
|
+
- Easy3wButtonOne
|
|
157
|
+
- 🔥 增加单个按钮组件,可配合form组件中的upload,生成类似【生成】【上传】的操作按钮组。
|
|
158
|
+
- Easy3wUpload
|
|
159
|
+
- 🌟 增加按钮前的扩展属性:extend,用于扩展上传按钮前的功能。
|
|
160
|
+
- 🌟 增加按钮后的扩展属性:extendBack,用于扩展上传按钮后的功能。
|
|
161
|
+
- Easy3wQryGrid
|
|
162
|
+
- 🌟 增加隐藏域属性:hiddenItems。
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## 1.1.1
|
|
166
|
+
`2018-08-16`
|
|
167
|
+
- Easy3wGridPage
|
|
168
|
+
- 🌟 增加复选框默认不可修改功能:getCheckboxProps。
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 1.0.95
|
|
172
|
+
`2018-08-13`
|
|
173
|
+
- Easy3wUpload
|
|
174
|
+
- 🌟 增加上传成功后的回调方法:uploadDoneCallback,增加点击删除后的回调方法:removeCallback。
|
|
175
|
+
- 🌟 当为isRead时,去除删除图标。
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## 1.0.94
|
|
179
|
+
`2018-08-12`
|
|
180
|
+
- Easy3wFormPage
|
|
181
|
+
- 🌟 treeSelect 去除labelInValue默认属性,可由cmptPros自行设置。
|
|
182
|
+
|
|
183
|
+
- Easy3wQryGrid
|
|
184
|
+
- 🌟 treeSelect 去除labelInValue默认属性,可由cmptPros自行设置。
|
|
185
|
+
- 可输入组件
|
|
186
|
+
- 增加Easy3wGridInput、Easy3wGridInputNumber、Easy3wGridTextArea、Easy3wGridSelect、Easy3wGridDatePicker、Easy3wGridDateTimePicker、Easy3wGridRadio、Easy3wGridCheckBox组件,以实现在表格中编辑的功能。
|
|
187
|
+
|
|
188
|
+
- Easy3wDownLoad
|
|
189
|
+
- 🔥 增加下载组件。
|
package/HISTORY.md
ADDED
package/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c) 上海同在互联网科技有限公司 版权所有
|
|
3
|
-
|
|
1
|
+
|
|
2
|
+
Copyright (c) 上海同在互联网科技有限公司 版权所有
|
|
3
|
+
|
|
4
4
|
上海同在互联网科技有限公司 版权所有,使用必须获得授权,否则将追究法律责任。
|
package/README.md
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
# easy3wUI
|
|
2
|
-
easy3w UI 组件
|
|
3
|
-
# 编译
|
|
4
|
-
npm run compile
|
|
5
|
-
# 发布代码
|
|
6
|
-
npm publish
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
npm
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
1
|
+
# easy3wUI
|
|
2
|
+
easy3w UI 组件
|
|
3
|
+
# 编译
|
|
4
|
+
npm run compile
|
|
5
|
+
# 发布代码
|
|
6
|
+
npm publish
|
|
7
|
+
npm publish --tag V1
|
|
8
|
+
# 测试版发布
|
|
9
|
+
npm publish --tag beta
|
|
10
|
+
|
|
11
|
+
react-data-grid使用6.0.1版本对应的react@16
|
|
12
|
+
7版本未形成稳定版本,暂时使用6.0.1版本;对应的react@18+版本
|
|
13
|
+
https://www.npmjs.com/
|
|
14
|
+
登录npm
|
|
15
|
+
在终端输入npm login ,在登录前一定要将npm源设置为官方源
|
|
16
|
+
// 官方镜像源
|
|
17
|
+
npm config set registry https://registry.npmjs.org/
|
|
18
|
+
// 淘宝镜像源
|
|
19
|
+
npm config set registry http://registry.npm.taobao.org/
|
|
20
|
+
检查当前npm源:
|
|
21
|
+
npm config get registry
|
|
22
|
+
|
|
23
|
+
# 生成令牌操作步骤:
|
|
24
|
+
* 登录 npm 官网,进入令牌管理页面(https://www.npmjs.com/settings/(您的用户名)/tokens)。
|
|
25
|
+
* 删除旧令牌:点击令牌右侧的“Delete”(删除)按钮。
|
|
26
|
+
* 创建新令牌:点击“Generate New Token”(生成新令牌),输入名称并勾选“Bypass two-factor authentication”(绕过 2FA)。
|
|
27
|
+
* 立即复制新令牌:创建后立即点击复制按钮,避免离开页面。
|
|
27
28
|
* 配置令牌到 .npmrc 文件,在项目根目录下
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
@import '~antd/lib/style/themes/default.less';
|
|
2
|
-
|
|
3
|
-
.tagSelect {
|
|
4
|
-
user-select: none;
|
|
5
|
-
margin-left: -8px;
|
|
6
|
-
position: relative;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
max-height: 32px;
|
|
9
|
-
// line-height: 32px;
|
|
10
|
-
transition: all 0.3s;
|
|
11
|
-
:global {
|
|
12
|
-
.ant-tag {
|
|
13
|
-
padding: 0 8px;
|
|
14
|
-
margin-right: 24px;
|
|
15
|
-
font-size: @font-size-base;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
&.expanded {
|
|
19
|
-
transition: all 0.3s;
|
|
20
|
-
max-height: 800px;
|
|
21
|
-
}
|
|
22
|
-
.trigger {
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 0;
|
|
25
|
-
right: 0;
|
|
26
|
-
i {
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
&.hasExpandTag {
|
|
31
|
-
padding-right: 50px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.standardFormRow {
|
|
36
|
-
border-bottom: 1px dashed @border-color-split;
|
|
37
|
-
// padding-bottom: 8px;
|
|
38
|
-
// margin-bottom: 8px;
|
|
39
|
-
display: flex;
|
|
40
|
-
:global {
|
|
41
|
-
.ant-form-item {
|
|
42
|
-
margin-right: 24px;
|
|
43
|
-
}
|
|
44
|
-
.ant-form-item-label label {
|
|
45
|
-
color: @text-color;
|
|
46
|
-
margin-right: 0;
|
|
47
|
-
}
|
|
48
|
-
.ant-form-item-label,
|
|
49
|
-
.ant-form-item-control {
|
|
50
|
-
padding: 0;
|
|
51
|
-
line-height: 32px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.label {
|
|
55
|
-
// color: @heading-color;
|
|
56
|
-
// color: rgb(173,124,89);
|
|
57
|
-
font-size: @font-size-base;
|
|
58
|
-
padding-right: 12px;
|
|
59
|
-
margin-right: 12px;
|
|
60
|
-
// margin-right: 24px;
|
|
61
|
-
background:#F8F8FF;
|
|
62
|
-
// background: rgb(84, 104, 178);
|
|
63
|
-
// opacity: 0.5;
|
|
64
|
-
flex: 0 0 auto;
|
|
65
|
-
text-align: right;
|
|
66
|
-
& > span {
|
|
67
|
-
display: inline-block;
|
|
68
|
-
height: 32px;
|
|
69
|
-
line-height: 32px;
|
|
70
|
-
&:after {
|
|
71
|
-
content: '|';
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
// border-radius: 2px;
|
|
75
|
-
& > a {
|
|
76
|
-
color: @heading-color;
|
|
77
|
-
// color: rgb(255, 255, 255);
|
|
78
|
-
display: inline-block;
|
|
79
|
-
height: 32px;
|
|
80
|
-
line-height: 32px;
|
|
81
|
-
// width: 100%;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
.content {
|
|
86
|
-
flex: 1 1 0;
|
|
87
|
-
:global {
|
|
88
|
-
.ant-form-item:last-child {
|
|
89
|
-
margin-right: 0;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.standardFormRowLast {
|
|
96
|
-
border: none;
|
|
97
|
-
padding-bottom: 0;
|
|
98
|
-
margin-bottom: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.standardFormRowBlock {
|
|
102
|
-
:global {
|
|
103
|
-
.ant-form-item,
|
|
104
|
-
div.ant-form-item-control-wrapper {
|
|
105
|
-
display: block;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.standardFormRowGrid {
|
|
111
|
-
:global {
|
|
112
|
-
.ant-form-item,
|
|
113
|
-
div.ant-form-item-control-wrapper {
|
|
114
|
-
display: block;
|
|
115
|
-
}
|
|
116
|
-
.ant-form-item-label {
|
|
117
|
-
float: left;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
@import '~antd/lib/style/themes/default.less';
|
|
2
|
+
|
|
3
|
+
.tagSelect {
|
|
4
|
+
user-select: none;
|
|
5
|
+
margin-left: -8px;
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
max-height: 32px;
|
|
9
|
+
// line-height: 32px;
|
|
10
|
+
transition: all 0.3s;
|
|
11
|
+
:global {
|
|
12
|
+
.ant-tag {
|
|
13
|
+
padding: 0 8px;
|
|
14
|
+
margin-right: 24px;
|
|
15
|
+
font-size: @font-size-base;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
&.expanded {
|
|
19
|
+
transition: all 0.3s;
|
|
20
|
+
max-height: 800px;
|
|
21
|
+
}
|
|
22
|
+
.trigger {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0;
|
|
25
|
+
right: 0;
|
|
26
|
+
i {
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&.hasExpandTag {
|
|
31
|
+
padding-right: 50px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.standardFormRow {
|
|
36
|
+
border-bottom: 1px dashed @border-color-split;
|
|
37
|
+
// padding-bottom: 8px;
|
|
38
|
+
// margin-bottom: 8px;
|
|
39
|
+
display: flex;
|
|
40
|
+
:global {
|
|
41
|
+
.ant-form-item {
|
|
42
|
+
margin-right: 24px;
|
|
43
|
+
}
|
|
44
|
+
.ant-form-item-label label {
|
|
45
|
+
color: @text-color;
|
|
46
|
+
margin-right: 0;
|
|
47
|
+
}
|
|
48
|
+
.ant-form-item-label,
|
|
49
|
+
.ant-form-item-control {
|
|
50
|
+
padding: 0;
|
|
51
|
+
line-height: 32px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.label {
|
|
55
|
+
// color: @heading-color;
|
|
56
|
+
// color: rgb(173,124,89);
|
|
57
|
+
font-size: @font-size-base;
|
|
58
|
+
padding-right: 12px;
|
|
59
|
+
margin-right: 12px;
|
|
60
|
+
// margin-right: 24px;
|
|
61
|
+
background:#F8F8FF;
|
|
62
|
+
// background: rgb(84, 104, 178);
|
|
63
|
+
// opacity: 0.5;
|
|
64
|
+
flex: 0 0 auto;
|
|
65
|
+
text-align: right;
|
|
66
|
+
& > span {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
height: 32px;
|
|
69
|
+
line-height: 32px;
|
|
70
|
+
&:after {
|
|
71
|
+
content: '|';
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
// border-radius: 2px;
|
|
75
|
+
& > a {
|
|
76
|
+
color: @heading-color;
|
|
77
|
+
// color: rgb(255, 255, 255);
|
|
78
|
+
display: inline-block;
|
|
79
|
+
height: 32px;
|
|
80
|
+
line-height: 32px;
|
|
81
|
+
// width: 100%;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.content {
|
|
86
|
+
flex: 1 1 0;
|
|
87
|
+
:global {
|
|
88
|
+
.ant-form-item:last-child {
|
|
89
|
+
margin-right: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.standardFormRowLast {
|
|
96
|
+
border: none;
|
|
97
|
+
padding-bottom: 0;
|
|
98
|
+
margin-bottom: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.standardFormRowBlock {
|
|
102
|
+
:global {
|
|
103
|
+
.ant-form-item,
|
|
104
|
+
div.ant-form-item-control-wrapper {
|
|
105
|
+
display: block;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.standardFormRowGrid {
|
|
111
|
+
:global {
|
|
112
|
+
.ant-form-item,
|
|
113
|
+
div.ant-form-item-control-wrapper {
|
|
114
|
+
display: block;
|
|
115
|
+
}
|
|
116
|
+
.ant-form-item-label {
|
|
117
|
+
float: left;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
package/lib/Easy3wTree/index.js
CHANGED
|
@@ -47,22 +47,22 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
|
|
|
47
47
|
var Search = _input2['default'].Search;
|
|
48
48
|
var TreeNode = _tree2['default'].TreeNode;
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* props参数
|
|
52
|
-
* arrData: 树数据源 必须 Array
|
|
53
|
-
* objTreeProps: 树配置参数 非必须 Object
|
|
54
|
-
* 另加属性:touchRenderNode, titleField = 'title', countField = 'count', keyField = 'key'
|
|
55
|
-
* touchRenderNode: 自定义渲染节点 非必须 Function 返回值:{ title, count, key, isLeaf, expanded, selected, loading }
|
|
56
|
-
* titleField: 节点标题字段 非必须 String 默认值:'title'
|
|
57
|
-
* countField: 节点计数字段 非必须 String 默认值:'count'
|
|
58
|
-
* keyField: 节点key字段 非必须 String 默认值:'key'
|
|
59
|
-
* objSearchProps: 搜索配置参数 非必须 Object
|
|
60
|
-
* 另加属性:searchFlag = true, onSearchCallback
|
|
61
|
-
* searchFlag: 是否开启搜索功能 非必须 Boolean 默认值:true
|
|
62
|
-
* onSearchCallback: 搜索回调函数 非必须 Function 返回值:(arrDataVisible, searchValue, expandedKeys)
|
|
63
|
-
* bidPureComponent: 绑定组件方法 非必须 Function
|
|
64
|
-
* intUpdateCount: 数据更新次数 必须 Number
|
|
65
|
-
* selectedKeys: 选中节点key 非必须 Array
|
|
50
|
+
/**
|
|
51
|
+
* props参数
|
|
52
|
+
* arrData: 树数据源 必须 Array
|
|
53
|
+
* objTreeProps: 树配置参数 非必须 Object
|
|
54
|
+
* 另加属性:touchRenderNode, titleField = 'title', countField = 'count', keyField = 'key'
|
|
55
|
+
* touchRenderNode: 自定义渲染节点 非必须 Function 返回值:{ title, count, key, isLeaf, expanded, selected, loading }
|
|
56
|
+
* titleField: 节点标题字段 非必须 String 默认值:'title'
|
|
57
|
+
* countField: 节点计数字段 非必须 String 默认值:'count'
|
|
58
|
+
* keyField: 节点key字段 非必须 String 默认值:'key'
|
|
59
|
+
* objSearchProps: 搜索配置参数 非必须 Object
|
|
60
|
+
* 另加属性:searchFlag = true, onSearchCallback
|
|
61
|
+
* searchFlag: 是否开启搜索功能 非必须 Boolean 默认值:true
|
|
62
|
+
* onSearchCallback: 搜索回调函数 非必须 Function 返回值:(arrDataVisible, searchValue, expandedKeys)
|
|
63
|
+
* bidPureComponent: 绑定组件方法 非必须 Function
|
|
64
|
+
* intUpdateCount: 数据更新次数 必须 Number
|
|
65
|
+
* selectedKeys: 选中节点key 非必须 Array
|
|
66
66
|
*/
|
|
67
67
|
|
|
68
68
|
var Easy3wTree = function (_Component) {
|
|
@@ -25,6 +25,7 @@ exports['default'] = {
|
|
|
25
25
|
// 'abc', // ❌ 非法
|
|
26
26
|
// ];
|
|
27
27
|
strictNumberRegex: /^-?(0|[1-9][0-9]*)(\.[0-9]*)?$/ // 匹配严格数字, 整数、浮点数、负数, 但不包括科学计数法
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
strAcceptDefault: '.msg,.rplib,.xls,.doc,.jpg,.pdf,.png,.zip,.bmp,.rar,.txt,.docx,.ico,.bid,.xlsx,.jpeg,.json,.xml,.ebid,.dwg,.pptx,.xmind,.xps,.crx,.7z,.ppt,.svg,.pdm,.xlsm,.vsd,.gif,.tif,.docm,.csv,.ttf,.wps,.psd,.mp4,.tiff,.rtf,.tlb,.xlsb,.wps,.et'
|
|
29
30
|
};
|
|
30
31
|
module.exports = exports['default'];
|
|
@@ -82,7 +82,8 @@ var _Easy3wUIConfig2 = _interopRequireDefault(_Easy3wUIConfig);
|
|
|
82
82
|
|
|
83
83
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
84
84
|
|
|
85
|
-
var objPreviewFileDefault = _Easy3wUIConfig2['default'].objPreviewFileDefault
|
|
85
|
+
var objPreviewFileDefault = _Easy3wUIConfig2['default'].objPreviewFileDefault,
|
|
86
|
+
strAcceptDefault = _Easy3wUIConfig2['default'].strAcceptDefault;
|
|
86
87
|
|
|
87
88
|
// 文件上传配置
|
|
88
89
|
|
|
@@ -246,7 +247,7 @@ var Easy3wUpload = function (_Component) {
|
|
|
246
247
|
|
|
247
248
|
var fileNameArr = name.toLowerCase().split('.');
|
|
248
249
|
var fileType = fileNameArr[fileNameArr.length - 1];
|
|
249
|
-
var acceptDefault = '
|
|
250
|
+
var acceptDefault = strAcceptDefault || '';
|
|
250
251
|
if (accept && accept.length > 0) {
|
|
251
252
|
acceptDefault = accept;
|
|
252
253
|
}
|
|
@@ -307,7 +308,7 @@ var Easy3wUpload = function (_Component) {
|
|
|
307
308
|
var correctTypeFlag = true;
|
|
308
309
|
var fileNameArr = name.toLowerCase().split('.');
|
|
309
310
|
var fileType = fileNameArr[fileNameArr.length - 1];
|
|
310
|
-
var acceptDefault = '
|
|
311
|
+
var acceptDefault = strAcceptDefault || '';
|
|
311
312
|
if (name.length > 100) {
|
|
312
313
|
return false;
|
|
313
314
|
}
|
|
@@ -92,7 +92,8 @@ var _Easy3wUIConfig2 = _interopRequireDefault(_Easy3wUIConfig);
|
|
|
92
92
|
|
|
93
93
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
94
94
|
|
|
95
|
-
var objPreviewFileDefault = _Easy3wUIConfig2['default'].objPreviewFileDefault
|
|
95
|
+
var objPreviewFileDefault = _Easy3wUIConfig2['default'].objPreviewFileDefault,
|
|
96
|
+
strAcceptDefault = _Easy3wUIConfig2['default'].strAcceptDefault;
|
|
96
97
|
|
|
97
98
|
// 文件上传配置
|
|
98
99
|
|
|
@@ -297,10 +298,12 @@ var BigFileUpload = function (_Component) {
|
|
|
297
298
|
var fileTypePass = true;
|
|
298
299
|
var fileNameArr = file.name.toLowerCase().split('.');
|
|
299
300
|
var fileType = fileNameArr[fileNameArr.length - 1];
|
|
301
|
+
var acceptDefault = strAcceptDefault || '';
|
|
300
302
|
if (accept && accept.length > 0) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
303
|
+
acceptDefault = accept;
|
|
304
|
+
}
|
|
305
|
+
if (acceptDefault.indexOf(fileType) < 0) {
|
|
306
|
+
fileTypePass = false;
|
|
304
307
|
}
|
|
305
308
|
if (!fileTypePass) {
|
|
306
309
|
_modal2['default'].error({
|
|
@@ -82,7 +82,8 @@ var _Easy3wUIConfig2 = _interopRequireDefault(_Easy3wUIConfig);
|
|
|
82
82
|
|
|
83
83
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
84
84
|
|
|
85
|
-
var objPreviewFileDefault = _Easy3wUIConfig2['default'].objPreviewFileDefault
|
|
85
|
+
var objPreviewFileDefault = _Easy3wUIConfig2['default'].objPreviewFileDefault,
|
|
86
|
+
strAcceptDefault = _Easy3wUIConfig2['default'].strAcceptDefault;
|
|
86
87
|
|
|
87
88
|
// const { previewFileUrl, previewFileFlag, previewFileType } = objPreviewFile || {};
|
|
88
89
|
// 文件上传配置
|
|
@@ -254,7 +255,7 @@ var Easy3wUploadM = function (_Component) {
|
|
|
254
255
|
|
|
255
256
|
var fileNameArr = name.toLowerCase().split('.');
|
|
256
257
|
var fileType = fileNameArr[fileNameArr.length - 1];
|
|
257
|
-
var acceptDefault = '
|
|
258
|
+
var acceptDefault = strAcceptDefault || '';
|
|
258
259
|
if (name.length > 100) {
|
|
259
260
|
_modal2['default'].info({
|
|
260
261
|
style: { top: '38%' },
|
|
@@ -317,7 +318,7 @@ var Easy3wUploadM = function (_Component) {
|
|
|
317
318
|
var correctTypeFlag = true;
|
|
318
319
|
var fileNameArr = name.toLowerCase().split('.');
|
|
319
320
|
var fileType = fileNameArr[fileNameArr.length - 1];
|
|
320
|
-
var acceptDefault = '
|
|
321
|
+
var acceptDefault = strAcceptDefault || '';
|
|
321
322
|
if (name.length > 100) {
|
|
322
323
|
return false;
|
|
323
324
|
}
|
package/package.json
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "easy3wui",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "easy3wui components for react",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"react",
|
|
7
|
-
"easy3wui"
|
|
8
|
-
],
|
|
9
|
-
"homepage": "https://github.com/alsmill/easy3wUI",
|
|
10
|
-
"maintainers": [
|
|
11
|
-
"chenc@easy3w.com",
|
|
12
|
-
"zhanggl@easy3w.com"
|
|
13
|
-
],
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git@github.com:alsmill/easy3wUI.git"
|
|
17
|
-
},
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/alsmill/easy3wUI/issues"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"lib",
|
|
23
|
-
"assets/*.css"
|
|
24
|
-
],
|
|
25
|
-
"overrides": {
|
|
26
|
-
"graceful-fs": "^4.2.11"
|
|
27
|
-
},
|
|
28
|
-
"main": "lib/index",
|
|
29
|
-
"license": "上海同在互联网科技有限公司 版权所有",
|
|
30
|
-
"config": {
|
|
31
|
-
"port": 8006,
|
|
32
|
-
"entry": {
|
|
33
|
-
"easy3wui": [
|
|
34
|
-
"./assets/index.less",
|
|
35
|
-
"./src/index.js"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "rc-tools run build",
|
|
41
|
-
"compile": "rc-tools run compile --babel-runtime",
|
|
42
|
-
"gh-pages": "rc-tools run gh-pages",
|
|
43
|
-
"start": "rc-tools --max_old_space_size=4096 run server",
|
|
44
|
-
"pub": "rc-tools run pub",
|
|
45
|
-
"lint": "rc-tools run lint",
|
|
46
|
-
"karma": "rc-test run karma",
|
|
47
|
-
"saucelabs": "rc-test run saucelabs",
|
|
48
|
-
"test": "rc-test run test",
|
|
49
|
-
"chrome-test": "rc-test run chrome-test",
|
|
50
|
-
"coverage": "rc-test run coverage"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"axios": "^0.17.1",
|
|
54
|
-
"babel-eslint": "^8.0.1",
|
|
55
|
-
"babel-jest": "^21.0.0",
|
|
56
|
-
"babel-plugin-dva-hmr": "^0.3.2",
|
|
57
|
-
"babel-plugin-import": "^1.2.1",
|
|
58
|
-
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
59
|
-
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
|
60
|
-
"babel-plugin-transform-runtime": "^6.9.0",
|
|
61
|
-
"babel-preset-env": "^1.6.1",
|
|
62
|
-
"babel-preset-react": "^6.24.1",
|
|
63
|
-
"babel-runtime": "^6.26.0",
|
|
64
|
-
"cross-env": "^5.1.1",
|
|
65
|
-
"cross-port-killer": "^1.0.1",
|
|
66
|
-
"dva": "^2.1.0",
|
|
67
|
-
"enzyme": "^3.1.0",
|
|
68
|
-
"enzyme-adapter-react-16": "^1.0.2",
|
|
69
|
-
"eslint": "^4.8.0",
|
|
70
|
-
"eslint-config-airbnb": "^16.0.0",
|
|
71
|
-
"eslint-plugin-babel": "^4.0.0",
|
|
72
|
-
"eslint-plugin-compat": "^2.1.0",
|
|
73
|
-
"eslint-plugin-import": "^2.2.0",
|
|
74
|
-
"eslint-plugin-jsx-a11y": "^6.0.0",
|
|
75
|
-
"eslint-plugin-markdown": "^1.0.0-beta.6",
|
|
76
|
-
"eslint-plugin-react": "^7.0.1",
|
|
77
|
-
"gh-pages": "^1.0.0",
|
|
78
|
-
"husky": "^0.14.3",
|
|
79
|
-
"jest": "^21.0.1",
|
|
80
|
-
"lint-staged": "^4.3.0",
|
|
81
|
-
"mockjs": "^1.0.1-beta3",
|
|
82
|
-
"numeral": "^2.0.6",
|
|
83
|
-
"crypto-js": "4.0.0",
|
|
84
|
-
"pre-commit": "1.x",
|
|
85
|
-
"prettier": "^1.9.0",
|
|
86
|
-
"pro-download": "^1.0.0",
|
|
87
|
-
"prop-types": "^15.5.8",
|
|
88
|
-
"rc-test": "^6.0.8",
|
|
89
|
-
"rc-tools": "^7.0.2",
|
|
90
|
-
"rc-trigger": "^2.2.2",
|
|
91
|
-
"react": "16.8.6",
|
|
92
|
-
"react-container-query": "^0.11.0",
|
|
93
|
-
"react-document-title": "^2.0.3",
|
|
94
|
-
"react-dom": "16.8.6",
|
|
95
|
-
"react-test-renderer": "^16.0.0",
|
|
96
|
-
"redbox-react": "^1.3.2",
|
|
97
|
-
"roadhog": "^2.5.0-beta.4",
|
|
98
|
-
"roadhog-api-doc": "^1.0.3",
|
|
99
|
-
"rollbar": "^2.3.1",
|
|
100
|
-
"stylelint": "^8.1.0",
|
|
101
|
-
"stylelint-config-standard": "^17.0.0"
|
|
102
|
-
},
|
|
103
|
-
"pre-commit": [
|
|
104
|
-
"lint"
|
|
105
|
-
],
|
|
106
|
-
"dependencies": {
|
|
107
|
-
"@hanyk/rc-viewer": "^0.0.3",
|
|
108
|
-
"antd": "3.24.2",
|
|
109
|
-
"braft-editor": "^2.3.8",
|
|
110
|
-
"braft-extensions": "^0.1.1",
|
|
111
|
-
"lodash": "4.17.11",
|
|
112
|
-
"react-images": "^1.0.0",
|
|
113
|
-
"react-number-format": "^4.3.1",
|
|
114
|
-
"react-number-input": "^15.5.1",
|
|
115
|
-
"react-pdf": "^4.0.5",
|
|
116
|
-
"react-zmage": "^0.8.5",
|
|
117
|
-
"spark-md5": "^3.0.0",
|
|
118
|
-
"superagent": "^3.8.3",
|
|
119
|
-
"react-data-grid": "6.0.1",
|
|
120
|
-
"react-data-grid-addons": "6.0.1"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "easy3wui",
|
|
3
|
+
"version": "1.5.87",
|
|
4
|
+
"description": "easy3wui components for react",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"easy3wui"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/alsmill/easy3wUI",
|
|
10
|
+
"maintainers": [
|
|
11
|
+
"chenc@easy3w.com",
|
|
12
|
+
"zhanggl@easy3w.com"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git@github.com:alsmill/easy3wUI.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/alsmill/easy3wUI/issues"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"lib",
|
|
23
|
+
"assets/*.css"
|
|
24
|
+
],
|
|
25
|
+
"overrides": {
|
|
26
|
+
"graceful-fs": "^4.2.11"
|
|
27
|
+
},
|
|
28
|
+
"main": "lib/index",
|
|
29
|
+
"license": "上海同在互联网科技有限公司 版权所有",
|
|
30
|
+
"config": {
|
|
31
|
+
"port": 8006,
|
|
32
|
+
"entry": {
|
|
33
|
+
"easy3wui": [
|
|
34
|
+
"./assets/index.less",
|
|
35
|
+
"./src/index.js"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "rc-tools run build",
|
|
41
|
+
"compile": "rc-tools run compile --babel-runtime",
|
|
42
|
+
"gh-pages": "rc-tools run gh-pages",
|
|
43
|
+
"start": "rc-tools --max_old_space_size=4096 run server",
|
|
44
|
+
"pub": "rc-tools run pub",
|
|
45
|
+
"lint": "rc-tools run lint",
|
|
46
|
+
"karma": "rc-test run karma",
|
|
47
|
+
"saucelabs": "rc-test run saucelabs",
|
|
48
|
+
"test": "rc-test run test",
|
|
49
|
+
"chrome-test": "rc-test run chrome-test",
|
|
50
|
+
"coverage": "rc-test run coverage"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"axios": "^0.17.1",
|
|
54
|
+
"babel-eslint": "^8.0.1",
|
|
55
|
+
"babel-jest": "^21.0.0",
|
|
56
|
+
"babel-plugin-dva-hmr": "^0.3.2",
|
|
57
|
+
"babel-plugin-import": "^1.2.1",
|
|
58
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
59
|
+
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
|
60
|
+
"babel-plugin-transform-runtime": "^6.9.0",
|
|
61
|
+
"babel-preset-env": "^1.6.1",
|
|
62
|
+
"babel-preset-react": "^6.24.1",
|
|
63
|
+
"babel-runtime": "^6.26.0",
|
|
64
|
+
"cross-env": "^5.1.1",
|
|
65
|
+
"cross-port-killer": "^1.0.1",
|
|
66
|
+
"dva": "^2.1.0",
|
|
67
|
+
"enzyme": "^3.1.0",
|
|
68
|
+
"enzyme-adapter-react-16": "^1.0.2",
|
|
69
|
+
"eslint": "^4.8.0",
|
|
70
|
+
"eslint-config-airbnb": "^16.0.0",
|
|
71
|
+
"eslint-plugin-babel": "^4.0.0",
|
|
72
|
+
"eslint-plugin-compat": "^2.1.0",
|
|
73
|
+
"eslint-plugin-import": "^2.2.0",
|
|
74
|
+
"eslint-plugin-jsx-a11y": "^6.0.0",
|
|
75
|
+
"eslint-plugin-markdown": "^1.0.0-beta.6",
|
|
76
|
+
"eslint-plugin-react": "^7.0.1",
|
|
77
|
+
"gh-pages": "^1.0.0",
|
|
78
|
+
"husky": "^0.14.3",
|
|
79
|
+
"jest": "^21.0.1",
|
|
80
|
+
"lint-staged": "^4.3.0",
|
|
81
|
+
"mockjs": "^1.0.1-beta3",
|
|
82
|
+
"numeral": "^2.0.6",
|
|
83
|
+
"crypto-js": "4.0.0",
|
|
84
|
+
"pre-commit": "1.x",
|
|
85
|
+
"prettier": "^1.9.0",
|
|
86
|
+
"pro-download": "^1.0.0",
|
|
87
|
+
"prop-types": "^15.5.8",
|
|
88
|
+
"rc-test": "^6.0.8",
|
|
89
|
+
"rc-tools": "^7.0.2",
|
|
90
|
+
"rc-trigger": "^2.2.2",
|
|
91
|
+
"react": "16.8.6",
|
|
92
|
+
"react-container-query": "^0.11.0",
|
|
93
|
+
"react-document-title": "^2.0.3",
|
|
94
|
+
"react-dom": "16.8.6",
|
|
95
|
+
"react-test-renderer": "^16.0.0",
|
|
96
|
+
"redbox-react": "^1.3.2",
|
|
97
|
+
"roadhog": "^2.5.0-beta.4",
|
|
98
|
+
"roadhog-api-doc": "^1.0.3",
|
|
99
|
+
"rollbar": "^2.3.1",
|
|
100
|
+
"stylelint": "^8.1.0",
|
|
101
|
+
"stylelint-config-standard": "^17.0.0"
|
|
102
|
+
},
|
|
103
|
+
"pre-commit": [
|
|
104
|
+
"lint"
|
|
105
|
+
],
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"@hanyk/rc-viewer": "^0.0.3",
|
|
108
|
+
"antd": "3.24.2",
|
|
109
|
+
"braft-editor": "^2.3.8",
|
|
110
|
+
"braft-extensions": "^0.1.1",
|
|
111
|
+
"lodash": "4.17.11",
|
|
112
|
+
"react-images": "^1.0.0",
|
|
113
|
+
"react-number-format": "^4.3.1",
|
|
114
|
+
"react-number-input": "^15.5.1",
|
|
115
|
+
"react-pdf": "^4.0.5",
|
|
116
|
+
"react-zmage": "^0.8.5",
|
|
117
|
+
"spark-md5": "^3.0.0",
|
|
118
|
+
"superagent": "^3.8.3",
|
|
119
|
+
"react-data-grid": "6.0.1",
|
|
120
|
+
"react-data-grid-addons": "6.0.1"
|
|
121
|
+
}
|
|
122
|
+
}
|