diff --git a/components/form/__tests__/__snapshots__/demo.test.js.snap b/components/form/__tests__/__snapshots__/demo.test.js.snap index 3a4f51c88..ce9d38950 100644 --- a/components/form/__tests__/__snapshots__/demo.test.js.snap +++ b/components/form/__tests__/__snapshots__/demo.test.js.snap @@ -366,6 +366,275 @@ exports[`renders ./components/form/demo/customized-form-controls.vue correctly 1 `; +exports[`renders ./components/form/demo/disabled.vue correctly 1`] = ` + +
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+ + +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+ + +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+ + +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+ +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
Upload
+
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + +
+
+ +
+
+`; + exports[`renders ./components/form/demo/dynamic-form-item.vue correctly 1`] = `
diff --git a/components/form/demo/disabled.vue b/components/form/demo/disabled.vue new file mode 100644 index 000000000..425c03f01 --- /dev/null +++ b/components/form/demo/disabled.vue @@ -0,0 +1,105 @@ + +--- +order: 4 +title: + zh-CN: 表单禁用 + en-US: Form disabled +--- + +## zh-CN + +设置表单组件禁用,仅对 antd 组件有效。 + +## en-US + +Set component disabled, only works for antd components. + + + + diff --git a/components/form/demo/index.vue b/components/form/demo/index.vue index 83c29a8a9..ea590a410 100644 --- a/components/form/demo/index.vue +++ b/components/form/demo/index.vue @@ -4,6 +4,7 @@ + @@ -32,6 +33,7 @@ import advancedSearchVue from './advanced-search.vue'; import Basic from './basic.vue'; import validationVue from './validation.vue'; import CustomValidation from './custom-validation.vue'; +import Disabled from './disabled.vue'; import DynamicFormItem from './dynamic-form-item.vue'; import dynamicFormItemsComplexVue from './dynamic-form-items-complex.vue'; import dynamicFormItemsVue from './dynamic-form-items.vue'; @@ -65,6 +67,7 @@ export default defineComponent({ validateOtherVue, Basic, CustomValidation, + Disabled, DynamicFormItem, HorizontalLogin, NestedForm,