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.
Files changed (91) hide show
  1. package/Readme.md +144 -80
  2. package/dist/fan-standard-comp.umd.js +148 -143
  3. package/es/components/ButtonGroup/index.js +4 -4
  4. package/es/components/ButtonGroup/index.less +20 -24
  5. package/es/components/FormComp/EditButton.js +5 -5
  6. package/es/components/FormComp/FieldComponent/RefactorTreeSelect.js +6 -4
  7. package/es/components/FormComp/FieldComponent/index.js +78 -71
  8. package/es/components/FormComp/FieldComponent/index.less +39 -37
  9. package/es/components/FormComp/FieldComponent/setReadonlyValues.js +86 -30
  10. package/es/components/FormComp/RenderItemGroup/index.js +29 -15
  11. package/es/components/FormComp/SearchSelect/index.js +6 -4
  12. package/es/components/FormComp/Uploader/index.js +108 -97
  13. package/es/components/FormComp/Uploader/index.less +11 -4
  14. package/es/components/FormComp/Uploader/util.js +1 -1
  15. package/es/components/FormComp/VarTemplate/index.js +16 -18
  16. package/es/components/NavLeafScroll/index.js +4 -4
  17. package/es/components/NavLeafScroll/style/index.less +102 -105
  18. package/es/components/PlanarViewer/index.js +17 -19
  19. package/es/components/PlanarViewer/index.less +0 -2
  20. package/es/components/RefactorTree/index.js +7 -5
  21. package/es/components/RefactorTree/index.less +21 -18
  22. package/es/components/SpecIconFont/fonts/demo.css +539 -0
  23. package/es/components/SpecIconFont/fonts/demo_index.html +1317 -0
  24. package/es/components/SpecIconFont/fonts/iconfont.css +213 -0
  25. package/es/components/SpecIconFont/fonts/iconfont.js +47 -0
  26. package/es/components/SpecIconFont/fonts/iconfont.json +352 -0
  27. package/es/components/SpecIconFont/fonts/iconfont.svg +117 -0
  28. package/es/components/SpecIconFont/fonts/iconfont.ttf +0 -0
  29. package/es/components/SpecIconFont/fonts/iconfont.woff +0 -0
  30. package/es/components/SpecIconFont/fonts/iconfont.woff2 +0 -0
  31. package/es/components/SpecIconFont/index.js +11 -5
  32. package/es/components/SpecIconFont/index.less +126 -100
  33. package/es/components/SpecIconFont/style/iconfont.less +211 -0
  34. package/es/components/SpecIconFont/style/index.less +97 -0
  35. package/es/components/StandardFilter/index.js +56 -29
  36. package/es/components/StandardFilter/index.less +49 -49
  37. package/es/components/StandardForm/index.js +6 -6
  38. package/es/components/StandardModal/index.js +65 -56
  39. package/es/components/StandardModal/index.less +0 -2
  40. package/es/components/StandardPanel/index.js +1 -1
  41. package/es/components/StandardPanel/index.less +128 -107
  42. package/es/components/StandardTable/index.js +7 -5
  43. package/es/components/StandardTable/index.less +200 -170
  44. package/es/components/utils/filterPermission.js +2 -2
  45. package/es/data/index.js +4 -4
  46. package/es/index.js +40 -26
  47. package/lib/components/ButtonGroup/index.js +4 -4
  48. package/lib/components/ButtonGroup/index.less +20 -24
  49. package/lib/components/FormComp/EditButton.js +5 -5
  50. package/lib/components/FormComp/FieldComponent/RefactorTreeSelect.js +6 -4
  51. package/lib/components/FormComp/FieldComponent/index.js +78 -71
  52. package/lib/components/FormComp/FieldComponent/index.less +39 -37
  53. package/lib/components/FormComp/FieldComponent/setReadonlyValues.js +86 -30
  54. package/lib/components/FormComp/RenderItemGroup/index.js +29 -15
  55. package/lib/components/FormComp/SearchSelect/index.js +6 -4
  56. package/lib/components/FormComp/Uploader/index.js +108 -97
  57. package/lib/components/FormComp/Uploader/index.less +11 -4
  58. package/lib/components/FormComp/Uploader/util.js +1 -1
  59. package/lib/components/FormComp/VarTemplate/index.js +16 -18
  60. package/lib/components/NavLeafScroll/index.js +4 -4
  61. package/lib/components/NavLeafScroll/style/index.less +102 -105
  62. package/lib/components/PlanarViewer/index.js +17 -19
  63. package/lib/components/PlanarViewer/index.less +0 -2
  64. package/lib/components/RefactorTree/index.js +7 -5
  65. package/lib/components/RefactorTree/index.less +21 -18
  66. package/lib/components/SpecIconFont/fonts/demo.css +539 -0
  67. package/lib/components/SpecIconFont/fonts/demo_index.html +1317 -0
  68. package/lib/components/SpecIconFont/fonts/iconfont.css +213 -0
  69. package/lib/components/SpecIconFont/fonts/iconfont.js +47 -0
  70. package/lib/components/SpecIconFont/fonts/iconfont.json +352 -0
  71. package/lib/components/SpecIconFont/fonts/iconfont.svg +117 -0
  72. package/lib/components/SpecIconFont/fonts/iconfont.ttf +0 -0
  73. package/lib/components/SpecIconFont/fonts/iconfont.woff +0 -0
  74. package/lib/components/SpecIconFont/fonts/iconfont.woff2 +0 -0
  75. package/lib/components/SpecIconFont/index.js +11 -5
  76. package/lib/components/SpecIconFont/index.less +126 -100
  77. package/lib/components/SpecIconFont/style/iconfont.less +211 -0
  78. package/lib/components/SpecIconFont/style/index.less +97 -0
  79. package/lib/components/StandardFilter/index.js +56 -29
  80. package/lib/components/StandardFilter/index.less +49 -49
  81. package/lib/components/StandardForm/index.js +6 -6
  82. package/lib/components/StandardModal/index.js +65 -56
  83. package/lib/components/StandardModal/index.less +0 -2
  84. package/lib/components/StandardPanel/index.js +1 -1
  85. package/lib/components/StandardPanel/index.less +128 -107
  86. package/lib/components/StandardTable/index.js +7 -5
  87. package/lib/components/StandardTable/index.less +200 -170
  88. package/lib/components/utils/filterPermission.js +2 -2
  89. package/lib/data/index.js +4 -4
  90. package/lib/index.js +40 -26
  91. 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
- $ npm run build
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.0.43
17
- `2020-04-16`
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.0.44
26
- `2020-04-16`
25
+ ## 1.1.7
26
+ `2021-11-09`
27
27
  - StandardFilter
28
- - 修复 配置化表单为 日期区间控件(rangePicker/rangeTimePicker)并指定mode=月或年模式时,表单变化更新(使用onPanelChange 事件触发)
29
- - 修复 搜索结果提交传值针对"日期控件格式进行转换"
28
+ - 新增 表单控件添加配置`isHide`,用于隐藏控件
29
+ - 修复 控件onChange时,针对`input/radio/textarea`控件更新值为`e.target.value`,触发updateFormFields()
30
30
 
31
- ## 1.0.45
32
- `2020-04-17`
31
+ `2021-10-28`
33
32
  - StandardFilter
34
- - 优化 表单项可配置自己定义控件
35
- - 新增 getFormFields, 获取当前内部控件数据与表单form
33
+ - 修复 "重置"事件处理修改,原直接设置值为undefined无法满足对象值参数的重置
34
+ - 新增 `confirmText/cancelText`按钮文本配置
36
35
 
37
- ## 1.0.46
38
- ` 2020-04-21`
39
- - FieldComponent
40
- - 修复 tree-select 渲染参数异常
41
- - StandardTable
42
- - 优化 `columns 操作列`配置 `buttonGroup` 支持方法格式,返回数组进行渲染
36
+ - StandardModal
37
+ - RenderItemGroup
38
+ - 优化 调整 弹窗`form`模式下的Row标签应用,替换到`RenderItemGroup`内使用
43
39
 
44
- ## 1.0.47
45
- ` 2020-04-27`
46
- - FieldComponent
47
- - 优化 tree-select 可显示完整层级名称配置`showFullLevel`,及对应名称的分割符参数 `separator`
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
- - 优化 `formItemGroup`配置项目内的 `isHide` 支持方法格式`Function(fieldValues, form)`
50
- - 优化 `type='tree-select` 可显示完整层级名称配置
55
+ - 修复 `type='form'`时,若未配置'formItemGroup'则无法获取内部的`form`实例方法
56
+ - 修改 按钮组配置`footerButtonGroup`添加参数`htmlType`
51
57
 
52
58
 
53
- ## 1.0.48,1.0.49
54
- ` 2020-04-28`
59
+ ` 2021-10-13`
60
+ - Uploader
61
+ - 新增 `limit`参数用于限制上传文件个数(limit>0)
62
+ - 优化 `fieldStatus`禁用与只读时展示的结构
55
63
  - FieldComponent
56
- - 修复 控件类型为`type=select`配置`labelInValue`下只读无法显示值
57
- - 修复 控件类型为`type=tree-select`,渲染数据异步请求时,值显示为空白
58
- - 新增 控件类型为`type=select`,新增配置项`selectOptionRender`,可自定义下拉选项展示内容
64
+ - 优化 `select/checkbox/raido/uploader`等控件只读用法
59
65
 
60
- ## 1.0.50
61
- ` 2020-05-13`
66
+ ## 1.1.5
67
+ ` 2021-09-29`
68
+ - RenderItemGroup
69
+ - 优化 `displayLayout`配置优先级低于单个控件`display`的配置
70
+ - 优化 `displayLayout`可分别配置{side: {},block: {}}的栅格
62
71
  - FieldComponent
63
- - 优化 控件为禁用状态时, `placeholder`不显示值
64
- ## 1.0.51
65
- ` 2020-05-18`
66
- - StandardTable
67
- - 优化 表格列返回值为0时,显示值0
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
- - 优化 控件参数配置`display`支持配置值为对象
75
- ## 1.1.0
76
- ` 2020-08-05`
78
+ - 优化 单个表单控件可配置`fieldStatus`
79
+ - StandardModal
80
+ - 优化 弹窗`sm`下,`block`的栅格配置
77
81
  - FieldComponent
78
- - 优化 控件`select`相关的更改事件`onChange(value, Option)`参数返回值 `Option`累加当前选中数据的完整字段
82
+ - 新增 下拉搜索框`selectSearch`
79
83
 
80
- ` 2021-01-19`
81
- - StandardForm
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.2
90
- - filedComponent
91
- - 修复 `tree-select`节点`disabled, disableCheckbox, selectable, checkable`参数字段传入缺失
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.1.4
107
- ` 2021-06-15`
115
+ ## 1.0.52
116
+ ` 2020-07-13`
108
117
  - RenderItemGroup
109
- - 优化 单个表单控件可配置`fieldStatus`
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
- - 优化 弹窗`sm`下,`block`的栅格配置
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
- - 新增 下拉搜索框`selectSearch`
174
+ - 修复 扩展原始配置参数传入顺序
175
+
176
+ - RenderItemGroup
177
+ - 修复 disabledAll 参数未传入,影响StandardModal的配置全部禁用表单