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

Commit

Permalink
fix: 修复表单类组件 name 属性不生效的问题 (#981)
Browse files Browse the repository at this point in the history
* fix: 表单类组件添加name属性

* fix: name属性添加重复

* test: 更新snapshots

* test: 更新snapshots
  • Loading branch information
WangJM001 authored May 21, 2020
1 parent c9afd73 commit 07d0a22
Show file tree
Hide file tree
Showing 71 changed files with 532 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/Checkbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createHostComponent } from '@remax/shared';
export interface CheckboxProps {
readonly dataset?: DOMStringMap;
id?: string;
name?: string;
className?: string;
value?: string;
checked?: boolean;
Expand Down
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/Checkbox/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const alias = {
className: 'class',
style: 'style',
id: 'id',
name: 'name',
value: 'value',
checked: 'checked',
disabled: 'disabled',
Expand Down
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/Picker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createHostComponent } from '@remax/shared';
export interface PickerProps {
readonly dataset?: DOMStringMap;
id?: string;
name?: string;
className?: string;
range?: string[] | any[];
rangeKey?: string;
Expand Down
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/Picker/node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const alias = {
id: 'id',
name: 'name',
className: 'class',
style: 'style',
range: 'range',
Expand Down
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/PickerView/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createHostComponent } from '@remax/shared';
export interface PickerViewProps {
readonly dataset?: DOMStringMap;
id?: string;
name?: string;
className?: string;
value?: number[];
indicatorStyle?: React.CSSProperties;
Expand Down
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/PickerView/node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const alias = {
id: 'id',
name: 'name',
className: 'class',
style: 'style',
value: 'value',
Expand Down
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/Radio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createHostComponent } from '@remax/shared';
export interface RadioProps {
readonly dataset?: DOMStringMap;
id?: string;
name?: string;
className?: string;
value?: string;
checked?: boolean;
Expand Down
1 change: 1 addition & 0 deletions packages/remax-ali/src/hostComponents/Radio/node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const alias = {
id: 'id',
name: 'name',
className: 'class',
style: 'style',
value: 'value',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -907,6 +911,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -964,6 +972,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1062,6 +1074,10 @@



name="{{item.props['name']}}"



style="{{item.props['style']}}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -907,6 +911,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -964,6 +972,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1062,6 +1074,10 @@



name="{{item.props['name']}}"



style="{{item.props['style']}}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -907,6 +911,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -964,6 +972,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1062,6 +1074,10 @@



name="{{item.props['name']}}"



style="{{item.props['style']}}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -907,6 +911,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -964,6 +972,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1062,6 +1074,10 @@



name="{{item.props['name']}}"



style="{{item.props['style']}}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -953,6 +957,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1010,6 +1018,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1108,6 +1120,10 @@



name="{{item.props['name']}}"



style="{{item.props['style']}}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -907,6 +911,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -964,6 +972,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1062,6 +1074,10 @@



name="{{item.props['name']}}"



style="{{item.props['style']}}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -907,6 +911,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -964,6 +972,10 @@



name="{{item.props['name']}}"



onChange="{{item.props['onChange']}}"


Expand Down Expand Up @@ -1062,6 +1074,10 @@



name="{{item.props['name']}}"



style="{{item.props['style']}}"


Expand Down
Loading

1 comment on commit 07d0a22

@vercel
Copy link

@vercel vercel bot commented on 07d0a22 May 21, 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.