mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 06:55:06 -04:00
refactor(c-input-text): force usage of props with default
This commit is contained in:
parent
45c2474279
commit
1e2a35b892
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { Ref } from 'vue';
|
|
||||||
import { useAppTheme } from '../theme/themes';
|
import { useAppTheme } from '../theme/themes';
|
||||||
import { useTheme } from './c-input-text.theme';
|
import { useTheme } from './c-input-text.theme';
|
||||||
import { generateRandomId } from '@/utils/random';
|
import { generateRandomId } from '@/utils/random';
|
||||||
|
@ -61,7 +60,7 @@ const emit = defineEmits(['update:value']);
|
||||||
const value = useVModel(props, 'value', emit);
|
const value = useVModel(props, 'value', emit);
|
||||||
const showPassword = ref(false);
|
const showPassword = ref(false);
|
||||||
|
|
||||||
const { id, placeholder, label, validationRules, labelPosition, labelWidth, labelAlign, autosize } = toRefs(props);
|
const { id, placeholder, label, validationRules, labelPosition, labelWidth, labelAlign, autosize, readonly, disabled, clearable, type, multiline, rows, rawText } = toRefs(props);
|
||||||
|
|
||||||
const validation
|
const validation
|
||||||
= props.validation
|
= props.validation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue