Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
bcc36ebc
Commit
bcc36ebc
authored
Oct 29, 2020
by
Vladislav Bakaev
Committed by
GitHub
Oct 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: re-name error popconfirm event name (#20240)
parent
2acff774
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
46 deletions
+46
-46
examples/docs/en-US/popconfirm.md
examples/docs/en-US/popconfirm.md
+11
-11
examples/docs/es/popconfirm.md
examples/docs/es/popconfirm.md
+11
-11
examples/docs/fr-FR/popconfirm.md
examples/docs/fr-FR/popconfirm.md
+11
-11
examples/docs/zh-CN/popconfirm.md
examples/docs/zh-CN/popconfirm.md
+11
-11
packages/popconfirm/src/main.vue
packages/popconfirm/src/main.vue
+2
-2
No files found.
examples/docs/en-US/popconfirm.md
View file @
bcc36ebc
...
...
@@ -24,10 +24,10 @@ You can customise Popconfirm like:
```html
<template>
<el-popconfirm
confirm
ButtonT
ext='OK'
cancel
ButtonT
ext='No, Thanks'
confirm
-button-t
ext='OK'
cancel
-button-t
ext='No, Thanks'
icon="el-icon-info"
icon
C
olor="red"
icon
-c
olor="red"
title="Are you sure to delete this?"
>
<el-button slot="reference">Delete</el-button>
...
...
@@ -40,13 +40,13 @@ You can customise Popconfirm like:
| Attribute | Description | Type | Accepted Values | Default |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | Title | String | — | — |
| confirm
ButtonT
ext | Confirm button text | String | — | — |
| cancel
ButtonT
ext | Cancel button text | String | — | — |
| confirm
ButtonT
ype | Confirm button type | String | — | Primary |
| cancel
ButtonT
ype | Cancel button type | String | — | Text |
| confirm
-button-t
ext | Confirm button text | String | — | — |
| cancel
-button-t
ext | Cancel button text | String | — | — |
| confirm
-button-t
ype | Confirm button type | String | — | Primary |
| cancel
-button-t
ype | Cancel button type | String | — | Text |
| icon | Icon | String | — | el-icon-question |
| icon
C
olor | Icon color | String | — | #f90 |
| hide
I
con | is hide Icon | Boolean | — | false |
| icon
-c
olor | Icon color | String | — | #f90 |
| hide
-i
con | is hide Icon | Boolean | — | false |
### Slot
| Name | Description |
...
...
@@ -56,5 +56,5 @@ You can customise Popconfirm like:
### Events
| Event Name | Description | Parameters |
|---------|--------|---------|
| onConfirm | triggers when click confirm button | — |
| onCancel | triggers when click cancel button | — |
\ No newline at end of file
| confirm | triggers when click confirm button | — |
| cancel | triggers when click cancel button | — |
\ No newline at end of file
examples/docs/es/popconfirm.md
View file @
bcc36ebc
...
...
@@ -25,10 +25,10 @@ Se puede personalizar Popconfirm así:
```html
<template>
<el-popconfirm
confirm
ButtonT
ext='OK'
cancel
ButtonT
ext='No, Thanks'
confirm
-button-t
ext='OK'
cancel
-button-t
ext='No, Thanks'
icon="el-icon-info"
icon
C
olor="red"
icon
-c
olor="red"
title="Are you sure to delete this?"
>
<el-button slot="reference">Delete</el-button>
...
...
@@ -41,13 +41,13 @@ Se puede personalizar Popconfirm así:
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | Titulo | String | — | — |
| confirm
ButtonT
ext | Texto del botón de confirmación | String | — | — |
| cancel
ButtonT
ext | Texto del botón de cancelación | String | — | — |
| confirm
ButtonT
ype | Tipo del botón de confirmación | String | — | Primary |
| cancel
ButtonT
ype | Tipo del botón de cancelación | String | — | Text |
| confirm
-button-t
ext | Texto del botón de confirmación | String | — | — |
| cancel
-button-t
ext | Texto del botón de cancelación | String | — | — |
| confirm
-button-t
ype | Tipo del botón de confirmación | String | — | Primary |
| cancel
-button-t
ype | Tipo del botón de cancelación | String | — | Text |
| icon | Icono | String | — | el-icon-question |
| icon
C
olor | Color icono | String | — | #f90 |
| hide
I
con | ¿Es un icono oculto? | Boolean | — | false |
| icon
-c
olor | Color icono | String | — | #f90 |
| hide
-i
con | ¿Es un icono oculto? | Boolean | — | false |
### Slot
| Nombre | Descripción |
...
...
@@ -57,5 +57,5 @@ Se puede personalizar Popconfirm así:
### Eventos
| Nombre Evento | Descripción | Parámetros |
|---------|--------|---------|
| onConfirm | Se activa cuando se pulsa el botón de confirmación | — |
| onCancel | Se activa cuando se pulsa el botón de cancelación | — |
\ No newline at end of file
| confirm | Se activa cuando se pulsa el botón de confirmación | — |
| cancel | Se activa cuando se pulsa el botón de cancelación | — |
\ No newline at end of file
examples/docs/fr-FR/popconfirm.md
View file @
bcc36ebc
...
...
@@ -24,10 +24,10 @@ You can customise Popconfirm like:
```html
<template>
<el-popconfirm
confirm
ButtonT
ext='OK'
cancel
ButtonT
ext='No, Thanks'
confirm
-button-t
ext='OK'
cancel
-button-t
ext='No, Thanks'
icon="el-icon-info"
icon
C
olor="red"
icon
-c
olor="red"
title="Are you sure to delete this?"
>
<el-button slot="reference">Delete</el-button>
...
...
@@ -40,13 +40,13 @@ You can customise Popconfirm like:
| Attribute | Description | Type | Accepted Values | Default |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | Title | String | — | — |
| confirm
ButtonT
ext | Confirm button text | String | — | — |
| cancel
ButtonT
ext | Cancel button text | String | — | — |
| confirm
ButtonT
ype | Confirm button type | String | — | Primary |
| cancel
ButtonT
ype | Cancel button type | String | — | Text |
| confirm
-button-t
ext | Confirm button text | String | — | — |
| cancel
-button-t
ext | Cancel button text | String | — | — |
| confirm
-button-t
ype | Confirm button type | String | — | Primary |
| cancel
-button-t
ype | Cancel button type | String | — | Text |
| icon | Icon | String | — | el-icon-question |
| icon
C
olor | Icon color | String | — | #f90 |
| hide
I
con | is hide Icon | Boolean | — | false |
| icon
-c
olor | Icon color | String | — | #f90 |
| hide
-i
con | is hide Icon | Boolean | — | false |
### Slot
| Name | Description |
...
...
@@ -56,5 +56,5 @@ You can customise Popconfirm like:
### Events
| Event Name | Description | Parameters |
|---------|--------|---------|
| onConfirm | triggers when click confirm button | — |
| onCancel | triggers when click cancel button | — |
\ No newline at end of file
| confirm | triggers when click confirm button | — |
| cancel | triggers when click cancel button | — |
\ No newline at end of file
examples/docs/zh-CN/popconfirm.md
View file @
bcc36ebc
...
...
@@ -24,10 +24,10 @@ Popconfirm 的属性与 Popover 很类似,因此对于重复属性,请参考
```html
<template>
<el-popconfirm
confirm
ButtonT
ext='好的'
cancel
ButtonT
ext='不用了'
confirm
-button-t
ext='好的'
cancel
-button-t
ext='不用了'
icon="el-icon-info"
icon
C
olor="red"
icon
-c
olor="red"
title="这是一段内容确定删除吗?"
>
<el-button slot="reference">删除</el-button>
...
...
@@ -40,13 +40,13 @@ Popconfirm 的属性与 Popover 很类似,因此对于重复属性,请参考
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | 标题 | String | — | — |
| confirm
ButtonT
ext | 确认按钮文字 | String | — | — |
| cancel
ButtonT
ext | 取消按钮文字 | String | — | — |
| confirm
ButtonT
ype | 确认按钮类型 | String | — | Primary |
| cancel
ButtonT
ype | 取消按钮类型 | String | — | Text |
| confirm
-button-t
ext | 确认按钮文字 | String | — | — |
| cancel
-button-t
ext | 取消按钮文字 | String | — | — |
| confirm
-button-t
ype | 确认按钮类型 | String | — | Primary |
| cancel
-button-t
ype | 取消按钮类型 | String | — | Text |
| icon | Icon | String | — | el-icon-question |
| icon
C
olor | Icon 颜色 | String | — | #f90 |
| hide
I
con | 是否隐藏 Icon | Boolean | — | false |
| icon
-c
olor | Icon 颜色 | String | — | #f90 |
| hide
-i
con | 是否隐藏 Icon | Boolean | — | false |
### Slot
| 参数 | 说明 |
...
...
@@ -56,5 +56,5 @@ Popconfirm 的属性与 Popover 很类似,因此对于重复属性,请参考
### Events
| 事件名称 | 说明 | 回调参数 |
|---------|--------|---------|
| onConfirm | 点击确认按钮时触发 | — |
| onCancel | 点击取消按钮时触发 | — |
\ No newline at end of file
| confirm | 点击确认按钮时触发 | — |
| cancel | 点击取消按钮时触发 | — |
\ No newline at end of file
packages/popconfirm/src/main.vue
View file @
bcc36ebc
...
...
@@ -87,11 +87,11 @@ export default {
methods
:
{
confirm
()
{
this
.
visible
=
false
;
this
.
$emit
(
'
onC
onfirm
'
);
this
.
$emit
(
'
c
onfirm
'
);
},
cancel
()
{
this
.
visible
=
false
;
this
.
$emit
(
'
onC
ancel
'
);
this
.
$emit
(
'
c
ancel
'
);
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment