全局属性-子菜单-小标题组件修改写法
This commit is contained in:
@@ -3,21 +3,11 @@
|
|||||||
<p><slot name="nav_name"></slot></p>
|
<p><slot name="nav_name"></slot></p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script setup>
|
||||||
import { useConfig } from '@/stores/config'
|
import { useConfig } from '@/stores/config'
|
||||||
export default {
|
import { ref } from 'vue'
|
||||||
components: {},
|
const configStore = useConfig()
|
||||||
data() {
|
const borderColor =configStore.getColorVal('elementUiPrimary')
|
||||||
return {
|
|
||||||
borderColor: ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
const configStore = useConfig()
|
|
||||||
this.borderColor = configStore.getColorVal('elementUiPrimary')
|
|
||||||
},
|
|
||||||
methods: {}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.nav_title {
|
.nav_title {
|
||||||
|
|||||||
Reference in New Issue
Block a user