File tree Expand file tree Collapse file tree
src/form-render-core/src/core/RenderField Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.13.15
4+
5+ - [ +] 新增获取隐藏表单值的方法:` form.getHiddenValues() `
6+ - [ +] 补充` display: 'block' ` 类型声明
7+
38## 1.13.12
49
510- [ +] ` description ` 支持 html 字符
Original file line number Diff line number Diff line change @@ -169,36 +169,36 @@ const ExtendedWidget = ({
169169 ) ;
170170} ;
171171
172- const areEqual = ( prev , current ) => {
173- if ( prev . schema && current . schema ) {
174- if ( prev . schema . $id === '#' ) {
175- return false ;
176- }
177- if ( prev . schema . hidden && current . schema . hidden ) {
178- return true ;
179- }
180- }
181- if ( prev . readOnly !== current . readOnly ) {
182- return false ;
183- }
184- if ( prev . disabled !== current . disabled ) {
185- return false ;
186- }
187- if (
188- JSON . stringify ( prev . dependValues ) !== JSON . stringify ( current . dependValues )
189- ) {
190- return false ;
191- }
192- if ( isObjType ( prev . schema ) && isObjType ( current . schema ) ) {
193- return false ;
194- }
195- if (
196- JSON . stringify ( prev . value ) === JSON . stringify ( current . value ) &&
197- JSON . stringify ( prev . schema ) === JSON . stringify ( current . schema )
198- ) {
199- return true ;
200- }
201- return false ;
202- } ;
172+ // const areEqual = (prev, current) => {
173+ // if (prev.schema && current.schema) {
174+ // if (prev.schema.$id === '#') {
175+ // return false;
176+ // }
177+ // if (prev.schema.hidden && current.schema.hidden) {
178+ // return true;
179+ // }
180+ // }
181+ // if (prev.readOnly !== current.readOnly) {
182+ // return false;
183+ // }
184+ // if (prev.disabled !== current.disabled) {
185+ // return false;
186+ // }
187+ // if (
188+ // JSON.stringify(prev.dependValues) !== JSON.stringify(current.dependValues)
189+ // ) {
190+ // return false;
191+ // }
192+ // if (isObjType(prev.schema) && isObjType(current.schema)) {
193+ // return false;
194+ // }
195+ // if (
196+ // JSON.stringify(prev.value) === JSON.stringify(current.value) &&
197+ // JSON.stringify(prev.schema) === JSON.stringify(current.schema)
198+ // ) {
199+ // return true;
200+ // }
201+ // return false;
202+ // };
203203
204204export default React . memo ( ExtendedWidget , areEqual ) ;
You can’t perform that action at this time.
0 commit comments