@mixd-id/web-scaffold 0.1.230406027 → 0.1.230406029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="computedClass">
|
|
3
3
|
<slot name="start"></slot>
|
|
4
|
-
<textarea
|
|
4
|
+
<textarea
|
|
5
5
|
:placeholder="placeholder" :rows="rows" ref="input" @blur="onBlur" @input="onInput"
|
|
6
6
|
:value="modelValue" />
|
|
7
7
|
<div v-if="state === -2 && !!(errors)">
|
|
@@ -52,6 +52,7 @@ export default{
|
|
|
52
52
|
modelValue: [ String, Number ],
|
|
53
53
|
|
|
54
54
|
placeholder: String,
|
|
55
|
+
|
|
55
56
|
rows: String,
|
|
56
57
|
|
|
57
58
|
},
|
|
@@ -113,15 +114,6 @@ export default{
|
|
|
113
114
|
this.$refs.input.select()
|
|
114
115
|
},
|
|
115
116
|
|
|
116
|
-
onKeyUp(e){
|
|
117
|
-
if(e.keyCode === 13 && this.$refs.input.value.length > 0){
|
|
118
|
-
this.$emit('submit')
|
|
119
|
-
}
|
|
120
|
-
else if(e.keyCode === 27 && this.clearable){
|
|
121
|
-
this.$emit('clear')
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
|
|
125
117
|
onInput(e){
|
|
126
118
|
this.$emit('update:modelValue', e.target.value)
|
|
127
119
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="computedClass">
|
|
3
3
|
<slot name="start"></slot>
|
|
4
|
-
<input :type="computedType" :disabled="isDisabled" @focus="isActive = true"
|
|
4
|
+
<input :type="computedType" :disabled="isDisabled" @focus="isActive = true"
|
|
5
5
|
:placeholder="placeholder" :maxlength="maxlength" ref="input" autocomplete="new-password"
|
|
6
|
-
:value="displayedValue"
|
|
6
|
+
:value="displayedValue" :readonly="Boolean(readonly)"
|
|
7
7
|
@keydown="onKeyDown"/>
|
|
8
8
|
<button class="mr-2" v-if="Boolean(clearable) && !Boolean(readonly) && state >= 1 && modelValue" type="button" @click="$emit('clear')">
|
|
9
9
|
<svg :class="$style.svg" width="19" height="19" viewBox="0 0 24 24" class="fill-text-200" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -139,7 +139,11 @@ export default{
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
}
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
mounted(){
|
|
145
|
+
console.log('Textbox mounted', this.$el)
|
|
146
|
+
}
|
|
143
147
|
|
|
144
148
|
}
|
|
145
149
|
|