Skip to content

Commit

Permalink
Update API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Dec 22, 2023
1 parent 078a307 commit 15debce
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
12 changes: 1 addition & 11 deletions components/lib/inputnumber/BaseInputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,7 @@ export default {
type: String,
default: 'halfExpand',
validator(value) {
return [
'ceil',
'floor',
'expand',
'trunc',
'halfCeil',
'halfFloor',
'halfExpand',
'halfTrunc',
'halfEven'
].includes(value);
return ['ceil', 'floor', 'expand', 'trunc', 'halfCeil', 'halfFloor', 'halfExpand', 'halfTrunc', 'halfEven'].includes(value);
}
},
min: {
Expand Down
11 changes: 1 addition & 10 deletions components/lib/inputnumber/InputNumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ import { InputTextPassThroughOptions } from '../inputtext';
import { PassThroughOptions } from '../passthrough';
import { ClassComponent, GlobalComponentConstructor, Nullable, PassThrough } from '../ts-helpers';

export declare type RoundingMode =
| 'ceil'
| 'floor'
| 'expand'
| 'trunc'
| 'halfCeil'
| 'halfFloor'
| 'halfExpand'
| 'halfTrunc'
| 'halfEven';
export declare type RoundingMode = 'ceil' | 'floor' | 'expand' | 'trunc' | 'halfCeil' | 'halfFloor' | 'halfExpand' | 'halfTrunc' | 'halfEven';

export declare type InputNumberPassThroughOptionType<T = any> = InputNumberPassThroughAttributes | ((options: InputNumberPassThroughMethodOptions<T>) => InputNumberPassThroughAttributes | string) | string | null | undefined;

Expand Down
2 changes: 1 addition & 1 deletion components/lib/inputnumber/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default {
useGrouping: this.useGrouping,
minimumFractionDigits: this.minFractionDigits,
maximumFractionDigits: this.maxFractionDigits,
roundingMode: this.roundingMode,
roundingMode: this.roundingMode
};
},
constructParser() {
Expand Down
15 changes: 13 additions & 2 deletions doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -19747,7 +19747,7 @@
"name": "columnResizeMode",
"optional": true,
"readonly": false,
"type": "\"fit\" | \"expand\"",
"type": "\"expand\" | \"fit\"",
"default": "fit",
"description": "Defines whether the overall table width."
},
Expand Down Expand Up @@ -30407,6 +30407,14 @@
"default": "",
"description": "The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3;\nthe default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the [ISO 4217 currency code](https://www.six-group.com/en/products-services/financial-information/data-standards.html#scrollTo=maintenance-agency) list (2 if the list doesn't provide that information)."
},
{
"name": "roundingMode",
"optional": true,
"readonly": false,
"type": "RoundingMode",
"default": "",
"description": "How decimals should be rounded.\nThe default value is `\"halfExpand\"` , [further information](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingmode)."
},
{
"name": "min",
"optional": true,
Expand Down Expand Up @@ -30645,6 +30653,9 @@
"types": {
"description": "Defines the custom types used by the module.",
"values": {
"RoundingMode": {
"values": "\"ceil\" | \"floor\" | \"expand\" | \"trunc\" | \"halfCeil\" | \"halfFloor\" | \"halfExpand\" | \"halfTrunc\" | \"halfEven\""
},
"InputNumberPassThroughOptionType": {
"values": "InputNumberPassThroughAttributes | (options: InputNumberPassThroughMethodOptions) => undefined | string | null | undefined"
}
Expand Down Expand Up @@ -56218,7 +56229,7 @@
"name": "columnResizeMode",
"optional": true,
"readonly": false,
"type": "\"fit\" | \"expand\"",
"type": "\"expand\" | \"fit\"",
"default": "fit",
"description": "Defines whether the overall table width should change on column resize."
},
Expand Down

0 comments on commit 15debce

Please sign in to comment.