Skip to content

Commit

Permalink
feat: steps support reverse order
Browse files Browse the repository at this point in the history
  • Loading branch information
shenhaidada committed Oct 14, 2024
1 parent d4f1119 commit 074dc97
Show file tree
Hide file tree
Showing 43 changed files with 344 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ ActionSheet Component
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
1 change: 1 addition & 0 deletions packages/arcodesign/components/action-sheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
11 changes: 11 additions & 0 deletions packages/arcodesign/components/action-sheet/__ast__/index.ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,17 @@
},
"tags": {},
"descWithTags": ""
},
"Uploader": {
"name": "Uploader",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "{ uploadBtn: string; retryUpload: string; }"
},
"tags": {},
"descWithTags": ""
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ Global data control component, used to replace global data.
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
1 change: 1 addition & 0 deletions packages/arcodesign/components/context-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,17 @@
},
"tags": {},
"descWithTags": ""
},
"Uploader": {
"name": "Uploader",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "{ uploadBtn: string; retryUpload: string; }"
},
"tags": {},
"descWithTags": ""
}
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/arcodesign/components/dialog/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ A modal dialog, displayed in a floating layer, guides the user to perform relate
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|

> AlertOptions
Expand Down
1 change: 1 addition & 0 deletions packages/arcodesign/components/dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|

> AlertOptions
Expand Down
11 changes: 11 additions & 0 deletions packages/arcodesign/components/dialog/__ast__/index.ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,17 @@
},
"tags": {},
"descWithTags": ""
},
"Uploader": {
"name": "Uploader",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "{ uploadBtn: string; retryUpload: string; }"
},
"tags": {},
"descWithTags": ""
}
},
"DialogRef": {
Expand Down
18 changes: 17 additions & 1 deletion packages/arcodesign/components/form/README.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Data Entry

# Form
# Form

Form, Form for collecting data input

Expand Down Expand Up @@ -60,6 +60,15 @@ Form, Form for collecting data input
|validateFields|Validate all fields|() =\> Promise\<IFieldError\[\]\>|
|submit|Submit all fields|() =\> void|

> Promise
|Property|Description|Type|
|----------|-------------|------|
|R|-|any|
|then|onFulfilled is called when/if "promise" resolves\. onRejected is called when/if "promise" rejects\. Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called\. Both callbacks have a single parameter , the fulfillment value or rejection reason\. "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise\.resolve\. If an error is thrown in the callback, the returned promise rejects with that error\.|\{ \<U\>(onFulfilled?: (value: IFieldError\[\]) =\> U \| Thenable\<U\>, onRejected?: (error: any) =\> U \| Thenable\<U\>): Promise\<U\>; \<U\>(onFulfilled?: (value: IFieldError\[\]) =\> U \| Thenable\<\.\.\.\>, onRejected?: (error: any) =\> void): Promise\<\.\.\.\>; \}|
|catch|Sugar for promise\.then(undefined, onRejected)|\<U\>(onRejected?: (error: any) =\> U \| Thenable\<U\>) =\> Promise\<U\>|
|finally|onSettled is invoked when/if the "promise" settles (either rejects or fulfills)\. The returned promise is settled when the \`Thenable\` returned by \`onFinally\` settles; it is rejected if \`onFinally\` throws or rejects; otherwise it assumes the state of the original Promise\.|(onFinally?: () =\> any) =\> Promise\<IFieldError\[\]\>|

> IFieldError
|Property|Description|Type|
Expand All @@ -70,6 +79,13 @@ Form, Form for collecting data input
|field|-|string|
|dom|-|HTMLDivElement|

> Thenable
|Property|Description|Type|
|----------|-------------|------|
|R|-|any|
|then|-|\{ \<U\>(onFulfilled?: (value: U) =\> U \| Thenable\<U\>, onRejected?: (error: any) =\> U \| Thenable\<U\>): Thenable\<U\>; \<U\>(onFulfilled?: (value: U) =\> U \| Thenable\<\.\.\.\>, onRejected?: (error: any) =\> void): Thenable\<\.\.\.\>; \}|

> Element
|Property|Description|Type|
Expand Down
16 changes: 16 additions & 0 deletions packages/arcodesign/components/form/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@
|validateFields|校验所有表单项|() =\> Promise\<IFieldError\[\]\>|
|submit|提交表单|() =\> void|

> Promise
|参数|描述|类型|
|----------|-------------|------|
|R|-|any|
|then|onFulfilled is called when/if "promise" resolves\. onRejected is called when/if "promise" rejects\. Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called\. Both callbacks have a single parameter , the fulfillment value or rejection reason\. "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise\.resolve\. If an error is thrown in the callback, the returned promise rejects with that error\.|\{ \<U\>(onFulfilled?: (value: IFieldError\[\]) =\> U \| Thenable\<U\>, onRejected?: (error: any) =\> U \| Thenable\<U\>): Promise\<U\>; \<U\>(onFulfilled?: (value: IFieldError\[\]) =\> U \| Thenable\<\.\.\.\>, onRejected?: (error: any) =\> void): Promise\<\.\.\.\>; \}|
|catch|Sugar for promise\.then(undefined, onRejected)|\<U\>(onRejected?: (error: any) =\> U \| Thenable\<U\>) =\> Promise\<U\>|
|finally|onSettled is invoked when/if the "promise" settles (either rejects or fulfills)\. The returned promise is settled when the \`Thenable\` returned by \`onFinally\` settles; it is rejected if \`onFinally\` throws or rejects; otherwise it assumes the state of the original Promise\.|(onFinally?: () =\> any) =\> Promise\<IFieldError\[\]\>|

> IFieldError
|参数|描述|类型|
Expand All @@ -70,6 +79,13 @@
|field|-|string|
|dom|-|HTMLDivElement|

> Thenable
|参数|描述|类型|
|----------|-------------|------|
|R|-|any|
|then|-|\{ \<U\>(onFulfilled?: (value: U) =\> U \| Thenable\<U\>, onRejected?: (error: any) =\> U \| Thenable\<U\>): Thenable\<U\>; \<U\>(onFulfilled?: (value: U) =\> U \| Thenable\<\.\.\.\>, onRejected?: (error: any) =\> void): Thenable\<\.\.\.\>; \}|

> Element
|参数|描述|类型|
Expand Down
89 changes: 88 additions & 1 deletion packages/arcodesign/components/form/__ast__/index.ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,69 @@
"descWithTags": "提交表单"
}
},
"Promise": {
"R": {
"name": "R",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "any"
},
"tags": {},
"descWithTags": ""
},
"__constructor": {
"name": "__constructor",
"required": true,
"description": "If you call resolve in the body of the callback passed to the constructor,\nyour promise is fulfilled with result object passed to resolve.\nIf you call reject your promise is rejected with the object passed to resolve.\nFor consistency and debugging (eg stack traces), obj should be an instanceof Error.\nAny errors thrown in the constructor callback will be implicitly passed to reject().",
"defaultValue": null,
"type": {
"name": "any"
},
"tags": {},
"descWithTags": "If you call resolve in the body of the callback passed to the constructor,\nyour promise is fulfilled with result object passed to resolve.\nIf you call reject your promise is rejected with the object passed to resolve.\nFor consistency and debugging (eg stack traces), obj should be an instanceof Error.\nAny errors thrown in the constructor callback will be implicitly passed to reject()."
},
"then": {
"name": "then",
"required": true,
"description": "onFulfilled is called when/if \"promise\" resolves. onRejected is called when/if \"promise\" rejects.\nBoth are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called.\nBoth callbacks have a single parameter , the fulfillment value or rejection reason.\n\"then\" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve.\nIf an error is thrown in the callback, the returned promise rejects with that error.\n@param onFulfilled called when/if \"promise\" resolves\n@param onRejected called when/if \"promise\" rejects",
"defaultValue": null,
"type": {
"name": "{ <U>(onFulfilled?: (value: IFieldError[]) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Promise<U>; <U>(onFulfilled?: (value: IFieldError[]) => U | Thenable<...>, onRejected?: (error: any) => void): Promise<...>; }"
},
"tags": {
"param": "onFulfilled called when/if \"promise\" resolves\nonRejected called when/if \"promise\" rejects"
},
"descWithTags": "onFulfilled is called when/if \"promise\" resolves. onRejected is called when/if \"promise\" rejects.\nBoth are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called.\nBoth callbacks have a single parameter , the fulfillment value or rejection reason.\n\"then\" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve.\nIf an error is thrown in the callback, the returned promise rejects with that error."
},
"catch": {
"name": "catch",
"required": true,
"description": "Sugar for promise.then(undefined, onRejected)\n@param onRejected called when/if \"promise\" rejects",
"defaultValue": null,
"type": {
"name": "<U>(onRejected?: (error: any) => U | Thenable<U>) => Promise<U>"
},
"tags": {
"param": "onRejected called when/if \"promise\" rejects"
},
"descWithTags": "Sugar for promise.then(undefined, onRejected)"
},
"finally": {
"name": "finally",
"required": true,
"description": "onSettled is invoked when/if the \"promise\" settles (either rejects or fulfills).\nThe returned promise is settled when the `Thenable` returned by `onFinally` settles;\nit is rejected if `onFinally` throws or rejects; otherwise it assumes the state of the\noriginal Promise.\n@param onFinally called when/if \"promise\" settles",
"defaultValue": null,
"type": {
"name": "(onFinally?: () => any) => Promise<IFieldError[]>"
},
"tags": {
"param": "onFinally called when/if \"promise\" settles"
},
"descWithTags": "onSettled is invoked when/if the \"promise\" settles (either rejects or fulfills).\nThe returned promise is settled when the `Thenable` returned by `onFinally` settles;\nit is rejected if `onFinally` throws or rejects; otherwise it assumes the state of the\noriginal Promise."
}
},
"IFieldError": {
"value": {
"name": "value",
Expand Down Expand Up @@ -358,6 +421,30 @@
"descWithTags": ""
}
},
"Thenable": {
"R": {
"name": "R",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "any"
},
"tags": {},
"descWithTags": ""
},
"then": {
"name": "then",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "{ <U>(onFulfilled?: (value: U) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>; <U>(onFulfilled?: (value: U) => U | Thenable<...>, onRejected?: (error: any) => void): Thenable<...>; }"
},
"tags": {},
"descWithTags": ""
}
},
"FormRef": {
"dom": {
"name": "dom",
Expand Down Expand Up @@ -791,4 +878,4 @@
"ref": "FormRef"
},
"isDefaultExport": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,4 @@ The image preview, supports circular rotation, two-finger/double-tap zoom, and t
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
1 change: 1 addition & 0 deletions packages/arcodesign/components/image-preview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,4 @@
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,17 @@
},
"tags": {},
"descWithTags": ""
},
"Uploader": {
"name": "Uploader",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "{ uploadBtn: string; retryUpload: string; }"
},
"tags": {},
"descWithTags": ""
}
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/arcodesign/components/masking/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ Generic modal popup with custom internal content. By default, anti-scroll penetr
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
1 change: 1 addition & 0 deletions packages/arcodesign/components/masking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
11 changes: 11 additions & 0 deletions packages/arcodesign/components/masking/__ast__/index.ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,17 @@
},
"tags": {},
"descWithTags": ""
},
"Uploader": {
"name": "Uploader",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "{ uploadBtn: string; retryUpload: string; }"
},
"tags": {},
"descWithTags": ""
}
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/arcodesign/components/notify/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ The feedback information bar displayed after active operation can be called by m
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
1 change: 1 addition & 0 deletions packages/arcodesign/components/notify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
11 changes: 11 additions & 0 deletions packages/arcodesign/components/notify/__ast__/index.ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,17 @@
},
"tags": {},
"descWithTags": ""
},
"Uploader": {
"name": "Uploader",
"required": true,
"description": "",
"defaultValue": null,
"type": {
"name": "{ uploadBtn: string; retryUpload: string; }"
},
"tags": {},
"descWithTags": ""
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,4 @@ The popup with gesture closing function based on the popup encapsulation, has ot
|Keyboard|-|\{ confirm: string; \}|
|Form|-|\{ required: string; type: \{ email: string; url: string; string: string; number: string; array: string; object: string; boolean: string; \}; number: \{ min: string; max: string; equal: string; range: string; positive: string; negative: string; \}; \.\.\. 4 more \.\.\.; pickerDefaultHint: string; \}|
|NavBar|-|\{ backBtnAriaLabel: string; \}|
|Uploader|-|\{ uploadBtn: string; retryUpload: string; \}|
Loading

0 comments on commit 074dc97

Please sign in to comment.