mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: Enums > CoreTypes
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
import { LayoutBase } from '../layout-base';
|
||||
import { CSSType } from '../../core/view';
|
||||
import { Property, makeParser, makeValidator } from '../../core/properties';
|
||||
import { Enums } from '../../enums';
|
||||
import { CoreTypes } from '../../../core-types';
|
||||
|
||||
@CSSType('StackLayout')
|
||||
export class StackLayoutBase extends LayoutBase implements StackLayoutDefinition {
|
||||
public orientation: Enums.OrientationType;
|
||||
public orientation: CoreTypes.OrientationType;
|
||||
}
|
||||
|
||||
StackLayoutBase.prototype.recycleNativeView = 'auto';
|
||||
|
||||
const converter = makeParser<Enums.OrientationType>(makeValidator('horizontal', 'vertical'));
|
||||
const converter = makeParser<CoreTypes.OrientationType>(makeValidator('horizontal', 'vertical'));
|
||||
|
||||
export const orientationProperty = new Property<StackLayoutBase, Enums.OrientationType>({
|
||||
export const orientationProperty = new Property<StackLayoutBase, CoreTypes.OrientationType>({
|
||||
name: 'orientation',
|
||||
defaultValue: 'vertical',
|
||||
affectsLayout: global.isIOS,
|
||||
|
||||
Reference in New Issue
Block a user