注册全局组件SVG,集成pinia,封装axios
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<template>
|
||||
<div></div>
|
||||
</template>
|
||||
<script setup lang='ts'>
|
||||
defineOptions({
|
||||
name: "componentName"
|
||||
})
|
||||
import {ref, reactive} from 'vue'
|
||||
let select = ref(1)
|
||||
|
||||
defineExpose({ select })
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,32 +1,22 @@
|
||||
<template>
|
||||
<div ref="loginContent" class="text-xl text-red-600">
|
||||
<!--用户名密码,暂时不做图形验证码-->
|
||||
<h1 ref="loginTitle">123</h1>
|
||||
<Child ref="child"/>
|
||||
<svg-icon name="wind" color="#fff" size="100" spin > </svg-icon>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
defineOptions({
|
||||
name: "Login"
|
||||
})
|
||||
import {ref, reactive,onMounted} from 'vue'
|
||||
import Child from './Child.vue'
|
||||
defineOptions(
|
||||
{
|
||||
name: "CustomLogin"
|
||||
}
|
||||
)
|
||||
import {ref, onMounted} from 'vue'
|
||||
let loginContent = ref()
|
||||
let loginTitle = ref()
|
||||
let child = ref()
|
||||
|
||||
function showLog(){
|
||||
console.log(child.value)
|
||||
}
|
||||
|
||||
showLog()
|
||||
|
||||
console.log(loginTitle.value);
|
||||
console.log(child.value);
|
||||
onMounted(() => {
|
||||
console.log(loginTitle.value);
|
||||
console.log(child.value);
|
||||
console.log(loginTitle.value);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user