mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
feat(datetime): add calendar picker (#23416)
resolves #19423 BREAKING CHANGE: The `ion-datetime` component has been revamped to use a new calendar style. As a result, some APIs have been removed. See https://github.com/ionic-team/ionic-framework/blob/master/BREAKING.md for more details.
This commit is contained in:
@ -173,14 +173,13 @@ export const IonContent = /*@__PURE__*/ defineContainer<JSX.IonContent>('ion-con
|
||||
|
||||
|
||||
export const IonDatetime = /*@__PURE__*/ defineContainer<JSX.IonDatetime>('ion-datetime', [
|
||||
'color',
|
||||
'name',
|
||||
'disabled',
|
||||
'readonly',
|
||||
'min',
|
||||
'max',
|
||||
'displayFormat',
|
||||
'displayTimezone',
|
||||
'pickerFormat',
|
||||
'presentation',
|
||||
'cancelText',
|
||||
'doneText',
|
||||
'yearValues',
|
||||
@ -188,13 +187,10 @@ export const IonDatetime = /*@__PURE__*/ defineContainer<JSX.IonDatetime>('ion-d
|
||||
'dayValues',
|
||||
'hourValues',
|
||||
'minuteValues',
|
||||
'monthNames',
|
||||
'monthShortNames',
|
||||
'dayNames',
|
||||
'dayShortNames',
|
||||
'pickerOptions',
|
||||
'placeholder',
|
||||
'locale',
|
||||
'value',
|
||||
'showDefaultTitle',
|
||||
'showDefaultButtons',
|
||||
'ionCancel',
|
||||
'ionChange',
|
||||
'ionFocus',
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"pluginsFile": "tests/e2e/plugins/index.js",
|
||||
"includeShadowDom": true,
|
||||
"video": false,
|
||||
"screenshotOnRunFailure": false,
|
||||
"defaultCommandTimeout": 10000
|
||||
|
@ -70,7 +70,7 @@ describe('Overlays', () => {
|
||||
cy.get('ion-button#present-overlay').click();
|
||||
cy.get('ion-toast').should('exist');
|
||||
|
||||
cy.get('ion-toast').find('button').click();
|
||||
cy.get('ion-toast').shadow().find('button').click();
|
||||
|
||||
cy.get('ion-toast').should('not.exist');
|
||||
});
|
||||
@ -102,7 +102,7 @@ describe('Overlays', () => {
|
||||
cy.get('ion-button#present-overlay').click();
|
||||
cy.get('ion-toast').should('exist');
|
||||
|
||||
cy.get('ion-toast').find('button').click();
|
||||
cy.get('ion-toast').shadow().find('button').click();
|
||||
|
||||
cy.get('ion-toast').should('not.exist');
|
||||
});
|
||||
|
Reference in New Issue
Block a user