mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
607 B
32 lines
607 B
<template>
|
|
<v-text-field
|
|
v-bind="$attrs"
|
|
:value="value"
|
|
:rules="descriptionRules"
|
|
:label="$t('generic.description')"
|
|
required
|
|
@input="$emit('input', $event)"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue'
|
|
import { validateMinLength } from '~/domain/models/project/project'
|
|
|
|
export default Vue.extend({
|
|
props: {
|
|
value: {
|
|
type: String,
|
|
default: '',
|
|
required: true
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
descriptionRules: [
|
|
(text: string) => validateMinLength(text) || this.$t('rules.description.required')
|
|
]
|
|
}
|
|
}
|
|
})
|
|
</script>
|