mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 19:29:04 +08:00
fix: fix message type error
This commit is contained in:
@@ -11,22 +11,15 @@
|
||||
|
||||
<div class="collapse-container__action">
|
||||
<slot name="action" />
|
||||
<BasicArrow v-if="$attrs.canExpan" :expand="$attrs.show" @click="handleExpand" />
|
||||
<BasicArrow v-if="$attrs.canExpan" :expand="$attrs.show" @click="$emit('expand')" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { BasicArrow } from '/@/components/Basic';
|
||||
import { BasicTitle } from '/@/components/Basic';
|
||||
import { BasicArrow, BasicTitle } from '/@/components/Basic';
|
||||
export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
components: { BasicArrow, BasicTitle },
|
||||
setup(_, { emit }) {
|
||||
function handleExpand() {
|
||||
emit('expand');
|
||||
}
|
||||
return { handleExpand };
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user