feat: 分组管理

This commit is contained in:
xuziqiang
2024-05-29 16:29:22 +08:00
parent f7ebb4bd60
commit 4614c8699f
14 changed files with 584 additions and 157 deletions

View File

@@ -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,