Why is the import name from ('') not allowed with a horizontal bar (-) when subcomponents are imported into the Vue component?

<script>
//  sub-vue
import sub-vue from "./component/sub.vue";
export default {
    data:function(){
        return {
            testStr:"is Test String"
        }
    },
    computed:{

    },
    filters:{

    },
    methods:{

    },
    components:{
    // key
        sub-vue:sub-vue
    },
    created:function(){

    },
    m
}
</script>
Mar.02,2022

ide/Grammar_and_types-sharpVariables" rel=" nofollow noreferrer "> https://developer.mozilla.org.
[-] is the operator


in my own understanding, import x from 'xxx' is equivalent to creating an x variable to receive export default objects in xxx files
then you can't var XMux in js, so you can't use' -'in import

.

scratch

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48934-5924c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48934-5924c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?