other components...
This commit is contained in:
0
src/components/CCardOperator/CCardOperator.scss
Executable file
0
src/components/CCardOperator/CCardOperator.scss
Executable file
24
src/components/CCardOperator/CCardOperator.ts
Executable file
24
src/components/CCardOperator/CCardOperator.ts
Executable file
@@ -0,0 +1,24 @@
|
||||
import { CCard } from '@components'
|
||||
import MixinOperator from '../../mixins/mixin-operator'
|
||||
import { defineComponent, ref } from 'vue'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CCardOperator',
|
||||
components: { CCard },
|
||||
props:{
|
||||
username: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const tab = ref('one')
|
||||
|
||||
const { getOperatorByUsername } = MixinOperator()
|
||||
|
||||
return {
|
||||
tab,
|
||||
getOperatorByUsername,
|
||||
}
|
||||
},
|
||||
})
|
||||
14
src/components/CCardOperator/CCardOperator.vue
Executable file
14
src/components/CCardOperator/CCardOperator.vue
Executable file
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<CCard :op="getOperatorByUsername(username)" :tab="tab">
|
||||
</CCard>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CCardOperator.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CCardOperator.scss';
|
||||
</style>
|
||||
1
src/components/CCardOperator/index.ts
Executable file
1
src/components/CCardOperator/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export {default as CCardOperator} from './CCardOperator.vue'
|
||||
Reference in New Issue
Block a user