revert: formItem errorlist animate

pull/5340/head
tangjinzhou 2022-03-15 14:34:25 +08:00
parent 2b8bdf3b1d
commit a8d5dad362
7 changed files with 117 additions and 121 deletions

View File

@ -38,7 +38,7 @@ exports[`renders ./components/comment/demo/editor.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><textarea rows="4" class="ant-input"></textarea></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -51,7 +51,7 @@ exports[`renders ./components/comment/demo/editor.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>

View File

@ -49,7 +49,7 @@ exports[`Comment Comment can be used as editor, user can customize the editor co
<div class="ant-form-item-control-input-content"><textarea rows="4" class="ant-input"></textarea></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -62,7 +62,7 @@ exports[`Comment Comment can be used as editor, user can customize the editor co
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>

View File

@ -37,7 +37,7 @@ export default defineComponent({
colMItem,
);
(transitionGroupProps as any).class = baseClassName.value;
return (
return props.errors?.length ? (
<TransitionGroup {...transitionGroupProps} tag="div">
{props.errors?.map((error: any, index: number) => (
<div
@ -49,7 +49,7 @@ export default defineComponent({
</div>
))}
</TransitionGroup>
);
) : null;
};
},
});

View File

@ -14,7 +14,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-1" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -29,7 +29,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-2" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -44,7 +44,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-3" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -59,7 +59,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-4" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -74,7 +74,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-5" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -89,7 +89,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-6" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -104,7 +104,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-7" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -119,7 +119,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-8" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -134,7 +134,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-9" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -149,7 +149,7 @@ exports[`renders ./components/form/demo/advanced-search.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="placeholder" type="text" id="advanced_search_field-10" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -178,7 +178,7 @@ exports[`renders ./components/form/demo/basic.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="basic_username" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -191,7 +191,7 @@ exports[`renders ./components/form/demo/basic.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-input-affix-wrapper ant-input-password"><!----><input id="basic_password" type="password" class="ant-input"><span class="ant-input-suffix"><!----><!----><span role="img" aria-label="eye-invisible" tabindex="-1" class="anticon anticon-eye-invisible ant-input-password-icon"><svg focusable="false" class="" data-icon="eye-invisible" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"></path><path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"></path></svg></span></span></span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -202,7 +202,7 @@ exports[`renders ./components/form/demo/basic.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><label class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"><span class="ant-checkbox ant-checkbox-checked"><input id="basic_remember" type="checkbox" class="ant-checkbox-input"><span class="ant-checkbox-inner"></span></span><span>Remember me</span></label></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -215,7 +215,7 @@ exports[`renders ./components/form/demo/basic.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -233,7 +233,7 @@ exports[`renders ./components/form/demo/custom-validation.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input autocomplete="off" type="password" id="custom-validation_pass" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -246,7 +246,7 @@ exports[`renders ./components/form/demo/custom-validation.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input autocomplete="off" type="password" id="custom-validation_checkPass" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -264,7 +264,7 @@ exports[`renders ./components/form/demo/custom-validation.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -279,7 +279,7 @@ exports[`renders ./components/form/demo/custom-validation.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -302,7 +302,7 @@ exports[`renders ./components/form/demo/customized-form-controls.vue correctly 1
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -315,7 +315,7 @@ exports[`renders ./components/form/demo/customized-form-controls.vue correctly 1
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -333,7 +333,7 @@ exports[`renders ./components/form/demo/dynamic-form-item.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -348,7 +348,7 @@ exports[`renders ./components/form/demo/dynamic-form-item.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -366,7 +366,7 @@ exports[`renders ./components/form/demo/dynamic-form-items.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -379,7 +379,7 @@ exports[`renders ./components/form/demo/dynamic-form-items.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -406,7 +406,7 @@ exports[`renders ./components/form/demo/dynamic-form-items-complex.vue correctly
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -419,7 +419,7 @@ exports[`renders ./components/form/demo/dynamic-form-items-complex.vue correctly
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -432,7 +432,7 @@ exports[`renders ./components/form/demo/dynamic-form-items-complex.vue correctly
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -450,7 +450,7 @@ exports[`renders ./components/form/demo/dynamic-rule.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="dynamic_rule_username" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -463,7 +463,7 @@ exports[`renders ./components/form/demo/dynamic-rule.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="dynamic_rule_nickname" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -474,7 +474,7 @@ exports[`renders ./components/form/demo/dynamic-rule.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><label class="ant-checkbox-wrapper"><span class="ant-checkbox"><input id="dynamic_rule_checkNick" type="checkbox" class="ant-checkbox-input"><span class="ant-checkbox-inner"></span></span><span>Nickname is required</span></label></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -487,7 +487,7 @@ exports[`renders ./components/form/demo/dynamic-rule.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -505,7 +505,7 @@ exports[`renders ./components/form/demo/form-context.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="form_context_group" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -520,7 +520,7 @@ exports[`renders ./components/form/demo/form-context.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -535,7 +535,7 @@ exports[`renders ./components/form/demo/form-context.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -560,7 +560,7 @@ exports[`renders ./components/form/demo/horizontal-login.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-input-affix-wrapper"><span class="ant-input-prefix"><span role="img" aria-label="user" style="color: rgba(0, 0, 0, 0.25);" class="anticon anticon-user"><svg focusable="false" class="" data-icon="user" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"></path></svg></span></span><input placeholder="Username" type="text" class="ant-input"><span class="ant-input-suffix"><!----><!----></span></span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -571,7 +571,7 @@ exports[`renders ./components/form/demo/horizontal-login.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-input-affix-wrapper"><span class="ant-input-prefix"><span role="img" aria-label="lock" style="color: rgba(0, 0, 0, 0.25);" class="anticon anticon-lock"><svg focusable="false" class="" data-icon="lock" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"></path></svg></span></span><input placeholder="Password" type="password" class="ant-input"><span class="ant-input-suffix"><!----><!----></span></span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -584,7 +584,7 @@ exports[`renders ./components/form/demo/horizontal-login.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -602,7 +602,7 @@ exports[`renders ./components/form/demo/inline-login.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-input-affix-wrapper"><span class="ant-input-prefix"><span role="img" aria-label="user" class="anticon anticon-user site-form-item-icon"><svg focusable="false" class="" data-icon="user" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"></path></svg></span></span><input type="text" id="horizontal_login_username" class="ant-input"><span class="ant-input-suffix"><!----><!----></span></span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -615,7 +615,7 @@ exports[`renders ./components/form/demo/inline-login.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-input-affix-wrapper ant-input-password"><span class="ant-input-prefix"><span role="img" aria-label="lock" class="anticon anticon-lock site-form-item-icon"><svg focusable="false" class="" data-icon="lock" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"></path></svg></span></span><input id="horizontal_login_password" type="password" class="ant-input"><span class="ant-input-suffix"><!----><!----><span role="img" aria-label="eye-invisible" tabindex="-1" class="anticon anticon-eye-invisible ant-input-password-icon"><svg focusable="false" class="" data-icon="eye-invisible" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"></path><path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"></path></svg></span></span></span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -628,7 +628,7 @@ exports[`renders ./components/form/demo/inline-login.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -646,7 +646,7 @@ exports[`renders ./components/form/demo/lable-width.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -663,7 +663,7 @@ exports[`renders ./components/form/demo/lable-width.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -678,7 +678,7 @@ exports[`renders ./components/form/demo/lable-width.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -693,7 +693,7 @@ exports[`renders ./components/form/demo/lable-width.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -706,7 +706,7 @@ exports[`renders ./components/form/demo/lable-width.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="textarea" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -721,7 +721,7 @@ exports[`renders ./components/form/demo/lable-width.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -741,7 +741,7 @@ exports[`renders ./components/form/demo/layout.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -754,7 +754,7 @@ exports[`renders ./components/form/demo/layout.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="input placeholder" type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -767,7 +767,7 @@ exports[`renders ./components/form/demo/layout.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input placeholder="input placeholder" type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -780,7 +780,7 @@ exports[`renders ./components/form/demo/layout.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -798,7 +798,7 @@ exports[`renders ./components/form/demo/nest-messages.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="nest-messages_user_name" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -811,7 +811,7 @@ exports[`renders ./components/form/demo/nest-messages.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="nest-messages_user_email" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -829,7 +829,7 @@ exports[`renders ./components/form/demo/nest-messages.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -842,7 +842,7 @@ exports[`renders ./components/form/demo/nest-messages.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="nest-messages_user_website" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -855,7 +855,7 @@ exports[`renders ./components/form/demo/nest-messages.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><textarea id="nest-messages_user_introduction" class="ant-input"></textarea></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -868,7 +868,7 @@ exports[`renders ./components/form/demo/nest-messages.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -886,7 +886,7 @@ exports[`renders ./components/form/demo/normal-login.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-input-affix-wrapper"><span class="ant-input-prefix"><span role="img" aria-label="user" class="anticon anticon-user site-form-item-icon"><svg focusable="false" class="" data-icon="user" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"></path></svg></span></span><input type="text" id="normal_login_username" class="ant-input"><span class="ant-input-suffix"><!----><!----></span></span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -899,7 +899,7 @@ exports[`renders ./components/form/demo/normal-login.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-input-affix-wrapper ant-input-password"><span class="ant-input-prefix"><span role="img" aria-label="lock" class="anticon anticon-lock site-form-item-icon"><svg focusable="false" class="" data-icon="lock" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"></path></svg></span></span><input id="normal_login_password" type="password" class="ant-input"><span class="ant-input-suffix"><!----><!----><span role="img" aria-label="eye-invisible" tabindex="-1" class="anticon anticon-eye-invisible ant-input-password-icon"><svg focusable="false" class="" data-icon="eye-invisible" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"></path><path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"></path></svg></span></span></span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -913,7 +913,7 @@ exports[`renders ./components/form/demo/normal-login.vue correctly 1`] = `
</button> Or <a href="">register now!</a></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -938,7 +938,7 @@ exports[`renders ./components/form/demo/time-related-controls.vue correctly 1`]
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -958,7 +958,7 @@ exports[`renders ./components/form/demo/time-related-controls.vue correctly 1`]
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -978,7 +978,7 @@ exports[`renders ./components/form/demo/time-related-controls.vue correctly 1`]
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1000,7 +1000,7 @@ exports[`renders ./components/form/demo/time-related-controls.vue correctly 1`]
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1022,7 +1022,7 @@ exports[`renders ./components/form/demo/time-related-controls.vue correctly 1`]
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1042,7 +1042,7 @@ exports[`renders ./components/form/demo/time-related-controls.vue correctly 1`]
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1055,7 +1055,7 @@ exports[`renders ./components/form/demo/time-related-controls.vue correctly 1`]
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1073,7 +1073,7 @@ exports[`renders ./components/form/demo/useForm-basic.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1095,7 +1095,7 @@ exports[`renders ./components/form/demo/useForm-basic.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1110,7 +1110,7 @@ exports[`renders ./components/form/demo/useForm-basic.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1125,7 +1125,7 @@ exports[`renders ./components/form/demo/useForm-basic.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1143,7 +1143,7 @@ exports[`renders ./components/form/demo/useForm-merge.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1165,7 +1165,7 @@ exports[`renders ./components/form/demo/useForm-merge.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1180,7 +1180,7 @@ exports[`renders ./components/form/demo/useForm-merge.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1195,7 +1195,7 @@ exports[`renders ./components/form/demo/useForm-merge.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1213,7 +1213,7 @@ exports[`renders ./components/form/demo/useForm-nested.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1226,7 +1226,7 @@ exports[`renders ./components/form/demo/useForm-nested.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1241,7 +1241,7 @@ exports[`renders ./components/form/demo/useForm-nested.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1259,7 +1259,7 @@ exports[`renders ./components/form/demo/useForm-trigger.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1281,7 +1281,7 @@ exports[`renders ./components/form/demo/useForm-trigger.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1296,7 +1296,7 @@ exports[`renders ./components/form/demo/useForm-trigger.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1314,7 +1314,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><span class="ant-form-text">China</span></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1336,7 +1336,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1364,7 +1364,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1382,7 +1382,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1399,7 +1399,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1421,7 +1421,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1436,7 +1436,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1451,7 +1451,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1475,7 +1475,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1521,7 +1521,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1538,7 +1538,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<div class="ant-form-item-extra">longgggggggggggggggggggggggggggggggggg</div>
</div>
</div>
@ -1558,7 +1558,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1571,7 +1571,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1589,7 +1589,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><input type="text" id="form_item_name" class="ant-input"></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1611,7 +1611,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1631,7 +1631,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1648,7 +1648,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1663,7 +1663,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1678,7 +1678,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1691,7 +1691,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
<div class="ant-form-item-control-input-content"><textarea id="form_item_desc" class="ant-input"></textarea></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -1706,7 +1706,7 @@ exports[`renders ./components/form/demo/validation.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>

View File

@ -62,11 +62,9 @@
margin-bottom: @form-item-margin-bottom;
vertical-align: top;
// We delay one frame (0.017s) here to let CSSMotion goes
transition: margin-bottom @animation-duration-slow 0.017s linear;
&-with-help {
// margin-bottom: 0;
margin-bottom: 0;
transition: none;
}
@ -204,10 +202,8 @@
&-explain-connected {
height: 0;
min-height: @form-item-margin-bottom;
min-height: 0;
opacity: 0;
margin-top: -@form-item-margin-bottom;
transform: translateY(@form-item-margin-bottom);
}
&-extra {

View File

@ -27,7 +27,7 @@ exports[`renders ./components/mentions/demo/form.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -44,7 +44,7 @@ exports[`renders ./components/mentions/demo/form.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -59,7 +59,7 @@ exports[`renders ./components/mentions/demo/form.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>

View File

@ -92,7 +92,7 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -109,7 +109,7 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
</button></div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -124,7 +124,7 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -139,7 +139,7 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>
@ -154,7 +154,7 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
</div>
<!---->
</div>
<div class="ant-form-item-explain ant-form-item-explain-connected"></div>
<!---->
<!---->
</div>
</div>