@@ -115,17 +115,17 @@ const props = defineProps({
default: false,
required: true,
},
- show_input: {
+ show_input: {
type: Boolean,
default: false,
required: false,
},
- input_btns: {
+ input_btns: {
type: Array as PropType
,
default: [],
required: false,
},
- input_placeholder: {
+ input_placeholder: {
type: String,
default: '',
required: false,
@@ -140,7 +140,7 @@ const props = defineProps({
default: '',
required: false,
},
- inpType: {
+ inpType: {
type: String,
default: 'text',
required: false,
@@ -163,21 +163,21 @@ const onMessageOkBtn = () => {
switch(props.messageType) {
case MessageBoxType.Save:
if (inputSaveMode.value === 'send') {
- emit('onMessageBox', { src: 'sendata', val: inputValue.value })
+ emit('onMessageBox', { src: 'sendata', val: inputValue.value })
} else {
- emit('onMessageBox', { src: 'savedata', val: inputValue.value })
- }
+ emit('onMessageBox', { src: 'savedata', val: inputValue.value })
+ }
break
case MessageBoxType.Select:
- if (useState().current_model.value.id !== selectValue.value) {
- emit('onLoadModel', { id: selectValue.value })
+ if (useState().current_model.value.id !== selectValue.value) {
+ emit('onLoadModel', { id: selectValue.value })
}
- emit('onMessageBox', { src: 'done' })
+ emit('onMessageBox', { src: 'done' })
break
case MessageBoxType.OneInput:
if (oneinputValue.value !== '') {
- emit('onMessageBox', { src: 'oneinput', val: oneinputValue.value })
- }
+ emit('onMessageBox', { src: 'oneinput', val: oneinputValue.value })
+ }
// emit('onMessageBox', { src: 'done' })
break
}
diff --git a/src/components/NavMenu.vue b/src/components/NavMenu.vue
index 4dc181d..2caf8a6 100644
--- a/src/components/NavMenu.vue
+++ b/src/components/NavMenu.vue
@@ -1,7 +1,7 @@