feat: refs #8163 add prop
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-11-21 16:54:22 -03:00
parent ec40ef9351
commit 86d19218de
2 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,10 @@ const $props = defineProps({
type: Boolean,
default: true,
},
insertable: {
type: Boolean,
default: false,
},
});
const vnInputRef = ref(null);
@ -82,7 +86,7 @@ const mixinRules = [
const insertMode = ref(false);
const handleKeydown = (e) => {
if (e.key === 'Insert') {
if ($props.insertable && e.key === 'Insert') {
insertMode.value = !insertMode.value;
}
if (insertMode.value && e.key !== 'Insert') {

View File

@ -105,6 +105,7 @@ function handleLocation(data, location) {
:label="t('supplier.fiscalData.account')"
clearable
data-cy="supplierFiscalDataAccount"
insertable
/>
<VnSelect
:label="t('supplier.fiscalData.sageTaxTypeFk')"