diff --git a/components/form/__tests__/__snapshots__/demo.test.js.snap b/components/form/__tests__/__snapshots__/demo.test.js.snap index 0f0632dc4..25ecd9661 100644 --- a/components/form/__tests__/__snapshots__/demo.test.js.snap +++ b/components/form/__tests__/__snapshots__/demo.test.js.snap @@ -404,9 +404,7 @@ exports[`renders ./components/form/demo/register.vue correctly 1`] = `
-
+
+86
@@ -742,9 +740,7 @@ exports[`renders ./components/form/demo/validate-static.vue correctly 1`] = `
-
+
Option 1
diff --git a/components/select/__tests__/__snapshots__/demo.test.js.snap b/components/select/__tests__/__snapshots__/demo.test.js.snap index 2211e6559..e285c508b 100644 --- a/components/select/__tests__/__snapshots__/demo.test.js.snap +++ b/components/select/__tests__/__snapshots__/demo.test.js.snap @@ -98,9 +98,9 @@ exports[`renders ./components/select/demo/multiple.md correctly 1`] = `
- +
-
`; @@ -130,7 +130,7 @@ exports[`renders ./components/select/demo/options.md correctly 1`] = `
北京
-
+
`; @@ -139,11 +139,11 @@ exports[`renders ./components/select/demo/search.md correctly 1`] = `
- +
Select a person
-
+
`; @@ -152,7 +152,7 @@ exports[`renders ./components/select/demo/search-box.md correctly 1`] = `
- +
input search text
@@ -165,7 +165,7 @@ exports[`renders ./components/select/demo/select-users.md correctly 1`] = `
- +
Select users
- -
Lucy
-
+
@@ -276,9 +258,7 @@ exports[`renders ./components/select/demo/tags.md correctly 1`] = `
- +
Tags Mode
@@ -1305,15 +1306,19 @@ const Select = { const choiceClassName = disabled ? `${prefixCls}-selection__choice ${prefixCls}-selection__choice__disabled` : `${prefixCls}-selection__choice`; + // attrs 放在一起,避免动态title混乱问题,很奇怪的问题 https://github.com/vueComponent/ant-design-vue/issues/588 + const attrs = { + ...UNSELECTABLE_ATTRIBUTE, + role: 'presentation', + title: toTitle(title), + }; return (