Skip to content

Commit

Permalink
1,318th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Jan 18, 2024
1 parent 774b13e commit afeb440
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ui/src/components/iterator/Iterator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ const props = withDefaults(
disabled?: boolean;
maxlength?: string | number;
inGrid?: boolean | string;
newItem?: IteratorItem;
}>(),
{
value: () => [{}],
disabled: false,
maxlength: undefined,
inGrid: undefined,
newItem: () => ({}),
},
);
Expand All @@ -42,7 +44,7 @@ const hasMaxlength = computed(
);
function onAdd() {
emit('update:value', [...props.value, {}]);
emit('update:value', [...props.value, props.newItem]);
}
function onDelete(idx: number) {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/radio-group/RadioGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defineOptions({
const props = defineProps<{
label?: string;
value?: unknown;
options?: string[] | Array<{ label: string; value: unknown }>;
options?: string[] | { label: string; value: unknown; [key: string]: unknown }[];
disabled?: boolean;
required?: boolean;
invalid?: boolean | string;
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/text-field/TextField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import uniqueId from 'lodash/uniqueId';
interface Props extends /* @vue-ignore */ InputHTMLAttributes {
id?: string;
label?: string;
value?: string;
value?: string | number;
type?: string;
clearable?: boolean;
disabled?: boolean;
Expand All @@ -23,7 +23,7 @@ defineOptions({
const props = defineProps<Props>();
const emit = defineEmits<{
(evt: 'update:value', val: string): void;
(evt: 'update:value', val: string | number): void;
(evt: 'clear'): void;
(evt: 'prepend'): void;
(evt: 'append'): void;
Expand Down

0 comments on commit afeb440

Please sign in to comment.