mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
chore(): update to ionic-rules/strict
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { TestWindow, spyOnEvent } from '@stencil/core/testing';
|
||||
|
||||
import { Toggle } from '../toggle';
|
||||
|
||||
describe('toggle', () => {
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { Component, Element, Event, EventEmitter, Prop, State, Watch } from '@stencil/core';
|
||||
|
||||
import { CheckboxInput, CheckedInputChangeEvent, Color, GestureDetail, Mode, StyleEvent } from '../../interface';
|
||||
import { hapticSelection } from '../../utils/haptic';
|
||||
import { deferEvent, renderHiddenInput } from '../../utils/helpers';
|
||||
import { createColorClasses, hostContext } from '../../utils/theme';
|
||||
|
||||
|
||||
@Component({
|
||||
tag: 'ion-toggle',
|
||||
styleUrls: {
|
||||
@ -77,7 +77,6 @@ export class Toggle implements CheckboxInput {
|
||||
*/
|
||||
@Event() ionStyle!: EventEmitter<StyleEvent>;
|
||||
|
||||
|
||||
@Watch('checked')
|
||||
checkedChanged(isChecked: boolean) {
|
||||
this.ionChange.emit({
|
||||
|
Reference in New Issue
Block a user