chore: change tools functions import

This commit is contained in:
JesusPerez 2022-01-10 20:20:53 +00:00
parent 563672d7ec
commit 7fac1c97a8
4 changed files with 9 additions and 6 deletions

2
components.d.ts vendored
View File

@ -9,10 +9,12 @@ declare module 'vue' {
AppLogoText: typeof import('./src/components/icons/AppLogoText.vue')['default']
AppLogoV: typeof import('./src/components/icons/AppLogoV.vue')['default']
BellIcon: typeof import('./src/components/icons/BellIcon.vue')['default']
CarbonDicomOverlay: typeof import('~icons/carbon/dicom-overlay')['default']
CarbonEdit: typeof import('~icons/carbon/edit')['default']
CarbonErase: typeof import('~icons/carbon/erase')['default']
CarbonHome: typeof import('~icons/carbon/home')['default']
CarbonLanguage: typeof import('~icons/carbon/language')['default']
CarbonWarning: typeof import('~icons/carbon/warning')['default']
CheckInput: typeof import('./src/components/forms/CheckInput.vue')['default']
ChevronDoubleRight: typeof import('./src/components/icons/ChevronDoubleRight.vue')['default']
CloseIcon: typeof import('./src/components/icons/CloseIcon.vue')['default']

View File

@ -81,7 +81,7 @@ import { PropType } from 'vue'
import TextInput from './forms/TextInput.vue'
import CheckInput from './forms/CheckInput.vue'
import { InputValueOption,InputValidateOption,InputValueModeOption} from '~/typs/inputs'
import { generate_value } from '~/hooks/utils'
import { generate_value } from '~/hooks/tools'
const emit = defineEmits(['inputChange','inputAdd','inputDelete'])
const t = useI18n().t
@ -172,4 +172,4 @@ const onAddItem= () => {
}
onBeforeMount(async() => {
})
</script>
</script>

View File

@ -80,7 +80,7 @@ import { PropType } from 'vue'
import { useI18n } from 'vue-i18n'
import InputValue from '@/InputValue.vue'
import { InputValueOption, InputValidateOption,VarsDataType} from '~/typs/inputs'
import { generate_value,email_info } from '~/hooks/utils'
import { generate_value,email_info } from '~/hooks/tools'
const emit = defineEmits(['inputChange','inputModelAdd','inputModelDelete'])
const t = useI18n().t
@ -179,4 +179,4 @@ const onEmailItem= (id: string) => {
email_info(props.varname,props.vardef,ky,targetData[ky],t(props.title,props.varname))
})
}
</script>
</script>

View File

@ -66,7 +66,8 @@ import { useI18n } from 'vue-i18n'
const { t } = useI18n()
import { MessageType} from '~/typs'
import { InputValueOption,InputValidateOption,InputValueModeOption} from '~/typs/inputs'
import { show_message,generate_value} from '~/hooks/utils'
import { show_message } from '~/hooks/utils'
import { generate_value} from '~/hooks/tools'
import { input_validate } from '~/hooks/validation'
const emit = defineEmits(['inputChange'])
const props = defineProps({
@ -141,4 +142,4 @@ const onInputChange = (ev: any) => {
show_message(MessageType.Error, `${t(props.title,props.varname)} not valid`,5000)
}
}
</script>
</script>