<commit_before><template>
    <div :class="wrapClass">
    	<template v-if="type!=='textarea'">
			<input
			:type="type"
			:class="getClass"
			:placeholder="placeholder"
			:disabled="disabled"
			:readonly="readonly"
			:maxlength="maxlength"
			@keyup.enter="handleEnterFn"
			@focus="handleFocusFn"
			@blur="handleBlurFn"
			>
		</template>
		<textarea
		v-else
		:class="getClass"
		:placeholder="placeholder"
		:disabled="disabled"
		:rows="rows"
		></textarea>
    </div>
</template>

<script>
    const prefixClass = "vut-input";
	export default {
		name: 'vut-input',
		props: {
			type: {
				type: String,
				default: 'text'
			},
			size: {
				type: String,
				default: 'default'
			},
			placeholder: {
				type: String,
				default: ''
			},
			disabled: {
				type: Boolean,
				default: false
			},
			readonly: {
				type: Boolean,
				default: false
			},
			maxlength: {
				type: Number
			},
			rows: {
				type: Number,
				default: 3
			},
			border: {
				type: Boolean,
				default: false
			}
		},
		data () {
			return {
				prefixClass
			}
		},
		computed: {
			wrapClass() {
				return [
					`${prefixClass}-wrap`
				];
			},
			getClass() {
				return [
					prefixClass,
					{
						[`${prefixClass}-${this.size}`]: !!this.size,
						[`${prefixClass}-hide-border`]: this.border 
					}
				];
			}
		},
		watch: {
			
		},
		methods: {
			handleEnterFn(event) {
				this.$emit('on-enter', event);
			},
			handleFocusFn(event) {
				this.$emit('on-focus', event);
			},
			handleBlurFn(event) {
				this.$emit('on-blur', event);
			}
		}
	}
</script><commit_msg>更新Input组件<commit_after><template>
    <div :class="wrapClass">
    	<template v-if="type!=='textarea'">
			<input
			:type="type"
			:class="getClass"
			:placeholder="placeholder"
			:disabled="disabled"
			:readonly="readonly"
			:maxlength="maxlength"
			@keyup.enter="handleEnterFn"
			@focus="handleFocusFn"
			@blur="handleBlurFn"
			>
		</template>
		<textarea
		v-else
		:class="getClass"
		:placeholder="placeholder"
		:disabled="disabled"
		:rows="rows"
		></textarea>
    </div>
</template>

<script>
    const prefixClass = "vut-input";
	export default {
		name: 'vut-input',
		props: {
			type: {
				type: String,
				default: 'text'
			},
			size: {
				type: String,
				default: 'default'
			},
			placeholder: {
				type: String,
				default: ''
			},
			disabled: {
				type: Boolean,
				default: false
			},
			readonly: {
				type: Boolean,
				default: false
			},
			maxlength: {
				type: Number
			},
			rows: {
				type: Number,
				default: 2
			},
			hideBorder: {
				type: Boolean,
				default: false
			}
		},
		data () {
			return {
				prefixClass
			}
		},
		computed: {
			wrapClass() {
				return [
					`${prefixClass}-wrap`
				];
			},
			getClass() {
				return [
					prefixClass,
					{
						[`${prefixClass}-${this.size}`]: !!this.size,
						[`${prefixClass}-hide-border`]: this.hideBorder 
					}
				];
			}
		},
		watch: {
			
		},
		methods: {
			handleEnterFn(event) {
				this.$emit('on-enter', event);
			},
			handleFocusFn(event) {
				this.$emit('on-focus', event);
			},
			handleBlurFn(event) {
				this.$emit('on-blur', event);
			}
		}
	}
</script>
{'fraction_non_alphanumeric': 0.17621419676214198, 'fraction_numerical': 0.0006226650062266501, 'mean_word_length': 2.392819429778247, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6487616', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1163, 'n_words': 193}