@mixd-id/web-scaffold 0.1.240411066 → 0.1.240411067
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,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="computedClass">
|
|
3
3
|
<slot name="start"></slot>
|
|
4
|
-
<input :type="computedType"
|
|
4
|
+
<input :type="computedType" @focus="isActive = true"
|
|
5
5
|
@input="onInput"
|
|
6
6
|
@blur="onBlur"
|
|
7
7
|
@keyup="(e) => $emit('keyup', e)"
|
|
8
8
|
:placeholder="placeholder" :maxlength="maxlength" ref="input" autocomplete="new-password"
|
|
9
|
-
:value="displayedValue" :readonly="Boolean(readonly)" @paste="onPaste"
|
|
9
|
+
:value="displayedValue" :readonly="Boolean(readonly) || Boolean(disabled)" @paste="onPaste"
|
|
10
10
|
:class="itemClass" @click="$emit('input-click')"
|
|
11
11
|
@keydown="onKeyDown"/>
|
|
12
12
|
<button class="mr-2" v-show="Boolean(clearable) && !Boolean(readonly) && state >= 1 && modelValue" type="button" @click="$emit('clear')">
|
|
@@ -186,9 +186,15 @@ export default{
|
|
|
186
186
|
@apply border-[1px] border-text-200 bg-base-300 hover:border-text-300 rounded-lg;
|
|
187
187
|
@apply overflow-hidden;
|
|
188
188
|
}
|
|
189
|
-
.textbox.active{
|
|
189
|
+
.textbox.active:not(.disabled){
|
|
190
190
|
@apply !border-primary-600
|
|
191
191
|
}
|
|
192
|
+
.textbox.disabled{
|
|
193
|
+
@apply bg-text-50 hover:border-text-200 cursor-not-allowed;
|
|
194
|
+
}
|
|
195
|
+
.textbox.disabled *{
|
|
196
|
+
@apply cursor-not-allowed;
|
|
197
|
+
}
|
|
192
198
|
.textbox>input{
|
|
193
199
|
@apply flex-1 outline-none p-2 bg-transparent;
|
|
194
200
|
font-size: inherit;
|