diff --git a/src/components/confirm/index.vue b/src/components/confirm/index.vue
index a6e63696b..e76d33796 100755
--- a/src/components/confirm/index.vue
+++ b/src/components/confirm/index.vue
@@ -10,7 +10,7 @@
{{cancelText || $t('cancel_text')}}
@@ -72,7 +72,8 @@ export default {
closeOnConfirm: {
type: Boolean,
default: true
- }
+ },
+ inputAttrs: Object
},
created () {
this.showValue = this.show
diff --git a/src/components/confirm/metas.yml b/src/components/confirm/metas.yml
index 1a7ab5698..b17802cfa 100755
--- a/src/components/confirm/metas.yml
+++ b/src/components/confirm/metas.yml
@@ -99,6 +99,11 @@ props:
default: true
en: whether auto close when confirm button is clicked
zh-CN: 是否在点击确认按钮时自动关闭
+ input-attrs:
+ version: next
+ type: Object
+ en: input attributes
+ zh-CN: input 属性
slots:
default:
en: body content of the dialog
@@ -118,6 +123,11 @@ methods:
en: set input value when show-input is true
zh-CN: 设置输入值,当 show-input 为 true 时有效
changes:
+ next:
+ en:
+ - '[feature] Support prop:input-attrs #1799'
+ zh-CN:
+ - '[feature] 支持 prop:input-attrs 设置额外属性 #1799'
v2.5.5:
en:
- '[feature] Add method:setInputValue #1746'
diff --git a/src/demos/Confirm.vue b/src/demos/Confirm.vue
index 4224ad136..f63cd86df 100755
--- a/src/demos/Confirm.vue
+++ b/src/demos/Confirm.vue
@@ -30,6 +30,7 @@