feat: 分组管理
This commit is contained in:
@@ -6,22 +6,27 @@
|
||||
<slot :name="item" v-bind="data || {}"></slot>
|
||||
</template>
|
||||
<template #footer>
|
||||
<a-button>取消</a-button>
|
||||
<a-space>
|
||||
<a-button v-if="cancel" @click="cancel">取消</a-button>
|
||||
<a-button type="primary" @click="ok">确定</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { computed, defineComponent, toRefs } from 'vue';
|
||||
import { computed, defineComponent, getCurrentInstance, toRefs } from 'vue';
|
||||
import { drawerProps } from 'ant-design-vue/es/drawer';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'NsDrawer',
|
||||
props: {
|
||||
...drawerProps(),
|
||||
ok: Function,
|
||||
cancel: Function,
|
||||
},
|
||||
setup(props, { attrs, emit, slots }) {
|
||||
console.log(props, slots);
|
||||
console.log(props, getCurrentInstance());
|
||||
|
||||
const getBindValue = computed(() => ({
|
||||
...attrs,
|
||||
|
Reference in New Issue
Block a user