From 22108dc7f6af41e2a406fc1cf033b0c0266a2ba2 Mon Sep 17 00:00:00 2001 From: airyland Date: Sat, 5 Aug 2017 11:41:40 +0800 Subject: [PATCH] confirm: Support prop:input-attrs (Close #1799) --- src/components/confirm/index.vue | 5 +++-- src/components/confirm/metas.yml | 10 ++++++++++ src/demos/Confirm.vue | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) 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 @@
{{title}}
- +
{{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 @@