mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(slides): fix typings issue, add TODO to fix it later
This commit is contained in:
2
packages/core/package-lock.json
generated
2
packages/core/package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ionic/core",
|
||||
"version": "0.0.2-34",
|
||||
"version": "0.0.2-35",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ionic/core",
|
||||
"version": "0.0.2-34",
|
||||
"version": "0.0.2-35",
|
||||
"description": "Base components for Ionic",
|
||||
"main": "dist/ionic.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
|
||||
5
packages/core/src/components.d.ts
vendored
5
packages/core/src/components.d.ts
vendored
@@ -40,9 +40,6 @@ import {
|
||||
import {
|
||||
SelectPopoverOption,
|
||||
} from './components/select-popover/select-popover';
|
||||
import {
|
||||
SwiperOptions,
|
||||
} from './components/slides/vendor/swiper';
|
||||
|
||||
import {
|
||||
ActionSheetController as IonActionSheetController
|
||||
@@ -2629,7 +2626,7 @@ declare global {
|
||||
}
|
||||
namespace JSXElements {
|
||||
export interface IonSlidesAttributes extends HTMLAttributes {
|
||||
options?: SwiperOptions;
|
||||
options?: any;
|
||||
pager?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component, Element, Event, EventEmitter, Method, Prop, PropDidChange } from '@stencil/core';
|
||||
import { Swiper } from './vendor/swiper.js';
|
||||
import { SwiperOptions } from './vendor/swiper';
|
||||
// import { SwiperOptions } from './vendor/swiper'; // TODO
|
||||
|
||||
@Component({
|
||||
tag: 'ion-slides',
|
||||
@@ -88,7 +88,7 @@ export class Slides {
|
||||
* Options to pass to the swiper instance.
|
||||
* See http://idangero.us/swiper/api/ for valid options
|
||||
*/
|
||||
@Prop() options: SwiperOptions;
|
||||
@Prop() options: any; // SwiperOptions; // TODO
|
||||
|
||||
@PropDidChange('options')
|
||||
updateSwiperOptions() {
|
||||
|
||||
Reference in New Issue
Block a user