mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
revert(): revert base components feature (#26692)
The Ionic Framework team would like to re-evaluate our approach to improving customization options when building mobile applications. We are looking at other solutions that a) make customizing an app UI easier and b) are applicable to a broader set of developers.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import type { ComponentInterface, EventEmitter } from '@stencil/core';
|
||||
import { Component, Element, Event, Host, Prop, Watch, h } from '@stencil/core';
|
||||
|
||||
import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global';
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import type { Gesture, GestureDetail, PickerColumn } from '../../interface';
|
||||
import { clamp } from '../../utils/helpers';
|
||||
import { hapticSelectionChanged, hapticSelectionEnd, hapticSelectionStart } from '../../utils/native/haptic';
|
||||
@ -9,14 +9,10 @@ import { getClassMap } from '../../utils/theme';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @virtualProp {true | false} useBase - useBase determines if base components is enabled.
|
||||
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
||||
*/
|
||||
@Component({
|
||||
tag: 'ion-picker-column',
|
||||
styleUrls: {
|
||||
base: 'picker-column.scss',
|
||||
ios: 'picker-column.ios.scss',
|
||||
md: 'picker-column.md.scss',
|
||||
},
|
||||
@ -56,9 +52,9 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
let pickerRotateFactor = 0;
|
||||
let pickerScaleFactor = 0.81;
|
||||
|
||||
const platform = getIonBehavior(this);
|
||||
const mode = getIonMode(this);
|
||||
|
||||
if (platform === 'ios') {
|
||||
if (mode === 'ios') {
|
||||
pickerRotateFactor = -0.46;
|
||||
pickerScaleFactor = 1;
|
||||
}
|
||||
@ -367,7 +363,7 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
render() {
|
||||
const col = this.col;
|
||||
const Button = 'button' as any;
|
||||
const mode = getIonStylesheet(this);
|
||||
const mode = getIonMode(this);
|
||||
return (
|
||||
<Host
|
||||
class={{
|
||||
|
||||
Reference in New Issue
Block a user