mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
docs(swiper): update swiper api link (#24972)
This commit is contained in:
6
core/src/components.d.ts
vendored
6
core/src/components.d.ts
vendored
@ -2512,7 +2512,7 @@ export namespace Components {
|
||||
*/
|
||||
"getPreviousIndex": () => Promise<number>;
|
||||
/**
|
||||
* Get the Swiper instance. Use this to access the full Swiper API. See https://idangero.us/swiper/api/ for all API options.
|
||||
* Get the Swiper instance. Use this to access the full Swiper API. See https://swiperjs.com/swiper-api for all API options.
|
||||
*/
|
||||
"getSwiper": () => Promise<any>;
|
||||
/**
|
||||
@ -2547,7 +2547,7 @@ export namespace Components {
|
||||
*/
|
||||
"mode"?: "ios" | "md";
|
||||
/**
|
||||
* Options to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options
|
||||
* Options to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options
|
||||
*/
|
||||
"options": any;
|
||||
/**
|
||||
@ -6290,7 +6290,7 @@ declare namespace LocalJSX {
|
||||
*/
|
||||
"onIonSlidesDidLoad"?: (event: CustomEvent<void>) => void;
|
||||
/**
|
||||
* Options to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options
|
||||
* Options to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options
|
||||
*/
|
||||
"options"?: any;
|
||||
/**
|
||||
|
@ -498,7 +498,7 @@ import { Component } from '@angular/core';
|
||||
})
|
||||
export class SlideExample {
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
@ -539,7 +539,7 @@ ion-slides {
|
||||
var slides = document.querySelector('ion-slides');
|
||||
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
slides.options = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
@ -561,7 +561,7 @@ import React from 'react';
|
||||
import { IonSlides, IonSlide, IonContent } from '@ionic/react';
|
||||
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
const slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
@ -603,7 +603,7 @@ import { Component, h } from '@stencil/core';
|
||||
})
|
||||
export class SlidesExample {
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
private slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
@ -664,7 +664,7 @@ import { defineComponent } from 'vue';
|
||||
export default defineComponent({
|
||||
components: { IonSlides, IonSlide },
|
||||
setup() {
|
||||
// Optional parameters to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options.
|
||||
// Optional parameters to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options.
|
||||
const slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
@ -680,9 +680,9 @@ export default defineComponent({
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| ----------- | ----------- | -------------------------------------------------------------------------------------------- | --------------- | ----------- |
|
||||
| ----------- | ----------- | --------------------------------------------------------------------------------------------- | --------------- | ----------- |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |
|
||||
| `options` | `options` | Options to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options | `any` | `{}` |
|
||||
| `options` | `options` | Options to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options | `any` | `{}` |
|
||||
| `pager` | `pager` | If `true`, show the pagination. | `boolean` | `false` |
|
||||
| `scrollbar` | `scrollbar` | If `true`, show the scrollbar. | `boolean` | `false` |
|
||||
|
||||
@ -735,7 +735,7 @@ Type: `Promise<number>`
|
||||
|
||||
Get the Swiper instance.
|
||||
Use this to access the full Swiper API.
|
||||
See https://idangero.us/swiper/api/ for all API options.
|
||||
See https://swiperjs.com/swiper-api for all API options.
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -29,7 +29,7 @@ export class Slides implements ComponentInterface {
|
||||
|
||||
/**
|
||||
* Options to pass to the swiper instance.
|
||||
* See http://idangero.us/swiper/api/ for valid options
|
||||
* See https://swiperjs.com/swiper-api for valid options
|
||||
*/
|
||||
@Prop() options: any = {}; // SwiperOptions; // TODO
|
||||
|
||||
@ -330,7 +330,7 @@ export class Slides implements ComponentInterface {
|
||||
/**
|
||||
* Get the Swiper instance.
|
||||
* Use this to access the full Swiper API.
|
||||
* See https://idangero.us/swiper/api/ for all API options.
|
||||
* See https://swiperjs.com/swiper-api for all API options.
|
||||
*/
|
||||
@Method()
|
||||
async getSwiper(): Promise<any> {
|
||||
|
@ -21,7 +21,7 @@ import { Component } from '@angular/core';
|
||||
})
|
||||
export class SlideExample {
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
|
@ -20,7 +20,7 @@
|
||||
var slides = document.querySelector('ion-slides');
|
||||
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
slides.options = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import { IonSlides, IonSlide, IonContent } from '@ionic/react';
|
||||
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
const slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
|
@ -7,7 +7,7 @@ import { Component, h } from '@stencil/core';
|
||||
})
|
||||
export class SlidesExample {
|
||||
// Optional parameters to pass to the swiper instance.
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
// See https://swiperjs.com/swiper-api for valid options.
|
||||
private slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
|
@ -21,7 +21,7 @@ import { defineComponent } from 'vue';
|
||||
export default defineComponent({
|
||||
components: { IonSlides, IonSlide },
|
||||
setup() {
|
||||
// Optional parameters to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options.
|
||||
// Optional parameters to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options.
|
||||
const slideOpts = {
|
||||
initialSlide: 1,
|
||||
speed: 400
|
||||
|
Reference in New Issue
Block a user