Merge branch 'fix_minor_styles' into 6321_negative_tickets
This commit is contained in:
commit
0984d05220
|
@ -53,10 +53,12 @@ defineExpose({
|
||||||
focus,
|
focus,
|
||||||
});
|
});
|
||||||
|
|
||||||
const inputRules = (val) => {
|
const inputRules = [
|
||||||
const { min } = vnInputRef.value.$attrs;
|
(val) => {
|
||||||
if (min >= 0) if (Math.floor(val) < min) return t('inputMin', { value: min });
|
const { min } = vnInputRef.value.$attrs;
|
||||||
};
|
if (min >= 0) if (Math.floor(val) < min) return t('inputMin', { value: min });
|
||||||
|
},
|
||||||
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -73,8 +75,9 @@ const inputRules = (val) => {
|
||||||
:class="{ required: $attrs.required }"
|
:class="{ required: $attrs.required }"
|
||||||
@keyup.enter="onEnterPress()"
|
@keyup.enter="onEnterPress()"
|
||||||
:clearable="false"
|
:clearable="false"
|
||||||
:rules="[inputRules]"
|
:rules="inputRules"
|
||||||
:lazy-rules="true"
|
:lazy-rules="true"
|
||||||
|
hide-bottom-space
|
||||||
>
|
>
|
||||||
<template v-if="$slots.prepend" #prepend>
|
<template v-if="$slots.prepend" #prepend>
|
||||||
<slot name="prepend" />
|
<slot name="prepend" />
|
||||||
|
|
|
@ -15,10 +15,3 @@ const stateStore = useStateStore();
|
||||||
<RouterView></RouterView>
|
<RouterView></RouterView>
|
||||||
</QPageContainer>
|
</QPageContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
#searchbar,
|
|
||||||
.search-panel {
|
|
||||||
width: 400px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Reference in New Issue