Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Sep 26, 2019
1 parent 595d86c commit e416502
Show file tree
Hide file tree
Showing 58 changed files with 142 additions and 142 deletions.
12 changes: 6 additions & 6 deletions examples/docs/en-US/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ You can customise Popconfirm like:
```html
<template>
<el-popconfirm
okText='OK'
cancelText='No, Thanks'
confirmButtonText='OK'
cancelButtonText='No, Thanks'
icon="el-icon-info"
iconColor="red"
title="Are you sure to delete this?"
Expand All @@ -40,10 +40,10 @@ You can customise Popconfirm like:
| Attribute | Description | Type | Accepted Values | Default |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | Title | String |||
| okText | OK button text | String |||
| cancelText | Cancel button text | String |||
| okType | OK button type | String || Primary |
| cancelType | Cancel button type | String || Text |
| confirmButtonText | Confirm button text | String |||
| cancelButtonText | Cancel button text | String |||
| confirmButtonType | Confirm button type | String || Primary |
| cancelButtonType | Cancel button type | String || Text |
| icon | Icon | String || el-icon-question |
| iconColor | Icon color | String || #f90 |
| hideIcon | is hide Icon | Boolean || false |
Expand Down
12 changes: 6 additions & 6 deletions examples/docs/es/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ You can customise Popconfirm like:
```html
<template>
<el-popconfirm
okText='OK'
cancelText='No, Thanks'
confirmButtonText='OK'
cancelButtonText='No, Thanks'
icon="el-icon-info"
iconColor="red"
title="Are you sure to delete this?"
Expand All @@ -40,10 +40,10 @@ You can customise Popconfirm like:
| Attribute | Description | Type | Accepted Values | Default |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | Title | String |||
| okText | OK button text | String |||
| cancelText | Cancel button text | String |||
| okType | OK button type | String || Primary |
| cancelType | Cancel button type | String || Text |
| confirmButtonText | Confirm button text | String |||
| cancelButtonText | Cancel button text | String |||
| confirmButtonType | Confirm button type | String || Primary |
| cancelButtonType | Cancel button type | String || Text |
| icon | Icon | String || el-icon-question |
| iconColor | Icon color | String || #f90 |
| hideIcon | is hide Icon | Boolean || false |
Expand Down
12 changes: 6 additions & 6 deletions examples/docs/fr-FR/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ You can customise Popconfirm like:
```html
<template>
<el-popconfirm
okText='OK'
cancelText='No, Thanks'
confirmButtonText='OK'
cancelButtonText='No, Thanks'
icon="el-icon-info"
iconColor="red"
title="Are you sure to delete this?"
Expand All @@ -40,10 +40,10 @@ You can customise Popconfirm like:
| Attribute | Description | Type | Accepted Values | Default |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | Title | String |||
| okText | OK button text | String |||
| cancelText | Cancel button text | String |||
| okType | OK button type | String || Primary |
| cancelType | Cancel button type | String || Text |
| confirmButtonText | Confirm button text | String |||
| cancelButtonText | Cancel button text | String |||
| confirmButtonType | Confirm button type | String || Primary |
| cancelButtonType | Cancel button type | String || Text |
| icon | Icon | String || el-icon-question |
| iconColor | Icon color | String || #f90 |
| hideIcon | is hide Icon | Boolean || false |
Expand Down
12 changes: 6 additions & 6 deletions examples/docs/zh-CN/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Popconfirm 的属性与 Popover 很类似,因此对于重复属性,请参考
```html
<template>
<el-popconfirm
okText='好的'
cancelText='不用了'
confirmButtonText='好的'
cancelButtonText='不用了'
icon="el-icon-info"
iconColor="red"
title="这是一段内容确定删除吗?"
Expand All @@ -40,10 +40,10 @@ Popconfirm 的属性与 Popover 很类似,因此对于重复属性,请参考
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
| title | 标题 | String |||
| okText | 确认按钮文字 | String |||
| cancelText | 取消按钮文字 | String |||
| okType | 确认按钮类型 | String || Primary |
| cancelType | 取消按钮类型 | String || Text |
| confirmButtonText | 确认按钮文字 | String |||
| cancelButtonText | 取消按钮文字 | String |||
| confirmButtonType | 确认按钮类型 | String || Primary |
| cancelButtonType | 取消按钮类型 | String || Text |
| icon | Icon | String || el-icon-question |
| iconColor | Icon 颜色 | String || #f90 |
| hideIcon | 是否隐藏 Icon | Boolean || false |
Expand Down
20 changes: 10 additions & 10 deletions packages/popconfirm/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
<div class="el-popconfirm__action">
<el-button
size="mini"
:type="cancelType"
:type="cancelButtonType"
@click="cancel"
>
{{cancelText}}
{{cancelButtonText}}
</el-button>
<el-button
size="mini"
:type="okType"
:type="confirmButtonType"
@click="confirm"
>
{{okText}}
{{confirmButtonText}}
</el-button>
</div>
</div>
Expand All @@ -46,19 +46,19 @@ export default {
title: {
type: String
},
okText: {
confirmButtonText: {
type: String,
default: t('el.popconfirm.okText')
default: t('el.popconfirm.confirmButtonText')
},
cancelText: {
cancelButtonText: {
type: String,
default: t('el.popconfirm.cancelText')
default: t('el.popconfirm.cancelButtonText')
},
okType: {
confirmButtonType: {
type: String,
default: 'primary'
},
cancelType: {
cancelButtonType: {
type: String,
default: 'text'
},
Expand Down
4 changes: 2 additions & 2 deletions src/locale/lang/af-ZA.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
title: 'عودة'
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/cs-CZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/da.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/ee.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes',
cancelText: 'No'
confirmButtonText: 'Yes',
cancelButtonText: 'No'
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/eo.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Reen'
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
title: 'Volver'
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/eu.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/fa.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'بازگشت'
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/he.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/hr.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/hy-AM.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
4 changes: 2 additions & 2 deletions src/locale/lang/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default {
title: 'Back' // to be translated
},
popconfirm: {
okText: 'Yes', // to be translated
cancelText: 'No' // to be translated
confirmButtonText: 'Yes', // to be translated
cancelButtonText: 'No' // to be translated
}
}
};
Loading

0 comments on commit e416502

Please sign in to comment.