Skip to content
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9edd73d
feat: add test_decimal field to cars model and update related resources
kulikp1 Apr 30, 2026
1c89c55
feat: add parse decimal
kulikp1 May 1, 2026
2903b89
feat: enhance decimal parsing to trim trailing zeros
kulikp1 May 1, 2026
e6585a3
feat: add decimal.js for enhanced decimal handling and update parsing…
kulikp1 May 1, 2026
ceac7dd
revert
kulikp1 May 1, 2026
1466d11
revert
kulikp1 May 1, 2026
815ebab
revert
kulikp1 May 1, 2026
e9fb9ca
revert
kulikp1 May 1, 2026
b284582
fix: update decimal input handling to improve user experience
kulikp1 May 4, 2026
58d2d09
feat: add test_decimal field to cars model and update related components
kulikp1 May 4, 2026
f01c9a9
fix: simplify decimal input handling by removing unnecessary editing …
kulikp1 May 4, 2026
08b3690
feat: enhance decimal input with placeholder, fullWidth, and prefix/s…
kulikp1 May 4, 2026
9b0880d
fix: update decimal input handling to improve value parsing and user …
kulikp1 May 4, 2026
26d0619
feat: revert
kulikp1 May 4, 2026
8a5f2e9
feat: enhance decimal input handling with improved value parsing and …
kulikp1 May 4, 2026
36cf8c0
fix: streamline model value handling in ColumnValueInput component
kulikp1 May 4, 2026
5122ed9
fix: remove step attribute from number input in ColumnValueInput comp…
kulikp1 May 4, 2026
69a25cb
fix: remove readonly attribute from input in ColumnValueInput component
kulikp1 May 4, 2026
21649e0
fix: improve float input value handling by formatting modelValue
kulikp1 May 4, 2026
f2d56f9
fix: update decimal input to allow any step value and improve model v…
kulikp1 May 4, 2026
747d0da
fix: remove readonly attribute from input in ColumnValueInput compone…
kulikp1 May 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adminforth/spa/src/components/ColumnValueInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
:fullWidth="true"
:prefix="column.inputPrefix"
:suffix="column.inputSuffix"
:modelValue="String(value)"
@update:modelValue="$emit('update:modelValue', String($event))"
:modelValue="value?.toString().replace(/(\.[0-9]*[1-9])0+$|\.0+$/, '$1')"
@update:modelValue="(val: string | number) => $emit('update:modelValue', val !== null ? String(val) : '')"
/>
<Input
v-else-if="(type || column.type) === 'float'"
Expand Down Expand Up @@ -206,10 +206,10 @@

const columnLoadingState = inject('columnLoadingState', {} as any);
const onSearchInput = inject('onSearchInput', {} as any);

const loadMoreOptions = inject('loadMoreOptions', (() => {}) as any);

const input = ref<HTMLInputElement | null>(null);

const getBooleanOptions = (column: any) => {
const options: Array<{ label: string; value: boolean | null }> = [
{ label: t('Yes'), value: true },
Expand Down