Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(ali): 修复 MovableView 缺失的属性 (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Jun 16, 2020
1 parent d2481fa commit d54847d
Show file tree
Hide file tree
Showing 40 changed files with 1,111 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/remax-ali/src/hostComponents/MovableArea/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { createHostComponent } from '@remax/shared';

export interface MovableAreaProps {
readonly dataset?: DOMStringMap;
id?: string;
className?: string;
style?: React.CSSProperties;
width: number;
height: number;
Expand Down
10 changes: 10 additions & 0 deletions packages/remax-ali/src/hostComponents/MovableView/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,22 @@ export interface MovableViewProps {
x?: number;
y?: number;
disabled?: boolean;
outOfBounds?: boolean;
damping?: number;
friction?: number;
scale?: boolean;
scaleMin?: number;
scaleMax?: number;
scaleValue?: number;
animation?: boolean;
onTouchStart?: (e: any) => void;
onTouchMove?: (e: any) => void;
onTouchEnd?: (e: any) => void;
onTouchCancel?: (e: any) => void;
onTouchChange?: (e: any) => void;
onChange?: (e: any) => void;
onChangeEnd?: (e: any) => void;
onScale?: (e: any) => void;
}

export const MovableView = createHostComponent<MovableViewProps>('movable-view');
8 changes: 8 additions & 0 deletions packages/remax-ali/src/hostComponents/MovableView/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ export const alias = {
x: 'x',
y: 'y',
disabled: 'disabled',
outOfBounds: 'out-of-bounds',
damping: 'damping',
friction: 'friction',
scale: 'scale',
scaleMin: 'scale-min',
scaleMax: 'scale-max',
scaleValue: 'scale-value',
onTouchStart: 'onTouchStart',
onTouchMove: 'onTouchMove',
onTouchEnd: 'onTouchEnd',
onTouchCancel: 'onTouchCancel',
onChange: 'onChange',
onChangeEnd: 'onChangeEnd',
onScale: 'onScale',
};

export const props = Object.values(alias);

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit d54847d

@vercel
Copy link

@vercel vercel bot commented on d54847d Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.