forked from FoundKeyGang/FoundKey
client: fix maxlength for profile description
Changelog: Fixed
This commit is contained in:
parent
0571a0843c
commit
1d877e97f0
3 changed files with 5 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
:spellcheck="spellcheck"
|
:spellcheck="spellcheck"
|
||||||
:step="step"
|
:step="step"
|
||||||
:list="id"
|
:list="id"
|
||||||
|
:maxlength="max"
|
||||||
@focus="focused = true"
|
@focus="focused = true"
|
||||||
@blur="focused = false"
|
@blur="focused = false"
|
||||||
@keydown="onKeydown($event)"
|
@keydown="onKeydown($event)"
|
||||||
|
@ -58,6 +59,7 @@ const props = defineProps<{
|
||||||
manualSave?: boolean;
|
manualSave?: boolean;
|
||||||
small?: boolean;
|
small?: boolean;
|
||||||
large?: boolean;
|
large?: boolean;
|
||||||
|
max?: number;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
:pattern="pattern"
|
:pattern="pattern"
|
||||||
:autocomplete="autocomplete ? 'on' : 'off'"
|
:autocomplete="autocomplete ? 'on' : 'off'"
|
||||||
:spellcheck="spellcheck"
|
:spellcheck="spellcheck"
|
||||||
|
:maxlength="max"
|
||||||
@focus="focused = true"
|
@focus="focused = true"
|
||||||
@blur="focused = false"
|
@blur="focused = false"
|
||||||
@keydown="onKeydown($event)"
|
@keydown="onKeydown($event)"
|
||||||
|
@ -54,6 +55,7 @@ const props = withDefaults(defineProps<{
|
||||||
pre?: boolean;
|
pre?: boolean;
|
||||||
debounce?: boolean;
|
debounce?: boolean;
|
||||||
manualSave?: boolean;
|
manualSave?: boolean;
|
||||||
|
max?: number;
|
||||||
}>(), {
|
}>(), {
|
||||||
pattern: undefined,
|
pattern: undefined,
|
||||||
placeholder: '',
|
placeholder: '',
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<template #label>{{ i18n.ts._profile.name }}</template>
|
<template #label>{{ i18n.ts._profile.name }}</template>
|
||||||
</FormInput>
|
</FormInput>
|
||||||
|
|
||||||
<FormTextarea v-model="profile.description" :max="500" tall manual-save class="_formBlock">
|
<FormTextarea v-model="profile.description" :max="2048" tall manual-save class="_formBlock">
|
||||||
<template #label>{{ i18n.ts._profile.description }}</template>
|
<template #label>{{ i18n.ts._profile.description }}</template>
|
||||||
<template #caption>{{ i18n.ts._profile.youCanIncludeHashtags }}</template>
|
<template #caption>{{ i18n.ts._profile.youCanIncludeHashtags }}</template>
|
||||||
</FormTextarea>
|
</FormTextarea>
|
||||||
|
|
Loading…
Reference in a new issue