fan-standard-comp 1.1.4 → 1.1.8
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 +144 -80
- package/dist/fan-standard-comp.umd.js +148 -143
- package/es/components/ButtonGroup/index.js +4 -4
- package/es/components/ButtonGroup/index.less +20 -24
- package/es/components/FormComp/EditButton.js +5 -5
- package/es/components/FormComp/FieldComponent/RefactorTreeSelect.js +6 -4
- package/es/components/FormComp/FieldComponent/index.js +78 -71
- package/es/components/FormComp/FieldComponent/index.less +39 -37
- package/es/components/FormComp/FieldComponent/setReadonlyValues.js +86 -30
- package/es/components/FormComp/RenderItemGroup/index.js +29 -15
- package/es/components/FormComp/SearchSelect/index.js +6 -4
- package/es/components/FormComp/Uploader/index.js +108 -97
- package/es/components/FormComp/Uploader/index.less +11 -4
- package/es/components/FormComp/Uploader/util.js +1 -1
- package/es/components/FormComp/VarTemplate/index.js +16 -18
- package/es/components/NavLeafScroll/index.js +4 -4
- package/es/components/NavLeafScroll/style/index.less +102 -105
- package/es/components/PlanarViewer/index.js +17 -19
- package/es/components/PlanarViewer/index.less +0 -2
- package/es/components/RefactorTree/index.js +7 -5
- package/es/components/RefactorTree/index.less +21 -18
- package/es/components/SpecIconFont/fonts/demo.css +539 -0
- package/es/components/SpecIconFont/fonts/demo_index.html +1317 -0
- package/es/components/SpecIconFont/fonts/iconfont.css +213 -0
- package/es/components/SpecIconFont/fonts/iconfont.js +47 -0
- package/es/components/SpecIconFont/fonts/iconfont.json +352 -0
- package/es/components/SpecIconFont/fonts/iconfont.svg +117 -0
- package/es/components/SpecIconFont/fonts/iconfont.ttf +0 -0
- package/es/components/SpecIconFont/fonts/iconfont.woff +0 -0
- package/es/components/SpecIconFont/fonts/iconfont.woff2 +0 -0
- package/es/components/SpecIconFont/index.js +11 -5
- package/es/components/SpecIconFont/index.less +126 -100
- package/es/components/SpecIconFont/style/iconfont.less +211 -0
- package/es/components/SpecIconFont/style/index.less +97 -0
- package/es/components/StandardFilter/index.js +56 -29
- package/es/components/StandardFilter/index.less +49 -49
- package/es/components/StandardForm/index.js +6 -6
- package/es/components/StandardModal/index.js +65 -56
- package/es/components/StandardModal/index.less +0 -2
- package/es/components/StandardPanel/index.js +1 -1
- package/es/components/StandardPanel/index.less +128 -107
- package/es/components/StandardTable/index.js +7 -5
- package/es/components/StandardTable/index.less +200 -170
- package/es/components/utils/filterPermission.js +2 -2
- package/es/data/index.js +4 -4
- package/es/index.js +40 -26
- package/lib/components/ButtonGroup/index.js +4 -4
- package/lib/components/ButtonGroup/index.less +20 -24
- package/lib/components/FormComp/EditButton.js +5 -5
- package/lib/components/FormComp/FieldComponent/RefactorTreeSelect.js +6 -4
- package/lib/components/FormComp/FieldComponent/index.js +78 -71
- package/lib/components/FormComp/FieldComponent/index.less +39 -37
- package/lib/components/FormComp/FieldComponent/setReadonlyValues.js +86 -30
- package/lib/components/FormComp/RenderItemGroup/index.js +29 -15
- package/lib/components/FormComp/SearchSelect/index.js +6 -4
- package/lib/components/FormComp/Uploader/index.js +108 -97
- package/lib/components/FormComp/Uploader/index.less +11 -4
- package/lib/components/FormComp/Uploader/util.js +1 -1
- package/lib/components/FormComp/VarTemplate/index.js +16 -18
- package/lib/components/NavLeafScroll/index.js +4 -4
- package/lib/components/NavLeafScroll/style/index.less +102 -105
- package/lib/components/PlanarViewer/index.js +17 -19
- package/lib/components/PlanarViewer/index.less +0 -2
- package/lib/components/RefactorTree/index.js +7 -5
- package/lib/components/RefactorTree/index.less +21 -18
- package/lib/components/SpecIconFont/fonts/demo.css +539 -0
- package/lib/components/SpecIconFont/fonts/demo_index.html +1317 -0
- package/lib/components/SpecIconFont/fonts/iconfont.css +213 -0
- package/lib/components/SpecIconFont/fonts/iconfont.js +47 -0
- package/lib/components/SpecIconFont/fonts/iconfont.json +352 -0
- package/lib/components/SpecIconFont/fonts/iconfont.svg +117 -0
- package/lib/components/SpecIconFont/fonts/iconfont.ttf +0 -0
- package/lib/components/SpecIconFont/fonts/iconfont.woff +0 -0
- package/lib/components/SpecIconFont/fonts/iconfont.woff2 +0 -0
- package/lib/components/SpecIconFont/index.js +11 -5
- package/lib/components/SpecIconFont/index.less +126 -100
- package/lib/components/SpecIconFont/style/iconfont.less +211 -0
- package/lib/components/SpecIconFont/style/index.less +97 -0
- package/lib/components/StandardFilter/index.js +56 -29
- package/lib/components/StandardFilter/index.less +49 -49
- package/lib/components/StandardForm/index.js +6 -6
- package/lib/components/StandardModal/index.js +65 -56
- package/lib/components/StandardModal/index.less +0 -2
- package/lib/components/StandardPanel/index.js +1 -1
- package/lib/components/StandardPanel/index.less +128 -107
- package/lib/components/StandardTable/index.js +7 -5
- package/lib/components/StandardTable/index.less +200 -170
- package/lib/components/utils/filterPermission.js +2 -2
- package/lib/data/index.js +4 -4
- package/lib/index.js +40 -26
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -1,113 +1,177 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 使用说明
|
|
3
|
-
route: /
|
|
4
|
-
---
|
|
5
|
-
## 通用组件库
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
集成umi/father工具实现rollup打包
|
|
2
|
+
## 通用组件库1.0
|
|
9
3
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
* 业务开发项目中使用的通用组件
|
|
5
|
+
* 基于 antd3.x ,进行再次封装的组件包
|
|
6
|
+
|
|
7
|
+
### 安装
|
|
8
|
+
```
|
|
9
|
+
$ npm install fan-standard-comp --save
|
|
10
|
+
```
|
|
11
|
+
或
|
|
12
|
+
```
|
|
13
|
+
$ yarn add fan-standard-comp
|
|
14
|
+
```
|
|
13
15
|
|
|
14
16
|
### 更新日志
|
|
15
17
|
|
|
16
|
-
## 1.
|
|
17
|
-
`
|
|
18
|
+
## 1.1.8
|
|
19
|
+
` 2021-11-25`
|
|
20
|
+
- SpecIcon
|
|
21
|
+
- 修复 `prefix`无值时,不显示前缀
|
|
22
|
+
- 新增 `noPrefix`,不显示前缀
|
|
18
23
|
|
|
19
|
-
- FieldComponent
|
|
20
|
-
- 修复 扩展原始配置参数传入顺序
|
|
21
|
-
|
|
22
|
-
- RenderItemGroup
|
|
23
|
-
- 修复 disabledAll 参数未传入,影响StandardModal的配置全部禁用表单
|
|
24
24
|
|
|
25
|
-
## 1.
|
|
26
|
-
`
|
|
25
|
+
## 1.1.7
|
|
26
|
+
`2021-11-09`
|
|
27
27
|
- StandardFilter
|
|
28
|
-
-
|
|
29
|
-
- 修复
|
|
28
|
+
- 新增 表单控件添加配置`isHide`,用于隐藏控件
|
|
29
|
+
- 修复 控件onChange时,针对`input/radio/textarea`控件更新值为`e.target.value`,触发updateFormFields()
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
`2020-04-17`
|
|
31
|
+
`2021-10-28`
|
|
33
32
|
- StandardFilter
|
|
34
|
-
-
|
|
35
|
-
- 新增
|
|
33
|
+
- 修复 "重置"事件处理修改,原直接设置值为undefined无法满足对象值参数的重置
|
|
34
|
+
- 新增 `confirmText/cancelText`按钮文本配置
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
- 修复 tree-select 渲染参数异常
|
|
41
|
-
- StandardTable
|
|
42
|
-
- 优化 `columns 操作列`配置 `buttonGroup` 支持方法格式,返回数组进行渲染
|
|
36
|
+
- StandardModal
|
|
37
|
+
- RenderItemGroup
|
|
38
|
+
- 优化 调整 弹窗`form`模式下的Row标签应用,替换到`RenderItemGroup`内使用
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
- SpecIcon
|
|
41
|
+
- 更新 图标库
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
`2021-10-22`
|
|
45
|
+
- RenderItemGroup
|
|
46
|
+
- 添加 支持使用`ItemGroup`标签
|
|
47
|
+
|
|
48
|
+
## 1.1.6
|
|
49
|
+
` 2021-09-29`
|
|
50
|
+
- RenderItemGroup
|
|
51
|
+
- 优化 displayLayout为{}时,栅格配置
|
|
52
|
+
|
|
53
|
+
` 2021-10-12`
|
|
48
54
|
- StandardModal
|
|
49
|
-
-
|
|
50
|
-
-
|
|
55
|
+
- 修复 `type='form'`时,若未配置'formItemGroup'则无法获取内部的`form`实例方法
|
|
56
|
+
- 修改 按钮组配置`footerButtonGroup`添加参数`htmlType`
|
|
51
57
|
|
|
52
58
|
|
|
53
|
-
|
|
54
|
-
|
|
59
|
+
` 2021-10-13`
|
|
60
|
+
- Uploader
|
|
61
|
+
- 新增 `limit`参数用于限制上传文件个数(limit>0)
|
|
62
|
+
- 优化 `fieldStatus`禁用与只读时展示的结构
|
|
55
63
|
- FieldComponent
|
|
56
|
-
|
|
57
|
-
- 修复 控件类型为`type=tree-select`,渲染数据异步请求时,值显示为空白
|
|
58
|
-
- 新增 控件类型为`type=select`,新增配置项`selectOptionRender`,可自定义下拉选项展示内容
|
|
64
|
+
- 优化 `select/checkbox/raido/uploader`等控件只读用法
|
|
59
65
|
|
|
60
|
-
## 1.
|
|
61
|
-
`
|
|
66
|
+
## 1.1.5
|
|
67
|
+
` 2021-09-29`
|
|
68
|
+
- RenderItemGroup
|
|
69
|
+
- 优化 `displayLayout`配置优先级低于单个控件`display`的配置
|
|
70
|
+
- 优化 `displayLayout`可分别配置{side: {},block: {}}的栅格
|
|
62
71
|
- FieldComponent
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
- 优化 操作列按钮组配置扩展:禁用\隐藏\授权判断
|
|
69
|
-
- StandardFilter
|
|
70
|
-
- 优化 按钮组配置扩展:禁用\隐藏\授权判断
|
|
71
|
-
## 1.0.52
|
|
72
|
-
` 2020-07-13`
|
|
72
|
+
- 新增 `type=timePikcer`时间控件
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## 1.1.4
|
|
76
|
+
` 2021-06-15`
|
|
73
77
|
- RenderItemGroup
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
- 优化 单个表单控件可配置`fieldStatus`
|
|
79
|
+
- StandardModal
|
|
80
|
+
- 优化 弹窗`sm`下,`block`的栅格配置
|
|
77
81
|
- FieldComponent
|
|
78
|
-
|
|
82
|
+
- 新增 下拉搜索框`selectSearch`
|
|
79
83
|
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
84
|
+
## 1.1.3
|
|
85
|
+
` 2021-05-08`
|
|
86
|
+
- Uploader
|
|
87
|
+
- 优化 上传控件代码
|
|
88
|
+
- StandardTable
|
|
89
|
+
- 优化 操作列按钮组key配置
|
|
90
|
+
- NavLeafScroll
|
|
91
|
+
- 新增 滚动菜单组件
|
|
92
|
+
- StandardPanel
|
|
93
|
+
- 新增 配置按钮组尺寸 `size`
|
|
94
|
+
- 优化 样式,去除最小尺寸样式
|
|
95
|
+
|
|
96
|
+
## 1.1.2
|
|
97
|
+
- filedComponent
|
|
98
|
+
- 修复 `tree-select`节点`disabled, disableCheckbox, selectable, checkable`参数字段传入缺失
|
|
83
99
|
|
|
84
100
|
## 1.1.1
|
|
85
101
|
` 2021-03-10`
|
|
86
102
|
- filedsValueFormat
|
|
87
103
|
- 修复 日期控件`rangePicker`清空数据时,提交表单格式化异常
|
|
88
104
|
|
|
89
|
-
## 1.1.
|
|
90
|
-
-
|
|
91
|
-
|
|
105
|
+
## 1.1.0
|
|
106
|
+
` 2020-08-05`
|
|
107
|
+
- FieldComponent
|
|
108
|
+
- 优化 控件`select`相关的更改事件`onChange(value, Option)`参数返回值 `Option`累加当前选中数据的完整字段
|
|
92
109
|
|
|
110
|
+
` 2021-01-19`
|
|
111
|
+
- StandardForm
|
|
112
|
+
- 新增表单组件
|
|
93
113
|
|
|
94
|
-
## 1.1.3
|
|
95
|
-
` 2021-05-08`
|
|
96
|
-
- Uploader
|
|
97
|
-
- 优化 上传控件代码
|
|
98
|
-
- StandardTable
|
|
99
|
-
- 优化 操作列按钮组key配置
|
|
100
|
-
- NavLeafScroll
|
|
101
|
-
- 新增 滚动菜单组件
|
|
102
|
-
- StandardPanel
|
|
103
|
-
- 新增 配置按钮组尺寸 `size`
|
|
104
|
-
- 优化 样式,去除最小尺寸样式
|
|
105
114
|
|
|
106
|
-
## 1.
|
|
107
|
-
`
|
|
115
|
+
## 1.0.52
|
|
116
|
+
` 2020-07-13`
|
|
108
117
|
- RenderItemGroup
|
|
109
|
-
|
|
118
|
+
- 优化 控件参数配置`display`支持配置值为对象
|
|
119
|
+
|
|
120
|
+
## 1.0.51
|
|
121
|
+
` 2020-05-18`
|
|
122
|
+
- StandardTable
|
|
123
|
+
- 优化 表格列返回值为0时,显示值0
|
|
124
|
+
- 优化 操作列按钮组配置扩展:禁用\隐藏\授权判断
|
|
125
|
+
- StandardFilter
|
|
126
|
+
- 优化 按钮组配置扩展:禁用\隐藏\授权判断
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## 1.0.50
|
|
130
|
+
` 2020-05-13`
|
|
131
|
+
- FieldComponent
|
|
132
|
+
- 优化 控件为禁用状态时, `placeholder`不显示值
|
|
133
|
+
|
|
134
|
+
## 1.0.48,1.0.49
|
|
135
|
+
` 2020-04-28`
|
|
136
|
+
- FieldComponent
|
|
137
|
+
- 修复 控件类型为`type=select`配置`labelInValue`下只读无法显示值
|
|
138
|
+
- 修复 控件类型为`type=tree-select`,渲染数据异步请求时,值显示为空白
|
|
139
|
+
- 新增 控件类型为`type=select`,新增配置项`selectOptionRender`,可自定义下拉选项展示内容
|
|
140
|
+
|
|
141
|
+
## 1.0.47
|
|
142
|
+
` 2020-04-27`
|
|
143
|
+
- FieldComponent
|
|
144
|
+
- 优化 tree-select 可显示完整层级名称配置`showFullLevel`,及对应名称的分割符参数 `separator`
|
|
110
145
|
- StandardModal
|
|
111
|
-
|
|
146
|
+
- 优化 `formItemGroup`配置项目内的 `isHide` 支持方法格式`Function(fieldValues, form)`
|
|
147
|
+
- 优化 `type='tree-select` 可显示完整层级名称配置
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## 1.0.45
|
|
152
|
+
`2020-04-17`
|
|
153
|
+
- StandardFilter
|
|
154
|
+
- 优化 表单项可配置自己定义控件
|
|
155
|
+
- 新增 getFormFields, 获取当前内部控件数据与表单form
|
|
156
|
+
|
|
157
|
+
## 1.0.44
|
|
158
|
+
`2020-04-16`
|
|
159
|
+
- StandardFilter
|
|
160
|
+
- 修复 配置化表单为 日期区间控件(rangePicker/rangeTimePicker)并指定mode=月或年模式时,表单变化更新(使用onPanelChange 事件触发)
|
|
161
|
+
- 修复 搜索结果提交传值针对"日期控件格式进行转换"
|
|
162
|
+
|
|
163
|
+
## 1.0.46
|
|
164
|
+
` 2020-04-21`
|
|
165
|
+
- FieldComponent
|
|
166
|
+
- 修复 tree-select 渲染参数异常
|
|
167
|
+
- StandardTable
|
|
168
|
+
- 优化 `columns 操作列`配置 `buttonGroup` 支持方法格式,返回数组进行渲染
|
|
169
|
+
|
|
170
|
+
## 1.0.43
|
|
171
|
+
`2020-04-16`
|
|
172
|
+
|
|
112
173
|
- FieldComponent
|
|
113
|
-
|
|
174
|
+
- 修复 扩展原始配置参数传入顺序
|
|
175
|
+
|
|
176
|
+
- RenderItemGroup
|
|
177
|
+
- 修复 disabledAll 参数未传入,影响StandardModal的配置全部禁用表单
|