Skip to content

Commit

Permalink
releases 3.3.48
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Dec 26, 2024
1 parent 34f8ae4 commit 5ad8e3a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-pc-ui",
"version": "3.3.47",
"version": "3.3.48",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
24 changes: 13 additions & 11 deletions packages/number-input/src/number-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,19 +489,19 @@ export default defineVxeComponent({
const { inputValue } = reactData
const digitsValue = $xeNumberInput.computeDigitsValue
const decimalsType = $xeNumberInput.computeDecimalsType
if (decimalsType) {
if (val) {
let textValue = ''
if (val) {
textValue = toFloatValueFixed(val, digitsValue)
if (!autoFill) {
textValue = `${XEUtils.toNumber(textValue)}`
}
}
if (textValue !== inputValue) {
reactData.inputValue = textValue
if (eqEmptyValue(val)) {
reactData.inputValue = ''
} else {
let textValue = `${val}`
if (decimalsType) {
textValue = toFloatValueFixed(val, digitsValue)
if (!autoFill) {
textValue = `${XEUtils.toNumber(textValue)}`
}
}
if (textValue !== inputValue) {
reactData.inputValue = textValue
}
}
},
/**
Expand Down Expand Up @@ -529,6 +529,8 @@ export default defineVxeComponent({
}
if (inputValue !== validValue) {
$xeNumberInput.handleChange(validValue, textValue, { type: 'init' })
} else {
reactData.inputValue = textValue
}
}
}
Expand Down
1 change: 1 addition & 0 deletions types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3676,6 +3676,7 @@ export interface TablePrivateMethods<D = any> {
triggerTreeExpandEvent(evnt: Event, params: VxeTableDefines.CellRenderBodyParams<any>): void
triggerSortEvent(evnt: Event, column: VxeTableDefines.ColumnInfo<any>, order: VxeTablePropTypes.SortOrder): void
triggerHeaderCellMousedownEvent(evnt: any, params: any): void
triggerCellMousedownEvent(evnt: MouseEvent, params: any): void
triggerCellMousedownEvent(evnt: any, params: any): void
handleRowDragDragstartEvent (evnt: DragEvent): void
handleRowDragDragendEvent(evnt: DragEvent): void
Expand Down

0 comments on commit 5ad8e3a

Please sign in to comment.