fix: change Ok to OK (#32259)

* 修复AutoComplete组件allowClear属性的说明有歧义的问题

* fix: change Ok to OK

* update jest snapshot

Co-authored-by: chj_damon <chjdamon@gmail.com>
This commit is contained in:
damon.chen 2021-09-23 22:13:05 +08:00 committed by GitHub
parent 13cd24f37b
commit e7f5030f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 17 deletions

View File

@ -6,7 +6,7 @@
"today": "Today", "today": "Today",
"now": "Now", "now": "Now",
"backToToday": "Back to today", "backToToday": "Back to today",
"ok": "Ok", "ok": "OK",
"clear": "Clear", "clear": "Clear",
"month": "Month", "month": "Month",
"year": "Year", "year": "Year",

View File

@ -11,7 +11,7 @@ const locale: PickerLocale = {
today: 'Hoje', today: 'Hoje',
now: 'Agora', now: 'Agora',
backToToday: 'Hoje', backToToday: 'Hoje',
ok: 'Ok', ok: 'OK',
clear: 'Limpar', clear: 'Limpar',
month: 'Mês', month: 'Mês',
year: 'Ano', year: 'Ano',

View File

@ -10,7 +10,7 @@ const locale: PickerLocale = {
today: 'Danes', today: 'Danes',
now: 'Trenutno', now: 'Trenutno',
backToToday: 'Nazaj na trenutni datum', backToToday: 'Nazaj na trenutni datum',
ok: 'Ok', ok: 'OK',
clear: 'Počisti', clear: 'Počisti',
month: 'Mesec', month: 'Mesec',
year: 'Leto', year: 'Leto',

View File

@ -35804,7 +35804,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
type="button" type="button"
> >
<span> <span>
Ok OK
</span> </span>
</button> </button>
</div> </div>
@ -37368,7 +37368,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
type="button" type="button"
> >
<span> <span>
Ok OK
</span> </span>
</button> </button>
</div> </div>
@ -242578,7 +242578,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
type="button" type="button"
> >
<span> <span>
Ok OK
</span> </span>
</button> </button>
</li> </li>
@ -267948,7 +267948,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
type="button" type="button"
> >
<span> <span>
Ok OK
</span> </span>
</button> </button>
</li> </li>

View File

@ -29,12 +29,12 @@ const localeValues: Locale = {
cancelSort: 'Klikni pro zrušení řazení', cancelSort: 'Klikni pro zrušení řazení',
}, },
Modal: { Modal: {
okText: 'Ok', okText: 'OK',
cancelText: 'Storno', cancelText: 'Storno',
justOkText: 'Ok', justOkText: 'OK',
}, },
Popconfirm: { Popconfirm: {
okText: 'Ok', okText: 'OK',
cancelText: 'Storno', cancelText: 'Storno',
}, },
Transfer: { Transfer: {

View File

@ -19,7 +19,7 @@ const localeValues: Locale = {
}, },
Table: { Table: {
filterTitle: 'Фильтр', filterTitle: 'Фильтр',
filterConfirm: 'Ok', filterConfirm: 'OK',
filterReset: 'Тазарту', filterReset: 'Тазарту',
filterEmptyText: 'Фильтр жоқ', filterEmptyText: 'Фильтр жоқ',
emptyText: 'Деректер жоқ', emptyText: 'Деректер жоқ',

View File

@ -27,7 +27,7 @@ const localeValues: Locale = {
}, },
Table: { Table: {
filterTitle: 'Cari dengan tajuk', filterTitle: 'Cari dengan tajuk',
filterConfirm: 'Ok', filterConfirm: 'OK',
filterReset: 'Menetapkan semula', filterReset: 'Menetapkan semula',
emptyText: 'Tiada data', emptyText: 'Tiada data',
selectAll: 'Pilih semua', selectAll: 'Pilih semua',

View File

@ -26,7 +26,7 @@ describe('TimePicker', () => {
resetWarned(); resetWarned();
const addon = () => ( const addon = () => (
<button className="my-btn" type="button"> <button className="my-btn" type="button">
Ok OK
</button> </button>
); );
const wrapper = mount(<TimePicker addon={addon} open />); const wrapper = mount(<TimePicker addon={addon} open />);

View File

@ -32,7 +32,7 @@ class TimePickerAddonDemo extends React.Component {
onOpenChange={this.handleOpenChange} onOpenChange={this.handleOpenChange}
renderExtraFooter={() => ( renderExtraFooter={() => (
<Button size="small" type="primary" onClick={this.handleClose}> <Button size="small" type="primary" onClick={this.handleClose}>
Ok OK
</Button> </Button>
)} )}
/> />

View File

@ -62,7 +62,7 @@ Add `antd/dist/antd.css` at the top of `src/App.css`.
@import '~antd/dist/antd.css'; @import '~antd/dist/antd.css';
``` ```
Ok, reboot with `yarn start`, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `create-react-app` at it's [User Guide](https://create-react-app.dev/docs/getting-started#creating-a-typescript-app). OK, reboot with `yarn start`, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `create-react-app` at it's [User Guide](https://create-react-app.dev/docs/getting-started#creating-a-typescript-app).
`antd` is written in TypeScript with complete definitions, try out and enjoy the property suggestion and typing check. `antd` is written in TypeScript with complete definitions, try out and enjoy the property suggestion and typing check.

View File

@ -78,7 +78,7 @@ Add `antd/dist/antd.css` at the top of `src/App.css`.
@import '~antd/dist/antd.css'; @import '~antd/dist/antd.css';
``` ```
Ok, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `create-react-app` at its [User Guide](https://create-react-app.dev/docs/getting-started). OK, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `create-react-app` at its [User Guide](https://create-react-app.dev/docs/getting-started).
We are successfully running antd components now, go build your own application! We are successfully running antd components now, go build your own application!

View File

@ -11,7 +11,7 @@ As Alan Cooper states「Where there is output, let there be input」. This is
## In-Page Editing ## In-Page Editing
<img class="preview-img" align="right" alt="Example of click to edit" description="Status 1: Common browsing mode, do not distinguish between editable and non-editable lines<br>Status 2: On mouse hover, the background is backlit with yellow. A tool tip invites the user to 'Click to edit'<br>Status 3: Once the user clicks on the title, the form elements 「Input box」, 「Ok」 and 「Cancel」 appear, and the cursor is positioned in the 「input box」." src="https://gw.alipayobjects.com/zos/rmsportal/EXKwsvUkIUNkHBSsOlRi.png"> <img class="preview-img" align="right" alt="Example of click to edit" description="Status 1: Common browsing mode, do not distinguish between editable and non-editable lines<br>Status 2: On mouse hover, the background is backlit with yellow. A tool tip invites the user to 'Click to edit'<br>Status 3: Once the user clicks on the title, the form elements 「Input box」, 「OK」 and 「Cancel」 appear, and the cursor is positioned in the 「input box」." src="https://gw.alipayobjects.com/zos/rmsportal/EXKwsvUkIUNkHBSsOlRi.png">
Single-Field Inline Edit Single-Field Inline Edit